1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-leds";
22 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
23 color = <LED_COLOR_ID_RED>;
24 function = LED_FUNCTION_WPS;
28 label = "white:power";
29 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
30 color = <LED_COLOR_ID_WHITE>;
31 function = LED_FUNCTION_POWER;
35 label = "white:wlan2g";
36 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
37 color = <LED_COLOR_ID_WHITE>;
38 function = LED_FUNCTION_WLAN;
39 function-enumerator = <1>;
40 linux,default-trigger = "phy0tpt";
44 label = "white:wlan5g";
45 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
46 color = <LED_COLOR_ID_WHITE>;
47 function = LED_FUNCTION_WLAN;
48 function-enumerator = <2>;
49 linux,default-trigger = "phy1tpt";
54 compatible = "gpio-keys";
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
71 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_WPS_BUTTON>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <40000000>;
85 partitions: partitions {
86 compatible = "fixed-partitions";
98 reg = <0x30000 0x10000>;
102 factory: partition@40000 {
104 reg = <0x40000 0x10000>;
114 phy-handle = <ðphy0>;
118 ethphy0: ethernet-phy@0 {
149 groups = "uart2", "uart3", "jtag", "wdt";
160 compatible = "mediatek,mt76";
161 reg = <0x0000 0 0 0 0>;
162 mediatek,mtd-eeprom = <&factory 0x0>;
163 ieee80211-freq-limit = <2400000 2500000>;
169 compatible = "mediatek,mt76";
170 reg = <0x0000 0 0 0 0>;
171 mediatek,mtd-eeprom = <&factory 0x8000>;
172 ieee80211-freq-limit = <5000000 6000000>;