ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9561_tplink_archer-c6x.dtsi"
6
7 / {
8 compatible = "tplink,archer-c60-v2", "qca,qca9561";
9 model = "TP-Link Archer C60 v2";
10
11 aliases {
12 label-mac-device = &eth1;
13 };
14 };
15
16 &leds {
17 wan_amber {
18 function = LED_FUNCTION_WAN;
19 color = <LED_COLOR_ID_AMBER>;
20 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
21 };
22
23 wps {
24 function = LED_FUNCTION_WPS;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 &pcie {
31 wifi@0,0 {
32 compatible = "qcom,ath10k";
33 reg = <0x0000 0 0 0 0>;
34 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
35 nvmem-cell-names = "pre-calibration", "mac-address";
36 };
37 };
38
39 &spi {
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <25000000>;
46
47 partitions {
48 compatible = "fixed-partitions";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partition@0 {
53 label = "factory-boot";
54 reg = <0x000000 0x01fb00>;
55 read-only;
56 };
57
58 info: partition@1fb00 {
59 label = "info";
60 reg = <0x01fb00 0x000500>;
61 read-only;
62
63 nvmem-layout {
64 compatible = "fixed-layout";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 macaddr_info_8: macaddr@8 {
69 compatible = "mac-base";
70 reg = <0x8 0x6>;
71 #nvmem-cell-cells = <1>;
72 };
73 };
74 };
75
76 partition@20000 {
77 label = "u-boot";
78 reg = <0x020000 0x010000>;
79 read-only;
80 };
81
82 partition@30000 {
83 compatible = "denx,uimage";
84 label = "firmware";
85 reg = <0x030000 0x7a0000>;
86 };
87
88 partition@7d0000 {
89 label = "tplink";
90 reg = <0x7d0000 0x020000>;
91 read-only;
92 };
93
94 art: partition@7f0000 {
95 label = "art";
96 reg = <0x7f0000 0x010000>;
97 read-only;
98
99 nvmem-layout {
100 compatible = "fixed-layout";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 precal_art_5000: pre-calibration@5000 {
105 reg = <0x5000 0x2f20>;
106 };
107 };
108 };
109 };
110 };
111 };
112
113 &eth0 {
114 nvmem-cells = <&macaddr_info_8 1>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &eth1 {
119 nvmem-cells = <&macaddr_info_8 0>;
120 nvmem-cell-names = "mac-address";
121 };
122
123 &wmac {
124 mtd-cal-data = <&art 0x1000>;
125
126 nvmem-cells = <&macaddr_info_8 0>;
127 nvmem-cell-names = "mac-address";
128 };