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 mediatek,mtd-eeprom = <&factory 0x8000>;
85 ieee80211-freq-limit = <5000000 6000000>;
91 compatible = "mediatek,mt76";
93 mediatek,mtd-eeprom = <&factory 0x0>;
94 ieee80211-freq-limit = <2400000 2500000>;
99 nvmem-cells = <&macaddr_factory_4 0>;
100 nvmem-cell-names = "mac-address";
106 phy-handle = <ðphy4>;
108 nvmem-cells = <&macaddr_factory_4 2>;
109 nvmem-cell-names = "mac-address";
113 ethphy4: ethernet-phy@4 {
144 groups = "uart3", "uart2", "jtag", "wdt";
153 compatible = "sercomm,sc-partitions", "fixed-partitions";
154 #address-cells = <1>;
159 reg = <0x0 0x100000>;
160 sercomm,scpart-id = <0>;
165 label = "SC PART_MAP";
166 reg = <0x100000 0x100000>;
167 sercomm,scpart-id = <1>;
173 reg = <0x200000 0x400000>;
174 sercomm,scpart-id = <2>;
179 reg = <0x600000 0x2800000>;
180 sercomm,scpart-id = <3>;
184 label = "English UI";
185 reg = <0x2e00000 0x200000>;
186 sercomm,scpart-id = <4>;
192 reg = <0x3000000 0x200000>;
193 sercomm,scpart-id = <5>;
199 reg = <0x3200000 0x200000>;
200 sercomm,scpart-id = <6>;
206 reg = <0x3400000 0x200000>;
207 sercomm,scpart-id = <7>;
213 reg = <0x3600000 0x200000>;
214 sercomm,scpart-id = <8>;
220 reg = <0x3800000 0x200000>;
221 sercomm,scpart-id = <9>;
227 reg = <0x3a00000 0x200000>;
228 sercomm,scpart-id = <10>;
234 reg = <0x3c00000 0x200000>;
235 sercomm,scpart-id = <11>;
241 reg = <0x3e00000 0x200000>;
242 sercomm,scpart-id = <12>;
248 reg = <0x4000000 0x200000>;
249 sercomm,scpart-id = <13>;
255 reg = <0x4200000 0x200000>;
256 sercomm,scpart-id = <14>;
262 reg = <0x4400000 0x200000>;
263 sercomm,scpart-id = <15>;
267 factory: partition@4600000 {
269 reg = <0x4600000 0x200000>;
270 sercomm,scpart-id = <16>;
274 compatible = "fixed-layout";
275 #address-cells = <1>;
278 macaddr_factory_4: macaddr@4 {
279 compatible = "mac-base";
281 #nvmem-cell-cells = <1>;
287 label = "SC Private Data";
288 reg = <0x4800000 0x200000>;
289 sercomm,scpart-id = <17>;
295 reg = <0x4a00000 0x200000>;
296 sercomm,scpart-id = <18>;
301 label = "Traffic Meter";
302 reg = <0x4c00000 0x200000>;
303 sercomm,scpart-id = <19>;
309 reg = <0x4e00000 0x200000>;
310 sercomm,scpart-id = <20>;
316 reg = <0x5000000 0x200000>;
317 sercomm,scpart-id = <21>;
322 label = "Ralink Nvram";
323 reg = <0x5200000 0x200000>;
324 sercomm,scpart-id = <22>;
330 reg = <0x5400000 0x200000>;
331 sercomm,scpart-id = <23>;
337 reg = <0x5600000 0x200000>;
338 sercomm,scpart-id = <24>;
344 reg = <0x5800000 0x200000>;
345 sercomm,scpart-id = <25>;
351 reg = <0x5a00000 0x200000>;
352 sercomm,scpart-id = <26>;
358 reg = <0x5c00000 0x200000>;
359 sercomm,scpart-id = <27>;
365 reg = <0x5e00000 0x2180000>;
366 sercomm,scpart-id = <28>;