uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-eap2200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "EnGenius EAP2200";
9 compatible = "engenius,eap2200";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 wps {
22 label = "wps";
23 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_WPS_BUTTON>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_power: power {
32 label = "eap2200:amber:power";
33 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
34 };
35
36 lan1 {
37 label = "eap2200:blue:lan1";
38 gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
39 };
40
41 lan2 {
42 label = "eap2200:blue:lan2";
43 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
44 };
45
46 wlan2g {
47 label = "eap2200:blue:wlan2g";
48 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 wlan5g {
53 label = "eap2200:yellow:wlan5g";
54 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy1tpt";
56 };
57
58 wlan5g2 {
59 label = "eap2200:yellow:wlan5g2";
60 gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy2tpt";
62 };
63
64 mode {
65 label = "eap2200:blue:mode";
66 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
67 };
68 };
69
70 soc {
71 rng@22000 {
72 status = "okay";
73 };
74
75 mdio@90000 {
76 status = "okay";
77 };
78
79 ess-psgmii@98000 {
80 status = "okay";
81 };
82
83 crypto@8e3a000 {
84 status = "okay";
85 };
86
87 watchdog@b017000 {
88 status = "okay";
89 };
90
91 ess-switch@c000000 {
92 status = "okay";
93 switch_lan_bmp = <0x10>;
94 };
95
96 edma@c080000 {
97 status = "okay";
98 };
99 };
100 };
101
102 &blsp_dma {
103 status = "okay";
104 };
105
106 &blsp1_spi1 {
107 pinctrl-0 = <&spi_0_pins>;
108 pinctrl-names = "default";
109 status = "okay";
110 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
111
112 flash@0 {
113 #address-cells = <1>;
114 #size-cells = <1>;
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <24000000>;
118 partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition0@0 {
124 label = "0:SBL1";
125 reg = <0x00000000 0x00040000>;
126 read-only;
127 };
128 partition1@40000 {
129 label = "0:MIBIB";
130 reg = <0x00040000 0x00020000>;
131 read-only;
132 };
133 partition2@60000 {
134 label = "0:QSEE";
135 reg = <0x00060000 0x00060000>;
136 read-only;
137 };
138 partition3@c0000 {
139 label = "0:CDT";
140 reg = <0x000c0000 0x00010000>;
141 read-only;
142 };
143 partition4@d0000 {
144 label = "0:DDRPARAMS";
145 reg = <0x000d0000 0x00010000>;
146 read-only;
147 };
148 partition5@e0000 {
149 label = "0:APPSBLENV";
150 reg = <0x000e0000 0x00010000>;
151 read-only;
152 };
153 partition6@f0000 {
154 label = "0:APPSBL";
155 reg = <0x000f0000 0x00080000>;
156 read-only;
157 };
158 partition7@170000 {
159 label = "0:ART";
160 reg = <0x00170000 0x00010000>;
161 read-only;
162 };
163 };
164 };
165 };
166
167 &blsp1_uart1 {
168 pinctrl-0 = <&serial_0_pins>;
169 pinctrl-names = "default";
170 status = "okay";
171 };
172
173 &cryptobam {
174 status = "okay";
175 };
176
177 &gmac0 {
178 vlan_tag = <1 0x10>;
179 };
180
181 &nand {
182 pinctrl-0 = <&nand_pins>;
183 pinctrl-names = "default";
184 status = "okay";
185
186 nand@0 {
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 partition@0 {
193 label = "rootfs1";
194 reg = <0x00000000 0x04000000>;
195 };
196 partition@40000000 {
197 label = "ubi";
198 reg = <0x04000000 0x04000000>;
199 };
200
201 };
202 };
203 };
204
205 &pcie0 {
206 status = "okay";
207 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
208 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
209
210 bridge@0,0 {
211 reg = <0x00000000 0 0 0 0>;
212 #address-cells = <3>;
213 #size-cells = <2>;
214 ranges;
215
216 wifi2: wifi@1,0 {
217 compatible = "qcom,ath10k";
218 reg = <0x00010000 0 0 0 0>;
219 ieee80211-freq-limit = <5470000 5875000>;
220 qcom,ath10k-calibration-variant = "EnGenius-EAP2200";
221 };
222 };
223 };
224
225 &qpic_bam {
226 status = "okay";
227 };
228
229 &tlmm {
230 nand_pins: nand_pins {
231 pullups {
232 pins = "gpio53", "gpio58", "gpio59";
233 function = "qpic";
234 bias-pull-up;
235 };
236
237 pulldowns {
238 pins = "gpio54", "gpio55", "gpio56",
239 "gpio57", "gpio60", "gpio61",
240 "gpio62", "gpio63", "gpio64",
241 "gpio65", "gpio66", "gpio67",
242 "gpio68", "gpio69";
243 function = "qpic";
244 bias-pull-down;
245 };
246 };
247
248 serial_0_pins: serial_pinmux {
249 mux {
250 pins = "gpio16", "gpio17";
251 function = "blsp_uart0";
252 bias-disable;
253 };
254 };
255
256 spi_0_pins: spi_0_pinmux {
257 pinmux {
258 function = "blsp_spi0";
259 pins = "gpio13", "gpio14", "gpio15";
260 drive-strength = <12>;
261 bias-disable;
262 };
263 pinmux_cs {
264 function = "gpio";
265 pins = "gpio12";
266 drive-strength = <2>;
267 bias-disable;
268 output-high;
269 };
270 };
271 };
272
273 &wifi0 {
274 status = "okay";
275 qcom,ath10k-calibration-variant = "EnGenius-EAP2200";
276 };
277
278 &wifi1 {
279 status = "okay";
280 ieee80211-freq-limit = <5170000 5350000>;
281 qcom,ath10k-calibration-variant = "EnGenius-EAP2200";
282 };