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