ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_chj.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "mediatek,mt7621-soc";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28
29 usb {
30 function = LED_FUNCTION_USB;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
34 linux,default-trigger = "usbport";
35 };
36
37 internet {
38 function = LED_FUNCTION_WAN;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 };
42
43 wifi {
44 label = "green:wifi";
45 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys";
52
53 wps {
54 label = "wps";
55 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_WPS_BUTTON>;
57 };
58
59 reset {
60 label = "reset";
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
63 };
64 };
65
66 reg_usb_vbus: regulator {
67 compatible = "regulator-fixed";
68 regulator-name = "usb_vbus";
69 regulator-min-microvolt = <5000000>;
70 regulator-max-microvolt = <5000000>;
71 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
72 enable-active-high;
73 };
74 };
75
76 &xhci {
77 vbus-supply = <&reg_usb_vbus>;
78 };
79
80 &pcie {
81 status = "okay";
82 };
83
84 &pcie0 {
85 wifi@0,0 {
86 compatible = "mediatek,mt76";
87 reg = <0x0 0 0 0 0>;
88 nvmem-cells = <&eeprom_factory_8000>;
89 nvmem-cell-names = "eeprom";
90 ieee80211-freq-limit = <5000000 6000000>;
91 };
92 };
93
94 &pcie1 {
95 wifi@0,0 {
96 compatible = "mediatek,mt76";
97 reg = <0x0 0 0 0 0>;
98 nvmem-cells = <&eeprom_factory_0>;
99 nvmem-cell-names = "eeprom";
100 ieee80211-freq-limit = <2400000 2500000>;
101 };
102 };
103
104 &gmac0 {
105 nvmem-cells = <&macaddr_factory_4 0>;
106 nvmem-cell-names = "mac-address";
107 };
108
109 &gmac1 {
110 status = "okay";
111 label = "wan";
112 phy-handle = <&ethphy4>;
113
114 nvmem-cells = <&macaddr_factory_4 2>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &mdio {
119 ethphy4: ethernet-phy@4 {
120 reg = <4>;
121 };
122 };
123
124 &switch0 {
125 ports {
126 port@0 {
127 status = "okay";
128 label = "lan4";
129 };
130
131 port@1 {
132 status = "okay";
133 label = "lan3";
134 };
135
136 port@2 {
137 status = "okay";
138 label = "lan2";
139 };
140
141 port@3 {
142 status = "okay";
143 label = "lan1";
144 };
145 };
146 };
147
148 &state_default {
149 gpio {
150 groups = "uart3", "uart2", "jtag", "wdt";
151 function = "gpio";
152 };
153 };
154
155 &nand {
156 status = "okay";
157
158 partitions {
159 compatible = "sercomm,sc-partitions", "fixed-partitions";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 partition@0 {
164 label = "u-boot";
165 reg = <0x0 0x100000>;
166 sercomm,scpart-id = <0>;
167 read-only;
168 };
169
170 partition@100000 {
171 label = "SC PART_MAP";
172 reg = <0x100000 0x100000>;
173 sercomm,scpart-id = <1>;
174 read-only;
175 };
176
177 partition@200000 {
178 label = "kernel";
179 reg = <0x200000 0x400000>;
180 sercomm,scpart-id = <2>;
181 };
182
183 partition@600000 {
184 label = "ubi";
185 reg = <0x600000 0x2800000>;
186 sercomm,scpart-id = <3>;
187 };
188
189 partition@2e00000 {
190 label = "English UI";
191 reg = <0x2e00000 0x200000>;
192 sercomm,scpart-id = <4>;
193 read-only;
194 };
195
196 partition@3000000 {
197 label = "ML1";
198 reg = <0x3000000 0x200000>;
199 sercomm,scpart-id = <5>;
200 read-only;
201 };
202
203 partition@3200000 {
204 label = "ML2";
205 reg = <0x3200000 0x200000>;
206 sercomm,scpart-id = <6>;
207 read-only;
208 };
209
210 partition@3400000 {
211 label = "ML3";
212 reg = <0x3400000 0x200000>;
213 sercomm,scpart-id = <7>;
214 read-only;
215 };
216
217 partition@3600000 {
218 label = "ML4";
219 reg = <0x3600000 0x200000>;
220 sercomm,scpart-id = <8>;
221 read-only;
222 };
223
224 partition@3800000 {
225 label = "ML5";
226 reg = <0x3800000 0x200000>;
227 sercomm,scpart-id = <9>;
228 read-only;
229 };
230
231 partition@3a00000 {
232 label = "ML6";
233 reg = <0x3a00000 0x200000>;
234 sercomm,scpart-id = <10>;
235 read-only;
236 };
237
238 partition@3c00000 {
239 label = "ML7";
240 reg = <0x3c00000 0x200000>;
241 sercomm,scpart-id = <11>;
242 read-only;
243 };
244
245 partition@3e00000 {
246 label = "ML8";
247 reg = <0x3e00000 0x200000>;
248 sercomm,scpart-id = <12>;
249 read-only;
250 };
251
252 partition@4000000 {
253 label = "ML9";
254 reg = <0x4000000 0x200000>;
255 sercomm,scpart-id = <13>;
256 read-only;
257 };
258
259 partition@4200000 {
260 label = "ML10";
261 reg = <0x4200000 0x200000>;
262 sercomm,scpart-id = <14>;
263 read-only;
264 };
265
266 partition@4400000 {
267 label = "ML11";
268 reg = <0x4400000 0x200000>;
269 sercomm,scpart-id = <15>;
270 read-only;
271 };
272
273 partition@4600000 {
274 label = "factory";
275 reg = <0x4600000 0x200000>;
276 sercomm,scpart-id = <16>;
277 read-only;
278
279 nvmem-layout {
280 compatible = "fixed-layout";
281 #address-cells = <1>;
282 #size-cells = <1>;
283
284 eeprom_factory_0: eeprom@0 {
285 reg = <0x0 0x400>;
286 };
287
288 eeprom_factory_8000: eeprom@8000 {
289 reg = <0x8000 0x4da8>;
290 };
291
292 macaddr_factory_4: macaddr@4 {
293 compatible = "mac-base";
294 reg = <0x4 0x6>;
295 #nvmem-cell-cells = <1>;
296 };
297 };
298 };
299
300 partition@4800000 {
301 label = "SC Private Data";
302 reg = <0x4800000 0x200000>;
303 sercomm,scpart-id = <17>;
304 read-only;
305 };
306
307 partition@4a00000 {
308 label = "POT";
309 reg = <0x4a00000 0x200000>;
310 sercomm,scpart-id = <18>;
311 read-only;
312 };
313
314 partition@4c00000 {
315 label = "Traffic Meter";
316 reg = <0x4c00000 0x200000>;
317 sercomm,scpart-id = <19>;
318 read-only;
319 };
320
321 partition@4e00000 {
322 label = "SC PID";
323 reg = <0x4e00000 0x200000>;
324 sercomm,scpart-id = <20>;
325 read-only;
326 };
327
328 partition@5000000 {
329 label = "SC Nvram";
330 reg = <0x5000000 0x200000>;
331 sercomm,scpart-id = <21>;
332 read-only;
333 };
334
335 partition@5200000 {
336 label = "Ralink Nvram";
337 reg = <0x5200000 0x200000>;
338 sercomm,scpart-id = <22>;
339 read-only;
340 };
341
342 partition@5400000 {
343 label = "reserved0";
344 reg = <0x5400000 0x200000>;
345 sercomm,scpart-id = <23>;
346 read-only;
347 };
348
349 partition@5600000 {
350 label = "reserved1";
351 reg = <0x5600000 0x200000>;
352 sercomm,scpart-id = <24>;
353 read-only;
354 };
355
356 partition@5800000 {
357 label = "reserved2";
358 reg = <0x5800000 0x200000>;
359 sercomm,scpart-id = <25>;
360 read-only;
361 };
362
363 partition@5a00000 {
364 label = "reserved3";
365 reg = <0x5a00000 0x200000>;
366 sercomm,scpart-id = <26>;
367 read-only;
368 };
369
370 partition@5c00000 {
371 label = "reserved4";
372 reg = <0x5c00000 0x200000>;
373 sercomm,scpart-id = <27>;
374 read-only;
375 };
376
377 partition@5e00000 {
378 label = "reserved5";
379 reg = <0x5e00000 0x2180000>;
380 sercomm,scpart-id = <28>;
381 read-only;
382 };
383 };
384 };