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