Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-am62a7-sk.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2 /*
3 * AM62A SK: https://www.ti.com/lit/zip/sprr459
4 *
5 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8 /dts-v1/;
9
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/net/ti-dp83867.h>
13 #include "k3-am62a7.dtsi"
14
15 / {
16 compatible = "ti,am62a7-sk", "ti,am62a7";
17 model = "Texas Instruments AM62A7 SK";
18
19 aliases {
20 serial0 = &wkup_uart0;
21 serial1 = &mcu_uart0;
22 serial2 = &main_uart0;
23 serial3 = &main_uart1;
24 mmc0 = &sdhci0;
25 mmc1 = &sdhci1;
26 rtc0 = &wkup_rtc0;
27 rtc1 = &tps659312;
28 };
29
30 chosen {
31 stdout-path = "serial2:115200n8";
32 };
33
34 memory@80000000 {
35 device_type = "memory";
36 /* 4G RAM */
37 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
38 <0x00000008 0x80000000 0x00000000 0x80000000>;
39 bootph-all;
40 };
41
42 reserved_memory: reserved-memory {
43 #address-cells = <2>;
44 #size-cells = <2>;
45 ranges;
46
47 /* global cma region */
48 linux,cma {
49 compatible = "shared-dma-pool";
50 reusable;
51 size = <0x00 0x24000000>;
52 alloc-ranges = <0x00 0xc0000000 0x00 0x24000000>;
53 linux,cma-default;
54 };
55
56 wkup_r5fss0_core0_dma_memory_region: memory@9c800000 {
57 compatible = "shared-dma-pool";
58 reg = <0x00 0x9c800000 0x00 0x100000>;
59 no-map;
60 };
61
62 wkup_r5fss0_core0_memory_region: memory@9c900000 {
63 compatible = "shared-dma-pool";
64 reg = <0x00 0x9c900000 0x00 0xf00000>;
65 no-map;
66 };
67
68 secure_tfa_ddr: tfa@9e780000 {
69 reg = <0x00 0x9e780000 0x00 0x80000>;
70 alignment = <0x1000>;
71 no-map;
72 };
73
74 secure_ddr: optee@9e800000 {
75 reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
76 alignment = <0x1000>;
77 no-map;
78 };
79 };
80
81 opp-table {
82 /* Requires VDD_CORE at 0v85 */
83 opp-1400000000 {
84 opp-hz = /bits/ 64 <1400000000>;
85 opp-supported-hw = <0x01 0x0004>;
86 clock-latency-ns = <6000000>;
87 };
88 };
89
90 vmain_pd: regulator-0 {
91 /* TPS25750 PD CONTROLLER OUTPUT */
92 compatible = "regulator-fixed";
93 regulator-name = "vmain_pd";
94 regulator-min-microvolt = <5000000>;
95 regulator-max-microvolt = <5000000>;
96 regulator-always-on;
97 regulator-boot-on;
98 };
99
100 vcc_5v0: regulator-1 {
101 /* Output of TPS63070 */
102 compatible = "regulator-fixed";
103 regulator-name = "vcc_5v0";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106 vin-supply = <&vmain_pd>;
107 regulator-always-on;
108 regulator-boot-on;
109 };
110
111 vcc_3v3_main: regulator-2 {
112 /* output of LM5141-Q1 */
113 compatible = "regulator-fixed";
114 regulator-name = "vcc_3v3_main";
115 regulator-min-microvolt = <3300000>;
116 regulator-max-microvolt = <3300000>;
117 vin-supply = <&vmain_pd>;
118 regulator-always-on;
119 regulator-boot-on;
120 };
121
122 vdd_mmc1: regulator-3 {
123 /* TPS22918DBVR */
124 compatible = "regulator-fixed";
125 regulator-name = "vdd_mmc1";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 regulator-boot-on;
129 enable-active-high;
130 gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
131 bootph-all;
132 };
133
134 vcc_3v3_sys: regulator-4 {
135 /* output of TPS222965DSGT */
136 compatible = "regulator-fixed";
137 regulator-name = "vcc_3v3_sys";
138 regulator-min-microvolt = <3300000>;
139 regulator-max-microvolt = <3300000>;
140 vin-supply = <&vcc_3v3_main>;
141 regulator-always-on;
142 regulator-boot-on;
143 };
144
145 vddshv_sdio: regulator-5 {
146 compatible = "regulator-gpio";
147 regulator-name = "vddshv_sdio";
148 pinctrl-names = "default";
149 pinctrl-0 = <&vddshv_sdio_pins_default>;
150 regulator-min-microvolt = <1800000>;
151 regulator-max-microvolt = <3300000>;
152 regulator-boot-on;
153 vin-supply = <&ldo1>;
154 gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
155 states = <1800000 0x0>,
156 <3300000 0x1>;
157 };
158
159 leds {
160 compatible = "gpio-leds";
161 pinctrl-names = "default";
162 pinctrl-0 = <&usr_led_pins_default>;
163
164 led-0 {
165 label = "am62a-sk:green:heartbeat";
166 gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
167 linux,default-trigger = "heartbeat";
168 function = LED_FUNCTION_HEARTBEAT;
169 default-state = "off";
170 };
171 };
172
173 tlv320_mclk: clk-0 {
174 #clock-cells = <0>;
175 compatible = "fixed-clock";
176 clock-frequency = <12288000>;
177 };
178
179 hdmi0: connector-hdmi {
180 compatible = "hdmi-connector";
181 label = "hdmi";
182 type = "a";
183
184 port {
185 hdmi_connector_in: endpoint {
186 remote-endpoint = <&sii9022_out>;
187 };
188 };
189 };
190
191 codec_audio: sound {
192 compatible = "simple-audio-card";
193 simple-audio-card,name = "AM62Ax-SKEVM";
194 simple-audio-card,widgets =
195 "Headphone", "Headphone Jack",
196 "Line", "Line In",
197 "Microphone", "Microphone Jack";
198 simple-audio-card,routing =
199 "Headphone Jack", "HPLOUT",
200 "Headphone Jack", "HPROUT",
201 "LINE1L", "Line In",
202 "LINE1R", "Line In",
203 "MIC3R", "Microphone Jack",
204 "Microphone Jack", "Mic Bias";
205 simple-audio-card,format = "dsp_b";
206 simple-audio-card,bitclock-master = <&sound_master>;
207 simple-audio-card,frame-master = <&sound_master>;
208 simple-audio-card,bitclock-inversion;
209
210 simple-audio-card,cpu {
211 sound-dai = <&mcasp1>;
212 };
213
214 sound_master: simple-audio-card,codec {
215 sound-dai = <&tlv320aic3106>;
216 clocks = <&tlv320_mclk>;
217 };
218 };
219 };
220
221 &mcu_pmx0 {
222 wkup_uart0_pins_default: wkup-uart0-default-pins {
223 pinctrl-single,pins = <
224 AM62AX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (C9) WKUP_UART0_RXD */
225 AM62AX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (E9) WKUP_UART0_TXD */
226 AM62AX_MCU_IOPAD(0x002c, PIN_INPUT, 0) /* (C10) WKUP_UART0_CTSn */
227 AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
228 >;
229 };
230 };
231
232 /* WKUP UART0 is used for DM firmware logs */
233 &wkup_uart0 {
234 pinctrl-names = "default";
235 pinctrl-0 = <&wkup_uart0_pins_default>;
236 wakeup-source = <&system_io_ddr>,
237 <&system_deep_sleep>,
238 <&system_mcu_only>,
239 <&system_standby>;
240 status = "reserved";
241 };
242
243 &main_pmx0 {
244 main_dss0_pins_default: main-dss0-default-pins {
245 pinctrl-single,pins = <
246 AM62AX_IOPAD(0x100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
247 AM62AX_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
248 AM62AX_IOPAD(0x104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
249 AM62AX_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
250 AM62AX_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
251 AM62AX_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
252 AM62AX_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
253 AM62AX_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
254 AM62AX_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
255 AM62AX_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
256 AM62AX_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
257 AM62AX_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
258 AM62AX_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
259 AM62AX_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
260 AM62AX_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
261 AM62AX_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
262 AM62AX_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
263 AM62AX_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
264 AM62AX_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
265 AM62AX_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
266 AM62AX_IOPAD(0x05c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
267 AM62AX_IOPAD(0x060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
268 AM62AX_IOPAD(0x064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
269 AM62AX_IOPAD(0x068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
270 AM62AX_IOPAD(0x06c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
271 AM62AX_IOPAD(0x070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
272 AM62AX_IOPAD(0x074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
273 AM62AX_IOPAD(0x078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
274 >;
275 };
276
277 main_uart0_pins_default: main-uart0-default-pins {
278 pinctrl-single,pins = <
279 AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (E14) UART0_RXD */
280 AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */
281 >;
282 bootph-all;
283 };
284
285 main_uart1_pins_default: main-uart1-default-pins {
286 pinctrl-single,pins = <
287 AM62AX_IOPAD(0x01ac, PIN_INPUT, 2) /* (B21) MCASP0_AFSR.UART1_RXD */
288 AM62AX_IOPAD(0x01b0, PIN_OUTPUT, 2) /* (A21) MCASP0_ACLKR.UART1_TXD */
289 AM62AX_IOPAD(0x0194, PIN_INPUT, 2) /* (C19) MCASP0_AXR3.UART1_CTSn */
290 AM62AX_IOPAD(0x0198, PIN_OUTPUT, 2) /* (B19) MCASP0_AXR2.UART1_RTSn */
291 >;
292 };
293
294 main_i2c0_pins_default: main-i2c0-default-pins {
295 pinctrl-single,pins = <
296 AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
297 AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
298 >;
299 };
300
301 main_i2c1_pins_default: main-i2c1-default-pins {
302 pinctrl-single,pins = <
303 AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
304 AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
305 >;
306 bootph-all;
307 };
308
309 main_i2c2_pins_default: main-i2c2-default-pins {
310 pinctrl-single,pins = <
311 AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
312 AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
313 >;
314 };
315
316 main_mmc0_pins_default: main-mmc0-default-pins {
317 pinctrl-single,pins = <
318 AM62AX_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
319 AM62AX_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLKLB */
320 AM62AX_IOPAD(0x21c, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
321 AM62AX_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
322 AM62AX_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */
323 AM62AX_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */
324 AM62AX_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */
325 AM62AX_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */
326 AM62AX_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */
327 AM62AX_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
328 AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
329 >;
330 bootph-all;
331 };
332
333 main_mmc1_pins_default: main-mmc1-default-pins {
334 pinctrl-single,pins = <
335 AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
336 AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
337 AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
338 AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
339 AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
340 AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
341 AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
342 >;
343 bootph-all;
344 };
345
346 usr_led_pins_default: usr-led-default-pins {
347 pinctrl-single,pins = <
348 AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
349 >;
350 };
351
352 main_usb1_pins_default: main-usb1-default-pins {
353 pinctrl-single,pins = <
354 AM62AX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
355 >;
356 };
357
358 main_mdio1_pins_default: main-mdio1-default-pins {
359 pinctrl-single,pins = <
360 AM62AX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */
361 AM62AX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */
362 >;
363 bootph-all;
364 };
365
366 main_rgmii1_pins_default: main-rgmii1-default-pins {
367 pinctrl-single,pins = <
368 AM62AX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */
369 AM62AX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */
370 AM62AX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */
371 AM62AX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */
372 AM62AX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */
373 AM62AX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */
374 AM62AX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */
375 AM62AX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */
376 AM62AX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */
377 AM62AX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */
378 AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */
379 AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */
380 >;
381 bootph-all;
382 };
383
384 main_mcasp1_pins_default: main-mcasp1-default-pins {
385 pinctrl-single,pins = <
386 AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */
387 AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */
388 AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */
389 AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
390 >;
391 };
392
393 main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
394 pinctrl-single,pins = <
395 AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
396 >;
397 };
398
399 vddshv_sdio_pins_default: vddshv-sdio-default-pins {
400 pinctrl-single,pins = <
401 AM62AX_IOPAD(0x07c, PIN_OUTPUT, 7) /* (N22) GPMC0_CLK.GPIO0_31 */
402 >;
403 };
404
405 main_ecap0_pins_default: main-ecap0-default-pins {
406 pinctrl-single,pins = <
407 AM62AX_IOPAD(0x01b8, PIN_OUTPUT, 3) /* (C16) SPI0_CS1.ECAP0_IN_APWM_OUT */
408 >;
409 };
410
411 main_ecap2_pins_default: main-ecap2-default-pins {
412 pinctrl-single,pins = <
413 AM62AX_IOPAD(0x01a4, PIN_OUTPUT, 2) /* (A19) MCASP0_ACLKX.ECAP2_IN_APWM_OUT */
414 >;
415 };
416
417 main_epwm1_pins_default: main-epwm1-default-pins {
418 pinctrl-single,pins = <
419 AM62AX_IOPAD(0x019c, PIN_OUTPUT, 6) /* (B18) MCASP0_AXR1.EHRPWM1_A */
420 AM62AX_IOPAD(0x01a0, PIN_OUTPUT, 6) /* (B20) MCASP0_AXR0.EHRPWM1_B */
421 >;
422 };
423 };
424
425 &mcu_pmx0 {
426 status = "okay";
427
428 pmic_irq_pins_default: pmic-irq-default-pins {
429 pinctrl-single,pins = <
430 AM62AX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (E11) MCU_GPIO0_0 */
431 >;
432 };
433
434 mcu_mcan0_tx_pins_default: mcu-mcan0-tx-default-pins {
435 pinctrl-single,pins = <
436 AM62AX_MCU_IOPAD(0x034, PIN_OUTPUT, 0) /* (D6) MCU_MCAN0_TX */
437 >;
438 };
439
440 mcu_mcan0_rx_pins_default: mcu-mcan0-rx-default-pins {
441 pinctrl-single,pins = <
442 AM62AX_MCU_IOPAD(0x038, PIN_INPUT, 0) /* (B3) MCU_MCAN0_RX */
443 >;
444 };
445
446 mcu_mcan0_rx_pins_wakeup: mcu-mcan0-rx-wakeup-pins {
447 pinctrl-single,pins = <
448 AM62AX_MCU_IOPAD(0x038, PIN_INPUT | PIN_WKUP_EN, 0) /* (B3) MCU_MCAN0_RX */
449 >;
450 };
451
452 mcu_mcan1_tx_pins_default: mcu-mcan1-tx-default-pins {
453 pinctrl-single,pins = <
454 AM62AX_MCU_IOPAD(0x03c, PIN_OUTPUT, 0) /* (E5) MCU_MCAN1_TX */
455 >;
456 };
457
458 mcu_mcan1_rx_pins_default: mcu-mcan1-rx-default-pins {
459 pinctrl-single,pins = <
460 AM62AX_MCU_IOPAD(0x040, PIN_INPUT, 0) /* (D4) MCU_MCAN1_RX */
461 >;
462 };
463
464 mcu_mcan1_rx_pins_wakeup: mcu-mcan1-rx-wakeup-pins {
465 pinctrl-single,pins = <
466 AM62AX_MCU_IOPAD(0x040, PIN_INPUT | PIN_WKUP_EN, 0) /* (D4) MCU_MCAN1_RX */
467 >;
468 };
469 };
470
471 &mcu_gpio0 {
472 status = "okay";
473 };
474
475 &main_i2c0 {
476 status = "okay";
477 pinctrl-names = "default";
478 pinctrl-0 = <&main_i2c0_pins_default>;
479 clock-frequency = <400000>;
480
481 typec_pd0: usb-power-controller@3f {
482 compatible = "ti,tps6598x";
483 reg = <0x3f>;
484
485 connector {
486 compatible = "usb-c-connector";
487 label = "USB-C";
488 self-powered;
489 data-role = "dual";
490 power-role = "sink";
491 port {
492 usb_con_hs: endpoint {
493 remote-endpoint = <&usb0_hs_ep>;
494 };
495 };
496 };
497 };
498
499 tps659312: pmic@48 {
500 compatible = "ti,tps6593-q1";
501 reg = <0x48>;
502 ti,primary-pmic;
503 system-power-controller;
504
505 gpio-controller;
506 #gpio-cells = <2>;
507
508 pinctrl-names = "default";
509 pinctrl-0 = <&pmic_irq_pins_default>;
510 interrupt-parent = <&mcu_gpio0>;
511 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
512
513 buck123-supply = <&vcc_3v3_sys>;
514 buck4-supply = <&vcc_3v3_sys>;
515 buck5-supply = <&vcc_3v3_sys>;
516 ldo1-supply = <&vcc_3v3_sys>;
517 ldo2-supply = <&vcc_3v3_sys>;
518 ldo3-supply = <&buck5>;
519 ldo4-supply = <&vcc_3v3_sys>;
520
521 regulators {
522 buck123: buck123 {
523 regulator-name = "vcc_core";
524 regulator-min-microvolt = <715000>;
525 regulator-max-microvolt = <895000>;
526 regulator-boot-on;
527 regulator-always-on;
528 };
529
530 buck4: buck4 {
531 regulator-name = "vcc_1v1";
532 regulator-min-microvolt = <1100000>;
533 regulator-max-microvolt = <1100000>;
534 regulator-boot-on;
535 regulator-always-on;
536 };
537
538 buck5: buck5 {
539 regulator-name = "vcc_1v8_sys";
540 regulator-min-microvolt = <1800000>;
541 regulator-max-microvolt = <1800000>;
542 regulator-boot-on;
543 regulator-always-on;
544 };
545
546 ldo1: ldo1 {
547 regulator-name = "vddshv5_sdio";
548 regulator-min-microvolt = <3300000>;
549 regulator-max-microvolt = <3300000>;
550 regulator-boot-on;
551 regulator-always-on;
552 };
553
554 ldo2: ldo2 {
555 regulator-name = "vpp_1v8";
556 regulator-min-microvolt = <1800000>;
557 regulator-max-microvolt = <1800000>;
558 regulator-boot-on;
559 regulator-always-on;
560 };
561
562 ldo3: ldo3 {
563 regulator-name = "vcc_0v85";
564 regulator-min-microvolt = <850000>;
565 regulator-max-microvolt = <850000>;
566 regulator-boot-on;
567 regulator-always-on;
568 };
569
570 ldo4: ldo4 {
571 regulator-name = "vdda_1v8";
572 regulator-min-microvolt = <1800000>;
573 regulator-max-microvolt = <1800000>;
574 regulator-boot-on;
575 regulator-always-on;
576 };
577 };
578 };
579 };
580
581 &main_i2c1 {
582 status = "okay";
583 pinctrl-names = "default";
584 pinctrl-0 = <&main_i2c1_pins_default>;
585 clock-frequency = <100000>;
586
587 exp1: gpio@22 {
588 compatible = "ti,tca6424";
589 reg = <0x22>;
590 gpio-controller;
591 #gpio-cells = <2>;
592 interrupt-parent = <&main_gpio1>;
593 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
594 interrupt-controller;
595 #interrupt-cells = <2>;
596 pinctrl-names = "default";
597 pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
598 bootph-all;
599
600 gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
601 "BT_EN_SOC", "MMC1_SD_EN",
602 "VPP_EN", "EXP_PS_3V3_En",
603 "EXP_PS_5V0_En", "EXP_HAT_DETECT",
604 "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
605 "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
606 "GPIO_HDMI_RSTn", "CSI_GPIO0",
607 "CSI_GPIO1", "WLAN_ALERTn",
608 "HDMI_INTn", "TEST_GPIO2",
609 "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
610 "MCASP1_FET_SEL", "UART1_FET_SEL",
611 "PD_I2C_IRQ", "IO_EXP_TEST_LED";
612 };
613
614 tlv320aic3106: audio-codec@1b {
615 #sound-dai-cells = <0>;
616 compatible = "ti,tlv320aic3106";
617 reg = <0x1b>;
618 ai3x-micbias-vg = <1>; /* 2.0V */
619
620 /* Regulators */
621 AVDD-supply = <&vcc_3v3_sys>;
622 IOVDD-supply = <&vcc_3v3_sys>;
623 DRVDD-supply = <&vcc_3v3_sys>;
624 DVDD-supply = <&buck5>;
625 };
626
627 exp2: gpio@23 {
628 compatible = "ti,tca6424";
629 reg = <0x23>;
630 gpio-controller;
631 #gpio-cells = <2>;
632
633 gpio-line-names = "", "",
634 "", "",
635 "", "",
636 "", "",
637 "WL_LT_EN", "CSI_RSTz",
638 "", "",
639 "", "",
640 "", "",
641 "SPI0_FET_SEL", "SPI0_FET_OE",
642 "RGMII2_BRD_CONN_DET", "CSI_SEL2",
643 "CSI_EN", "AUTO_100M_1000M_CONFIG",
644 "CSI_VLDO_SEL", "SoC_WLAN_SDIO_RST";
645 };
646
647 sii9022: bridge-hdmi@3b {
648 compatible = "sil,sii9022";
649 reg = <0x3b>;
650 interrupt-parent = <&exp1>;
651 interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
652 #sound-dai-cells = <0>;
653 sil,i2s-data-lanes = < 0 >;
654
655 ports {
656 #address-cells = <1>;
657 #size-cells = <0>;
658
659 port@0 {
660 reg = <0>;
661
662 sii9022_in: endpoint {
663 remote-endpoint = <&dpi1_out>;
664 };
665 };
666
667 port@1 {
668 reg = <1>;
669
670 sii9022_out: endpoint {
671 remote-endpoint = <&hdmi_connector_in>;
672 };
673 };
674 };
675 };
676 };
677
678 &main_i2c2 {
679 status = "okay";
680 pinctrl-names = "default";
681 pinctrl-0 = <&main_i2c2_pins_default>;
682 clock-frequency = <400000>;
683 };
684
685 &sdhci0 {
686 /* eMMC */
687 status = "okay";
688 non-removable;
689 pinctrl-names = "default";
690 pinctrl-0 = <&main_mmc0_pins_default>;
691 bootph-all;
692 };
693
694 &sdhci1 {
695 /* SD/MMC */
696 status = "okay";
697 vmmc-supply = <&vdd_mmc1>;
698 vqmmc-supply = <&vddshv_sdio>;
699 pinctrl-names = "default";
700 pinctrl-0 = <&main_mmc1_pins_default>;
701 disable-wp;
702 bootph-all;
703 };
704
705 &main_gpio0 {
706 status = "okay";
707 bootph-all;
708 };
709
710 &main_gpio1 {
711 status = "okay";
712 };
713
714 &main_gpio_intr {
715 status = "okay";
716 };
717
718 &main_uart0 {
719 status = "okay";
720 pinctrl-names = "default";
721 pinctrl-0 = <&main_uart0_pins_default>;
722 bootph-all;
723 };
724
725 /* Main UART1 is used for TIFS firmware logs */
726 &main_uart1 {
727 pinctrl-names = "default";
728 pinctrl-0 = <&main_uart1_pins_default>;
729 status = "reserved";
730 };
731
732 &usbss0 {
733 status = "okay";
734 ti,vbus-divider;
735 };
736
737 &usb0 {
738 bootph-all;
739 usb-role-switch;
740
741 port {
742 usb0_hs_ep: endpoint {
743 remote-endpoint = <&usb_con_hs>;
744 };
745 };
746 };
747
748 &usb0_phy_ctrl {
749 bootph-all;
750 };
751
752 &usbss1 {
753 status = "okay";
754 };
755
756 &usb1 {
757 dr_mode = "host";
758 pinctrl-names = "default";
759 pinctrl-0 = <&main_usb1_pins_default>;
760 };
761
762 &cpsw3g {
763 status = "okay";
764 pinctrl-names = "default";
765 pinctrl-0 = <&main_rgmii1_pins_default>;
766 };
767
768 &phy_gmii_sel {
769 bootph-all;
770 };
771
772 &cpsw_port1 {
773 status = "okay";
774 phy-mode = "rgmii-id";
775 phy-handle = <&cpsw3g_phy0>;
776 bootph-all;
777 };
778
779 &cpsw_port2 {
780 status = "disabled";
781 };
782
783 &cpsw3g_mdio {
784 status = "okay";
785 pinctrl-names = "default";
786 pinctrl-0 = <&main_mdio1_pins_default>;
787
788 cpsw3g_phy0: ethernet-phy@0 {
789 reg = <0>;
790 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
791 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
792 ti,min-output-impedance;
793 bootph-all;
794 };
795 };
796
797 &mcasp1 {
798 status = "okay";
799 #sound-dai-cells = <0>;
800
801 pinctrl-names = "default";
802 pinctrl-0 = <&main_mcasp1_pins_default>;
803
804 op-mode = <0>; /* MCASP_IIS_MODE */
805 tdm-slots = <2>;
806
807 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
808 1 0 2 0
809 0 0 0 0
810 0 0 0 0
811 0 0 0 0
812 >;
813 };
814
815 &dss {
816 status = "okay";
817 pinctrl-names = "default";
818 pinctrl-0 = <&main_dss0_pins_default>;
819 };
820
821 &dss_ports {
822 /* VP2: DPI Output */
823 port@1 {
824 reg = <1>;
825
826 dpi1_out: endpoint {
827 remote-endpoint = <&sii9022_in>;
828 };
829 };
830 };
831
832 &ecap0 {
833 /* P26 of J3 */
834 pinctrl-names = "default";
835 pinctrl-0 = <&main_ecap0_pins_default>;
836 status = "okay";
837 };
838
839 &ecap2 {
840 /* P11 of J3 */
841 pinctrl-names = "default";
842 pinctrl-0 = <&main_ecap2_pins_default>;
843 status = "okay";
844 };
845
846 &epwm1 {
847 /* P36/P33 of J3 */
848 pinctrl-names = "default";
849 pinctrl-0 = <&main_epwm1_pins_default>;
850 status = "okay";
851 };
852
853 &fss {
854 status = "okay";
855 };
856
857 &ospi0 {
858 pinctrl-names = "default";
859 pinctrl-0 = <&ospi0_pins_default>;
860
861 flash@0 {
862 compatible = "spi-nand";
863 reg = <0>;
864 spi-tx-bus-width = <8>;
865 spi-rx-bus-width = <8>;
866 spi-max-frequency = <25000000>;
867 cdns,tshsl-ns = <60>;
868 cdns,tsd2d-ns = <60>;
869 cdns,tchsh-ns = <60>;
870 cdns,tslch-ns = <60>;
871 cdns,read-delay = <2>;
872 bootph-all;
873 };
874 };
875
876 &main_pmx0 {
877 ospi0_pins_default: ospi0-default-pins {
878 bootph-all;
879 pinctrl-single,pins = <
880 AM62AX_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */
881 AM62AX_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F23) OSPI0_CSn0 */
882 AM62AX_IOPAD(0x00c, PIN_INPUT, 0) /* (E25) OSPI0_D0 */
883 AM62AX_IOPAD(0x010, PIN_INPUT, 0) /* (G24) OSPI0_D1 */
884 AM62AX_IOPAD(0x014, PIN_INPUT, 0) /* (F25) OSPI0_D2 */
885 AM62AX_IOPAD(0x018, PIN_INPUT, 0) /* (F24) OSPI0_D3 */
886 AM62AX_IOPAD(0x01c, PIN_INPUT, 0) /* (J23) OSPI0_D4 */
887 AM62AX_IOPAD(0x020, PIN_INPUT, 0) /* (J25) OSPI0_D5 */
888 AM62AX_IOPAD(0x024, PIN_INPUT, 0) /* (H25) OSPI0_D6 */
889 AM62AX_IOPAD(0x028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */
890 AM62AX_IOPAD(0x008, PIN_INPUT, 0) /* (J24) OSPI0_DQS */
891 >;
892 };
893 };
894
895 &mcu_mcan0 {
896 pinctrl-names = "default", "wakeup";
897 pinctrl-0 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_default>;
898 pinctrl-1 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_wakeup>;
899 wakeup-source = <&system_partial_io>,
900 <&system_io_ddr>,
901 <&system_deep_sleep>,
902 <&system_mcu_only>,
903 <&system_standby>;
904 };
905
906 &mcu_mcan1 {
907 pinctrl-names = "default", "wakeup";
908 pinctrl-0 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_default>;
909 pinctrl-1 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_wakeup>;
910 wakeup-source = <&system_partial_io>,
911 <&system_io_ddr>,
912 <&system_deep_sleep>,
913 <&system_mcu_only>,
914 <&system_standby>;
915 };
916
917 &mcu_uart0 {
918 wakeup-source = <&system_io_ddr>,
919 <&system_deep_sleep>,
920 <&system_mcu_only>,
921 <&system_standby>;
922 };
923
924 #include "k3-am62a-ti-ipc-firmware.dtsi"