ath79: convert ath10k calibration data to NVMEM (built-in MAC)
[openwrt/staging/svanheule.git] / target / linux / ath79 / dts / ar9342_ubnt_wa.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,wa", "qca,ar9342";
10 model = "Ubiquiti Networks WA board";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "Reset button";
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &ref {
25 clock-frequency = <40000000>;
26 };
27
28 &pcie {
29 status = "okay";
30
31 wifi@0,0 {
32 compatible = "qcom,ath10k";
33 reg = <0x0000 0 0 0 0>;
34 nvmem-cells = <&cal_art_5000>;
35 nvmem-cell-names = "calibration";
36 };
37 };
38
39 &spi {
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <25000000>;
46
47 partitions {
48 compatible = "fixed-partitions";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x000000 0x040000>;
55 read-only;
56 };
57
58 partition@40000 {
59 label = "u-boot-env";
60 reg = <0x040000 0x010000>;
61 read-only;
62 };
63
64 partition@50000 {
65 compatible = "denx,uimage";
66 label = "firmware";
67 reg = <0x050000 0xf60000>;
68 };
69
70 partition@fb0000 {
71 label = "cfg";
72 reg = <0xfb0000 0x040000>;
73 read-only;
74 };
75
76 art: partition@ff0000 {
77 label = "art";
78 reg = <0xff0000 0x010000>;
79 read-only;
80
81 nvmem-layout {
82 compatible = "fixed-layout";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 macaddr_art_0: macaddr@0 {
87 reg = <0x0 0x6>;
88 };
89
90 cal_art_5000: calibration@5000 {
91 reg = <0x5000 0x844>;
92 };
93 };
94 };
95 };
96 };
97 };
98
99 &wmac {
100 status = "okay";
101
102 ieee80211-freq-limit = <2402000 2482000>;
103 mtd-cal-data = <&art 0x1000>;
104 };