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 compatible = "fixed-layout";
123 #address-cells = <1>;
126 macaddr_config_10008: macaddr@10008 {
127 compatible = "mac-base";
129 #nvmem-cell-cells = <1>;
134 /* range 0xe50000 to 0xff0000 is empty in vendor
135 * firmware, so we do not use it either
138 radio: partition@ff0000 {
140 reg = <0xff0000 0x10000>;
144 compatible = "fixed-layout";
145 #address-cells = <1>;
148 eeprom_radio_0: eeprom@0 {
152 eeprom_radio_8000: eeprom@8000 {
153 reg = <0x8000 0x4da8>;
163 groups = "rgmii2", "wdt";
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
177 nvmem-cell-names = "eeprom", "mac-address";
178 ieee80211-freq-limit = <2400000 2500000>;
184 compatible = "mediatek,mt76";
185 reg = <0x0000 0 0 0 0>;
186 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
187 nvmem-cell-names = "eeprom", "mac-address";
188 ieee80211-freq-limit = <5000000 6000000>;
193 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
197 nvmem-cells = <&macaddr_config_10008 0>;
198 nvmem-cell-names = "mac-address";