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";
100 phy0: ethernet-phy@0 {
103 qca,mib-poll-interval = <500>;
105 qca,ar8327-initvals = <
106 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
107 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
108 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
109 0x10 0x00000080 /* POWER_ON_STRAP */
110 0x7c 0x0000007e /* PORT0_STATUS */
111 0x94 0x00000200 /* PORT6_STATUS */
120 compatible = "pci168c,0046";
123 nvmem-cells = <&macaddr_info_8>, <&precal_art_5000>;
124 nvmem-cell-names = "mac-address", "pre-calibration";
126 mac-address-increment = <(-1)>;
134 compatible = "jedec,spi-nor";
136 spi-max-frequency = <25000000>;
139 mtdparts: partitions {
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
145 label = "factory-uboot";
146 reg = <0x000000 0x020000>;
152 reg = <0x020000 0x020000>;
157 label = "partition-table";
158 reg = <0x040000 0x010000>;
164 reg = <0x050000 0x010000>;
167 compatible = "nvmem-cells";
168 #address-cells = <1>;
171 cal_art_1000: cal@1000 {
172 reg = <0x1000 0x440>;
175 precal_art_5000: precal@5000 {
176 reg = <0x5000 0x2f20>;
182 reg = <0x060000 0x020000>;
185 compatible = "nvmem-cells";
186 #address-cells = <1>;
189 macaddr_info_8: macaddr@8 {
195 label = "user-config";
196 reg = <0x080000 0x040000>;
201 compatible = "denx,uimage";
203 reg = <0x0c0000 0xf00000>;
208 reg = <0xfc0000 0x020000>;
213 label = "certificate";
214 reg = <0xfe0000 0x010000>;
219 label = "default-config";
220 reg = <0xff0000 0x010000>;
232 #address-cells = <1>;
238 #trigger-source-cells = <0>;
243 /* TODO: missing support in ath9k */
246 nvmem-cells = <&cal_art_1000>, <&macaddr_info_8>;
247 nvmem-cell-names = "calibration", "mac-address";