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>
9 compatible = "tplink,tl-wpa8631p-v3", "mediatek,mt7621-soc";
10 model = "TP-Link TL-WPA8631P v3";
13 label-mac-device = &gmac0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 linux,code = <KEY_LIGHTS_TOGGLE>;
33 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
40 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
46 linux,code = <KEY_RFKILL>;
47 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
53 compatible = "gpio-leds";
56 label = "green:power";
57 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
66 label = "green:wifi2g";
67 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy0tpt";
72 label = "green:wifi5g";
73 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "phy1tpt";
79 compatible = "gpio-export";
82 gpio-export,name = "tp-link:led:control";
83 gpio-export,output = <0>;
84 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <25000000>;
98 compatible = "fixed-partitions";
109 compatible = "tplink,firmware";
111 reg = <0x20000 0x710000>;
114 config: partition@730000 {
116 reg = <0x730000 0xc0000>;
120 radio: partition@7f0000 {
122 reg = <0x7f0000 0x10000>;
131 groups = "rgmii2", "wdt";
142 compatible = "mediatek,mt76";
143 reg = <0x0000 0 0 0 0>;
144 mediatek,mtd-eeprom = <&radio 0x0>;
145 nvmem-cells = <&macaddr_config_2008>;
146 nvmem-cell-names = "mac-address";
147 ieee80211-freq-limit = <2400000 2500000>;
153 compatible = "mediatek,mt76";
154 reg = <0x0000 0 0 0 0>;
155 mediatek,mtd-eeprom = <&radio 0x8000>;
156 nvmem-cells = <&macaddr_config_2008>;
157 nvmem-cell-names = "mac-address";
158 mac-address-increment = <1>;
159 ieee80211-freq-limit = <5000000 6000000>;
164 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
168 nvmem-cells = <&macaddr_config_2008>;
169 nvmem-cell-names = "mac-address";
197 compatible = "nvmem-cells";
198 #address-cells = <1>;
201 macaddr_config_2008: macaddr@2008 {