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