Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-am69-aquila-clover.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3 * Copyright (C) 2025 Toradex
4 *
5 * https://www.toradex.com/computer-on-modules/aquila-arm-family/ti-am69
6 * https://www.toradex.com/products/carrier-board/clover
7 */
8
9 /dts-v1/;
10
11 #include <dt-bindings/pwm/pwm.h>
12 #include "k3-am69-aquila.dtsi"
13
14 / {
15 model = "Toradex Aquila AM69 on Clover Board";
16 compatible = "toradex,aquila-am69-clover",
17 "toradex,aquila-am69",
18 "ti,j784s4";
19
20 aliases {
21 eeprom1 = &carrier_eeprom;
22 };
23
24 reg_3v3_dp: regulator-3v3-dp {
25 compatible = "regulator-fixed";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinctrl_gpio_21_dp>;
28 /* Aquila GPIO_21_DP (AQUILA B57) */
29 gpio = <&main_gpio0 21 GPIO_ACTIVE_HIGH>;
30 enable-active-high;
31 regulator-max-microvolt = <3300000>;
32 regulator-min-microvolt = <3300000>;
33 regulator-name = "DP_3V3";
34 startup-delay-us = <10000>;
35 };
36
37 /* Aquila DP_1 */
38 dp-connector {
39 compatible = "dp-connector";
40 dp-pwr-supply = <&reg_3v3_dp>;
41 label = "Display Port";
42 type = "full-size";
43
44 port {
45 dp_connector_in: endpoint {
46 remote-endpoint = <&dp0_out>;
47 };
48 };
49 };
50 };
51
52 /* On-module ETH_1 MDIO */
53 &davinci_mdio {
54 status = "okay";
55 };
56
57 &dp0_ports {
58 port@4 {
59 reg = <4>;
60 dp0_out: endpoint {
61 remote-endpoint = <&dp_connector_in>;
62 };
63 };
64 };
65
66 &dss {
67 status = "okay";
68 };
69
70 &main0_thermal {
71 cooling-maps {
72 map0 {
73 cooling-device = <&fan 1 1>;
74 trip = <&main0_alert0>;
75 };
76
77 map1 {
78 cooling-device = <&fan 2 2>;
79 trip = <&main0_alert1>;
80 };
81 };
82 };
83
84 &main1_thermal {
85 cooling-maps {
86 map0 {
87 cooling-device = <&fan 1 1>;
88 trip = <&main1_alert0>;
89 };
90
91 map1 {
92 cooling-device = <&fan 2 2>;
93 trip = <&main1_alert1>;
94 };
95 };
96 };
97
98 &main2_thermal {
99 cooling-maps {
100 map0 {
101 cooling-device = <&fan 1 1>;
102 trip = <&main2_alert0>;
103 };
104
105 map1 {
106 cooling-device = <&fan 2 2>;
107 trip = <&main2_alert1>;
108 };
109 };
110 };
111
112 &main3_thermal {
113 cooling-maps {
114 map0 {
115 cooling-device = <&fan 1 1>;
116 trip = <&main3_alert0>;
117 };
118
119 map1 {
120 cooling-device = <&fan 2 2>;
121 trip = <&main3_alert1>;
122 };
123 };
124 };
125
126 &main4_thermal {
127 cooling-maps {
128 map0 {
129 cooling-device = <&fan 1 1>;
130 trip = <&main4_alert0>;
131 };
132
133 map1 {
134 cooling-device = <&fan 2 2>;
135 trip = <&main4_alert1>;
136 };
137 };
138 };
139
140 /* Aquila ETH_2 */
141 &main_cpsw0 {
142 status = "okay";
143 };
144
145 /* Aquila ETH_2 SGMII PHY */
146 &main_cpsw0_port8 {
147 phy-handle = <&cpsw0_port8_phy4>;
148 status = "okay";
149 };
150
151 /* Aquila ETH_2_XGMII_MDIO */
152 &main_cpsw0_mdio {
153 status = "okay";
154
155 cpsw0_port8_phy4: ethernet-phy@4 {
156 reg = <4>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&pinctrl_eth2_int>;
159 interrupt-parent = <&main_gpio0>;
160 interrupts = <44 IRQ_TYPE_EDGE_FALLING>;
161 };
162 };
163
164 /* Aquila PWM_1 */
165 &main_ehrpwm0 {
166 status = "okay";
167 };
168
169 /* Aquila PWM_2 */
170 &main_ehrpwm1 {
171 status = "okay";
172 };
173
174 &main_gpio0 {
175 pinctrl-names = "default";
176 pinctrl-0 = <&pinctrl_gpio_01>, /* Aquila GPIO_01 */
177 <&pinctrl_gpio_02>, /* Aquila GPIO_02 */
178 <&pinctrl_gpio_03>; /* Aquila GPIO_03 */
179 };
180
181 /* Aquila I2C_6 */
182 &main_i2c5 {
183 status = "okay";
184 };
185
186 /* Aquila CAN_1 */
187 &main_mcan10 {
188 status = "okay";
189 };
190
191 /* Aquila CAN_3 */
192 &main_mcan13 {
193 status = "okay";
194 };
195
196 /* Aquila SD_1 */
197 &main_sdhci1 {
198 status = "okay";
199 };
200
201 /* Aquila SPI_2 */
202 &main_spi0 {
203 status = "okay";
204 };
205
206 /* Aquila SPI_1 */
207 &main_spi2 {
208 pinctrl-0 = <&pinctrl_main_spi2>,
209 <&pinctrl_main_spi2_cs0>,
210 <&pinctrl_gpio_05>;
211 cs-gpios = <&main_gpio0 39 GPIO_ACTIVE_LOW>,
212 <&wkup_gpio0 29 GPIO_ACTIVE_LOW>;
213 status = "okay";
214
215 tpm@1 {
216 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
217 reg = <1>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_gpio_06>;
220 interrupt-parent = <&wkup_gpio0>;
221 interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
222 spi-max-frequency = <18500000>;
223 };
224 };
225
226 /* Aquila UART_1 */
227 &main_uart4 {
228 status = "okay";
229 };
230
231 /* Aquila UART_3, used as the Linux console */
232 &main_uart8 {
233 status = "okay";
234 };
235
236 &mcu_cpsw {
237 status = "okay";
238 };
239
240 /* On-module ETH_1 RGMII */
241 &mcu_cpsw_port1 {
242 status = "okay";
243 };
244
245 /* Aquila I2C_1 */
246 &mcu_i2c0 {
247 clock-frequency = <100000>;
248 status = "okay";
249
250 fan_controller: fan@18 {
251 compatible = "ti,amc6821";
252 reg = <0x18>;
253 #pwm-cells = <2>;
254
255 fan: fan {
256 cooling-levels = <102 179 255>;
257 #cooling-cells = <2>;
258 pwms = <&fan_controller 40000 PWM_POLARITY_INVERTED>;
259 };
260 };
261
262 temperature-sensor@4f {
263 compatible = "ti,tmp1075";
264 reg = <0x4f>;
265 };
266
267 /* USB-C OTG (TCPC USB PD PHY) */
268 tcpc@52 {
269 compatible = "nxp,ptn5110", "tcpci";
270 reg = <0x52>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&pinctrl_usb1_int>;
273 interrupt-parent = <&main_gpio0>;
274 interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
275
276 connector {
277 compatible = "usb-c-connector";
278 data-role = "dual";
279 label = "USB-C OTG";
280 power-role = "dual";
281 try-power-role = "sink";
282 self-powered;
283 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
284 sink-pdos = <PDO_FIXED(5000, 0, PDO_FIXED_USB_COMM)>;
285 op-sink-microwatt = <0>;
286
287 ports {
288 #address-cells = <1>;
289 #size-cells = <0>;
290
291 port@0 {
292 reg = <0>;
293
294 usb_1_con_hs: endpoint {
295 remote-endpoint = <&usb0_hs>;
296 };
297 };
298
299 port@1 {
300 reg = <1>;
301
302 usb_1_con_ss: endpoint {
303 remote-endpoint = <&usb0_ss_mux>;
304 };
305 };
306 };
307 };
308 };
309
310 carrier_eeprom: eeprom@57 {
311 compatible = "st,24c02", "atmel,24c02";
312 reg = <0x57>;
313 pagesize = <16>;
314 };
315 };
316
317 /* Aquila I2C_2 */
318 &mcu_i2c1 {
319 status = "okay";
320 };
321
322 /* Aquila CAN_2 */
323 &mcu_mcan0 {
324 status = "okay";
325 };
326
327 /* Aquila CAN_4 */
328 &mcu_mcan1 {
329 status = "okay";
330 };
331
332 /* Aquila UART_4 */
333 &mcu_uart0 {
334 status = "okay";
335 };
336
337 &mhdp {
338 status = "okay";
339 };
340
341 /* Aquila QSPI_1 */
342 &ospi0 {
343 pinctrl-names = "default";
344 pinctrl-0 = <&pinctrl_mcu_ospi0_4bit>, <&pinctrl_mcu_ospi0_cs0>;
345 status = "okay";
346
347 flash@0 {
348 compatible = "jedec,spi-nor";
349 reg = <0>;
350 spi-max-frequency = <66000000>;
351 spi-rx-bus-width = <4>;
352 spi-tx-bus-width = <4>;
353 cdns,read-delay = <0>;
354 cdns,tchsh-ns = <3>;
355 cdns,tsd2d-ns = <10>;
356 cdns,tshsl-ns = <30>;
357 cdns,tslch-ns = <8>;
358 };
359 };
360
361 /* Aquila PCIE_1 */
362 &pcie0_rc {
363 status = "okay";
364 };
365
366 /* Aquila PCIE_2 */
367 &pcie1_rc {
368 status = "okay";
369 };
370
371 &serdes2 {
372 status = "okay";
373 };
374
375 &serdes4 {
376 status = "okay";
377 };
378
379 &serdes_wiz2 {
380 status = "okay";
381 };
382
383 &serdes_wiz4 {
384 status = "okay";
385 };
386
387 /* Aquila ADC_[1-4] */
388 &tscadc0 {
389 status = "okay";
390 };
391
392 &usbss0 {
393 status = "okay";
394 };
395
396 &usb0ss_mux {
397 status = "okay";
398
399 port {
400 usb0_ss_mux: endpoint {
401 remote-endpoint = <&usb_1_con_ss>;
402 };
403 };
404 };
405
406 &usb0 {
407 status = "okay";
408
409 port {
410 usb0_hs: endpoint {
411 remote-endpoint = <&usb_1_con_hs>;
412 };
413 };
414 };
415
416 &wkup0_thermal {
417 cooling-maps {
418 map0 {
419 cooling-device = <&fan 1 1>;
420 trip = <&wkup0_alert0>;
421 };
422
423 map1 {
424 cooling-device = <&fan 2 2>;
425 trip = <&wkup0_alert1>;
426 };
427 };
428 };
429
430 &wkup1_thermal {
431 cooling-maps {
432 map0 {
433 cooling-device = <&fan 1 1>;
434 trip = <&wkup1_alert0>;
435 };
436
437 map1 {
438 cooling-device = <&fan 2 2>;
439 trip = <&wkup1_alert1>;
440 };
441 };
442 };
443
444 &wkup_gpio0 {
445 pinctrl-names = "default";
446 pinctrl-0 = <&pinctrl_gpio_04>; /* Aquila GPIO_04 */
447 };
448
449 /* Aquila UART_2 */
450 &wkup_uart0 {
451 status = "okay";
452 };