ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c58-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9561_tplink_archer-c5x.dtsi"
4
5 / {
6 compatible = "tplink,archer-c58-v1", "qca,qca9560";
7 model = "TP-Link Archer C58 v1";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &pcie {
15 wifi@0,0 {
16 compatible = "qcom,ath10k";
17 reg = <0x0000 0 0 0 0>;
18 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
19 nvmem-cell-names = "pre-calibration", "mac-address";
20 };
21 };
22
23 &spi {
24 status = "okay";
25
26 flash@0 {
27 compatible = "jedec,spi-nor";
28 reg = <0>;
29 spi-max-frequency = <25000000>;
30
31 partitions {
32 compatible = "fixed-partitions";
33 #address-cells = <1>;
34 #size-cells = <1>;
35
36 partition@0 {
37 label = "u-boot";
38 reg = <0x000000 0x010000>;
39 read-only;
40 };
41
42 info: partition@10000 {
43 label = "info";
44 reg = <0x010000 0x010000>;
45 read-only;
46
47 nvmem-layout {
48 compatible = "fixed-layout";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 macaddr_info_8: macaddr@8 {
53 compatible = "mac-base";
54 reg = <0x8 0x6>;
55 #nvmem-cell-cells = <1>;
56 };
57 };
58 };
59
60 partition@20000 {
61 compatible = "denx,uimage";
62 label = "firmware";
63 reg = <0x020000 0x7c0000>;
64 };
65
66 partition@7e0000 {
67 label = "tplink";
68 reg = <0x7e0000 0x010000>;
69 read-only;
70 };
71
72 art: partition@7f0000 {
73 label = "art";
74 reg = <0x7f0000 0x010000>;
75 read-only;
76
77 nvmem-layout {
78 compatible = "fixed-layout";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 precal_art_5000: pre-calibration@5000 {
83 reg = <0x5000 0x2f20>;
84 };
85 };
86 };
87 };
88 };
89 };
90
91 &eth0 {
92 nvmem-cells = <&macaddr_info_8 1>;
93 nvmem-cell-names = "mac-address";
94 };
95
96 &eth1 {
97 nvmem-cells = <&macaddr_info_8 0>;
98 nvmem-cell-names = "mac-address";
99 };
100
101 &wmac {
102 mtd-cal-data = <&art 0x1000>;
103
104 nvmem-cells = <&macaddr_info_8 0>;
105 nvmem-cell-names = "mac-address";
106 };