ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c6-v2-us.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9563_tplink_archer-x6-v2.dtsi"
6
7 / {
8 compatible = "tplink,archer-c6-v2-us", "qca,qca9563";
9 model = "TP-Link Archer C6 v2 (US) / A6 v2 (US/TW)";
10
11 aliases {
12 label-mac-device = &eth0;
13
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29
30 wlan2g {
31 label = "green:wlan2g";
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
34 };
35
36 wlan5g {
37 label = "green:wlan5g";
38 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
40 };
41
42 lan {
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 };
47
48 wan {
49 function = LED_FUNCTION_WAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
52 };
53
54 wan_fail {
55 function = LED_FUNCTION_WAN;
56 color = <LED_COLOR_ID_AMBER>;
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 };
59
60 wps {
61 function = LED_FUNCTION_WPS;
62 color = <LED_COLOR_ID_GREEN>;
63 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys";
69
70 reset {
71 label = "Reset button";
72 linux,code = <KEY_RESTART>;
73 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
74 debounce-interval = <60>;
75 };
76
77 wps {
78 label = "WPS button";
79 linux,code = <KEY_WPS_BUTTON>;
80 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
81 debounce-interval = <60>;
82 };
83 };
84 };
85
86 &pcie {
87 wifi@0,0 {
88 compatible = "qcom,ath10k";
89 reg = <0x0000 0 0 0 0>;
90 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
91 nvmem-cell-names = "pre-calibration", "mac-address";
92 };
93 };
94
95 &spi {
96 status = "okay";
97
98 flash@0 {
99 compatible = "jedec,spi-nor";
100 reg = <0>;
101 spi-max-frequency = <25000000>;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 label = "factory-boot";
110 reg = <0x000000 0x020000>;
111 read-only;
112 };
113
114 info: partition@20000 {
115 label = "info";
116 reg = <0x020000 0x010000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_info_8: macaddr@8 {
125 compatible = "mac-base";
126 reg = <0x8 0x6>;
127 #nvmem-cell-cells = <1>;
128 };
129 };
130 };
131
132 partition@30000 {
133 label = "u-boot";
134 reg = <0x030000 0x020000>;
135 read-only;
136 };
137
138 partition@50000 {
139 compatible = "denx,uimage";
140 label = "firmware";
141 reg = <0x050000 0xf80000>;
142 };
143
144 partition@fd0000 {
145 label = "tplink";
146 reg = <0xfd0000 0x020000>;
147 read-only;
148 };
149
150 art: partition@ff0000 {
151 label = "art";
152 reg = <0xff0000 0x010000>;
153 read-only;
154
155 nvmem-layout {
156 compatible = "fixed-layout";
157 #address-cells = <1>;
158 #size-cells = <1>;
159
160 precal_art_5000: pre-calibration@5000 {
161 reg = <0x5000 0x2f20>;
162 };
163 };
164 };
165 };
166 };
167 };
168
169 &eth0 {
170 nvmem-cells = <&macaddr_info_8 0>;
171 nvmem-cell-names = "mac-address";
172 };
173
174 &wmac {
175 mtd-cal-data = <&art 0x1000>;
176
177 nvmem-cells = <&macaddr_info_8 0>;
178 nvmem-cell-names = "mac-address";
179 };