ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ALL0239-3G.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
10 model = "Allnet ALL0239-3G";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16
17 cfi@1f000000 {
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 partition@30000 {
32 label = "u-boot-env";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 factory: partition@40000 {
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41 };
42
43 partition@50000 {
44 label = "firmware";
45 reg = <0x50000 0x7b0000>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51
52 usb {
53 label = "all0239-3g:green:usb";
54 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
55 };
56
57 3g {
58 label = "all0239-3g:green:3g";
59 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
60 };
61
62 led_status: status {
63 label = "all0239-3g:green:status";
64 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
65 };
66
67 wps {
68 label = "all0239-3g:green:wps";
69 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 };
71 };
72
73 gpio-keys-polled {
74 compatible = "gpio-keys-polled";
75 poll-interval = <20>;
76
77 reset {
78 label = "reset";
79 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
81 };
82
83 connect {
84 label = "connect";
85 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_CONNECT>;
87 };
88
89 wps {
90 label = "wps";
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 };
94 };
95 };
96
97 &pinctrl {
98 state_default: pinctrl0 {
99 gpio {
100 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
101 ralink,function = "gpio";
102 };
103 };
104 };
105
106 &ethernet {
107 mtd-mac-address = <&factory 0x28>;
108 };
109
110 &esw {
111 status = "okay";
112 mediatek,portmap = <0x3e>;
113 };
114
115 &wmac {
116 ralink,mtd-eeprom = <&factory 0>;
117 };
118
119 &otg {
120 status = "okay";
121 };