ath79: convert ath10k pre-calibration data to NVMEM (binary MAC)
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wpa8630p-v2.1-eu.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_tplink_tl-wpa8630.dtsi"
4
5 / {
6 compatible = "tplink,tl-wpa8630p-v2.1-eu", "qca,qca9563";
7 model = "TP-Link WPA8630P v2.1 (EU)";
8
9 aliases {
10 label-mac-device = &eth0;
11 };
12 };
13
14 &partitions {
15 partition@0 {
16 label = "factory-uboot";
17 reg = <0x000000 0x020000>;
18 read-only;
19 };
20
21 partition@20000 {
22 label = "u-boot";
23 reg = <0x020000 0x020000>;
24 read-only;
25 };
26
27 partition@40000 {
28 compatible = "tplink,firmware";
29 label = "firmware";
30 reg = <0x040000 0x5e0000>;
31 };
32
33 /* 0x620000 to 0x680000 is empty in OEM partitioning */
34
35 partition@680000 {
36 label = "tplink";
37 reg = <0x680000 0x160000>;
38 read-only;
39 };
40
41 info: partition@7e0000 {
42 label = "info";
43 reg = <0x7e0000 0x010000>;
44 read-only;
45
46 nvmem-layout {
47 compatible = "fixed-layout";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 macaddr_info_8: macaddr@8 {
52 compatible = "mac-base";
53 reg = <0x8 0x6>;
54 #nvmem-cell-cells = <1>;
55 };
56 };
57 };
58
59 art: partition@7f0000 {
60 label = "art";
61 reg = <0x7f0000 0x010000>;
62 read-only;
63
64 nvmem-layout {
65 compatible = "fixed-layout";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 precal_art_5000: pre-calibration@5000 {
70 reg = <0x5000 0x2f20>;
71 };
72 };
73 };
74 };
75
76 &pcie {
77 wifi@0,0 {
78 compatible = "qcom,ath10k";
79 reg = <0x0000 0 0 0 0>;
80 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 1>;
81 nvmem-cell-names = "pre-calibration", "mac-address";
82 };
83 };
84
85 &eth0 {
86 nvmem-cells = <&macaddr_info_8 0>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &wmac {
91 mtd-cal-data = <&art 0x1000>;
92
93 nvmem-cells = <&macaddr_info_8 0>;
94 nvmem-cell-names = "mac-address";
95 };