hostapd: bump to 2024-09-06 (wip)
[openwrt/staging/xback.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4029-ws-ap3915i.dts
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 / {
9 model = "Extreme Networks WS-AP3915i";
10 compatible = "extreme-networks,ws-ap3915i";
11
12 aliases {
13 led-boot = &led_system_green;
14 led-failsafe = &led_system_amber;
15 led-running = &led_system_green;
16 led-upgrade = &led_system_amber;
17 };
18
19 soc {
20 tcsr@1949000 {
21 compatible = "qcom,tcsr";
22 reg = <0x1949000 0x100>;
23 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
24 };
25
26 ess_tcsr@1953000 {
27 compatible = "qcom,tcsr";
28 reg = <0x1953000 0x1000>;
29 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
30 };
31
32 tcsr@1957000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1957000 0x100>;
35 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_system_green: system_green {
43 label = "green:system";
44 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
45 };
46
47 led_system_amber: system_amber {
48 label = "amber:system";
49 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
50 };
51
52 led_wlan24_green: wlan24_green {
53 label = "green:wlan24";
54 gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0tpt";
56 };
57
58 led_wlan24_amber: wlan24_amber {
59 label = "amber:wlan24";
60 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
61 };
62
63 led_wlan5_green: wlan5_green {
64 label = "green:wlan5";
65 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy1tpt";
67 };
68
69 led_wlan5_amber: wlan5_amber {
70 label = "amber:wlan5";
71 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
72 };
73
74 iot {
75 label = "blue:iot";
76 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
77 };
78 };
79
80 keys {
81 compatible = "gpio-keys";
82
83 reset {
84 label = "reset";
85 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART >;
87 };
88 };
89 };
90
91 &watchdog {
92 status = "okay";
93 };
94
95 &prng {
96 status = "okay";
97 };
98
99 &crypto {
100 status = "okay";
101 };
102
103 &blsp_dma {
104 status = "okay";
105 };
106
107 &blsp1_uart1 {
108 pinctrl-0 = <&serial_pins>;
109 pinctrl-names = "default";
110 status = "okay";
111 };
112
113 &cryptobam {
114 status = "okay";
115 };
116
117 &qpic_bam {
118 status = "okay";
119 };
120
121 &mdio {
122 status = "okay";
123 pinctrl-0 = <&mdio_pins>;
124 pinctrl-names = "default";
125 };
126
127 &gmac {
128 status = "okay";
129 };
130
131 &switch {
132 status = "okay";
133 };
134
135 &swport5 {
136 status = "okay";
137
138 label = "lan";
139 };
140
141 &tlmm {
142 mdio_pins: mdio_pinmux {
143 mux_1 {
144 pins = "gpio6";
145 function = "mdio";
146 bias-pull-up;
147 };
148 mux_2 {
149 pins = "gpio7";
150 function = "mdc";
151 bias-pull-up;
152 };
153 };
154
155 spi_0_pins: spi_0_pinmux {
156 pin {
157 function = "blsp_spi0";
158 pins = "gpio13", "gpio14", "gpio15";
159 drive-strength = <12>;
160 bias-disable;
161 };
162 pin_cs {
163 function = "gpio";
164 pins = "gpio12";
165 drive-strength = <2>;
166 bias-disable;
167 output-high;
168 };
169 };
170
171 serial_pins: serial_0_pinmux {
172 mux {
173 pins = "gpio16", "gpio17";
174 function = "blsp_uart0";
175 bias-disable;
176 };
177 };
178 };
179
180 &wifi0 {
181 status = "okay";
182 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
183 };
184
185 &wifi1 {
186 status = "okay";
187 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
188 };
189
190 &blsp1_spi1 {
191 pinctrl-0 = <&spi_0_pins>;
192 pinctrl-names = "default";
193 status = "okay";
194 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
195
196 flash@0 {
197 compatible = "jedec,spi-nor";
198 reg = <0>;
199 spi-max-frequency = <24000000>;
200
201 partitions {
202 compatible = "fixed-partitions";
203 #address-cells = <1>;
204 #size-cells = <1>;
205
206 /* Layout for 0x0 - 0xe0000 unknown */
207
208 partition@e0000 {
209 label = "CFG1";
210 reg = <0xe0000 0x10000>;
211 read-only;
212 };
213
214 partition@f0000 {
215 label = "BootBAK";
216 reg = <0xf0000 0x70000>;
217 read-only;
218 };
219
220 partition@160000 {
221 label = "WINGCFG1";
222 reg = <0x160000 0x10000>;
223 read-only;
224 };
225
226 partition@170000 {
227 label = "ART";
228 reg = <0x170000 0x10000>;
229 read-only;
230 };
231
232 partition@180000 {
233 label = "BootPRI";
234 reg = <0x180000 0x70000>;
235 read-only;
236 };
237
238 partition@1f0000 {
239 label = "WINGCFG2";
240 reg = <0x1f0000 0x10000>;
241 read-only;
242 };
243
244 partition@200000 {
245 label = "FS";
246 reg = <0x200000 0x80000>;
247 read-only;
248 };
249
250 partition@280000 {
251 label = "firmware";
252 reg = <0x280000 0x1d60000>;
253 };
254
255 partition@1fe0000 {
256 label = "CFG2";
257 reg = <0x1fe0000 0x10000>;
258 read-only;
259 };
260 };
261 };
262 };