1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "mediatek,mt7621-soc";
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;
21 compatible = "gpio-leds";
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
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";
38 function = LED_FUNCTION_WAN;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
51 compatible = "gpio-keys";
55 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_WPS_BUTTON>;
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
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>;
77 vbus-supply = <®_usb_vbus>;
86 compatible = "mediatek,mt76";
88 nvmem-cells = <&eeprom_factory_8000>;
89 nvmem-cell-names = "eeprom";
90 ieee80211-freq-limit = <5000000 6000000>;
96 compatible = "mediatek,mt76";
98 nvmem-cells = <&eeprom_factory_0>;
99 nvmem-cell-names = "eeprom";
100 ieee80211-freq-limit = <2400000 2500000>;
105 nvmem-cells = <&macaddr_factory_4 0>;
106 nvmem-cell-names = "mac-address";
112 phy-handle = <ðphy4>;
114 nvmem-cells = <&macaddr_factory_4 2>;
115 nvmem-cell-names = "mac-address";
119 ethphy4: ethernet-phy@4 {
150 groups = "uart3", "uart2", "jtag", "wdt";
159 compatible = "sercomm,sc-partitions", "fixed-partitions";
160 #address-cells = <1>;
165 reg = <0x0 0x100000>;
166 sercomm,scpart-id = <0>;
171 label = "SC PART_MAP";
172 reg = <0x100000 0x100000>;
173 sercomm,scpart-id = <1>;
179 reg = <0x200000 0x400000>;
180 sercomm,scpart-id = <2>;
185 reg = <0x600000 0x2800000>;
186 sercomm,scpart-id = <3>;
190 label = "English UI";
191 reg = <0x2e00000 0x200000>;
192 sercomm,scpart-id = <4>;
198 reg = <0x3000000 0x200000>;
199 sercomm,scpart-id = <5>;
205 reg = <0x3200000 0x200000>;
206 sercomm,scpart-id = <6>;
212 reg = <0x3400000 0x200000>;
213 sercomm,scpart-id = <7>;
219 reg = <0x3600000 0x200000>;
220 sercomm,scpart-id = <8>;
226 reg = <0x3800000 0x200000>;
227 sercomm,scpart-id = <9>;
233 reg = <0x3a00000 0x200000>;
234 sercomm,scpart-id = <10>;
240 reg = <0x3c00000 0x200000>;
241 sercomm,scpart-id = <11>;
247 reg = <0x3e00000 0x200000>;
248 sercomm,scpart-id = <12>;
254 reg = <0x4000000 0x200000>;
255 sercomm,scpart-id = <13>;
261 reg = <0x4200000 0x200000>;
262 sercomm,scpart-id = <14>;
268 reg = <0x4400000 0x200000>;
269 sercomm,scpart-id = <15>;
273 factory: partition@4600000 {
275 reg = <0x4600000 0x200000>;
276 sercomm,scpart-id = <16>;
280 compatible = "fixed-layout";
281 #address-cells = <1>;
284 eeprom_factory_0: eeprom@0 {
288 eeprom_factory_8000: eeprom@8000 {
289 reg = <0x8000 0x4da8>;
292 macaddr_factory_4: macaddr@4 {
293 compatible = "mac-base";
295 #nvmem-cell-cells = <1>;
301 label = "SC Private Data";
302 reg = <0x4800000 0x200000>;
303 sercomm,scpart-id = <17>;
309 reg = <0x4a00000 0x200000>;
310 sercomm,scpart-id = <18>;
315 label = "Traffic Meter";
316 reg = <0x4c00000 0x200000>;
317 sercomm,scpart-id = <19>;
323 reg = <0x4e00000 0x200000>;
324 sercomm,scpart-id = <20>;
330 reg = <0x5000000 0x200000>;
331 sercomm,scpart-id = <21>;
336 label = "Ralink Nvram";
337 reg = <0x5200000 0x200000>;
338 sercomm,scpart-id = <22>;
344 reg = <0x5400000 0x200000>;
345 sercomm,scpart-id = <23>;
351 reg = <0x5600000 0x200000>;
352 sercomm,scpart-id = <24>;
358 reg = <0x5800000 0x200000>;
359 sercomm,scpart-id = <25>;
365 reg = <0x5a00000 0x200000>;
366 sercomm,scpart-id = <26>;
372 reg = <0x5c00000 0x200000>;
373 sercomm,scpart-id = <27>;
379 reg = <0x5e00000 0x2180000>;
380 sercomm,scpart-id = <28>;