ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9558_tplink_archer-d7b-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9558_tplink_archer-d7.dtsi"
4
5 / {
6 compatible = "tplink,archer-d7b-v1", "qca,qca9558";
7 model = "TP-Link Archer D7b v1";
8
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &pcie1 {
15 wifi@0,0 {
16 compatible = "qcom,ath10k";
17 reg = <0x0000 0 0 0 0>;
18 nvmem-cells = <&cal_art_5000>, <&macaddr_romfs_f100 2>;
19 nvmem-cell-names = "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 0x020000>;
39 read-only;
40 };
41
42 partition@20000 {
43 compatible = "tplink,firmware";
44 label = "firmware";
45 reg = <0x020000 0xfa0000>;
46 };
47
48 partition@fc0000 {
49 label = "config";
50 reg = <0xfc0000 0x010000>;
51 read-only;
52 };
53
54 romfs: partition@fd0000 {
55 label = "romfs";
56 reg = <0xfd0000 0x010000>;
57 read-only;
58
59 nvmem-layout {
60 compatible = "fixed-layout";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 macaddr_romfs_f100: macaddr@f100 {
65 compatible = "mac-base";
66 reg = <0xf100 0x6>;
67 #nvmem-cell-cells = <1>;
68 };
69 };
70 };
71
72 partition@fe0000 {
73 label = "reserve";
74 reg = <0xfe0000 0x010000>;
75 read-only;
76 };
77
78 art: partition@ff0000 {
79 label = "art";
80 reg = <0xff0000 0x010000>;
81 read-only;
82
83 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 cal_art_5000: calibration@5000 {
89 reg = <0x5000 0x844>;
90 };
91 };
92 };
93 };
94 };
95 };
96
97 &eth0 {
98 nvmem-cells = <&macaddr_romfs_f100 1>;
99 nvmem-cell-names = "mac-address";
100 };
101
102 &eth1 {
103 nvmem-cells = <&macaddr_romfs_f100 0>;
104 nvmem-cell-names = "mac-address";
105 };
106
107 &wmac {
108 mtd-cal-data = <&art 0x1000>;
109 nvmem-cells = <&macaddr_romfs_f100 0>;
110 nvmem-cell-names = "mac-address";
111 };