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>
7 #include <dt-bindings/leds/common.h>
10 model = "TP-Link Archer A9 v6";
11 compatible = "tplink,archer-a9-v6", "qca,qcn5500", "qca,qca9560";
14 label-mac-device = ð0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
40 compatible = "gpio-leds";
43 function = LED_FUNCTION_POWER;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_USB;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
53 trigger-sources = <&hub_port0>;
54 linux,default-trigger = "usbport";
58 function = LED_FUNCTION_WAN;
59 color = <LED_COLOR_ID_GREEN>;
60 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
64 function = LED_FUNCTION_WAN;
65 color = <LED_COLOR_ID_ORANGE>;
66 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
70 label = "green:wlan2g";
71 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy1tpt";
76 label = "green:wlan5g";
77 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "phy0tpt";
82 function = LED_FUNCTION_WPS;
83 color = <LED_COLOR_ID_GREEN>;
84 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
92 pll-data = <0x03000101 0x00000101 0x00001919>;
97 nvmem-cells = <&macaddr_info_8 0>;
98 nvmem-cell-names = "mac-address";
104 phy0: ethernet-phy@0 {
107 qca,mib-poll-interval = <500>;
109 qca,ar8327-initvals = <
110 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
111 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
112 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
113 0x10 0x00000080 /* POWER_ON_STRAP */
114 0x7c 0x0000007e /* PORT0_STATUS */
115 0x94 0x00000200 /* PORT6_STATUS */
124 compatible = "pci168c,0046";
127 nvmem-cells = <&macaddr_info_8 (-1)>, <&precal_art_5000>;
128 nvmem-cell-names = "mac-address", "pre-calibration";
136 compatible = "jedec,spi-nor";
138 spi-max-frequency = <25000000>;
141 mtdparts: partitions {
142 compatible = "fixed-partitions";
143 #address-cells = <1>;
147 label = "factory-uboot";
148 reg = <0x000000 0x020000>;
154 reg = <0x020000 0x020000>;
159 label = "partition-table";
160 reg = <0x040000 0x010000>;
166 reg = <0x050000 0x010000>;
170 compatible = "fixed-layout";
171 #address-cells = <1>;
174 cal_art_1000: cal@1000 {
175 reg = <0x1000 0x440>;
178 precal_art_5000: precal@5000 {
179 reg = <0x5000 0x2f20>;
186 reg = <0x060000 0x020000>;
190 compatible = "fixed-layout";
191 #address-cells = <1>;
194 macaddr_info_8: macaddr@8 {
195 compatible = "mac-base";
197 #nvmem-cell-cells = <1>;
203 label = "user-config";
204 reg = <0x080000 0x040000>;
209 compatible = "denx,uimage";
211 reg = <0x0c0000 0xf00000>;
216 reg = <0xfc0000 0x020000>;
221 label = "certificate";
222 reg = <0xfe0000 0x010000>;
227 label = "default-config";
228 reg = <0xff0000 0x010000>;
244 /* TODO: missing support in ath9k */
247 nvmem-cells = <&cal_art_1000>, <&macaddr_info_8 0>;
248 nvmem-cell-names = "calibration", "mac-address";