ath79: convert ath10k calibration data to NVMEM (ASCII MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9557_extreme-networks_ws-ap3805i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "extreme-networks,ws-ap3805i", "qca,qca9557";
10 model = "Extreme Networks WS-AP3805i";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_amber;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_amber;
17 label-mac-device = &eth0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power_green: power_green {
24 label = "green:power";
25 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
26 };
27
28 led_power_amber: power_amber {
29 label = "amber:power";
30 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan5 {
34 label = "green:wlan5";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 wlan2 {
40 label = "green:wlan2";
41 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 };
54 };
55
56 watchdog {
57 compatible = "linux,wdt-gpio";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 hw_algo = "toggle";
60 hw_margin_ms = <20000>;
61 always-running;
62 };
63 };
64
65 &wdt {
66 status = "disabled";
67 };
68
69 &wmac {
70 status = "okay";
71
72 qca,no-eeprom;
73 };
74
75 &pcie0 {
76 status = "okay";
77
78 wifi@0,0 {
79 compatible = "qcom,ath10k";
80 reg = <0x0 0 0 0 0>;
81 nvmem-cells = <&cal_art_5000>;
82 nvmem-cell-names = "calibration";
83 };
84 };
85
86 &mdio0 {
87 status = "okay";
88
89 phy5: ethernet-phy@5 {
90 reg = <5>;
91 };
92 };
93
94 &eth0 {
95 status = "okay";
96
97 phy-handle = <&phy5>;
98 phy-mode = "rgmii-id";
99
100 pll-data = <0x82000000 0x80000101 0x80001313>;
101
102 gmac-config {
103 device = <&gmac>;
104 rgmii-enabled = <1>;
105 };
106 };
107
108 &spi {
109 status = "okay";
110
111 flash@0 {
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <50000000>;
115 m25p,fast-read;
116
117 partitions {
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 partition@0 {
123 label = "u-boot-bak";
124 reg = <0x0 0x80000>;
125 read-only;
126 };
127
128 partition@80000 {
129 label = "u-boot";
130 reg = <0x080000 0x80000>;
131 read-only;
132 };
133
134 partition@100000 {
135 label = "cfg1";
136 reg = <0x100000 0x40000>;
137 read-only;
138 };
139
140 partition@140000 {
141 label = "cfg2";
142 reg = <0x140000 0x40000>;
143 read-only;
144 };
145
146 partition@180000 {
147 label = "nvram4";
148 reg = <0x180000 0x40000>;
149 read-only;
150 };
151
152 partition@1c0000 {
153 label = "nvram3";
154 reg = <0x1c0000 0x40000>;
155 read-only;
156 };
157
158 partition@200000 {
159 label = "nvram2";
160 reg = <0x200000 0x40000>;
161 read-only;
162 };
163
164 partition@240000 {
165 label = "nvram1";
166 reg = <0x240000 0x40000>;
167 read-only;
168 };
169
170 partition@280000 {
171 label = "PriImg";
172 reg = <0x280000 0x1000000>;
173 read-only;
174 };
175
176 partition@1280000 {
177 label = "SecImg";
178 reg = <0x1280000 0x1000000>;
179 read-only;
180 };
181
182 partition@2280000 {
183 label = "firmware";
184 compatible = "denx,uimage";
185 reg = <0x2280000 0x1cc0000>;
186 };
187
188 partition@3f40000 {
189 label = "cert";
190 reg = <0x3f40000 0x80000>;
191 read-only;
192 };
193
194 partition@3fc0000 {
195 label = "art";
196 reg = <0x3fc0000 0x40000>;
197 read-only;
198
199 nvmem-layout {
200 compatible = "fixed-layout";
201 #address-cells = <1>;
202 #size-cells = <1>;
203
204 cal_art_5000: calibration@5000 {
205 reg = <0x5000 0x844>;
206 };
207 };
208 };
209 };
210 };
211 };