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-a6-v3", "mediatek,mt7621-soc";
10 model = "TP-Link Archer A6 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 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-keys";
29 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 linux,code = <KEY_RESTART>;
43 compatible = "gpio-leds";
46 label = "green:power";
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 label = "green:wifi5g";
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy1tpt";
67 label = "green:wifi2g";
68 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy0tpt";
74 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <40000000>;
88 compatible = "fixed-partitions";
100 compatible = "denx,uimage";
101 reg = <0x40000 0xf60000>;
104 config: partition@fa0000 {
106 reg = <0xfa0000 0x50000>;
110 radio: partition@ff0000 {
112 reg = <0xff0000 0x10000>;
121 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
127 pinctrl-names = "default";
128 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
137 compatible = "mediatek,mt76";
138 reg = <0x0000 0 0 0 0>;
139 mediatek,mtd-eeprom = <&radio 0x0>;
140 mtd-mac-address = <&config 0x8>;
141 mtd-mac-address-increment = <1>;
142 ieee80211-freq-limit = <2400000 2500000>;
148 compatible = "mediatek,mt76";
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&radio 0x8000>;
151 mtd-mac-address = <&config 0x8>;
152 mtd-mac-address-increment = <2>;
153 ieee80211-freq-limit = <5000000 6000000>;
158 mtd-mac-address = <&config 0x8>;