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