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,archer-ax23-v1", "mediatek,mt7621-soc";
10 model = "TP-Link Archer AX23 v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RFKILL>;
41 compatible = "gpio-leds";
44 label = "green:power";
45 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
49 label = "green:wifi2g";
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
55 label = "green:wifi5g";
56 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy1tpt";
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
86 compatible = "jedec,spi-nor";
88 spi-max-frequency = <25000000>;
91 compatible = "fixed-partitions";
97 reg = <0x000000 0x040000>;
102 compatible = "denx,uimage";
104 reg = <0x040000 0xf60000>;
107 config: partition@fa0000 {
108 compatible = "nvmem-cells";
110 reg = <0xfa0000 0x010000>;
111 #address-cells = <1>;
115 macaddr_config_8: macaddr@8 {
122 reg = <0xfb0000 0x040000>;
126 radio: partition@ff0000 {
127 compatible = "nvmem-cells";
129 reg = <0xff0000 0x010000>;
130 #address-cells = <1>;
134 eeprom_radio_0: eeprom@0 {
148 compatible = "mediatek,mt76";
149 reg = <0x0000 0 0 0 0>;
150 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
151 nvmem-cell-names = "eeprom", "mac-address";
152 mediatek,disable-radar-background;
157 nvmem-cells = <&macaddr_config_8>;
158 nvmem-cell-names = "mac-address";
164 phy-handle = <ðphy4>;
166 nvmem-cells = <&macaddr_config_8>;
167 nvmem-cell-names = "mac-address";
168 mac-address-increment = <1>;
172 ethphy4: ethernet-phy@4 {
203 groups = "i2c", "uart3", "jtag", "wdt";