ipq40xx: use existing labels for crypto node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-rt-ac42u.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 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "ASUS RT-AC42U";
11 compatible = "asus,rt-ac42u";
12
13 memory {
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>; /* 256MB */
16 };
17
18 aliases {
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
23 };
24
25 soc {
26 mdio@90000 {
27 status = "okay";
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 tcsr@194b000 {
37 compatible = "qcom,tcsr";
38 reg = <0x194b000 0x100>;
39 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
40 };
41
42 ess_tcsr@1953000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 };
47
48 tcsr@1957000 {
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 reset {
59 label = "reset";
60 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63
64 wps {
65 label = "wps";
66 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
68 };
69 };
70
71 leds {
72 compatible = "gpio-leds";
73
74 led_power: led-0 {
75 color = <LED_COLOR_ID_BLUE>;
76 function = LED_FUNCTION_STATUS;
77 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
78 };
79
80 led-1 {
81 color = <LED_COLOR_ID_BLUE>;
82 function = LED_FUNCTION_WAN;
83 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "90000.mdio-1:04:link";
85 };
86
87 led-2 {
88 color = <LED_COLOR_ID_RED>;
89 function = LED_FUNCTION_WAN;
90 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
91 linux,default-trigger = "none";
92 };
93
94 led-3 {
95 color = <LED_COLOR_ID_BLUE>;
96 function = LED_FUNCTION_WLAN;
97 function-enumerator = <0>;
98 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
99 linux,default-trigger = "phy1tpt";
100 };
101
102 led-4 {
103 color = <LED_COLOR_ID_BLUE>;
104 function = LED_FUNCTION_WLAN;
105 function-enumerator = <1>;
106 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
107 linux,default-trigger = "phy0tpt";
108 };
109
110 led-5 {
111 color = <LED_COLOR_ID_BLUE>;
112 function = LED_FUNCTION_LAN;
113 function-enumerator = <1>;
114 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
115 };
116
117 led-6 {
118 color = <LED_COLOR_ID_BLUE>;
119 function = LED_FUNCTION_LAN;
120 function-enumerator = <2>;
121 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
122 };
123
124 led-7 {
125 color = <LED_COLOR_ID_BLUE>;
126 function = LED_FUNCTION_LAN;
127 function-enumerator = <3>;
128 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
129 };
130
131 led-8 {
132 color = <LED_COLOR_ID_BLUE>;
133 function = LED_FUNCTION_LAN;
134 function-enumerator = <4>;
135 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
136 };
137 };
138 };
139
140 &watchdog {
141 status = "okay";
142 };
143
144 &prng {
145 status = "okay";
146 };
147
148 &crypto {
149 status = "okay";
150 };
151
152 &cryptobam {
153 status = "okay";
154 };
155
156 &blsp_dma {
157 status = "okay";
158 };
159
160 &qpic_bam {
161 status = "okay";
162 };
163
164 &tlmm {
165 serial_0_pins: serial0_pinmux {
166 mux {
167 pins = "gpio16", "gpio17";
168 function = "blsp_uart0";
169 bias-disable;
170 };
171 };
172
173 nand_pins: nand_pins {
174 pullups {
175 pins = "gpio53", "gpio58", "gpio59";
176 function = "qpic";
177 bias-pull-up;
178 };
179
180 pulldowns {
181 pins = "gpio55", "gpio56", "gpio57", "gpio60",
182 "gpio62", "gpio63", "gpio64", "gpio65",
183 "gpio66", "gpio67", "gpio69";
184 function = "qpic";
185 bias-pull-down;
186 };
187 };
188 };
189
190 &blsp1_uart1 {
191 pinctrl-0 = <&serial_0_pins>;
192 pinctrl-names = "default";
193 status = "okay";
194 };
195
196 &nand {
197 pinctrl-0 = <&nand_pins>;
198 pinctrl-names = "default";
199 status = "okay";
200
201 nand@0 {
202 partitions {
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
205 #size-cells = <1>;
206
207 partition@0 {
208 label = "SBL1";
209 reg = <0x00000000 0x00080000>;
210 read-only;
211 };
212 partition@80000 {
213 label = "MIBIB";
214 reg = <0x00080000 0x00080000>;
215 read-only;
216 };
217 partition@100000 {
218 label = "QSEE";
219 reg = <0x00100000 0x00100000>;
220 read-only;
221 };
222 partition@200000 {
223 label = "CDT";
224 reg = <0x00200000 0x00080000>;
225 read-only;
226 };
227 partition@280000 {
228 label = "APPSBL";
229 reg = <0x00280000 0x00140000>;
230 read-only;
231 };
232 partition@3C0000 {
233 label = "APPSBLENV";
234 reg = <0x003C0000 0x00040000>;
235 read-only;
236 };
237 partition@400000 {
238 label = "ubi";
239 reg = <0x00400000 0x07C00000>;
240 };
241 };
242 };
243 };
244
245 &usb3_ss_phy {
246 status = "okay";
247 };
248
249 &usb3_hs_phy {
250 status = "okay";
251 };
252
253 &usb3 {
254 status = "okay";
255 };
256
257 &usb3_dwc {
258 #address-cells = <1>;
259 #size-cells = <0>;
260
261 usb3_port1: port@1 {
262 reg = <1>;
263 #trigger-source-cells = <0>;
264 };
265
266 usb3_port2: port@2 {
267 reg = <2>;
268 #trigger-source-cells = <0>;
269 };
270 };
271
272 &gmac {
273 status = "okay";
274 };
275
276 &switch {
277 status = "okay";
278 };
279
280 &swport1 {
281 status = "okay";
282 };
283
284 &swport2 {
285 status = "okay";
286 };
287
288 &swport3 {
289 status = "okay";
290 };
291
292 &swport4 {
293 status = "okay";
294 };
295
296 &swport5 {
297 status = "okay";
298 };
299
300 &wifi0 {
301 status = "okay";
302 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
303 };
304
305 &pcie0 {
306 status = "okay";
307 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
308 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
309 clkreq-gpio = <&tlmm 39 GPIO_ACTIVE_LOW>;
310
311 bridge@0,0 {
312 reg = <0x00000000 0 0 0 0>;
313 #address-cells = <3>;
314 #size-cells = <2>;
315 ranges;
316
317 wifi2: wifi@1,0 {
318 compatible = "qcom,ath10k";
319 reg = <0x00010000 0 0 0 0>;
320
321 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
322 };
323 };
324 };