ath79: convert ath10k calibration data to NVMEM (ASCII MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9531_engenius_ews511ap.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,ews511ap", "qca,qca9531";
10 model = "EnGenius EWS511AP";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins>;
24
25 reset {
26 label = "reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "amber:power";
37 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 lan1 {
42 label = "blue:lan1";
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 };
45
46 lan2 {
47 label = "blue:lan2";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan2g {
52 label = "green:wlan2g";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56
57 wlan5g {
58 label = "green:wlan5g";
59 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy1tpt";
61 };
62 };
63
64 watchdog {
65 compatible = "linux,wdt-gpio";
66
67 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
68 hw_algo = "toggle";
69 /* hw_margin_ms is actually 300s but driver limits it to 60s */
70 hw_margin_ms = <60000>;
71 always-running;
72 };
73 };
74
75 &wdt {
76 status = "okay";
77 };
78
79 &rst {
80 status = "okay";
81 };
82
83 &pcie0 {
84 status = "okay";
85
86 wifi@0,0 {
87 compatible = "qcom,ath10k";
88 reg = <0x0000 0 0 0 0>;
89 nvmem-cells = <&cal_art_5000>;
90 nvmem-cell-names = "calibration";
91 };
92 };
93
94 &spi {
95 status = "okay";
96
97 flash@0 {
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <25000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "u-boot";
109 reg = <0x000000 0x040000>;
110 read-only;
111 };
112
113 ubootenv: partition@40000 {
114 label = "u-boot-env";
115 reg = <0x040000 0x010000>;
116 };
117
118 art: partition@50000 {
119 label = "art";
120 reg = <0x050000 0x010000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 cal_art_5000: calibration@5000 {
129 reg = <0x5000 0x844>;
130 };
131 };
132 };
133
134 partition@60000 {
135 compatible = "denx,uimage";
136 label = "firmware";
137 reg = <0x060000 0xfa0000>;
138 };
139 };
140 };
141 };
142
143 &eth0 {
144 status = "okay";
145
146 phy-handle = <&swphy4>;
147 };
148
149 &wmac {
150 status = "okay";
151
152 mtd-cal-data = <&art 0x1000>;
153 };