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 {
109 reg = <0xfa0000 0x010000>;
115 reg = <0xfb0000 0x040000>;
119 radio: partition@ff0000 {
121 reg = <0xff0000 0x010000>;
134 compatible = "mediatek,mt76";
135 reg = <0x0000 0 0 0 0>;
136 mediatek,mtd-eeprom = <&radio 0x0>;
137 nvmem-cells = <&macaddr_config_8>;
138 nvmem-cell-names = "mac-address";
139 mediatek,disable-radar-background;
144 nvmem-cells = <&macaddr_config_8>;
145 nvmem-cell-names = "mac-address";
151 phy-handle = <ðphy4>;
153 nvmem-cells = <&macaddr_config_8>;
154 nvmem-cell-names = "mac-address";
155 mac-address-increment = <1>;
159 ethphy4: ethernet-phy@4 {
190 groups = "i2c", "uart3", "jtag", "wdt";
196 compatible = "nvmem-cells";
197 #address-cells = <1>;
200 macaddr_config_8: macaddr@8 {