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-keys";
24 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
45 label = "green:power";
46 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
53 linux,default-trigger = "usbport";
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0tpt";
69 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
73 reg_usb_vbus: regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "usb_vbus";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
84 vbus-supply = <®_usb_vbus>;
93 compatible = "mediatek,mt76";
95 mediatek,mtd-eeprom = <&factory 0x8000>;
96 ieee80211-freq-limit = <5000000 6000000>;
102 compatible = "mediatek,mt76";
104 mediatek,mtd-eeprom = <&factory 0x0>;
105 ieee80211-freq-limit = <2400000 2500000>;
110 mtd-mac-address = <&factory 0x4>;
138 mtd-mac-address = <&factory 0x4>;
139 mac-address-increment = <1>;
146 groups = "uart3", "uart2", "jtag", "wdt";