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