1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
14 led-boot = &power_green;
15 led-failsafe = &power_amber;
16 led-running = &power_green;
17 led-upgrade = &power_green;
21 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
25 compatible = "gpio-leds";
28 label = "amber:wireless";
29 gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
30 color = <LED_COLOR_ID_AMBER>;
31 function = LED_FUNCTION_WLAN;
35 label = "amber:power";
36 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
37 color = <LED_COLOR_ID_AMBER>;
38 function = LED_FUNCTION_POWER;
42 label = "green:power";
43 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
44 color = <LED_COLOR_ID_GREEN>;
45 function = LED_FUNCTION_POWER;
49 label = "green:wireless";
50 gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_WLAN;
56 label = "green:internet";
57 gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
58 color = <LED_COLOR_ID_GREEN>;
59 function = LED_FUNCTION_WAN;
63 label = "green:router";
64 gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
65 color = <LED_COLOR_ID_GREEN>;
66 function = LED_FUNCTION_INDICATOR;
71 compatible = "gpio-keys";
75 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
79 /* GPIO 1 and 16 are a tri-state switch button with
84 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
86 linux,input-type = <EV_SW>;
91 gpios = <&pio 16 GPIO_ACTIVE_LOW>;
93 linux,input-type = <EV_SW>;
96 /* GPIO 18 is a switch button with AUTO / MANUAL. */
99 gpios = <&pio 18 GPIO_ACTIVE_LOW>;
100 linux,code = <BTN_2>;
101 linux,input-type = <EV_SW>;
106 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_WPS_BUTTON>;
113 proc-supply = <&mt6380_vcpu_reg>;
114 sram-supply = <&mt6380_vm_reg>;
118 proc-supply = <&mt6380_vcpu_reg>;
119 sram-supply = <&mt6380_vm_reg>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&pcie0_pins>;
132 compatible = "mediatek,mt76";
133 reg = <0x0000 0 0 0 0>;
134 mediatek,mtd-eeprom = <&factory 0x5000>;
135 ieee80211-freq-limit = <5000000 6000000>;
143 groups = "mdc_mdio", "rgmii_via_gmac2";
147 pcie0_pins: pcie0-pins {
150 groups = "pcie0_pad_perst",
156 pmic_bus_pins: pmic-bus-pins {
163 uart0_pins: uart0-pins {
166 groups = "uart0_0_tx_rx" ;
170 watchdog_pins: watchdog-pins {
172 function = "watchdog";
179 pinctrl-names = "default";
180 pinctrl-0 = <ð_pins>;
184 compatible = "mediatek,eth-mac";
187 phy-connection-type = "2500base-x";
197 #address-cells = <1>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&pmic_bus_pins>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&uart0_pins>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&watchdog_pins>;
231 mediatek,mtd-eeprom = <&factory 0x0>;