ath79: convert ath10k calibration data to NVMEM (built-in MAC)
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca955x_ubnt_xc.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 &pcie0 {
9 status = "okay";
10
11 wifi@0,0 {
12 compatible = "qcom,ath10k";
13 reg = <0x0000 0 0 0 0>;
14 nvmem-cells = <&cal_art_5000>;
15 nvmem-cell-names = "calibration";
16 };
17 };
18
19 &spi {
20 status = "okay";
21
22 flash@0 {
23 compatible = "jedec,spi-nor";
24 reg = <0>;
25 spi-max-frequency = <25000000>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "u-boot";
34 reg = <0x000000 0x040000>;
35 read-only;
36 };
37
38 partition@40000 {
39 label = "u-boot-env";
40 reg = <0x040000 0x010000>;
41 read-only;
42 };
43
44 partition@50000 {
45 compatible = "denx,uimage";
46 label = "firmware";
47 reg = <0x050000 0xf60000>;
48 };
49
50 partition@fb0000 {
51 label = "cfg";
52 reg = <0xfb0000 0x040000>;
53 read-only;
54 };
55
56 art: partition@ff0000 {
57 label = "art";
58 reg = <0xff0000 0x010000>;
59 read-only;
60
61 nvmem-layout {
62 compatible = "fixed-layout";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 macaddr_art_0: macaddr@0 {
67 reg = <0x0 0x6>;
68 };
69
70 cal_art_5000: calibration@5000 {
71 reg = <0x5000 0x844>;
72 };
73 };
74 };
75 };
76 };
77 };