1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "TP-Link Archer A9 v6";
10 compatible = "tplink,archer-a9-v6", "qca,qcn5500", "qca,qca9560";
13 label-mac-device = ð0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
42 label = "green:power";
43 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
50 trigger-sources = <&hub_port0>;
51 linux,default-trigger = "usbport";
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
65 label = "green:wlan2g";
66 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy1tpt";
71 label = "green:wlan5g";
72 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
73 linux,default-trigger = "phy0tpt";
78 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
86 pll-data = <0x03000101 0x00000101 0x00001919>;
91 nvmem-cells = <&macaddr_info_8>;
92 nvmem-cell-names = "mac-address";
98 phy0: ethernet-phy@0 {
101 qca,mib-poll-interval = <500>;
103 qca,ar8327-initvals = <
104 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
105 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
106 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
107 0x10 0x00000080 /* POWER_ON_STRAP */
108 0x7c 0x0000007e /* PORT0_STATUS */
109 0x94 0x00000200 /* PORT6_STATUS */
118 compatible = "pci168c,0046";
121 nvmem-cells = <&macaddr_info_8>, <&precal_art_5000>;
122 nvmem-cell-names = "mac-address", "pre-calibration";
124 mac-address-increment = <(-1)>;
132 compatible = "jedec,spi-nor";
134 spi-max-frequency = <25000000>;
137 mtdparts: partitions {
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
143 label = "factory-uboot";
144 reg = <0x000000 0x020000>;
150 reg = <0x020000 0x020000>;
155 label = "partition-table";
156 reg = <0x040000 0x010000>;
162 reg = <0x050000 0x010000>;
165 compatible = "nvmem-cells";
166 #address-cells = <1>;
169 cal_art_1000: cal@1000 {
170 reg = <0x1000 0x440>;
173 precal_art_5000: precal@5000 {
174 reg = <0x5000 0x2f20>;
180 reg = <0x060000 0x020000>;
183 compatible = "nvmem-cells";
184 #address-cells = <1>;
187 macaddr_info_8: macaddr@8 {
193 label = "user-config";
194 reg = <0x080000 0x040000>;
199 compatible = "denx,uimage";
201 reg = <0x0c0000 0xf00000>;
206 reg = <0xfc0000 0x020000>;
211 label = "certificate";
212 reg = <0xfe0000 0x010000>;
217 label = "default-config";
218 reg = <0xff0000 0x010000>;
234 /* TODO: missing support in ath9k */
237 nvmem-cells = <&cal_art_1000>, <&macaddr_info_8>;
238 nvmem-cell-names = "calibration", "mac-address";