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,archer-ax23-v1", "mediatek,mt7621-soc";
11 model = "TP-Link Archer AX23 v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RFKILL>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 label = "green:wifi2g";
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
57 label = "green:wifi5g";
58 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy1tpt";
63 function = LED_FUNCTION_WAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 function = LED_FUNCTION_WAN;
70 color = <LED_COLOR_ID_ORANGE>;
71 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
75 function = LED_FUNCTION_LAN;
76 color = <LED_COLOR_ID_GREEN>;
77 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
81 function = LED_FUNCTION_WPS;
82 color = <LED_COLOR_ID_GREEN>;
83 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
103 reg = <0x000000 0x040000>;
108 compatible = "denx,uimage";
110 reg = <0x040000 0xf60000>;
113 config: partition@fa0000 {
115 reg = <0xfa0000 0x010000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 macaddr_config_8: macaddr@8 {
124 compatible = "mac-base";
126 #nvmem-cell-cells = <1>;
133 reg = <0xfb0000 0x040000>;
137 radio: partition@ff0000 {
139 reg = <0xff0000 0x010000>;
143 compatible = "fixed-layout";
144 #address-cells = <1>;
147 eeprom_radio_0: eeprom@0 {
162 compatible = "mediatek,mt76";
163 reg = <0x0000 0 0 0 0>;
164 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8 0>;
165 nvmem-cell-names = "eeprom", "mac-address";
166 mediatek,disable-radar-background;
171 nvmem-cells = <&macaddr_config_8 0>;
172 nvmem-cell-names = "mac-address";
178 phy-handle = <ðphy4>;
180 nvmem-cells = <&macaddr_config_8 1>;
181 nvmem-cell-names = "mac-address";
185 ethphy4: ethernet-phy@4 {
216 groups = "i2c", "uart3", "jtag", "wdt";