1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ 4 * Copyright (c) 2022-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, D-82229 Seefeld, Germany. 5 */ 6 7/dts-v1/; 8 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/input/input.h> 11#include <dt-bindings/net/ti-dp83867.h> 12#include <dt-bindings/phy/phy.h> 13#include <dt-bindings/pwm/pwm.h> 14#include "k3-serdes.h" 15 16#include "k3-am642-tqma64xxl.dtsi" 17 18/ { 19 compatible = "tq,am642-tqma6442l-mbax4xxl", "tq,am642-tqma6442l", 20 "ti,am642"; 21 model = "TQ-Systems TQMa64xxL SoM on MBax4xxL carrier board"; 22 23 aliases { 24 ethernet0 = &cpsw_port1; 25 i2c1 = &mcu_i2c0; 26 mmc1 = &sdhci1; 27 serial0 = &mcu_uart0; 28 serial1 = &mcu_uart1; 29 serial2 = &main_uart0; 30 serial3 = &main_uart1; 31 serial4 = &main_uart2; 32 serial5 = &main_uart4; 33 serial6 = &main_uart5; 34 serial7 = &main_uart3; 35 spi1 = &main_spi0; 36 spi2 = &mcu_spi0; 37 }; 38 39 chosen { 40 stdout-path = &main_uart0; 41 }; 42 43 gpio-keys { 44 compatible = "gpio-keys"; 45 pinctrl-names = "default"; 46 pinctrl-0 = <&mcu_gpio_keys_pins>; 47 48 user-button { 49 label = "USER_BUTTON"; 50 linux,code = <BTN_0>; 51 gpios = <&mcu_gpio0 5 GPIO_ACTIVE_LOW>; 52 }; 53 }; 54 55 gpio-leds { 56 compatible = "gpio-leds"; 57 pinctrl-names = "default"; 58 pinctrl-0 = <&mcu_gpio_leds_pins>; 59 60 led-0 { 61 label = "led0"; 62 gpios = <&mcu_gpio0 8 GPIO_ACTIVE_HIGH>; 63 }; 64 led-1 { 65 label = "led1"; 66 gpios = <&mcu_gpio0 9 GPIO_ACTIVE_HIGH>; 67 }; 68 }; 69 70 fan0: pwm-fan { 71 compatible = "pwm-fan"; 72 pinctrl-names = "default"; 73 pinctrl-0 = <&pwm_fan_pins>; 74 fan-supply = <®_pwm_fan>; 75 #cooling-cells = <2>; 76 /* typical 25 kHz -> 40.000 nsec */ 77 pwms = <&epwm5 0 40000 PWM_POLARITY_INVERTED>; 78 cooling-levels = <0 32 64 128 196 240>; 79 pulses-per-revolution = <2>; 80 interrupt-parent = <&main_gpio1>; 81 interrupts = <49 IRQ_TYPE_EDGE_FALLING>; 82 status = "disabled"; 83 }; 84 85 wifi_pwrseq: pwrseq-wifi { 86 compatible = "mmc-pwrseq-simple"; 87 pinctrl-names = "default"; 88 pinctrl-0 = <&main_mmc1_wifi_pwrseq_pins>; 89 reset-gpios = <&main_gpio0 23 GPIO_ACTIVE_LOW>; 90 }; 91 92 reg_pwm_fan: regulator-pwm-fan { 93 compatible = "regulator-fixed"; 94 pinctrl-names = "default"; 95 pinctrl-0 = <&pwm_fan_reg_pins>; 96 regulator-name = "FAN_PWR"; 97 regulator-min-microvolt = <12000000>; 98 regulator-max-microvolt = <12000000>; 99 gpio = <&main_gpio1 48 GPIO_ACTIVE_HIGH>; 100 enable-active-high; 101 }; 102 103 reg_sd: regulator-sd { 104 compatible = "regulator-fixed"; 105 pinctrl-names = "default"; 106 pinctrl-0 = <&main_mmc1_reg_pins>; 107 regulator-name = "V_3V3_SD"; 108 regulator-min-microvolt = <3300000>; 109 regulator-max-microvolt = <3300000>; 110 gpio = <&main_gpio1 43 GPIO_ACTIVE_HIGH>; 111 enable-active-high; 112 }; 113}; 114 115&cpsw3g { 116 pinctrl-names = "default"; 117 pinctrl-0 = <&cpsw_pins>; 118}; 119 120&cpsw_port1 { 121 phy-mode = "rgmii-rxid"; 122 phy-handle = <&cpsw3g_phy0>; 123}; 124 125&cpsw_port2 { 126 status = "disabled"; 127}; 128 129&cpsw3g_mdio { 130 pinctrl-names = "default"; 131 pinctrl-0 = <&cpsw_mdio_pins>; 132 status = "okay"; 133 134 cpsw3g_phy0: ethernet-phy@0 { 135 compatible = "ethernet-phy-ieee802.3-c22"; 136 reg = <0>; 137 reset-gpios = <&main_gpio0 44 GPIO_ACTIVE_LOW>; 138 reset-assert-us = <1000>; 139 reset-deassert-us = <1000>; 140 ti,rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 141 ti,tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 142 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; 143 ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>; 144 }; 145}; 146 147&epwm5 { 148 pinctrl-names = "default"; 149 pinctrl-0 = <&epwm5_pins>; 150 status = "okay"; 151}; 152 153&main_gpio0 { 154 pinctrl-names = "default"; 155 pinctrl-0 = <&main_gpio0_digital_pins>, 156 <&main_gpio0_hog_pins>; 157 gpio-line-names = 158 "", "", "", "", /* 0-3 */ 159 "", "", "", "", /* 4-7 */ 160 "", "", "", "", /* 8-11 */ 161 "", "", "", "", /* 12-15 */ 162 "", "", "", "", /* 16-19 */ 163 "", "", "", "", /* 20-23 */ 164 "", "", "EN_DIG_OUT_1", "STATUS_OUT_1", /* 24-27 */ 165 "EN_DIG_OUT_2", "STATUS_OUT_2", "EN_SIG_OUT_3", "", /* 28-31 */ 166 "", "", "STATUS_OUT_3", "EN_DIG_OUT_4", /* 32-35 */ 167 "", "", "STATUS_OUT_4", "DIG_IN_1", /* 36-39 */ 168 "DIG_IN_2", "DIG_IN_3", "DIG_IN_4"; /* 40- */ 169}; 170 171&main_gpio1 { 172 pinctrl-names = "default"; 173 pinctrl-0 = <&main_gpio1_hog_pins>; 174 gpio-line-names = 175 "", "", "", "", /* 0-3 */ 176 "", "", "", "", /* 4-7 */ 177 "", "", "", "", /* 8-11 */ 178 "", "", "", "", /* 12-15 */ 179 "", "", "", "", /* 16-19 */ 180 "", "", "", "", /* 20-23 */ 181 "", "", "", "", /* 24-27 */ 182 "", "", "", "", /* 28-31 */ 183 "", "", "", "", /* 32-35 */ 184 "", "", "", "", /* 36-39 */ 185 "", "", "", "", /* 40-43 */ 186 "", "", "", "", /* 44-47 */ 187 "", "", "", "", /* 48-51 */ 188 "", "", "", "ADC_SYNC", /* 52-55 */ 189 "", "", "ADC_RST#", "ADC_DATA_RDY", /* 56-59 */ 190 "", "", "", "", /* 60-63 */ 191 "", "", "", "ADC_INT#", /* 64-67 */ 192 "BG95_PWRKEY", "BG95_RESET"; /* 68- */ 193 194 line50-hog { 195 /* See also usb0 */ 196 gpio-hog; 197 gpios = <50 0>; 198 line-name = "USB0_VBUS_OC#"; 199 input; 200 }; 201 202 line54-hog { 203 gpio-hog; 204 gpios = <54 0>; 205 line-name = "PRG0_MDIO_SWITCH"; 206 output-low; 207 }; 208 209 line70-hog { 210 gpio-hog; 211 gpios = <70 0>; 212 line-name = "PHY_INT#"; 213 input; 214 }; 215}; 216 217&main_mcan0 { 218 pinctrl-names = "default"; 219 pinctrl-0 = <&main_mcan0_pins>; 220 status = "okay"; 221}; 222 223&main_mcan1 { 224 pinctrl-names = "default"; 225 pinctrl-0 = <&main_mcan1_pins>; 226 status = "okay"; 227}; 228 229&main_spi0 { 230 pinctrl-names = "default"; 231 pinctrl-0 = <&main_spi0_pins>; 232 ti,pindir-d0-out-d1-in; 233 status = "okay"; 234 235 /* adc@0: NXP NAFE13388 */ 236}; 237 238/* UART/USB adapter port 1 */ 239&main_uart0 { 240 pinctrl-names = "default"; 241 pinctrl-0 = <&main_uart0_pins>; 242 status = "okay"; 243}; 244 245/* 246 * IOT Module - GNSS UART 247 * 248 * Note: We expect usage of a SYSFW that does not reserve UART1 for debug traces 249 */ 250&main_uart1 { 251 pinctrl-names = "default"; 252 pinctrl-0 = <&main_uart1_pins>; 253 status = "okay"; 254}; 255 256/* RS485 port */ 257&main_uart2 { 258 pinctrl-names = "default"; 259 pinctrl-0 = <&main_uart2_pins>; 260 linux,rs485-enabled-at-boot-time; 261 rs485-rts-active-low; 262 status = "okay"; 263}; 264 265/* Bluetooth module */ 266&main_uart3 { 267 pinctrl-names = "default"; 268 pinctrl-0 = <&main_uart3_pins>; 269 /* 270 * Left disabled for now, until a way to deal with drivers and firmware 271 * for the combined WLAN/BT module has been figured out 272 */ 273}; 274 275/* IOT module - Main UART */ 276&main_uart4 { 277 pinctrl-names = "default"; 278 pinctrl-0 = <&main_uart4_pins>; 279 status = "okay"; 280}; 281 282/* IOT module - DBG UART */ 283&main_uart5 { 284 pinctrl-names = "default"; 285 pinctrl-0 = <&main_uart5_pins>; 286 status = "okay"; 287}; 288 289&main0_thermal { 290 trips { 291 main0_active0: trip-active0 { 292 temperature = <40000>; 293 hysteresis = <5000>; 294 type = "active"; 295 }; 296 297 main0_active1: trip-active1 { 298 temperature = <48000>; 299 hysteresis = <3000>; 300 type = "active"; 301 }; 302 303 main0_active2: trip-active2 { 304 temperature = <60000>; 305 hysteresis = <10000>; 306 type = "active"; 307 }; 308 }; 309 310 cooling-maps { 311 map1 { 312 trip = <&main0_active0>; 313 cooling-device = <&fan0 1 1>; 314 }; 315 316 map2 { 317 trip = <&main0_active1>; 318 cooling-device = <&fan0 2 2>; 319 }; 320 321 map3 { 322 trip = <&main0_active2>; 323 cooling-device = <&fan0 3 3>; 324 }; 325 }; 326}; 327 328&main1_thermal { 329 trips { 330 main1_active0: trip-active0 { 331 temperature = <40000>; 332 hysteresis = <5000>; 333 type = "active"; 334 }; 335 336 main1_active1: trip-active1 { 337 temperature = <48000>; 338 hysteresis = <3000>; 339 type = "active"; 340 }; 341 342 main1_active2: trip-active2 { 343 temperature = <60000>; 344 hysteresis = <10000>; 345 type = "active"; 346 }; 347 }; 348 349 cooling-maps { 350 map1 { 351 trip = <&main1_active0>; 352 cooling-device = <&fan0 1 1>; 353 }; 354 355 map2 { 356 trip = <&main1_active1>; 357 cooling-device = <&fan0 2 2>; 358 }; 359 360 map3 { 361 trip = <&main1_active2>; 362 cooling-device = <&fan0 3 3>; 363 }; 364 }; 365}; 366 367&mcu_gpio0 { 368 pinctrl-names = "default"; 369 pinctrl-0 = <&mcu_gpio0_pins>; 370}; 371 372&mcu_i2c0 { 373 pinctrl-names = "default"; 374 pinctrl-0 = <&mcu_i2c0_pins>; 375 /* Left disabled: not functional without external pullup */ 376}; 377 378&mcu_spi0 { 379 pinctrl-names = "default"; 380 pinctrl-0 = <&mcu_spi0_pins>; 381 ti,pindir-d0-out-d1-in; 382 status = "okay"; 383}; 384 385/* UART/USB adapter port 2 */ 386&mcu_uart0 { 387 pinctrl-names = "default"; 388 pinctrl-0 = <&mcu_uart0_pins>; 389 status = "okay"; 390}; 391 392/* Pin header */ 393&mcu_uart1 { 394 pinctrl-names = "default"; 395 pinctrl-0 = <&mcu_uart1_pins>; 396 status = "okay"; 397}; 398 399&serdes_ln_ctrl { 400 idle-states = <AM64_SERDES0_LANE0_USB>; 401}; 402 403&serdes0 { 404 serdes0_usb_link: phy@0 { 405 reg = <0>; 406 #phy-cells = <0>; 407 resets = <&serdes_wiz0 1>; 408 cdns,num-lanes = <1>; 409 cdns,phy-type = <PHY_TYPE_USB3>; 410 }; 411}; 412 413&sdhci1 { 414 pinctrl-names = "default"; 415 pinctrl-0 = <&main_mmc1_pins>; 416 bus-width = <4>; 417 cd-gpios = <&main_gpio1 77 GPIO_ACTIVE_LOW>; 418 disable-wp; 419 no-mmc; 420 ti,driver-strength-ohm = <50>; 421 ti,fails-without-test-cd; 422 /* Enabled by overlay */ 423 status = "disabled"; 424}; 425 426&tscadc0 { 427 status = "okay"; 428 adc { 429 ti,adc-channels = <0 1 2 3 4 5 6 7>; 430 }; 431}; 432 433&usb0 { 434 /* 435 * The CDNS USB driver currently doesn't support overcurrent GPIOs, 436 * so there is no overcurrent detection. The OC pin is configured 437 * as a GPIO hog instead. 438 */ 439 pinctrl-names = "default"; 440 pinctrl-0 = <&main_usb0_pins>; 441 dr_mode = "otg"; 442 maximum-speed = "super-speed"; 443 phys = <&serdes0_usb_link>; 444 phy-names = "cdns3,usb3-phy"; 445}; 446 447&usbss0 { 448 ti,vbus-divider; 449}; 450 451&main_pmx0 { 452 cpsw_pins: cpsw-pins { 453 pinctrl-single,pins = < 454 /* (W5) PRG0_PRU1_GPO7.RGMII1_RD0 */ 455 AM64X_IOPAD(0x01cc, PIN_INPUT, 4) 456 /* (Y5) PRG0_PRU1_GPO9.RGMII1_RD1 */ 457 AM64X_IOPAD(0x01d4, PIN_INPUT, 4) 458 /* (V6) PRG0_PRU1_GPO10.RGMII1_RD2 */ 459 AM64X_IOPAD(0x01d8, PIN_INPUT, 4) 460 /* (V5) PRG0_PRU1_GPO17.RGMII1_RD3 */ 461 AM64X_IOPAD(0x01f4, PIN_INPUT, 4) 462 /* (AA5) PRG0_PRU0_GPO10.RGMII1_RXC */ 463 AM64X_IOPAD(0x0188, PIN_INPUT, 4) 464 /* (W6) PRG0_PRU0_GPO9.RGMII1_RX_CTL */ 465 AM64X_IOPAD(0x0184, PIN_INPUT, 4) 466 /* (V15) PRG1_PRU1_GPO7.RGMII1_TD0 */ 467 AM64X_IOPAD(0x0124, PIN_OUTPUT, 4) 468 /* (V14) PRG1_PRU1_GPO9.RGMII1_TD1 */ 469 AM64X_IOPAD(0x012c, PIN_OUTPUT, 4) 470 /* (W14) PRG1_PRU1_GPO10.RGMII1_TD2 */ 471 AM64X_IOPAD(0x0130, PIN_OUTPUT, 4) 472 /* (AA14) PRG1_PRU1_GPO17.RGMII1_TD3 */ 473 AM64X_IOPAD(0x014c, PIN_OUTPUT, 4) 474 /* (U14) PRG1_PRU0_GPO10.RGMII1_TXC */ 475 AM64X_IOPAD(0x00e0, PIN_OUTPUT, 4) 476 /* (U15) PRG1_PRU0_GPO9.RGMII1_TX_CTL */ 477 AM64X_IOPAD(0x00dc, PIN_OUTPUT, 4) 478 >; 479 }; 480 481 cpsw_mdio_pins: cpsw-mdio-pins { 482 pinctrl-single,pins = < 483 /* (R21) GPMC0_CSn3.GPIO0_44 - RESET_RGMII1# */ 484 AM64X_IOPAD(0x00b4, PIN_OUTPUT, 7) 485 486 /* (R2) PRG0_PRU1_GPO19.MDIO0_MDC */ 487 AM64X_IOPAD(0x01fc, PIN_OUTPUT, 4) 488 /* (P5) PRG0_PRU1_GPO18.MDIO0_MDIO */ 489 AM64X_IOPAD(0x01f8, PIN_INPUT, 4) 490 >; 491 }; 492 493 epwm5_pins: epwm5-pins { 494 pinctrl-single,pins = < 495 /* (W19) GPMC0_WAIT0.EHRPWM5_B */ 496 AM64X_IOPAD(0x0098, PIN_OUTPUT, 3) 497 >; 498 }; 499 500 /* Digital IOs */ 501 main_gpio0_digital_pins: main-gpio0-digital-pins { 502 pinctrl-single,pins = < 503 /* (W20) GPMC0_AD11.GPIO0_26 - EN_DIG_OUT_1 */ 504 AM64X_IOPAD(0x0068, PIN_OUTPUT, 7) 505 /* (W21) GPMC0_AD12.GPIO0_27 - STATUS_OUT_1 */ 506 AM64X_IOPAD(0x006c, PIN_INPUT, 7) 507 /* (V18) GPMC0_AD13.GPIO0_28 - EN_DIG_OUT_2 */ 508 AM64X_IOPAD(0x0070, PIN_OUTPUT, 7) 509 /* (Y21) GPMC0_AD14.GPIO0_29 - STATUS_OUT_2 */ 510 AM64X_IOPAD(0x0074, PIN_INPUT, 7) 511 /* (Y20) GPMC0_AD15.GPIO0_30 - EN_DIG_OUT_3 */ 512 AM64X_IOPAD(0x0078, PIN_OUTPUT, 7) 513 /* (T21) GPMC0_WEn.GPIO0_34 - STATUS_OUT_3 */ 514 AM64X_IOPAD(0x008c, PIN_INPUT, 7) 515 /* (P17) GPMC0_BE0n_CLE.GPIO0_35 - EN_DIG_OUT_4 */ 516 AM64X_IOPAD(0x0090, PIN_OUTPUT, 7) 517 /* (Y18) GPMC0_WAIT1.GPIO0_38 - STATUS_OUT_4 */ 518 AM64X_IOPAD(0x009c, PIN_INPUT, 7) 519 /* (N16) GPMC0_WPn.GPIO0_39 - DIG_IN_1 */ 520 AM64X_IOPAD(0x00a0, PIN_INPUT, 7) 521 /* (N17) GPMC0_DIR.GPIO0_40 - DIG_IN_2 */ 522 AM64X_IOPAD(0x00a4, PIN_INPUT, 7) 523 /* (R19) GPMC0_CSn0.GPIO0_41 - DIG_IN_3 */ 524 AM64X_IOPAD(0x00a8, PIN_INPUT, 7) 525 /* (R20) GPMC0_CSn1.GPIO0_42 - DIG_IN_4 */ 526 AM64X_IOPAD(0x00ac, PIN_INPUT, 7) 527 >; 528 }; 529 530 main_gpio0_hog_pins: main-gpio0-hog-pins { 531 pinctrl-single,pins = < 532 /* (P19) GPMC0_CSn2.GPIO0_43 - MMC1_CTRL */ 533 AM64X_IOPAD(0x00b0, PIN_OUTPUT, 7) 534 >; 535 }; 536 537 main_gpio1_hog_pins: main-gpio1-hog-pins { 538 pinctrl-single,pins = < 539 /* (B15) SPI1_D0.GPIO1_50 - USB0_VBUS_OC# */ 540 AM64X_IOPAD(0x0228, PIN_INPUT, 7) 541 /* (B16) UART0_CTSn.GPIO1_54 - PRG0_MDIO_SWITCH */ 542 AM64X_IOPAD(0x0238, PIN_OUTPUT, 7) 543 /* (C19) EXTINTn.GPIO1_70 - PHY_INT# */ 544 AM64X_IOPAD(0x0278, PIN_INPUT, 7) 545 >; 546 }; 547 548 main_mcan0_pins: main-mcan0-pins { 549 pinctrl-single,pins = < 550 /* (B17) MCAN0_RX */ 551 AM64X_IOPAD(0x0254, PIN_INPUT, 0) 552 /* (A17) MCAN0_TX */ 553 AM64X_IOPAD(0x0250, PIN_OUTPUT, 0) 554 >; 555 }; 556 557 main_mcan1_pins: main-mcan1-pins { 558 pinctrl-single,pins = < 559 /* (D17) MCAN1_RX */ 560 AM64X_IOPAD(0x025c, PIN_INPUT, 0) 561 /* (C17) MCAN1_TX */ 562 AM64X_IOPAD(0x0258, PIN_OUTPUT, 0) 563 >; 564 }; 565 566 main_mmc1_pins: main-mmc1-pins { 567 pinctrl-single,pins = < 568 /* (J19) MMC1_CMD */ 569 AM64X_IOPAD(0x0294, PIN_INPUT, 0) 570 /* (L20) MMC1_CLK */ 571 AM64X_IOPAD(0x028c, PIN_INPUT, 0) 572 /* (K21) MMC1_DAT0 */ 573 AM64X_IOPAD(0x0288, PIN_INPUT, 0) 574 /* (L21) MMC1_DAT1 */ 575 AM64X_IOPAD(0x0284, PIN_INPUT, 0) 576 /* (K19) MMC1_DAT2 */ 577 AM64X_IOPAD(0x0280, PIN_INPUT, 0) 578 /* (K18) MMC1_DAT3 */ 579 AM64X_IOPAD(0x027c, PIN_INPUT, 0) 580 /* (D19) MMC1_SDCD.GPIO1_77 */ 581 AM64X_IOPAD(0x0298, PIN_INPUT, 7) 582 /* (#N/A) MMC1_CLKLB */ 583 AM64X_IOPAD(0x0290, PIN_INPUT, 0) 584 >; 585 }; 586 587 main_mmc1_reg_pins: main-mmc1-reg-pins { 588 pinctrl-single,pins = < 589 /* (C13) SPI0_CS1.GPIO1_43 - MMC1_SD_EN */ 590 AM64X_IOPAD(0x020c, PIN_OUTPUT, 7) 591 >; 592 }; 593 594 main_mmc1_wifi_pwrseq_pins: main-mmc1-wifi-pwrseq-pins { 595 pinctrl-single,pins = < 596 /* (V19) GPMC0_AD8.GPIO0_23 - WIFI-BT_EN */ 597 AM64X_IOPAD(0x005c, PIN_OUTPUT, 7) 598 >; 599 }; 600 601 main_spi0_pins: main-spi0-pins { 602 pinctrl-single,pins = < 603 /* (D13) SPI0_CLK */ 604 AM64X_IOPAD(0x0210, PIN_OUTPUT, 0) 605 /* (D12) SPI0_CS0 */ 606 AM64X_IOPAD(0x0208, PIN_OUTPUT, 0) 607 /* (A13) SPI0_D0 */ 608 AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) 609 /* (A14) SPI0_D1 */ 610 AM64X_IOPAD(0x0218, PIN_INPUT, 0) 611 >; 612 }; 613 614 main_spi0_adc_pins: main-spi0-adc-pins { 615 pinctrl-single,pins = < 616 /* (A16) UART0_RTSn.GPIO1_55 - ADC_SYNC */ 617 AM64X_IOPAD(0x023c, PIN_INPUT, 7) 618 /* (D16) UART1_CTSn.GPIO1_58 - ADC_RST# */ 619 AM64X_IOPAD(0x0248, PIN_OUTPUT, 7) 620 /* (E16) UART1_RTSn.GPIO1_59 - ADC_DATA_RDY */ 621 AM64X_IOPAD(0x024c, PIN_INPUT, 7) 622 /* (B19) I2C1_SDA.GPIO1_67 - ADC_INT# */ 623 AM64X_IOPAD(0x026c, PIN_INPUT, 7) 624 >; 625 }; 626 627 main_uart0_pins: main-uart0-pins { 628 pinctrl-single,pins = < 629 /* (D15) UART0_RXD */ 630 AM64X_IOPAD(0x0230, PIN_INPUT, 0) 631 /* (C16) UART0_TXD */ 632 AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) 633 >; 634 }; 635 636 main_uart1_pins: main-uart1-pins { 637 pinctrl-single,pins = < 638 /* (E15) UART1_RXD */ 639 AM64X_IOPAD(0x0240, PIN_INPUT, 0) 640 /* (E14) UART1_TXD */ 641 AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) 642 >; 643 }; 644 645 main_uart2_pins: main-uart2-pins { 646 pinctrl-single,pins = < 647 /* (T18) GPMC0_AD2.UART2_RTSn */ 648 AM64X_IOPAD(0x0044, PIN_OUTPUT, 2) 649 /* (T20) GPMC0_AD0.UART2_RXD */ 650 AM64X_IOPAD(0x003c, PIN_INPUT, 2) 651 /* (U21) GPMC0_AD1.UART2_TXD */ 652 AM64X_IOPAD(0x0040, PIN_OUTPUT, 2) 653 >; 654 }; 655 656 main_uart3_pins: main-uart3-pins { 657 pinctrl-single,pins = < 658 /* (T17) GPMC0_AD9.UART3_CTSn */ 659 AM64X_IOPAD(0x0060, PIN_INPUT, 2) 660 /* (U19) GPMC0_AD5.UART3_RTSn */ 661 AM64X_IOPAD(0x0050, PIN_OUTPUT, 2) 662 /* (U20) GPMC0_AD3.UART3_RXD */ 663 AM64X_IOPAD(0x0048, PIN_INPUT, 2) 664 /* (U18) GPMC0_AD4.UART3_TXD */ 665 AM64X_IOPAD(0x004c, PIN_OUTPUT, 2) 666 >; 667 }; 668 669 main_uart4_pins: main-uart4-pins { 670 pinctrl-single,pins = < 671 /* (R16) GPMC0_AD10.UART4_CTSn */ 672 AM64X_IOPAD(0x0064, PIN_INPUT, 2) 673 /* (R17) GPMC0_CLK.UART4_RTSn */ 674 AM64X_IOPAD(0x007c, PIN_OUTPUT, 2) 675 /* (V20) GPMC0_AD6.UART4_RXD */ 676 AM64X_IOPAD(0x0054, PIN_INPUT, 2) 677 /* (V21) GPMC0_AD7.UART4_TXD */ 678 AM64X_IOPAD(0x0058, PIN_OUTPUT, 2) 679 680 /* Control GPIOs for IOT Module connected to UART4 */ 681 /* (D18) ECAP0_IN_APWM_OUT.GPIO1_68 - BG95_PWRKEY */ 682 AM64X_IOPAD(0x0270, PIN_OUTPUT, 7) 683 /* (A19) EXT_REFCLK1.GPIO1_69 - BG95_RESET */ 684 AM64X_IOPAD(0x0274, PIN_OUTPUT, 7) 685 >; 686 }; 687 688 main_uart5_pins: main-uart5-pins { 689 pinctrl-single,pins = < 690 /* (P16) GPMC0_ADVn_ALE.UART5_RXD */ 691 AM64X_IOPAD(0x0084, PIN_INPUT, 2) 692 /* (R18) GPMC0_OEn_REn.UART5_TXD */ 693 AM64X_IOPAD(0x0088, PIN_OUTPUT, 2) 694 >; 695 }; 696 697 main_usb0_pins: main-usb0-pins { 698 pinctrl-single,pins = < 699 /* (E19) USB0_DRVVBUS */ 700 AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) 701 >; 702 }; 703 704 pru_icssg1_mdio_pins: pru-icssg1-mdio-pins { 705 pinctrl-single,pins = < 706 /* (A15) SPI1_D1.GPIO1_51 - RESET_PRG1_RGMII1# */ 707 AM64X_IOPAD(0x022c, PIN_OUTPUT, 7) 708 /* (B14) SPI1_CS0.GPIO1_47 - RESET_PRG1_RGMII2# */ 709 AM64X_IOPAD(0x021c, PIN_OUTPUT, 7) 710 711 /* (Y6) PRG1_MDIO0_MDC */ 712 AM64X_IOPAD(0x015c, PIN_OUTPUT, 0) 713 /* (AA6) PRG1_MDIO0_MDIO */ 714 AM64X_IOPAD(0x0158, PIN_INPUT, 0) 715 >; 716 }; 717 718 pru_icssg1_rgmii1_pins: pru-icssg1-rgmii1-pins { 719 pinctrl-single,pins = < 720 /* (Y7) PRG1_PRU0_GPO0.PRG1_RGMII1_RD0 */ 721 AM64X_IOPAD(0x00b8, PIN_INPUT, 2) 722 /* (U8) PRG1_PRU0_GPO1.PRG1_RGMII1_RD1 */ 723 AM64X_IOPAD(0x00bc, PIN_INPUT, 2) 724 /* (W8) PRG1_PRU0_GPO2.PRG1_RGMII1_RD2 */ 725 AM64X_IOPAD(0x00c0, PIN_INPUT, 2) 726 /* (V8) PRG1_PRU0_GPO3.PRG1_RGMII1_RD3 */ 727 AM64X_IOPAD(0x00c4, PIN_INPUT, 2) 728 /* (AA7) PRG1_PRU0_GPO6.PRG1_RGMII1_RXC */ 729 AM64X_IOPAD(0x00d0, PIN_INPUT, 2) 730 /* (Y8) PRG1_PRU0_GPO4.PRG1_RGMII1_RX_CTL */ 731 AM64X_IOPAD(0x00c8, PIN_INPUT, 2) 732 /* (AA8) PRG1_PRU0_GPO11.PRG1_RGMII1_TD0 */ 733 AM64X_IOPAD(0x00e4, PIN_OUTPUT, 2) 734 /* (U9) PRG1_PRU0_GPO12.PRG1_RGMII1_TD1 */ 735 AM64X_IOPAD(0x00e8, PIN_OUTPUT, 2) 736 /* (W9) PRG1_PRU0_GPO13.PRG1_RGMII1_TD2 */ 737 AM64X_IOPAD(0x00ec, PIN_OUTPUT, 2) 738 /* (AA9) PRG1_PRU0_GPO14.PRG1_RGMII1_TD3 */ 739 AM64X_IOPAD(0x00f0, PIN_OUTPUT, 2) 740 /* (V9) PRG1_PRU0_GPO16.PRG1_RGMII1_TXC */ 741 AM64X_IOPAD(0x00f8, PIN_OUTPUT, 2) 742 /* (Y9) PRG1_PRU0_GPO15.PRG1_RGMII1_TX_CTL */ 743 AM64X_IOPAD(0x00f4, PIN_OUTPUT, 2) 744 >; 745 }; 746 747 pru_icssg1_rgmii2_pins: pru-icssg1-rgmii2-pins { 748 pinctrl-single,pins = < 749 /* (W11) PRG1_PRU1_GPO0.PRG1_RGMII2_RD0 */ 750 AM64X_IOPAD(0x0108, PIN_INPUT, 2) 751 /* (V11) PRG1_PRU1_GPO1.PRG1_RGMII2_RD1 */ 752 AM64X_IOPAD(0x010c, PIN_INPUT, 2) 753 /* (AA12) PRG1_PRU1_GPO2.PRG1_RGMII2_RD2 */ 754 AM64X_IOPAD(0x0110, PIN_INPUT, 2) 755 /* (Y12) PRG1_PRU1_GPO3.PRG1_RGMII2_RD3 */ 756 AM64X_IOPAD(0x0114, PIN_INPUT, 2) 757 /* (U11) PRG1_PRU1_GPO6.PRG1_RGMII2_RXC */ 758 AM64X_IOPAD(0x0120, PIN_INPUT, 2) 759 /* (W12) PRG1_PRU1_GPO4.PRG1_RGMII2_RX_CTL */ 760 AM64X_IOPAD(0x0118, PIN_INPUT, 2) 761 /* (AA10) PRG1_PRU1_GPO11.PRG1_RGMII2_TD0 */ 762 AM64X_IOPAD(0x0134, PIN_OUTPUT, 2) 763 /* (V10) PRG1_PRU1_GPO12.PRG1_RGMII2_TD1 */ 764 AM64X_IOPAD(0x0138, PIN_OUTPUT, 2) 765 /* (U10) PRG1_PRU1_GPO13.PRG1_RGMII2_TD2 */ 766 AM64X_IOPAD(0x013c, PIN_OUTPUT, 2) 767 /* (AA11) PRG1_PRU1_GPO14.PRG1_RGMII2_TD3 */ 768 AM64X_IOPAD(0x0140, PIN_OUTPUT, 2) 769 /* (Y10) PRG1_PRU1_GPO16.PRG1_RGMII2_TXC */ 770 AM64X_IOPAD(0x0148, PIN_OUTPUT, 2) 771 /* (Y11) PRG1_PRU1_GPO15.PRG1_RGMII2_TX_CTL */ 772 AM64X_IOPAD(0x0144, PIN_OUTPUT, 2) 773 >; 774 }; 775 776 pwm_fan_pins: pwm-fan-pins { 777 pinctrl-single,pins = < 778 /* (T19) GPMC0_BE1n.EHRPWM5_A */ 779 AM64X_IOPAD(0x0094, PIN_OUTPUT, 3) 780 /* (C14) SPI1_CLK.GPIO1_49 - FAN_RPM */ 781 AM64X_IOPAD(0x0224, PIN_INPUT, 7) 782 >; 783 }; 784 785 pwm_fan_reg_pins: pwm-fan-reg-pins { 786 pinctrl-single,pins = < 787 /* (D14) SPI1_CS1.GPIO1_48 - FAN_PWR */ 788 AM64X_IOPAD(0x0220, PIN_OUTPUT, 7) 789 >; 790 }; 791}; 792 793&mcu_pmx0 { 794 mcu_gpio_keys_pins: mcu-gpio-keys-pins { 795 pinctrl-single,pins = < 796 /* (A7) MCU_SPI1_CS0.MCU_GPIO0_5 */ 797 AM64X_MCU_IOPAD(0x0014, PIN_INPUT, 7) 798 >; 799 }; 800 801 mcu_gpio_leds_pins: mcu-gpio-leds-pins { 802 pinctrl-single,pins = < 803 /* (C7) MCU_SPI1_D0.MCU_GPIO0_8 */ 804 AM64X_MCU_IOPAD(0x0020, PIN_OUTPUT, 7) 805 /* (C8) MCU_SPI1_D1.MCU_GPIO0_9 */ 806 AM64X_MCU_IOPAD(0x0024, PIN_OUTPUT, 7) 807 >; 808 }; 809 810 mcu_gpio0_pins: mcu-gpio0-pins { 811 pinctrl-single,pins = < 812 /* (E8) MCU_UART0_RTSn.MCU_GPIO0_0 */ 813 AM64X_MCU_IOPAD(0x0034, PIN_INPUT, 7) 814 /* (D8) MCU_UART0_CTSn.MCU_GPIO0_1 */ 815 AM64X_MCU_IOPAD(0x0030, PIN_INPUT, 7) 816 /* (B7) MCU_SPI1_CS1.MCU_GPIO0_6 */ 817 AM64X_MCU_IOPAD(0x0018, PIN_INPUT, 7) 818 /* (D7) MCU_SPI1_CLK.MCU_GPIO0_7 */ 819 AM64X_MCU_IOPAD(0x001c, PIN_INPUT, 7) 820 /* (A11) MCU_I2C1_SCL.MCU_GPIO0_20 */ 821 AM64X_MCU_IOPAD(0x0050, PIN_INPUT, 7) 822 /* (B10) MCU_I2C1_SDA.MCU_GPIO0_21 */ 823 AM64X_MCU_IOPAD(0x0054, PIN_INPUT, 7) 824 >; 825 }; 826 827 mcu_i2c0_pins: mcu-i2c0-pins { 828 pinctrl-single,pins = < 829 /* (E9) MCU_I2C0_SCL */ 830 AM64X_MCU_IOPAD(0x0048, PIN_INPUT, 0) 831 /* (A10) MCU_I2C0_SDA */ 832 AM64X_MCU_IOPAD(0x004c, PIN_INPUT, 0) 833 >; 834 }; 835 836 mcu_spi0_pins: mcu-spi0-pins { 837 pinctrl-single,pins = < 838 /* (E6) MCU_SPI0_CLK */ 839 AM64X_MCU_IOPAD(0x0008, PIN_OUTPUT, 0) 840 /* (D6) MCU_SPI0_CS0 */ 841 AM64X_MCU_IOPAD(0x0000, PIN_OUTPUT, 0) 842 /* (C6) MCU_SPI0_CS1 */ 843 AM64X_MCU_IOPAD(0x0004, PIN_OUTPUT, 0) 844 /* (E7) MCU_SPI0_D0 */ 845 AM64X_MCU_IOPAD(0x000c, PIN_OUTPUT, 0) 846 /* (B6) MCU_SPI0_D1 */ 847 AM64X_MCU_IOPAD(0x0010, PIN_INPUT, 0) 848 >; 849 }; 850 851 mcu_uart0_pins: mcu-uart0-pins { 852 pinctrl-single,pins = < 853 /* (A9) MCU_UART0_RXD */ 854 AM64X_MCU_IOPAD(0x0028, PIN_INPUT, 0) 855 /* (A8) MCU_UART0_TXD */ 856 AM64X_MCU_IOPAD(0x002c, PIN_OUTPUT, 0) 857 >; 858 }; 859 860 mcu_uart1_pins: mcu-uart1-pins { 861 pinctrl-single,pins = < 862 /* (B8) MCU_UART1_CTSn */ 863 AM64X_MCU_IOPAD(0x0040, PIN_INPUT, 0) 864 /* (B9) MCU_UART1_RTSn */ 865 AM64X_MCU_IOPAD(0x0044, PIN_OUTPUT, 0) 866 /* (C9) MCU_UART1_RXD */ 867 AM64X_MCU_IOPAD(0x0038, PIN_INPUT, 0) 868 /* (D9) MCU_UART1_TXD */ 869 AM64X_MCU_IOPAD(0x003c, PIN_OUTPUT, 0) 870 >; 871 }; 872}; 873