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;
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 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 function = LED_FUNCTION_USB;
52 color = <LED_COLOR_ID_GREEN>;
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
55 linux,default-trigger = "usbport";
59 function = LED_FUNCTION_WAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy0tpt";
71 function = LED_FUNCTION_WPS;
72 color = <LED_COLOR_ID_GREEN>;
73 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
77 reg_usb_vbus: regulator {
78 compatible = "regulator-fixed";
79 regulator-name = "usb_vbus";
80 regulator-min-microvolt = <5000000>;
81 regulator-max-microvolt = <5000000>;
82 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
88 vbus-supply = <®_usb_vbus>;
97 compatible = "mediatek,mt76";
99 ieee80211-freq-limit = <5000000 6000000>;
100 nvmem-cells = <&eeprom1>;
101 nvmem-cell-names = "eeprom";
107 compatible = "mediatek,mt76";
109 ieee80211-freq-limit = <2400000 2500000>;
110 nvmem-cells = <&eeprom0>;
111 nvmem-cell-names = "eeprom";
118 phy-handle = <ðphy4>;
122 ethphy4: ethernet-phy@4 {
153 groups = "uart3", "uart2", "jtag", "wdt";