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 label-mac-device = &gmac0;
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "gpio-keys";
23 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 linux,code = <KEY_POWER>;
37 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 linux,code = <KEY_LIGHTS_TOGGLE>;
44 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
46 linux,code = <KEY_RESTART>;
51 compatible = "gpio-leds";
54 function = LED_FUNCTION_POWER;
55 color = <LED_COLOR_ID_BLUE>;
56 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
60 label = "blue:wifi2g";
61 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
66 label = "blue:wifi5g";
67 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy1tpt";
72 function = LED_FUNCTION_WPS;
73 color = <LED_COLOR_ID_RED>;
74 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
78 function = LED_FUNCTION_WPS;
79 color = <LED_COLOR_ID_BLUE>;
80 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
84 label = "green:eth_act";
85 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
89 label = "green:eth_link";
90 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <40000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 compatible = "tplink,firmware";
117 reg = <0x20000 0xde0000>;
120 config: partition@e00000 {
122 reg = <0xe00000 0x50000>;
126 compatible = "fixed-layout";
127 #address-cells = <1>;
130 macaddr_config_10008: macaddr@10008 {
131 compatible = "mac-base";
133 #nvmem-cell-cells = <1>;
138 /* range 0xe50000 to 0xff0000 is empty in vendor
139 * firmware, so we do not use it either
142 radio: partition@ff0000 {
144 reg = <0xff0000 0x10000>;
148 compatible = "fixed-layout";
149 #address-cells = <1>;
152 eeprom_radio_0: eeprom@0 {
156 eeprom_radio_8000: eeprom@8000 {
157 reg = <0x8000 0x4da8>;
167 groups = "rgmii2", "wdt";
178 compatible = "mediatek,mt76";
179 reg = <0x0000 0 0 0 0>;
180 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
181 nvmem-cell-names = "eeprom", "mac-address";
182 ieee80211-freq-limit = <2400000 2500000>;
188 compatible = "mediatek,mt76";
189 reg = <0x0000 0 0 0 0>;
190 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
191 nvmem-cell-names = "eeprom", "mac-address";
192 ieee80211-freq-limit = <5000000 6000000>;
197 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
201 nvmem-cells = <&macaddr_config_10008 0>;
202 nvmem-cell-names = "mac-address";