1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mediatek,mt7621-soc";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = &gmac0;
20 compatible = "gpio-leds";
23 label = "green:power";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
31 linux,default-trigger = "usbport";
36 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
47 compatible = "gpio-keys";
51 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
57 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
62 reg_usb_vbus: regulator {
63 compatible = "regulator-fixed";
64 regulator-name = "usb_vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
73 vbus-supply = <®_usb_vbus>;
82 compatible = "mediatek,mt76";
84 nvmem-cells = <&eeprom_factory_8000>;
85 nvmem-cell-names = "eeprom";
86 ieee80211-freq-limit = <5000000 6000000>;
92 compatible = "mediatek,mt76";
94 nvmem-cells = <&eeprom_factory_0>;
95 nvmem-cell-names = "eeprom";
96 ieee80211-freq-limit = <2400000 2500000>;
101 nvmem-cells = <&macaddr_factory_4 0>;
102 nvmem-cell-names = "mac-address";
108 phy-handle = <ðphy4>;
110 nvmem-cells = <&macaddr_factory_4 2>;
111 nvmem-cell-names = "mac-address";
115 ethphy4: ethernet-phy@4 {
146 groups = "uart3", "uart2", "jtag", "wdt";
155 compatible = "sercomm,sc-partitions", "fixed-partitions";
156 #address-cells = <1>;
161 reg = <0x0 0x100000>;
162 sercomm,scpart-id = <0>;
167 label = "SC PART_MAP";
168 reg = <0x100000 0x100000>;
169 sercomm,scpart-id = <1>;
175 reg = <0x200000 0x400000>;
176 sercomm,scpart-id = <2>;
181 reg = <0x600000 0x2800000>;
182 sercomm,scpart-id = <3>;
186 label = "English UI";
187 reg = <0x2e00000 0x200000>;
188 sercomm,scpart-id = <4>;
194 reg = <0x3000000 0x200000>;
195 sercomm,scpart-id = <5>;
201 reg = <0x3200000 0x200000>;
202 sercomm,scpart-id = <6>;
208 reg = <0x3400000 0x200000>;
209 sercomm,scpart-id = <7>;
215 reg = <0x3600000 0x200000>;
216 sercomm,scpart-id = <8>;
222 reg = <0x3800000 0x200000>;
223 sercomm,scpart-id = <9>;
229 reg = <0x3a00000 0x200000>;
230 sercomm,scpart-id = <10>;
236 reg = <0x3c00000 0x200000>;
237 sercomm,scpart-id = <11>;
243 reg = <0x3e00000 0x200000>;
244 sercomm,scpart-id = <12>;
250 reg = <0x4000000 0x200000>;
251 sercomm,scpart-id = <13>;
257 reg = <0x4200000 0x200000>;
258 sercomm,scpart-id = <14>;
264 reg = <0x4400000 0x200000>;
265 sercomm,scpart-id = <15>;
269 factory: partition@4600000 {
271 reg = <0x4600000 0x200000>;
272 sercomm,scpart-id = <16>;
276 compatible = "fixed-layout";
277 #address-cells = <1>;
280 eeprom_factory_0: eeprom@0 {
284 eeprom_factory_8000: eeprom@8000 {
285 reg = <0x8000 0x4da8>;
288 macaddr_factory_4: macaddr@4 {
289 compatible = "mac-base";
291 #nvmem-cell-cells = <1>;
297 label = "SC Private Data";
298 reg = <0x4800000 0x200000>;
299 sercomm,scpart-id = <17>;
305 reg = <0x4a00000 0x200000>;
306 sercomm,scpart-id = <18>;
311 label = "Traffic Meter";
312 reg = <0x4c00000 0x200000>;
313 sercomm,scpart-id = <19>;
319 reg = <0x4e00000 0x200000>;
320 sercomm,scpart-id = <20>;
326 reg = <0x5000000 0x200000>;
327 sercomm,scpart-id = <21>;
332 label = "Ralink Nvram";
333 reg = <0x5200000 0x200000>;
334 sercomm,scpart-id = <22>;
340 reg = <0x5400000 0x200000>;
341 sercomm,scpart-id = <23>;
347 reg = <0x5600000 0x200000>;
348 sercomm,scpart-id = <24>;
354 reg = <0x5800000 0x200000>;
355 sercomm,scpart-id = <25>;
361 reg = <0x5a00000 0x200000>;
362 sercomm,scpart-id = <26>;
368 reg = <0x5c00000 0x200000>;
369 sercomm,scpart-id = <27>;
375 reg = <0x5e00000 0x2180000>;
376 sercomm,scpart-id = <28>;