ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v3.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-v3", "qca,qca9561";
9 model = "TP-Link Archer C60 v3";
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 19 GPIO_ACTIVE_LOW>;
21 };
22 };
23
24 &pcie {
25 wifi@0,0 {
26 compatible = "qcom,ath10k";
27 reg = <0x0000 0 0 0 0>;
28 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
29 nvmem-cell-names = "pre-calibration", "mac-address";
30 };
31 };
32
33 &spi {
34 status = "okay";
35
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <25000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "factory-boot";
48 reg = <0x000000 0x01fb00>;
49 read-only;
50 };
51
52 info: partition@1fb00 {
53 label = "info";
54 reg = <0x01fb00 0x000500>;
55 read-only;
56
57 nvmem-layout {
58 compatible = "fixed-layout";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 macaddr_info_8: macaddr@8 {
63 compatible = "mac-base";
64 reg = <0x8 0x6>;
65 #nvmem-cell-cells = <1>;
66 };
67 };
68 };
69
70 partition@20000 {
71 label = "u-boot";
72 reg = <0x020000 0x010000>;
73 read-only;
74 };
75
76 partition@30000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x030000 0x7a0000>;
80 };
81
82 partition@7d0000 {
83 label = "tplink";
84 reg = <0x7d0000 0x020000>;
85 read-only;
86 };
87
88 art: partition@7f0000 {
89 label = "art";
90 reg = <0x7f0000 0x010000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 precal_art_5000: pre-calibration@5000 {
99 reg = <0x5000 0x2f20>;
100 };
101 };
102 };
103 };
104 };
105 };
106
107 &eth0 {
108 nvmem-cells = <&macaddr_info_8 1>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &eth1 {
113 nvmem-cells = <&macaddr_info_8 0>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &wmac {
118 mtd-cal-data = <&art 0x1000>;
119
120 nvmem-cells = <&macaddr_info_8 0>;
121 nvmem-cell-names = "mac-address";
122 };