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 device_type = "memory";
21 reg = <0x0 0x8000000>;
25 bootargs = "console=ttyS0,57600";
29 compatible = "gpio-leds";
32 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
37 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
38 linux,default-trigger = "usbport";
41 led_internet: internet {
42 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-keys-polled";
60 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
61 linux,code = <KEY_WPS_BUTTON>;
66 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
67 linux,code = <KEY_RFKILL>;
72 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
73 linux,code = <KEY_RESTART>;
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 = <&gpio0 10 GPIO_ACTIVE_HIGH>;
88 vbus-supply = <®_usb_vbus>;
97 compatible = "pci14c3,7662";
98 reg = <0x0000 0 0 0 0>;
99 mediatek,mtd-eeprom = <&factory 0x8000>;
100 ieee80211-freq-limit = <5000000 6000000>;
106 compatible = "pci14c3,7603";
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x0000>;
109 ieee80211-freq-limit = <2400000 2500000>;
114 mtd-mac-address = <&factory 0x00000004>;
118 state_default: pinctrl0 {
120 ralink,group = "uart3", "uart2", "jtag", "wdt";
121 ralink,function = "gpio";