1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.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 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
31 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
33 linux,default-trigger = "usbport";
36 led_internet: internet {
37 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
46 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
56 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
57 linux,code = <KEY_WPS_BUTTON>;
62 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
63 linux,code = <KEY_RFKILL>;
68 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
69 linux,code = <KEY_RESTART>;
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 = <&gpio0 10 GPIO_ACTIVE_HIGH>;
84 vbus-supply = <®_usb_vbus>;
93 compatible = "pci14c3,7662";
94 reg = <0x0000 0 0 0 0>;
95 mediatek,mtd-eeprom = <&factory 0x8000>;
96 ieee80211-freq-limit = <5000000 6000000>;
102 compatible = "pci14c3,7603";
103 reg = <0x0000 0 0 0 0>;
104 mediatek,mtd-eeprom = <&factory 0x0000>;
105 ieee80211-freq-limit = <2400000 2500000>;
110 mtd-mac-address = <&factory 0x4>;
114 state_default: pinctrl0 {
116 ralink,group = "uart3", "uart2", "jtag", "wdt";
117 ralink,function = "gpio";