8794d839a87b5732c0fa06812dbca4f3efbb1ff4
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / 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 rng@22000 {
21 status = "okay";
22 };
23
24 mdio@90000 {
25 status = "okay";
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 };
35
36 ess_tcsr@1953000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1953000 0x1000>;
39 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
40 };
41
42 tcsr@1957000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1957000 0x100>;
45 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
46 };
47
48 crypto@8e3a000 {
49 status = "okay";
50 };
51
52 watchdog@b017000 {
53 status = "okay";
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59
60 led_system_green: system_green {
61 label = "green:system";
62 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
63 };
64
65 led_system_amber: system_amber {
66 label = "amber:system";
67 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
68 };
69
70 led_wlan24_green: wlan24_green {
71 label = "green:wlan24";
72 gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
74 };
75
76 led_wlan24_amber: wlan24_amber {
77 label = "amber:wlan24";
78 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
79 };
80
81 led_wlan5_green: wlan5_green {
82 label = "green:wlan5";
83 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "phy1tpt";
85 };
86
87 led_wlan5_amber: wlan5_amber {
88 label = "amber:wlan5";
89 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
90 };
91
92 iot {
93 label = "blue:iot";
94 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
95 };
96 };
97
98 keys {
99 compatible = "gpio-keys";
100
101 reset {
102 label = "reset";
103 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART >;
105 };
106 };
107 };
108
109 &blsp_dma {
110 status = "okay";
111 };
112
113 &blsp1_uart1 {
114 pinctrl-0 = <&serial_pins>;
115 pinctrl-names = "default";
116 status = "okay";
117 };
118
119 &cryptobam {
120 status = "okay";
121 };
122
123 &qpic_bam {
124 status = "okay";
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 };