ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/svanheule.git] / target / linux / ath79 / dts / qca9557_araknis_an-500-ap-i-ac.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_senao_loader.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "araknis,an-500-ap-i-ac", "qca,qca9557";
10 model = "Araknis AN-500-AP-I-AC";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_power: power {
33 label = "amber:power";
34 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 };
37
38 wifi2g {
39 label = "blue:wifi2g";
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
42 };
43
44 wifi5g {
45 label = "blue:wifi5g";
46 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49
50 wps {
51 label = "blue:wps";
52 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &partitions {
58 art: partition@ff0000 {
59 label = "art";
60 reg = <0xff0000 0x010000>;
61 read-only;
62
63 nvmem-layout {
64 compatible = "fixed-layout";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 macaddr_art_0: macaddr@0 {
69 compatible = "mac-base";
70 reg = <0x0 0x6>;
71 #nvmem-cell-cells = <1>;
72 };
73
74 cal_art_5000: calibration@5000 {
75 reg = <0x5000 0x844>;
76 };
77 };
78 };
79 };
80
81 &mdio0 {
82 status = "okay";
83
84 phy5: ethernet-phy@5 {
85 reg = <5>;
86 eee-broken-100tx;
87 eee-broken-1000t;
88 };
89 };
90
91 &eth0 {
92 status = "okay";
93
94 nvmem-cells = <&macaddr_art_0 0>;
95 nvmem-cell-names = "mac-address";
96
97 phy-handle = <&phy5>;
98 phy-mode = "rgmii-id";
99
100 pll-data = <0x82000000 0x80000101 0x80001313>;
101 };
102
103 &wmac {
104 status = "okay";
105
106 mtd-cal-data = <&art 0x1000>;
107
108 nvmem-cells = <&macaddr_art_0 1>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &pcie0 {
113 status = "okay";
114
115 wifi@0,0 {
116 compatible = "qcom,ath10k";
117 reg = <0x0000 0 0 0 0>;
118 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
119 nvmem-cell-names = "calibration", "mac-address";
120 };
121 };