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