1 // SPDX-License-Identifier: GPL-2.0
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 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
28 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
29 linux,default-trigger = "usbport";
32 led_internet: internet {
33 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
43 compatible = "gpio-keys";
47 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
58 reg_usb_vbus: regulator {
59 compatible = "regulator-fixed";
60 regulator-name = "usb_vbus";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
63 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
69 vbus-supply = <®_usb_vbus>;
78 compatible = "mediatek,mt76";
80 mediatek,mtd-eeprom = <&factory 0x8000>;
81 ieee80211-freq-limit = <5000000 6000000>;
87 compatible = "mediatek,mt76";
89 mediatek,mtd-eeprom = <&factory 0x0>;
90 ieee80211-freq-limit = <2400000 2500000>;
95 mtd-mac-address = <&factory 0x4>;
123 mtd-mac-address = <&factory 0x4>;
124 mtd-mac-address-increment = <2>;
131 groups = "uart3", "uart2", "jtag", "wdt";
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
146 reg = <0x0 0x100000>;
151 label = "SC PART_MAP";
152 reg = <0x100000 0x100000>;
158 reg = <0x200000 0x400000>;
163 reg = <0x600000 0x2800000>;
168 reg = <0x2e00000 0x1800000>;
172 factory: partition@4600000 {
174 reg = <0x4600000 0x200000>;
180 reg = <0x4800000 0x3800000>;