forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/lpc3250-ea3250.dts
....@@ -1,14 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Embedded Artists LPC3250 board
34 *
45 * Copyright 2012 Roland Stigge <stigge@antcom.de>
5
- *
6
- * The code contained herein is licensed under the GNU General Public
7
- * License. You may obtain a copy of the GNU General Public License
8
- * Version 2 or later at the following locations:
9
- *
10
- * http://www.opensource.org/licenses/gpl-license.html
11
- * http://www.gnu.org/copyleft/gpl.html
126 */
137
148 /dts-v1/;
....@@ -17,64 +11,70 @@
1711 / {
1812 model = "Embedded Artists LPC3250 board based on NXP LPC3250";
1913 compatible = "ea,ea3250", "nxp,lpc3250";
20
- #address-cells = <1>;
21
- #size-cells = <1>;
2214
23
- memory {
15
+ memory@80000000 {
2416 device_type = "memory";
2517 reg = <0x80000000 0x4000000>;
2618 };
2719
28
- gpio_keys {
20
+ gpio-keys {
2921 compatible = "gpio-keys";
30
- #address-cells = <1>;
31
- #size-cells = <0>;
3222 autorepeat;
33
- button@21 {
23
+
24
+ button {
3425 label = "Interrupt Key";
3526 linux,code = <103>;
3627 gpios = <&gpio 4 1 0>; /* GPI_P3 1 */
3728 };
29
+
3830 key1 {
3931 label = "KEY1";
4032 linux,code = <1>;
4133 gpios = <&pca9532 0 0>;
4234 };
35
+
4336 key2 {
4437 label = "KEY2";
4538 linux,code = <2>;
4639 gpios = <&pca9532 1 0>;
4740 };
41
+
4842 key3 {
4943 label = "KEY3";
5044 linux,code = <3>;
5145 gpios = <&pca9532 2 0>;
5246 };
47
+
5348 key4 {
5449 label = "KEY4";
5550 linux,code = <4>;
5651 gpios = <&pca9532 3 0>;
5752 };
53
+
5854 joy0 {
5955 label = "Joystick Key 0";
6056 linux,code = <10>;
6157 gpios = <&gpio 2 0 0>; /* P2.0 */
6258 };
59
+
6360 joy1 {
6461 label = "Joystick Key 1";
6562 linux,code = <11>;
6663 gpios = <&gpio 2 1 0>; /* P2.1 */
6764 };
65
+
6866 joy2 {
6967 label = "Joystick Key 2";
7068 linux,code = <12>;
7169 gpios = <&gpio 2 2 0>; /* P2.2 */
7270 };
71
+
7372 joy3 {
7473 label = "Joystick Key 3";
7574 linux,code = <13>;
7675 gpios = <&gpio 2 3 0>; /* P2.3 */
7776 };
77
+
7878 joy4 {
7979 label = "Joystick Key 4";
8080 linux,code = <14>;
....@@ -195,6 +195,7 @@
195195 &mac {
196196 phy-mode = "rmii";
197197 use-iram;
198
+ status = "okay";
198199 };
199200
200201 /* Here, choose exactly one from: ohci, usbd */