hostapd: add AFC support
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4018-eap1300.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "EnGenius EAP1300";
11 compatible = "engenius,eap1300";
12
13 soc {
14 rng@22000 {
15 status = "okay";
16 };
17
18 mdio@90000 {
19 status = "okay";
20 };
21
22 tcsr@1949000 {
23 compatible = "qcom,tcsr";
24 reg = <0x1949000 0x100>;
25 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
26 };
27
28 ess_tcsr@1953000 {
29 compatible = "qcom,tcsr";
30 reg = <0x1953000 0x1000>;
31 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
32 };
33
34 tcsr@1957000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1957000 0x100>;
37 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
38 };
39
40 crypto@8e3a000 {
41 status = "okay";
42 };
43
44 watchdog@b017000 {
45 status = "okay";
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 reset {
53 label = "reset";
54 gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58
59 aliases {
60 led-boot = &power;
61 led-failsafe = &power;
62 led-running = &power;
63 led-upgrade = &power;
64 };
65
66 leds {
67 compatible = "gpio-leds";
68
69 power: orange {
70 function = LED_FUNCTION_POWER;
71 color = <LED_COLOR_ID_ORANGE>;
72 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
73 };
74
75 lan {
76 function = LED_FUNCTION_LAN;
77 color = <LED_COLOR_ID_BLUE>;
78 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
79 };
80
81 mesh {
82 label = "blue:mesh";
83 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
84 };
85
86 wlan2g {
87 label = "blue:wlan2g";
88 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
89 };
90
91 wlan5g {
92 label = "yellow:wlan5g";
93 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
94 };
95 };
96 };
97
98 &tlmm {
99 serial_pins: serial_pinmux {
100 mux {
101 pins = "gpio60", "gpio61";
102 function = "blsp_uart0";
103 bias-disable;
104 };
105 };
106
107 spi_0_pins: spi_0_pinmux {
108 pin {
109 function = "blsp_spi0";
110 pins = "gpio54", "gpio55", "gpio56", "gpio57";
111 drive-strength = <12>;
112 bias-disable;
113 };
114 pin_cs {
115 function = "gpio";
116 pins = "gpio54";
117 drive-strength = <2>;
118 bias-disable;
119 output-high;
120 };
121 };
122 };
123
124 &blsp_dma {
125 status = "okay";
126 };
127
128 &blsp1_spi1 {
129 pinctrl-0 = <&spi_0_pins>;
130 pinctrl-names = "default";
131 status = "okay";
132 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
133
134 m25p80@0 {
135 compatible = "jedec,spi-nor";
136 reg = <0>;
137 spi-max-frequency = <24000000>;
138 partitions {
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 partition@0 {
144 label = "0:SBL1";
145 reg = <0x00000000 0x00040000>;
146 read-only;
147 };
148 partition1@40000 {
149 label = "0:MIBIB";
150 reg = <0x00040000 0x00020000>;
151 read-only;
152 };
153 partition2@60000 {
154 label = "0:QSEE";
155 reg = <0x00060000 0x00060000>;
156 read-only;
157 };
158 partition3@c0000 {
159 label = "0:CDT";
160 reg = <0x000c0000 0x00010000>;
161 read-only;
162 };
163 partition4@d0000 {
164 label = "0:DDRPARAMS";
165 reg = <0x000d0000 0x00010000>;
166 read-only;
167 };
168 partition5@e0000 {
169 label = "0:APPSBLENV";
170 reg = <0x000e0000 0x00010000>;
171 read-only;
172 };
173 partition6@f0000 {
174 label = "0:APPSBL";
175 reg = <0x000f0000 0x00090000>;
176 read-only;
177 };
178 partition7@180000 {
179 label = "0:ART";
180 reg = <0x00180000 0x00010000>;
181 read-only;
182
183 nvmem-layout {
184 compatible = "fixed-layout";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 precal_art_1000: precal@1000 {
189 reg = <0x1000 0x2f20>;
190 };
191
192 precal_art_5000: precal@5000 {
193 reg = <0x5000 0x2f20>;
194 };
195 };
196 };
197 partition8@190000 {
198 compatible = "denx,fit";
199 label = "firmware";
200 reg = <0x190000 0x1dc0000>;
201 };
202 partition9@1f50000 {
203 compatible = "u-boot,env";
204 label = "u-boot-env";
205 reg = <0x01f50000 0x00010000>;
206
207 macaddr_ubootenv_ethaddr: ethaddr {
208 #nvmem-cell-cells = <1>;
209 };
210 };
211 partition10@1f60000 {
212 label = "userconfig";
213 reg = <0x01f60000 0x000a0000>;
214 };
215 };
216 };
217 };
218
219 &blsp1_uart1 {
220 pinctrl-0 = <&serial_pins>;
221 pinctrl-names = "default";
222 status = "okay";
223 };
224
225 &cryptobam {
226 status = "okay";
227 };
228
229 &switch {
230 status = "okay";
231 };
232
233 &swport5 {
234 status = "okay";
235 label = "lan";
236 nvmem-cell-names = "mac-address";
237 nvmem-cells = <&macaddr_ubootenv_ethaddr 0>;
238 };
239
240 &gmac {
241 status = "okay";
242 };
243
244 &mdio {
245 status = "okay";
246 };
247
248 &wifi0 {
249 status = "okay";
250 nvmem-cell-names = "pre-calibration", "mac-address";
251 nvmem-cells = <&precal_art_1000>, <&macaddr_ubootenv_ethaddr 1>;
252 qcom,ath10k-calibration-variant = "EnGenius-EAP1300";
253 };
254
255 &wifi1 {
256 status = "okay";
257 nvmem-cell-names = "pre-calibration", "mac-address";
258 nvmem-cells = <&precal_art_5000>, <&macaddr_ubootenv_ethaddr 2>;
259 qcom,ath10k-calibration-variant = "EnGenius-EAP1300";
260 };