ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9558_tplink_archer-d7-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-d7-v1", "qca,qca9558";
7 model = "TP-Link Archer D7 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 0xf90000>;
46 };
47
48 partition@fb0000 {
49 label = "radioDECT";
50 reg = <0xfb0000 0x010000>;
51 read-only;
52 };
53
54 partition@fc0000 {
55 label = "config";
56 reg = <0xfc0000 0x010000>;
57 read-only;
58 };
59
60 romfs: partition@fd0000 {
61 label = "romfs";
62 reg = <0xfd0000 0x010000>;
63 read-only;
64
65 nvmem-layout {
66 compatible = "fixed-layout";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 macaddr_romfs_f100: macaddr@f100 {
71 compatible = "mac-base";
72 reg = <0xf100 0x6>;
73 #nvmem-cell-cells = <1>;
74 };
75 };
76 };
77
78 partition@fe0000 {
79 label = "rom";
80 reg = <0xfe0000 0x010000>;
81 read-only;
82 };
83
84 art: partition@ff0000 {
85 label = "art";
86 reg = <0xff0000 0x010000>;
87 read-only;
88
89 nvmem-layout {
90 compatible = "fixed-layout";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 cal_art_5000: calibration@5000 {
95 reg = <0x5000 0x844>;
96 };
97 };
98 };
99 };
100 };
101 };
102
103 &eth0 {
104 nvmem-cells = <&macaddr_romfs_f100 1>;
105 nvmem-cell-names = "mac-address";
106 };
107
108 &eth1 {
109 nvmem-cells = <&macaddr_romfs_f100 0>;
110 nvmem-cell-names = "mac-address";
111 };
112
113 &wmac {
114 mtd-cal-data = <&art 0x1000>;
115 nvmem-cells = <&macaddr_romfs_f100 0>;
116 nvmem-cell-names = "mac-address";
117 };