ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / F5D8235_V1.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 #address-cells = <1>;
10 #size-cells = <1>;
11 compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
12 model = "Belkin F5D8235 v1";
13
14 aliases {
15 led-status = &led_wired_blue;
16 };
17
18 cfi@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0xbc400000 0x800000>;
21 bank-width = <2>;
22 device-width = <2>;
23 #address-cells = <1>;
24 #size-cells = <1>;
25
26 partition@0 {
27 label = "uboot";
28 reg = <0x0 0x30000>;
29 read-only;
30 };
31
32 partition@30000 {
33 label = "uboot-env";
34 reg = <0x30000 0x10000>;
35 read-only;
36 };
37
38 factory: partition@40000 {
39 label = "factory";
40 reg = <0x40000 0x10000>;
41 read-only;
42 };
43
44 partition@50000 {
45 label = "firmware";
46 reg = <0x50000 0x7b0000>;
47 };
48 };
49
50 rtl8366s {
51 compatible = "realtek,rtl8366s";
52 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
53 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
54
55 realtek,initvals = <
56 0x0242 0x02BF
57 0x0245 0x02BF
58 0x0248 0x02BF
59 0x024B 0x02BF
60 0x024E 0x02BF
61 0x0251 0x02BF
62 0x0254 0x0A3F
63 0x0256 0x0A3F
64 0x0258 0x0A3F
65 0x025A 0x0A3F
66 0x025C 0x0A3F
67 0x025E 0x0A3F
68 0x0263 0x007C
69 0x0100 0x0004
70 0xBE5B 0x3500
71 0x800E 0x200F
72 0xBE1D 0x0F00
73 0x8001 0x5011
74 0x800A 0xA2F4
75 0x800B 0x17A3
76 0xBE4B 0x17A3
77 0xBE41 0x5011
78 0xBE17 0x2100
79 0x8000 0x8304
80 0xBE40 0x8304
81 0xBE4A 0xA2F4
82 0x800C 0xA8D5
83 0x8014 0x5500
84 0x8015 0x0004
85 0xBE4C 0xA8D5
86 0xBE59 0x0008
87 0xBE09 0x0E00
88 0xBE36 0x1036
89 0xBE37 0x1036
90 0x800D 0x00FF
91 0xBE4D 0x00FF
92 >;
93
94 realtek,green-ethernet-features;
95 };
96
97 gpio-keys-polled {
98 compatible = "gpio-keys-polled";
99 poll-interval = <100>;
100
101 wps {
102 label = "wps";
103 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_WPS_BUTTON>;
105 };
106
107 reset {
108 label = "reset";
109 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_RESTART>;
111 };
112 };
113
114 gpio-leds {
115 compatible = "gpio-leds";
116
117 internet {
118 label = "f5d8235-v1:blue:internet";
119 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
120 };
121
122 internet2 {
123 label = "f5d8235-v1:amber:internet";
124 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
125 };
126
127 modem {
128 label = "f5d8235-v1:blue:modem";
129 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
130 };
131
132 modem2 {
133 label = "f5d8235-v1:amber:modem";
134 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
135 };
136
137 router {
138 label = "f5d8235-v1:blue:router";
139 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
140 };
141
142 storage {
143 label = "f5d8235-v1:blue:storage";
144 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
145 };
146
147 storage2 {
148 label = "f5d8235-v1:amber:storage";
149 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
150 };
151
152 security {
153 label = "f5d8235-v1:blue:security";
154 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
155 };
156
157 security2 {
158 label = "f5d8235-v1:amber:security";
159 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
160 };
161
162 led_wired_blue: wired {
163 label = "f5d8235-v1:blue:wired";
164 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
165 };
166
167 wired2 {
168 label = "f5d8235-v1:amber:wired";
169 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
170 };
171
172 wireless {
173 label = "f5d8235-v1:blue:wireless";
174 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
175 };
176
177 wireless2 {
178 label = "f5d8235-v1:amber:wireless";
179 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
180 };
181 };
182 };
183
184 &gpio0 {
185 status = "okay";
186 };
187
188 &pinctrl {
189 state_default: pinctrl0 {
190 gpio {
191 ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
192 ralink,function = "gpio";
193 };
194 };
195 };
196
197 &ethernet {
198 status = "okay";
199 mtd-mac-address = <&factory 0x4>;
200
201 port@0 {
202 mediatek,fixed-link = <1000 1 1 1>;
203 };
204 };
205
206 &pci {
207 status = "okay";
208 };
209
210 &wmac {
211 status = "okay";
212 ralink,mtd-eeprom = <&factory 0x0>;
213 };