ipq40xx: drop ESSEDMA + AR40xx DTS nodes
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-hap-ac3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2021, Robert Marko <robimarko@gmail.com> */
3
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "MikroTik hAP ac3";
11 compatible = "mikrotik,hap-ac3";
12
13 memory {
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>;
16 };
17
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
22 aliases {
23 led-boot = &led_status_blue;
24 led-failsafe = &led_status_red;
25 led-running = &led_status_blue;
26 led-upgrade = &led_status_red;
27 };
28
29 soc {
30 rng@22000 {
31 status = "okay";
32 };
33
34 counter@4a1000 {
35 compatible = "qcom,qca-gcnt";
36 reg = <0x4a1000 0x4>;
37 };
38
39 tcsr@1949000 {
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 };
44
45 tcsr@194b000 {
46 /* select hostmode */
47 compatible = "qcom,tcsr";
48 reg = <0x194b000 0x100>;
49 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
50 status = "okay";
51 };
52
53 ess_tcsr@1953000 {
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 };
58
59 tcsr@1957000 {
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
63 };
64
65 usb2: usb2@60f8800 {
66 status = "okay";
67 };
68
69 crypto@8e3a000 {
70 status = "okay";
71 };
72
73 watchdog@b017000 {
74 status = "okay";
75 };
76 };
77
78 keys {
79 compatible = "gpio-keys";
80
81 reset {
82 label = "reset";
83 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
85 };
86
87 mode {
88 label = "mode";
89 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RFKILL>;
91 };
92
93 led {
94 label = "led";
95 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
97 };
98 };
99
100 leds {
101 compatible = "gpio-leds";
102
103 led_status_blue: status-blue {
104 label = "blue:status";
105 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
106 };
107
108 led_status_red: status-red {
109 label = "red:status";
110 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
111 panic-indicator;
112 };
113
114 led_status_green: status-green {
115 label = "green:status";
116 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
117 };
118
119 wlan {
120 label = "green:wlan";
121 gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
122 };
123
124 ethernet {
125 label = "green:ethernet";
126 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
127 };
128
129 wan {
130 label = "green:wan";
131 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
132 };
133
134 lan1 {
135 label = "green:lan1";
136 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
137 };
138
139 lan2 {
140 label = "green:lan2";
141 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
142 };
143
144 lan3 {
145 label = "green:lan3";
146 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
147 };
148
149 lan4 {
150 label = "green:lan4";
151 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
152 };
153
154 poe {
155 label = "red:poe";
156 gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
157 };
158 };
159 };
160
161 &tlmm {
162 serial_pins: serial_pinmux {
163 mux {
164 pins = "gpio16", "gpio17";
165 function = "blsp_uart0";
166 bias-disable;
167 };
168 };
169
170 spi_0_pins: spi_0_pinmux {
171 pin {
172 function = "blsp_spi0";
173 pins = "gpio13", "gpio14", "gpio15";
174 drive-strength = <12>;
175 bias-disable;
176 };
177
178 pin_cs {
179 function = "gpio";
180 pins = "gpio12";
181 drive-strength = <2>;
182 bias-disable;
183 output-high;
184 };
185 };
186
187 nand_pins: nand_pins {
188 pullups {
189 pins = "gpio53", "gpio58", "gpio59";
190 function = "qpic";
191 bias-pull-up;
192 };
193
194 pulldowns {
195 pins = "gpio55", "gpio56", "gpio57", "gpio60",
196 "gpio62", "gpio63", "gpio64", "gpio65",
197 "gpio66", "gpio67", "gpio68", "gpio69";
198 function = "qpic";
199 bias-pull-down;
200 };
201 };
202
203 enable-usb-power {
204 gpio-hog;
205 gpios = <44 GPIO_ACTIVE_HIGH>;
206 output-high;
207 line-name = "enable USB power";
208 };
209 };
210
211 &blsp_dma {
212 status = "okay";
213 };
214
215 &blsp1_spi1 {
216 status = "okay";
217
218 pinctrl-0 = <&spi_0_pins>;
219 pinctrl-names = "default";
220 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
221
222 flash@0 {
223 reg = <0>;
224 compatible = "jedec,spi-nor";
225 spi-max-frequency = <40000000>;
226
227 partitions {
228 compatible = "fixed-partitions";
229 #address-cells = <1>;
230 #size-cells = <1>;
231
232 partition@0 {
233 label = "Qualcomm";
234 reg = <0x0 0x80000>;
235 read-only;
236 };
237
238 partition@80000 {
239 compatible = "mikrotik,routerboot-partitions";
240 #address-cells = <1>;
241 #size-cells = <1>;
242 label = "RouterBoot";
243 reg = <0x80000 0x80000>;
244
245 hard_config {
246 read-only;
247 size = <0x2000>;
248 };
249
250 dtb_config {
251 read-only;
252 };
253
254 soft_config {
255 };
256 };
257 };
258 };
259 };
260
261 &qpic_bam {
262 status = "okay";
263 };
264
265 &nand {
266 status = "okay";
267
268 pinctrl-0 = <&nand_pins>;
269 pinctrl-names = "default";
270
271 nand@0 {
272 partitions {
273 compatible = "fixed-partitions";
274 #address-cells = <1>;
275 #size-cells = <1>;
276
277 partition@0 {
278 label = "kernel";
279 reg = <0x0 0xa00000>;
280 };
281
282 partition@a00000 {
283 label = "ubi";
284 reg = <0xa00000 0x7600000>;
285 };
286 };
287 };
288 };
289
290 &blsp1_uart1 {
291 status = "okay";
292
293 pinctrl-0 = <&serial_pins>;
294 pinctrl-names = "default";
295 };
296
297 &cryptobam {
298 status = "okay";
299 };
300
301 &usb2_hs_phy {
302 status = "okay";
303 };
304
305 &mdio {
306 status = "okay";
307 };
308
309 &wifi0 {
310 status = "okay";
311
312 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac3";
313 };
314
315 &wifi1 {
316 status = "okay";
317
318 qcom,ath10k-calibration-variant = "MikroTik-hAP-ac3";
319 };