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>
10 compatible = "tplink,tl-wpa8631p-v3", "mediatek,mt7621-soc";
11 model = "TP-Link TL-WPA8631P v3";
14 label-mac-device = &gmac0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
33 linux,code = <KEY_LIGHTS_TOGGLE>;
34 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
41 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
47 linux,code = <KEY_RFKILL>;
48 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
54 compatible = "gpio-leds";
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_LAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
69 label = "green:wifi2g";
70 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
75 label = "green:wifi5g";
76 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy1tpt";
82 compatible = "gpio-export";
85 gpio-export,name = "tp-link:led:control";
86 gpio-export,output = <0>;
87 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <25000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 compatible = "tplink,firmware";
114 reg = <0x20000 0x710000>;
117 config: partition@730000 {
119 reg = <0x730000 0xc0000>;
123 compatible = "fixed-layout";
124 #address-cells = <1>;
127 macaddr_config_2008: macaddr@2008 {
128 compatible = "mac-base";
130 #nvmem-cell-cells = <1>;
135 radio: partition@7f0000 {
137 reg = <0x7f0000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 eeprom_radio_0: eeprom@0 {
149 eeprom_radio_8000: eeprom@8000 {
150 reg = <0x8000 0x4da8>;
160 groups = "rgmii2", "wdt";
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008 0>;
174 nvmem-cell-names = "eeprom", "mac-address";
175 ieee80211-freq-limit = <2400000 2500000>;
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
183 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008 1>;
184 nvmem-cell-names = "eeprom", "mac-address";
185 ieee80211-freq-limit = <5000000 6000000>;
190 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
194 nvmem-cells = <&macaddr_config_2008 0>;
195 nvmem-cell-names = "mac-address";