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>
10 label-mac-device = &gmac0;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
22 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 linux,code = <KEY_POWER>;
36 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 linux,code = <KEY_LIGHTS_TOGGLE>;
43 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 linux,code = <KEY_RESTART>;
50 compatible = "gpio-leds";
54 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
58 label = "blue:wifi2g";
59 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
64 label = "blue:wifi5g";
65 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy1tpt";
71 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
76 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
80 label = "green:eth_act";
81 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
85 label = "green:eth_link";
86 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <40000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 compatible = "tplink,firmware";
113 reg = <0x20000 0xde0000>;
116 config: partition@e00000 {
118 reg = <0xe00000 0x50000>;
122 /* range 0xe50000 to 0xff0000 is empty in vendor
123 * firmware, so we do not use it either
126 radio: partition@ff0000 {
128 reg = <0xff0000 0x10000>;
137 groups = "rgmii2", "wdt";
148 compatible = "mediatek,mt76";
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&radio 0x0>;
151 mtd-mac-address = <&config 0x10008>;
152 mtd-mac-address-increment = <1>;
153 ieee80211-freq-limit = <2400000 2500000>;
159 compatible = "mediatek,mt76";
160 reg = <0x0000 0 0 0 0>;
161 mediatek,mtd-eeprom = <&radio 0x8000>;
162 mtd-mac-address = <&config 0x10008>;
163 mtd-mac-address-increment = <2>;
164 ieee80211-freq-limit = <5000000 6000000>;
169 mtd-mac-address = <&config 0x10008>;