1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
3 * AM62A SK: https://www.ti.com/lit/zip/sprr459
5 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
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"
16 compatible = "ti,am62a7-sk", "ti,am62a7";
17 model = "Texas Instruments AM62A7 SK";
20 serial0 = &wkup_uart0;
21 serial2 = &main_uart0;
22 serial3 = &main_uart1;
28 stdout-path = "serial2:115200n8";
32 device_type = "memory";
34 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
35 <0x00000008 0x80000000 0x00000000 0x80000000>;
43 secure_tfa_ddr: tfa@9e780000 {
44 reg = <0x00 0x9e780000 0x00 0x80000>;
49 secure_ddr: optee@9e800000 {
50 reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
55 wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 {
56 compatible = "shared-dma-pool";
57 reg = <0x00 0x9c900000 0x00 0x01e00000>;
62 vmain_pd: regulator-0 {
63 /* TPS25750 PD CONTROLLER OUTPUT */
64 compatible = "regulator-fixed";
65 regulator-name = "vmain_pd";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
72 vcc_5v0: regulator-1 {
73 /* Output of TPS63070 */
74 compatible = "regulator-fixed";
75 regulator-name = "vcc_5v0";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 vin-supply = <&vmain_pd>;
83 vcc_3v3_main: regulator-2 {
84 /* output of LM5141-Q1 */
85 compatible = "regulator-fixed";
86 regulator-name = "vcc_3v3_main";
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
89 vin-supply = <&vmain_pd>;
94 vdd_mmc1: regulator-3 {
96 compatible = "regulator-fixed";
97 regulator-name = "vdd_mmc1";
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
102 gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
105 vcc_3v3_sys: regulator-4 {
106 /* output of TPS222965DSGT */
107 compatible = "regulator-fixed";
108 regulator-name = "vcc_3v3_sys";
109 regulator-min-microvolt = <3300000>;
110 regulator-max-microvolt = <3300000>;
111 vin-supply = <&vcc_3v3_main>;
116 vddshv_sdio: regulator-5 {
117 compatible = "regulator-gpio";
118 regulator-name = "vddshv_sdio";
119 pinctrl-names = "default";
120 pinctrl-0 = <&vddshv_sdio_pins_default>;
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <3300000>;
124 vin-supply = <&ldo1>;
125 gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
126 states = <1800000 0x0>,
131 compatible = "gpio-leds";
132 pinctrl-names = "default";
133 pinctrl-0 = <&usr_led_pins_default>;
136 label = "am62a-sk:green:heartbeat";
137 gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
138 linux,default-trigger = "heartbeat";
139 function = LED_FUNCTION_HEARTBEAT;
140 default-state = "off";
146 compatible = "fixed-clock";
147 clock-frequency = <12288000>;
150 hdmi0: connector-hdmi {
151 compatible = "hdmi-connector";
156 hdmi_connector_in: endpoint {
157 remote-endpoint = <&sii9022_out>;
163 compatible = "simple-audio-card";
164 simple-audio-card,name = "AM62Ax-SKEVM";
165 simple-audio-card,widgets =
166 "Headphone", "Headphone Jack",
168 "Microphone", "Microphone Jack";
169 simple-audio-card,routing =
170 "Headphone Jack", "HPLOUT",
171 "Headphone Jack", "HPROUT",
174 "MIC3R", "Microphone Jack",
175 "Microphone Jack", "Mic Bias";
176 simple-audio-card,format = "dsp_b";
177 simple-audio-card,bitclock-master = <&sound_master>;
178 simple-audio-card,frame-master = <&sound_master>;
179 simple-audio-card,bitclock-inversion;
181 simple-audio-card,cpu {
182 sound-dai = <&mcasp1>;
185 sound_master: simple-audio-card,codec {
186 sound-dai = <&tlv320aic3106>;
187 clocks = <&tlv320_mclk>;
193 wkup_uart0_pins_default: wkup-uart0-default-pins {
194 pinctrl-single,pins = <
195 AM62AX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (C9) WKUP_UART0_RXD */
196 AM62AX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (E9) WKUP_UART0_TXD */
197 AM62AX_MCU_IOPAD(0x002c, PIN_INPUT, 0) /* (C10) WKUP_UART0_CTSn */
198 AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
203 /* WKUP UART0 is used for DM firmware logs */
205 pinctrl-names = "default";
206 pinctrl-0 = <&wkup_uart0_pins_default>;
211 main_dss0_pins_default: main-dss0-default-pins {
212 pinctrl-single,pins = <
213 AM62AX_IOPAD(0x100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
214 AM62AX_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
215 AM62AX_IOPAD(0x104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
216 AM62AX_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
217 AM62AX_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
218 AM62AX_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
219 AM62AX_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
220 AM62AX_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
221 AM62AX_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
222 AM62AX_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
223 AM62AX_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
224 AM62AX_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
225 AM62AX_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
226 AM62AX_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
227 AM62AX_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
228 AM62AX_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
229 AM62AX_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
230 AM62AX_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
231 AM62AX_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
232 AM62AX_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
233 AM62AX_IOPAD(0x05c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
234 AM62AX_IOPAD(0x060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
235 AM62AX_IOPAD(0x064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
236 AM62AX_IOPAD(0x068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
237 AM62AX_IOPAD(0x06c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
238 AM62AX_IOPAD(0x070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
239 AM62AX_IOPAD(0x074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
240 AM62AX_IOPAD(0x078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
244 main_uart0_pins_default: main-uart0-default-pins {
245 pinctrl-single,pins = <
246 AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (E14) UART0_RXD */
247 AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */
251 main_uart1_pins_default: main-uart1-default-pins {
252 pinctrl-single,pins = <
253 AM62AX_IOPAD(0x01e8, PIN_INPUT, 1) /* (C17) I2C1_SCL.UART1_RXD */
254 AM62AX_IOPAD(0x01ec, PIN_OUTPUT, 1) /* (E17) I2C1_SDA.UART1_TXD */
255 AM62AX_IOPAD(0x0194, PIN_INPUT, 2) /* (C19) MCASP0_AXR3.UART1_CTSn */
256 AM62AX_IOPAD(0x0198, PIN_OUTPUT, 2) /* (B19) MCASP0_AXR2.UART1_RTSn */
260 main_i2c0_pins_default: main-i2c0-default-pins {
261 pinctrl-single,pins = <
262 AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
263 AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
267 main_i2c1_pins_default: main-i2c1-default-pins {
268 pinctrl-single,pins = <
269 AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
270 AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
274 main_i2c2_pins_default: main-i2c2-default-pins {
275 pinctrl-single,pins = <
276 AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
277 AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
281 main_mmc0_pins_default: main-mmc0-default-pins {
282 pinctrl-single,pins = <
283 AM62AX_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
284 AM62AX_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLKLB */
285 AM62AX_IOPAD(0x21c, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
286 AM62AX_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
287 AM62AX_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */
288 AM62AX_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */
289 AM62AX_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */
290 AM62AX_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */
291 AM62AX_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */
292 AM62AX_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
293 AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
297 main_mmc1_pins_default: main-mmc1-default-pins {
298 pinctrl-single,pins = <
299 AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
300 AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
301 AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
302 AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
303 AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
304 AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
305 AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
309 usr_led_pins_default: usr-led-default-pins {
310 pinctrl-single,pins = <
311 AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
315 main_usb1_pins_default: main-usb1-default-pins {
316 pinctrl-single,pins = <
317 AM62AX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
321 main_mdio1_pins_default: main-mdio1-default-pins {
322 pinctrl-single,pins = <
323 AM62AX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */
324 AM62AX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */
328 main_rgmii1_pins_default: main-rgmii1-default-pins {
329 pinctrl-single,pins = <
330 AM62AX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */
331 AM62AX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */
332 AM62AX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */
333 AM62AX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */
334 AM62AX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */
335 AM62AX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */
336 AM62AX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */
337 AM62AX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */
338 AM62AX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */
339 AM62AX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */
340 AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */
341 AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */
345 main_mcasp1_pins_default: main-mcasp1-default-pins {
346 pinctrl-single,pins = <
347 AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */
348 AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */
349 AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */
350 AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
354 main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
355 pinctrl-single,pins = <
356 AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
360 vddshv_sdio_pins_default: vddshv-sdio-default-pins {
361 pinctrl-single,pins = <
362 AM62AX_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */
370 pmic_irq_pins_default: pmic-irq-default-pins {
371 pinctrl-single,pins = <
372 AM62AX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (E11) MCU_GPIO0_0 */
383 pinctrl-names = "default";
384 pinctrl-0 = <&main_i2c0_pins_default>;
385 clock-frequency = <400000>;
387 typec_pd0: usb-power-controller@3f {
388 compatible = "ti,tps6598x";
392 compatible = "usb-c-connector";
398 usb_con_hs: endpoint {
399 remote-endpoint = <&usb0_hs_ep>;
406 compatible = "ti,tps6593-q1";
409 system-power-controller;
414 pinctrl-names = "default";
415 pinctrl-0 = <&pmic_irq_pins_default>;
416 interrupt-parent = <&mcu_gpio0>;
417 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
419 buck123-supply = <&vcc_3v3_sys>;
420 buck4-supply = <&vcc_3v3_sys>;
421 buck5-supply = <&vcc_3v3_sys>;
422 ldo1-supply = <&vcc_3v3_sys>;
423 ldo2-supply = <&vcc_3v3_sys>;
424 ldo3-supply = <&buck5>;
425 ldo4-supply = <&vcc_3v3_sys>;
429 regulator-name = "vcc_core";
430 regulator-min-microvolt = <715000>;
431 regulator-max-microvolt = <895000>;
437 regulator-name = "vcc_1v1";
438 regulator-min-microvolt = <1100000>;
439 regulator-max-microvolt = <1100000>;
445 regulator-name = "vcc_1v8_sys";
446 regulator-min-microvolt = <1800000>;
447 regulator-max-microvolt = <1800000>;
453 regulator-name = "vddshv5_sdio";
454 regulator-min-microvolt = <3300000>;
455 regulator-max-microvolt = <3300000>;
461 regulator-name = "vpp_1v8";
462 regulator-min-microvolt = <1800000>;
463 regulator-max-microvolt = <1800000>;
469 regulator-name = "vcc_0v85";
470 regulator-min-microvolt = <850000>;
471 regulator-max-microvolt = <850000>;
477 regulator-name = "vdda_1v8";
478 regulator-min-microvolt = <1800000>;
479 regulator-max-microvolt = <1800000>;
489 pinctrl-names = "default";
490 pinctrl-0 = <&main_i2c1_pins_default>;
491 clock-frequency = <100000>;
494 compatible = "ti,tca6424";
498 interrupt-parent = <&main_gpio1>;
499 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
500 interrupt-controller;
501 #interrupt-cells = <2>;
502 pinctrl-names = "default";
503 pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
505 gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
506 "BT_EN_SOC", "MMC1_SD_EN",
507 "VPP_EN", "EXP_PS_3V3_En",
508 "EXP_PS_5V0_En", "EXP_HAT_DETECT",
509 "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
510 "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
511 "GPIO_HDMI_RSTn", "CSI_GPIO0",
512 "CSI_GPIO1", "WLAN_ALERTn",
513 "HDMI_INTn", "TEST_GPIO2",
514 "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
515 "MCASP1_FET_SEL", "UART1_FET_SEL",
516 "PD_I2C_IRQ", "IO_EXP_TEST_LED";
519 tlv320aic3106: audio-codec@1b {
520 #sound-dai-cells = <0>;
521 compatible = "ti,tlv320aic3106";
523 ai3x-micbias-vg = <1>; /* 2.0V */
526 AVDD-supply = <&vcc_3v3_sys>;
527 IOVDD-supply = <&vcc_3v3_sys>;
528 DRVDD-supply = <&vcc_3v3_sys>;
529 DVDD-supply = <&buck5>;
533 compatible = "ti,tca6424";
538 gpio-line-names = "", "",
542 "WL_LT_EN", "CSI_RSTz",
546 "SPI0_FET_SEL", "SPI0_FET_OE",
547 "RGMII2_BRD_CONN_DET", "CSI_SEL2",
548 "CSI_EN", "AUTO_100M_1000M_CONFIG",
549 "CSI_VLDO_SEL", "SoC_WLAN_SDIO_RST";
552 sii9022: bridge-hdmi@3b {
553 compatible = "sil,sii9022";
555 interrupt-parent = <&exp1>;
556 interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
557 #sound-dai-cells = <0>;
558 sil,i2s-data-lanes = < 0 >;
561 #address-cells = <1>;
567 sii9022_in: endpoint {
568 remote-endpoint = <&dpi1_out>;
575 sii9022_out: endpoint {
576 remote-endpoint = <&hdmi_connector_in>;
585 pinctrl-names = "default";
586 pinctrl-0 = <&main_i2c2_pins_default>;
587 clock-frequency = <400000>;
594 pinctrl-names = "default";
595 pinctrl-0 = <&main_mmc0_pins_default>;
602 vmmc-supply = <&vdd_mmc1>;
603 vqmmc-supply = <&vddshv_sdio>;
604 pinctrl-names = "default";
605 pinctrl-0 = <&main_mmc1_pins_default>;
623 pinctrl-names = "default";
624 pinctrl-0 = <&main_uart0_pins_default>;
627 /* Main UART1 is used for TIFS firmware logs */
629 pinctrl-names = "default";
630 pinctrl-0 = <&main_uart1_pins_default>;
643 usb0_hs_ep: endpoint {
644 remote-endpoint = <&usb_con_hs>;
655 pinctrl-names = "default";
656 pinctrl-0 = <&main_usb1_pins_default>;
661 pinctrl-names = "default";
662 pinctrl-0 = <&main_rgmii1_pins_default>;
667 phy-mode = "rgmii-rxid";
668 phy-handle = <&cpsw3g_phy0>;
677 pinctrl-names = "default";
678 pinctrl-0 = <&main_mdio1_pins_default>;
680 cpsw3g_phy0: ethernet-phy@0 {
682 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
683 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
684 ti,min-output-impedance;
690 #sound-dai-cells = <0>;
692 pinctrl-names = "default";
693 pinctrl-0 = <&main_mcasp1_pins_default>;
695 op-mode = <0>; /* MCASP_IIS_MODE */
698 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
710 pinctrl-names = "default";
711 pinctrl-0 = <&main_dss0_pins_default>;
715 /* VP2: DPI Output */
720 remote-endpoint = <&sii9022_in>;