ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c6-v2.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", "qca,qca9563";
9 model = "TP-Link Archer C6 v2 (EU/RU/JP)";
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 17 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29
30 wlan2g {
31 label = "green:wlan2g";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
34 };
35
36 wlan5g {
37 label = "green:wlan5g";
38 gpios = <&gpio 19 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 20 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 9 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 6 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 = "u-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 compatible = "denx,uimage";
134 label = "firmware";
135 reg = <0x030000 0x7a0000>;
136 };
137
138 partition@7d0000 {
139 label = "tplink";
140 reg = <0x7d0000 0x020000>;
141 read-only;
142 };
143
144 art: partition@7f0000 {
145 label = "art";
146 reg = <0x7f0000 0x010000>;
147 read-only;
148
149 nvmem-layout {
150 compatible = "fixed-layout";
151 #address-cells = <1>;
152 #size-cells = <1>;
153
154 precal_art_5000: pre-calibration@5000 {
155 reg = <0x5000 0x2f20>;
156 };
157 };
158 };
159 };
160 };
161 };
162
163 &eth0 {
164 nvmem-cells = <&macaddr_info_8 0>;
165 nvmem-cell-names = "mac-address";
166 };
167
168 &wmac {
169 mtd-cal-data = <&art 0x1000>;
170
171 nvmem-cells = <&macaddr_info_8 0>;
172 nvmem-cell-names = "mac-address";
173 };