1 // SPDX-License-Identifier: GPL-2.0-only OR MI 2 /* 3 * AM62A SK: https://www.ti.com/lit/zip/sprr45 4 * 5 * Copyright (C) 2022-2024 Texas Instruments I 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,am62a 17 model = "Texas Instruments AM62A7 SK"; 18 19 aliases { 20 serial0 = &wkup_uart0; 21 serial2 = &main_uart0; 22 serial3 = &main_uart1; 23 mmc0 = &sdhci0; 24 mmc1 = &sdhci1; 25 }; 26 27 chosen { 28 stdout-path = "serial2:115200n 29 }; 30 31 memory@80000000 { 32 device_type = "memory"; 33 /* 4G RAM */ 34 reg = <0x00000000 0x80000000 0 35 <0x00000008 0x80000000 0 36 }; 37 38 reserved-memory { 39 #address-cells = <2>; 40 #size-cells = <2>; 41 ranges; 42 43 /* global cma region */ 44 linux,cma { 45 compatible = "shared-d 46 reusable; 47 size = <0x00 0x2400000 48 alloc-ranges = <0x00 0 49 linux,cma-default; 50 }; 51 52 secure_tfa_ddr: tfa@9e780000 { 53 reg = <0x00 0x9e780000 54 alignment = <0x1000>; 55 no-map; 56 }; 57 58 secure_ddr: optee@9e800000 { 59 reg = <0x00 0x9e800000 60 alignment = <0x1000>; 61 no-map; 62 }; 63 64 wkup_r5fss0_core0_memory_regio 65 compatible = "shared-d 66 reg = <0x00 0x9c900000 67 no-map; 68 }; 69 }; 70 71 vmain_pd: regulator-0 { 72 /* TPS25750 PD CONTROLLER OUTP 73 compatible = "regulator-fixed" 74 regulator-name = "vmain_pd"; 75 regulator-min-microvolt = <500 76 regulator-max-microvolt = <500 77 regulator-always-on; 78 regulator-boot-on; 79 }; 80 81 vcc_5v0: regulator-1 { 82 /* Output of TPS63070 */ 83 compatible = "regulator-fixed" 84 regulator-name = "vcc_5v0"; 85 regulator-min-microvolt = <500 86 regulator-max-microvolt = <500 87 vin-supply = <&vmain_pd>; 88 regulator-always-on; 89 regulator-boot-on; 90 }; 91 92 vcc_3v3_main: regulator-2 { 93 /* output of LM5141-Q1 */ 94 compatible = "regulator-fixed" 95 regulator-name = "vcc_3v3_main 96 regulator-min-microvolt = <330 97 regulator-max-microvolt = <330 98 vin-supply = <&vmain_pd>; 99 regulator-always-on; 100 regulator-boot-on; 101 }; 102 103 vdd_mmc1: regulator-3 { 104 /* TPS22918DBVR */ 105 compatible = "regulator-fixed" 106 regulator-name = "vdd_mmc1"; 107 regulator-min-microvolt = <330 108 regulator-max-microvolt = <330 109 regulator-boot-on; 110 enable-active-high; 111 gpio = <&exp1 3 GPIO_ACTIVE_HI 112 }; 113 114 vcc_3v3_sys: regulator-4 { 115 /* output of TPS222965DSGT */ 116 compatible = "regulator-fixed" 117 regulator-name = "vcc_3v3_sys" 118 regulator-min-microvolt = <330 119 regulator-max-microvolt = <330 120 vin-supply = <&vcc_3v3_main>; 121 regulator-always-on; 122 regulator-boot-on; 123 }; 124 125 vddshv_sdio: regulator-5 { 126 compatible = "regulator-gpio"; 127 regulator-name = "vddshv_sdio" 128 pinctrl-names = "default"; 129 pinctrl-0 = <&vddshv_sdio_pins 130 regulator-min-microvolt = <180 131 regulator-max-microvolt = <330 132 regulator-boot-on; 133 vin-supply = <&ldo1>; 134 gpios = <&main_gpio0 31 GPIO_A 135 states = <1800000 0x0>, 136 <3300000 0x1>; 137 }; 138 139 leds { 140 compatible = "gpio-leds"; 141 pinctrl-names = "default"; 142 pinctrl-0 = <&usr_led_pins_def 143 144 led-0 { 145 label = "am62a-sk:gree 146 gpios = <&main_gpio1 4 147 linux,default-trigger 148 function = LED_FUNCTIO 149 default-state = "off"; 150 }; 151 }; 152 153 tlv320_mclk: clk-0 { 154 #clock-cells = <0>; 155 compatible = "fixed-clock"; 156 clock-frequency = <12288000>; 157 }; 158 159 hdmi0: connector-hdmi { 160 compatible = "hdmi-connector"; 161 label = "hdmi"; 162 type = "a"; 163 164 port { 165 hdmi_connector_in: end 166 remote-endpoin 167 }; 168 }; 169 }; 170 171 codec_audio: sound { 172 compatible = "simple-audio-car 173 simple-audio-card,name = "AM62 174 simple-audio-card,widgets = 175 "Headphone", "Headp 176 "Line", "Line 177 "Microphone", "Micro 178 simple-audio-card,routing = 179 "Headphone Jack", 180 "Headphone Jack", 181 "LINE1L", 182 "LINE1R", 183 "MIC3R", 184 "Microphone Jack", 185 simple-audio-card,format = "ds 186 simple-audio-card,bitclock-mas 187 simple-audio-card,frame-master 188 simple-audio-card,bitclock-inv 189 190 simple-audio-card,cpu { 191 sound-dai = <&mcasp1>; 192 }; 193 194 sound_master: simple-audio-car 195 sound-dai = <&tlv320ai 196 clocks = <&tlv320_mclk 197 }; 198 }; 199 }; 200 201 &mcu_pmx0 { 202 wkup_uart0_pins_default: wkup-uart0-de 203 pinctrl-single,pins = < 204 AM62AX_MCU_IOPAD(0x002 205 AM62AX_MCU_IOPAD(0x002 206 AM62AX_MCU_IOPAD(0x002 207 AM62AX_MCU_IOPAD(0x003 208 >; 209 }; 210 }; 211 212 /* WKUP UART0 is used for DM firmware logs */ 213 &wkup_uart0 { 214 pinctrl-names = "default"; 215 pinctrl-0 = <&wkup_uart0_pins_default> 216 status = "reserved"; 217 }; 218 219 &main_pmx0 { 220 main_dss0_pins_default: main-dss0-defa 221 pinctrl-single,pins = < 222 AM62AX_IOPAD(0x100, PI 223 AM62AX_IOPAD(0x0f8, PI 224 AM62AX_IOPAD(0x104, PI 225 AM62AX_IOPAD(0x0fc, PI 226 AM62AX_IOPAD(0x0b8, PI 227 AM62AX_IOPAD(0x0bc, PI 228 AM62AX_IOPAD(0x0c0, PI 229 AM62AX_IOPAD(0x0c4, PI 230 AM62AX_IOPAD(0x0c8, PI 231 AM62AX_IOPAD(0x0cc, PI 232 AM62AX_IOPAD(0x0d0, PI 233 AM62AX_IOPAD(0x0d4, PI 234 AM62AX_IOPAD(0x0d8, PI 235 AM62AX_IOPAD(0x0dc, PI 236 AM62AX_IOPAD(0x0e0, PI 237 AM62AX_IOPAD(0x0e4, PI 238 AM62AX_IOPAD(0x0e8, PI 239 AM62AX_IOPAD(0x0ec, PI 240 AM62AX_IOPAD(0x0f0, PI 241 AM62AX_IOPAD(0x0f4, PI 242 AM62AX_IOPAD(0x05c, PI 243 AM62AX_IOPAD(0x060, PI 244 AM62AX_IOPAD(0x064, PI 245 AM62AX_IOPAD(0x068, PI 246 AM62AX_IOPAD(0x06c, PI 247 AM62AX_IOPAD(0x070, PI 248 AM62AX_IOPAD(0x074, PI 249 AM62AX_IOPAD(0x078, PI 250 >; 251 }; 252 253 main_uart0_pins_default: main-uart0-de 254 pinctrl-single,pins = < 255 AM62AX_IOPAD(0x1c8, PI 256 AM62AX_IOPAD(0x1cc, PI 257 >; 258 }; 259 260 main_uart1_pins_default: main-uart1-de 261 pinctrl-single,pins = < 262 AM62AX_IOPAD(0x01e8, P 263 AM62AX_IOPAD(0x01ec, P 264 AM62AX_IOPAD(0x0194, P 265 AM62AX_IOPAD(0x0198, P 266 >; 267 }; 268 269 main_i2c0_pins_default: main-i2c0-defa 270 pinctrl-single,pins = < 271 AM62AX_IOPAD(0x1e0, PI 272 AM62AX_IOPAD(0x1e4, PI 273 >; 274 }; 275 276 main_i2c1_pins_default: main-i2c1-defa 277 pinctrl-single,pins = < 278 AM62AX_IOPAD(0x1e8, PI 279 AM62AX_IOPAD(0x1ec, PI 280 >; 281 }; 282 283 main_i2c2_pins_default: main-i2c2-defa 284 pinctrl-single,pins = < 285 AM62AX_IOPAD(0x0b0, PI 286 AM62AX_IOPAD(0x0b4, PI 287 >; 288 }; 289 290 main_mmc0_pins_default: main-mmc0-defa 291 pinctrl-single,pins = < 292 AM62AX_IOPAD(0x220, PI 293 AM62AX_IOPAD(0x218, PI 294 AM62AX_IOPAD(0x21c, PI 295 AM62AX_IOPAD(0x214, PI 296 AM62AX_IOPAD(0x210, PI 297 AM62AX_IOPAD(0x20c, PI 298 AM62AX_IOPAD(0x208, PI 299 AM62AX_IOPAD(0x204, PI 300 AM62AX_IOPAD(0x200, PI 301 AM62AX_IOPAD(0x1fc, PI 302 AM62AX_IOPAD(0x1f8, PI 303 >; 304 }; 305 306 main_mmc1_pins_default: main-mmc1-defa 307 pinctrl-single,pins = < 308 AM62AX_IOPAD(0x23c, PI 309 AM62AX_IOPAD(0x234, PI 310 AM62AX_IOPAD(0x230, PI 311 AM62AX_IOPAD(0x22c, PI 312 AM62AX_IOPAD(0x228, PI 313 AM62AX_IOPAD(0x224, PI 314 AM62AX_IOPAD(0x240, PI 315 >; 316 }; 317 318 usr_led_pins_default: usr-led-default- 319 pinctrl-single,pins = < 320 AM62AX_IOPAD(0x244, PI 321 >; 322 }; 323 324 main_usb1_pins_default: main-usb1-defa 325 pinctrl-single,pins = < 326 AM62AX_IOPAD(0x0258, P 327 >; 328 }; 329 330 main_mdio1_pins_default: main-mdio1-de 331 pinctrl-single,pins = < 332 AM62AX_IOPAD(0x160, PI 333 AM62AX_IOPAD(0x15c, PI 334 >; 335 }; 336 337 main_rgmii1_pins_default: main-rgmii1- 338 pinctrl-single,pins = < 339 AM62AX_IOPAD(0x14c, PI 340 AM62AX_IOPAD(0x150, PI 341 AM62AX_IOPAD(0x154, PI 342 AM62AX_IOPAD(0x158, PI 343 AM62AX_IOPAD(0x148, PI 344 AM62AX_IOPAD(0x144, PI 345 AM62AX_IOPAD(0x134, PI 346 AM62AX_IOPAD(0x138, PI 347 AM62AX_IOPAD(0x13c, PI 348 AM62AX_IOPAD(0x140, PI 349 AM62AX_IOPAD(0x130, PI 350 AM62AX_IOPAD(0x12c, PI 351 >; 352 }; 353 354 main_mcasp1_pins_default: main-mcasp1- 355 pinctrl-single,pins = < 356 AM62AX_IOPAD(0x090, PI 357 AM62AX_IOPAD(0x098, PI 358 AM62AX_IOPAD(0x08c, PI 359 AM62AX_IOPAD(0x084, PI 360 >; 361 }; 362 363 main_gpio1_ioexp_intr_pins_default: ma 364 pinctrl-single,pins = < 365 AM62AX_IOPAD(0x01d4, P 366 >; 367 }; 368 369 vddshv_sdio_pins_default: vddshv-sdio- 370 pinctrl-single,pins = < 371 AM62AX_IOPAD(0x07c, PI 372 >; 373 }; 374 }; 375 376 &mcu_pmx0 { 377 status = "okay"; 378 379 pmic_irq_pins_default: pmic-irq-defaul 380 pinctrl-single,pins = < 381 AM62AX_MCU_IOPAD(0x000 382 >; 383 }; 384 }; 385 386 &mcu_gpio0 { 387 status = "okay"; 388 }; 389 390 &main_i2c0 { 391 status = "okay"; 392 pinctrl-names = "default"; 393 pinctrl-0 = <&main_i2c0_pins_default>; 394 clock-frequency = <400000>; 395 396 typec_pd0: usb-power-controller@3f { 397 compatible = "ti,tps6598x"; 398 reg = <0x3f>; 399 400 connector { 401 compatible = "usb-c-co 402 label = "USB-C"; 403 self-powered; 404 data-role = "dual"; 405 power-role = "sink"; 406 port { 407 usb_con_hs: en 408 remote 409 }; 410 }; 411 }; 412 }; 413 414 tps659312: pmic@48 { 415 compatible = "ti,tps6593-q1"; 416 reg = <0x48>; 417 ti,primary-pmic; 418 system-power-controller; 419 420 gpio-controller; 421 #gpio-cells = <2>; 422 423 pinctrl-names = "default"; 424 pinctrl-0 = <&pmic_irq_pins_de 425 interrupt-parent = <&mcu_gpio0 426 interrupts = <0 IRQ_TYPE_EDGE_ 427 428 buck123-supply = <&vcc_3v3_sys 429 buck4-supply = <&vcc_3v3_sys>; 430 buck5-supply = <&vcc_3v3_sys>; 431 ldo1-supply = <&vcc_3v3_sys>; 432 ldo2-supply = <&vcc_3v3_sys>; 433 ldo3-supply = <&buck5>; 434 ldo4-supply = <&vcc_3v3_sys>; 435 436 regulators { 437 buck123: buck123 { 438 regulator-name 439 regulator-min- 440 regulator-max- 441 regulator-boot 442 regulator-alwa 443 }; 444 445 buck4: buck4 { 446 regulator-name 447 regulator-min- 448 regulator-max- 449 regulator-boot 450 regulator-alwa 451 }; 452 453 buck5: buck5 { 454 regulator-name 455 regulator-min- 456 regulator-max- 457 regulator-boot 458 regulator-alwa 459 }; 460 461 ldo1: ldo1 { 462 regulator-name 463 regulator-min- 464 regulator-max- 465 regulator-boot 466 regulator-alwa 467 }; 468 469 ldo2: ldo2 { 470 regulator-name 471 regulator-min- 472 regulator-max- 473 regulator-boot 474 regulator-alwa 475 }; 476 477 ldo3: ldo3 { 478 regulator-name 479 regulator-min- 480 regulator-max- 481 regulator-boot 482 regulator-alwa 483 }; 484 485 ldo4: ldo4 { 486 regulator-name 487 regulator-min- 488 regulator-max- 489 regulator-boot 490 regulator-alwa 491 }; 492 }; 493 }; 494 }; 495 496 &main_i2c1 { 497 status = "okay"; 498 pinctrl-names = "default"; 499 pinctrl-0 = <&main_i2c1_pins_default>; 500 clock-frequency = <100000>; 501 502 exp1: gpio@22 { 503 compatible = "ti,tca6424"; 504 reg = <0x22>; 505 gpio-controller; 506 #gpio-cells = <2>; 507 interrupt-parent = <&main_gpio 508 interrupts = <23 IRQ_TYPE_EDGE 509 interrupt-controller; 510 #interrupt-cells = <2>; 511 pinctrl-names = "default"; 512 pinctrl-0 = <&main_gpio1_ioexp 513 514 gpio-line-names = "GPIO_CPSW2_ 515 "BT_EN_SOC" 516 "VPP_EN", " 517 "EXP_PS_5V0 518 "GPIO_AUD_R 519 "UART1_FET_ 520 "GPIO_HDMI_ 521 "CSI_GPIO1" 522 "HDMI_INTn" 523 "MCASP1_FET 524 "MCASP1_FET 525 "PD_I2C_IRQ 526 }; 527 528 tlv320aic3106: audio-codec@1b { 529 #sound-dai-cells = <0>; 530 compatible = "ti,tlv320aic3106 531 reg = <0x1b>; 532 ai3x-micbias-vg = <1>; /* 2.0 533 534 /* Regulators */ 535 AVDD-supply = <&vcc_3v3_sys>; 536 IOVDD-supply = <&vcc_3v3_sys>; 537 DRVDD-supply = <&vcc_3v3_sys>; 538 DVDD-supply = <&buck5>; 539 }; 540 541 exp2: gpio@23 { 542 compatible = "ti,tca6424"; 543 reg = <0x23>; 544 gpio-controller; 545 #gpio-cells = <2>; 546 547 gpio-line-names = "", "", 548 "", "", 549 "", "", 550 "", "", 551 "WL_LT_EN", 552 "", "", 553 "", "", 554 "", "", 555 "SPI0_FET_SE 556 "RGMII2_BRD_ 557 "CSI_EN", "A 558 "CSI_VLDO_SE 559 }; 560 561 sii9022: bridge-hdmi@3b { 562 compatible = "sil,sii9022"; 563 reg = <0x3b>; 564 interrupt-parent = <&exp1>; 565 interrupts = <16 IRQ_TYPE_EDGE 566 #sound-dai-cells = <0>; 567 sil,i2s-data-lanes = < 0 >; 568 569 ports { 570 #address-cells = <1>; 571 #size-cells = <0>; 572 573 port@0 { 574 reg = <0>; 575 576 sii9022_in: en 577 remote 578 }; 579 }; 580 581 port@1 { 582 reg = <1>; 583 584 sii9022_out: e 585 remote 586 }; 587 }; 588 }; 589 }; 590 }; 591 592 &main_i2c2 { 593 status = "okay"; 594 pinctrl-names = "default"; 595 pinctrl-0 = <&main_i2c2_pins_default>; 596 clock-frequency = <400000>; 597 }; 598 599 &sdhci0 { 600 /* eMMC */ 601 status = "okay"; 602 non-removable; 603 pinctrl-names = "default"; 604 pinctrl-0 = <&main_mmc0_pins_default>; 605 disable-wp; 606 }; 607 608 &sdhci1 { 609 /* SD/MMC */ 610 status = "okay"; 611 vmmc-supply = <&vdd_mmc1>; 612 vqmmc-supply = <&vddshv_sdio>; 613 pinctrl-names = "default"; 614 pinctrl-0 = <&main_mmc1_pins_default>; 615 disable-wp; 616 }; 617 618 &main_gpio0 { 619 status = "okay"; 620 }; 621 622 &main_gpio1 { 623 status = "okay"; 624 }; 625 626 &main_gpio_intr { 627 status = "okay"; 628 }; 629 630 &main_uart0 { 631 status = "okay"; 632 pinctrl-names = "default"; 633 pinctrl-0 = <&main_uart0_pins_default> 634 }; 635 636 /* Main UART1 is used for TIFS firmware logs * 637 &main_uart1 { 638 pinctrl-names = "default"; 639 pinctrl-0 = <&main_uart1_pins_default> 640 status = "reserved"; 641 }; 642 643 &usbss0 { 644 status = "okay"; 645 ti,vbus-divider; 646 }; 647 648 &usb0 { 649 usb-role-switch; 650 651 port { 652 usb0_hs_ep: endpoint { 653 remote-endpoint = <&us 654 }; 655 }; 656 }; 657 658 &usbss1 { 659 status = "okay"; 660 }; 661 662 &usb1 { 663 dr_mode = "host"; 664 pinctrl-names = "default"; 665 pinctrl-0 = <&main_usb1_pins_default>; 666 }; 667 668 &cpsw3g { 669 status = "okay"; 670 pinctrl-names = "default"; 671 pinctrl-0 = <&main_rgmii1_pins_default 672 }; 673 674 &cpsw_port1 { 675 status = "okay"; 676 phy-mode = "rgmii-rxid"; 677 phy-handle = <&cpsw3g_phy0>; 678 }; 679 680 &cpsw_port2 { 681 status = "disabled"; 682 }; 683 684 &cpsw3g_mdio { 685 status = "okay"; 686 pinctrl-names = "default"; 687 pinctrl-0 = <&main_mdio1_pins_default> 688 689 cpsw3g_phy0: ethernet-phy@0 { 690 reg = <0>; 691 ti,rx-internal-delay = <DP8386 692 ti,fifo-depth = <DP83867_PHYCR 693 ti,min-output-impedance; 694 }; 695 }; 696 697 &mcasp1 { 698 status = "okay"; 699 #sound-dai-cells = <0>; 700 701 pinctrl-names = "default"; 702 pinctrl-0 = <&main_mcasp1_pins_default 703 704 op-mode = <0>; /* MCASP_IIS_M 705 tdm-slots = <2>; 706 707 serial-dir = < /* 0: INACTIVE, 1: TX, 708 1 0 2 0 709 0 0 0 0 710 0 0 0 0 711 0 0 0 0 712 >; 713 }; 714 715 &dss { 716 status = "okay"; 717 pinctrl-names = "default"; 718 pinctrl-0 = <&main_dss0_pins_default>; 719 }; 720 721 &dss_ports { 722 /* VP2: DPI Output */ 723 port@1 { 724 reg = <1>; 725 726 dpi1_out: endpoint { 727 remote-endpoint = <&si 728 }; 729 }; 730 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.