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>;
113 compatible = "fixed-layout";
114 #address-cells = <1>;
117 macaddr_config_8: macaddr@8 {
118 compatible = "mac-base";
120 #nvmem-cell-cells = <1>;
127 reg = <0xfb0000 0x040000>;
131 radio: partition@ff0000 {
133 reg = <0xff0000 0x010000>;
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&radio 0x0>;
149 nvmem-cells = <&macaddr_config_8 0>;
150 nvmem-cell-names = "mac-address";
151 mediatek,disable-radar-background;
156 nvmem-cells = <&macaddr_config_8 0>;
157 nvmem-cell-names = "mac-address";
163 phy-handle = <ðphy4>;
165 nvmem-cells = <&macaddr_config_8 1>;
166 nvmem-cell-names = "mac-address";
170 ethphy4: ethernet-phy@4 {
201 groups = "i2c", "uart3", "jtag", "wdt";