ath79: convert ath10k calibration data to NVMEM (built-in MAC)
[openwrt/staging/svanheule.git] / target / linux / ath79 / dts / qca9558_comfast_cf-wr650ac-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9558_comfast_cf-wr650ac.dtsi"
4
5 / {
6 compatible = "comfast,cf-wr650ac-v2", "qca,qca9558";
7 model = "Comfast CF-WR650AC v2";
8 };
9
10 &pcie0 {
11 status = "okay";
12
13 wifi@0,0 {
14 compatible = "qcom,ath10k";
15 reg = <0x0000 0 0 0 0>;
16 nvmem-cells = <&cal_art_5000>;
17 nvmem-cell-names = "calibration";
18 };
19 };
20
21 &spi {
22 status = "okay";
23
24 flash@0 {
25 compatible = "jedec,spi-nor";
26 reg = <0>;
27 spi-max-frequency = <25000000>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x000000 0x040000>;
37 read-only;
38 };
39
40 art: partition@40000 {
41 label = "art";
42 reg = <0x040000 0x010000>;
43 read-only;
44
45 nvmem-layout {
46 compatible = "fixed-layout";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 macaddr_art_0: macaddr@0 {
51 reg = <0x0 0x6>;
52 };
53
54 macaddr_art_6: macaddr@6 {
55 reg = <0x6 0x6>;
56 };
57
58 macaddr_art_18: macaddr@18 {
59 reg = <0x18 0x6>;
60 };
61
62 cal_art_5000: calibration@5000 {
63 reg = <0x5000 0x844>;
64 };
65 };
66 };
67
68 partition@50000 {
69 label = "firmware";
70 compatible = "denx,uimage";
71 reg = <0x050000 0xfa0000>;
72 };
73
74 partition@ff0000 {
75 label = "nvram";
76 reg = <0xff0000 0x010000>;
77 read-only;
78 };
79 };
80 };
81 };
82
83 &eth0 {
84 nvmem-cells = <&macaddr_art_0>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &eth1 {
89 nvmem-cells = <&macaddr_art_6>;
90 nvmem-cell-names = "mac-address";
91 };
92
93 &wmac {
94 mtd-cal-data = <&art 0x1000>;
95
96 nvmem-cells = <&macaddr_art_18>;
97 nvmem-cell-names = "mac-address";
98 };