1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Copyright 2019 Toradex 4 */ 5 6/ { 7 chosen { 8 stdout-path = &lpuart3; 9 }; 10 11 colibri_gpio_keys: gpio-keys { 12 compatible = "gpio-keys"; 13 pinctrl-names = "default"; 14 pinctrl-0 = <&pinctrl_gpiokeys>; 15 status = "disabled"; 16 17 key-wakeup { 18 debounce-interval = <10>; 19 gpios = <&lsio_gpio3 10 GPIO_ACTIVE_HIGH>; 20 label = "Wake-Up"; 21 linux,code = <KEY_WAKEUP>; 22 wakeup-source; 23 }; 24 }; 25 26 reg_module_3v3: regulator-module-3v3 { 27 compatible = "regulator-fixed"; 28 regulator-name = "+V3.3"; 29 regulator-min-microvolt = <3300000>; 30 regulator-max-microvolt = <3300000>; 31 }; 32}; 33 34/* TODO Analogue Inputs */ 35 36/* TODO Cooling maps for DX */ 37 38&cpu_alert0 { 39 hysteresis = <2000>; 40 temperature = <90000>; 41 type = "passive"; 42}; 43 44&cpu_crit0 { 45 hysteresis = <2000>; 46 temperature = <105000>; 47 type = "critical"; 48}; 49 50/* TODO flexcan1 - 3 */ 51 52/* TODO GPU */ 53 54/* On-module I2C */ 55&i2c0 { 56 #address-cells = <1>; 57 #size-cells = <0>; 58 clock-frequency = <100000>; 59 pinctrl-names = "default"; 60 pinctrl-0 = <&pinctrl_i2c0>, <&pinctrl_sgtl5000_usb_clk>; 61 status = "okay"; 62 63 /* Touch controller */ 64 touchscreen@2c { 65 compatible = "adi,ad7879-1"; 66 pinctrl-names = "default"; 67 pinctrl-0 = <&pinctrl_ad7879_int>; 68 reg = <0x2c>; 69 interrupt-parent = <&lsio_gpio3>; 70 interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 71 touchscreen-max-pressure = <4096>; 72 adi,resistance-plate-x = <120>; 73 adi,first-conversion-delay = /bits/ 8 <3>; 74 adi,acquisition-time = /bits/ 8 <1>; 75 adi,median-filter-size = /bits/ 8 <2>; 76 adi,averaging = /bits/ 8 <1>; 77 adi,conversion-interval = /bits/ 8 <255>; 78 status = "disabled"; 79 }; 80}; 81 82/* TODO i2c lvds0 accessible on FFC (X2) */ 83 84/* TODO i2c lvds1 accessible on FFC (X3) */ 85 86/* Colibri I2C */ 87&i2c1 { 88 #address-cells = <1>; 89 #size-cells = <0>; 90 clock-frequency = <100000>; 91 pinctrl-names = "default"; 92 pinctrl-0 = <&pinctrl_i2c1>; 93}; 94 95&jpegdec { 96 status = "okay"; 97}; 98 99&jpegenc { 100 status = "okay"; 101}; 102 103/* TODO Parallel RRB */ 104 105/* Colibri UART_B */ 106&lpuart0 { 107 pinctrl-names = "default"; 108 pinctrl-0 = <&pinctrl_lpuart0>; 109}; 110 111/* Colibri UART_C */ 112&lpuart2 { 113 pinctrl-names = "default"; 114 pinctrl-0 = <&pinctrl_lpuart2>; 115}; 116 117/* Colibri UART_A */ 118&lpuart3 { 119 pinctrl-names = "default"; 120 pinctrl-0 = <&pinctrl_lpuart3>, <&pinctrl_lpuart3_ctrl>; 121}; 122 123/* Colibri FastEthernet */ 124&fec1 { 125 pinctrl-names = "default", "sleep"; 126 pinctrl-0 = <&pinctrl_fec1>; 127 pinctrl-1 = <&pinctrl_fec1_sleep>; 128 phy-mode = "rmii"; 129 phy-handle = <ðphy0>; 130 fsl,magic-packet; 131 132 mdio { 133 #address-cells = <1>; 134 #size-cells = <0>; 135 136 ethphy0: ethernet-phy@2 { 137 compatible = "ethernet-phy-ieee802.3-c22"; 138 max-speed = <100>; 139 reg = <2>; 140 }; 141 }; 142}; 143 144/* Colibri SPI */ 145&lpspi2 { 146 pinctrl-names = "default"; 147 pinctrl-0 = <&pinctrl_lpspi2>; 148 cs-gpios = <&lsio_gpio1 0 GPIO_ACTIVE_LOW>; 149}; 150 151&lsio_gpio0 { 152 gpio-line-names = "", 153 "SODIMM_70", 154 "SODIMM_60", 155 "SODIMM_58", 156 "SODIMM_78", 157 "SODIMM_72", 158 "SODIMM_80", 159 "SODIMM_46", 160 "SODIMM_62", 161 "SODIMM_48", 162 "SODIMM_74", 163 "SODIMM_50", 164 "SODIMM_52", 165 "SODIMM_54", 166 "SODIMM_66", 167 "SODIMM_64", 168 "SODIMM_68", 169 "", 170 "", 171 "SODIMM_82", 172 "SODIMM_56", 173 "SODIMM_28", 174 "SODIMM_30", 175 "", 176 "SODIMM_61", 177 "SODIMM_103", 178 "", 179 "", 180 "", 181 "SODIMM_25", 182 "SODIMM_27", 183 "SODIMM_100"; 184}; 185 186&lsio_gpio1 { 187 gpio-line-names = "SODIMM_86", 188 "SODIMM_92", 189 "SODIMM_90", 190 "SODIMM_88", 191 "", 192 "", 193 "", 194 "SODIMM_59", 195 "", 196 "SODIMM_6", 197 "SODIMM_8", 198 "", 199 "", 200 "SODIMM_2", 201 "SODIMM_4", 202 "SODIMM_34", 203 "SODIMM_32", 204 "SODIMM_63", 205 "SODIMM_55", 206 "SODIMM_33", 207 "SODIMM_35", 208 "SODIMM_36", 209 "SODIMM_38", 210 "SODIMM_21", 211 "SODIMM_19", 212 "SODIMM_140", 213 "SODIMM_142", 214 "SODIMM_196", 215 "SODIMM_194", 216 "SODIMM_186", 217 "SODIMM_188", 218 "SODIMM_138"; 219}; 220 221&lsio_gpio2 { 222 gpio-line-names = "SODIMM_23", 223 "", 224 "", 225 "SODIMM_144"; 226}; 227 228&lsio_gpio3 { 229 gpio-line-names = "SODIMM_96", 230 "SODIMM_75", 231 "SODIMM_37", 232 "SODIMM_29", 233 "", 234 "", 235 "", 236 "", 237 "", 238 "SODIMM_43", 239 "SODIMM_45", 240 "SODIMM_69", 241 "SODIMM_71", 242 "SODIMM_73", 243 "SODIMM_77", 244 "SODIMM_89", 245 "SODIMM_93", 246 "SODIMM_95", 247 "SODIMM_99", 248 "SODIMM_105", 249 "SODIMM_107", 250 "SODIMM_98", 251 "SODIMM_102", 252 "SODIMM_104", 253 "SODIMM_106"; 254}; 255 256&lsio_gpio4 { 257 gpio-line-names = "", 258 "", 259 "", 260 "SODIMM_129", 261 "SODIMM_133", 262 "SODIMM_127", 263 "SODIMM_131", 264 "", 265 "", 266 "", 267 "", 268 "", 269 "", 270 "", 271 "", 272 "", 273 "", 274 "", 275 "", 276 "SODIMM_44", 277 "", 278 "SODIMM_76", 279 "SODIMM_31", 280 "SODIMM_47", 281 "SODIMM_190", 282 "SODIMM_192", 283 "SODIMM_49", 284 "SODIMM_51", 285 "SODIMM_53"; 286}; 287 288&lsio_gpio5 { 289 gpio-line-names = "", 290 "SODIMM_57", 291 "SODIMM_65", 292 "SODIMM_85", 293 "", 294 "", 295 "", 296 "", 297 "SODIMM_135", 298 "SODIMM_137", 299 "UNUSABLE_SODIMM_180", 300 "UNUSABLE_SODIMM_184"; 301}; 302 303/* Colibri PWM_B */ 304&lsio_pwm0 { 305 #pwm-cells = <3>; 306 pinctrl-0 = <&pinctrl_pwm_b>; 307 pinctrl-names = "default"; 308}; 309 310/* Colibri PWM_C */ 311&lsio_pwm1 { 312 #pwm-cells = <3>; 313 pinctrl-0 = <&pinctrl_pwm_c>; 314 pinctrl-names = "default"; 315}; 316 317/* Colibri PWM_D */ 318&lsio_pwm2 { 319 #pwm-cells = <3>; 320 pinctrl-0 = <&pinctrl_pwm_d>; 321 pinctrl-names = "default"; 322}; 323 324/* TODO MIPI CSI */ 325 326/* TODO MIPI DSI with DSI-to-HDMI bridge lt8912 */ 327 328/* TODO on-module PCIe for Wi-Fi */ 329 330/* TODO On-module i2s / Audio */ 331 332/* On-module eMMC */ 333&usdhc1 { 334 bus-width = <8>; 335 non-removable; 336 no-sd; 337 no-sdio; 338 pinctrl-names = "default", "state_100mhz", "state_200mhz"; 339 pinctrl-0 = <&pinctrl_usdhc1>; 340 pinctrl-1 = <&pinctrl_usdhc1_100mhz>; 341 pinctrl-2 = <&pinctrl_usdhc1_200mhz>; 342 status = "okay"; 343}; 344 345/* Colibri SD/MMC Card */ 346&usdhc2 { 347 bus-width = <4>; 348 cd-gpios = <&lsio_gpio3 9 GPIO_ACTIVE_LOW>; 349 vmmc-supply = <®_module_3v3>; 350 pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; 351 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; 352 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; 353 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; 354 pinctrl-3 = <&pinctrl_usdhc2_sleep>, <&pinctrl_usdhc2_gpio_sleep>; 355 disable-wp; 356 no-1-8-v; 357}; 358 359/* TODO USB Client/Host */ 360 361/* TODO USB Host */ 362 363/* TODO VPU Encoder/Decoder */ 364 365&iomuxc { 366 pinctrl-names = "default"; 367 pinctrl-0 = <&pinctrl_ext_io0>, <&pinctrl_hog0>, <&pinctrl_hog1>, 368 <&pinctrl_hog2>, <&pinctrl_lpspi2_cs2>; 369 370 /* On-module touch pen-down interrupt */ 371 pinctrl_ad7879_int: ad7879intgrp { 372 fsl,pins = <IMX8QXP_MIPI_CSI0_I2C0_SCL_LSIO_GPIO3_IO05 0x21>; 373 }; 374 375 /* Colibri Analogue Inputs */ 376 pinctrl_adc0: adc0grp { 377 fsl,pins = <IMX8QXP_ADC_IN0_ADMA_ADC_IN0 0x60>, /* SODIMM 8 */ 378 <IMX8QXP_ADC_IN1_ADMA_ADC_IN1 0x60>, /* SODIMM 6 */ 379 <IMX8QXP_ADC_IN4_ADMA_ADC_IN4 0x60>, /* SODIMM 4 */ 380 <IMX8QXP_ADC_IN5_ADMA_ADC_IN5 0x60>; /* SODIMM 2 */ 381 }; 382 383 /* Atmel MXT touchsceen + Capacitive Touch Adapter */ 384 /* NOTE: This pingroup conflicts with pingroups 385 * pinctrl_pwm_b/pinctrl_pwm_c. Don't enable them 386 * simultaneously. 387 */ 388 pinctrl_atmel_adap: atmeladaptergrp { 389 fsl,pins = <IMX8QXP_UART1_RX_LSIO_GPIO0_IO22 0x21>, /* SODIMM 30 */ 390 <IMX8QXP_UART1_TX_LSIO_GPIO0_IO21 0x4000021>; /* SODIMM 28 */ 391 }; 392 393 /* Atmel MXT touchsceen + boards with built-in Capacitive Touch Connector */ 394 pinctrl_atmel_conn: atmelconnectorgrp { 395 fsl,pins = <IMX8QXP_QSPI0B_DATA2_LSIO_GPIO3_IO20 0x4000021>, /* SODIMM 107 */ 396 <IMX8QXP_QSPI0B_SS1_B_LSIO_GPIO3_IO24 0x21>; /* SODIMM 106 */ 397 }; 398 399 pinctrl_can_int: canintgrp { 400 fsl,pins = <IMX8QXP_QSPI0A_DQS_LSIO_GPIO3_IO13 0x40>; /* SODIMM 73 */ 401 }; 402 403 pinctrl_csi_ctl: csictlgrp { 404 fsl,pins = <IMX8QXP_QSPI0A_SS0_B_LSIO_GPIO3_IO14 0x20>, /* SODIMM 77 */ 405 <IMX8QXP_QSPI0A_SS1_B_LSIO_GPIO3_IO15 0x20>; /* SODIMM 89 */ 406 }; 407 408 pinctrl_csi_mclk: csimclkgrp { 409 fsl,pins = <IMX8QXP_CSI_MCLK_CI_PI_MCLK 0xC0000041>; /* SODIMM 75 / X3-12 */ 410 }; 411 412 pinctrl_ext_io0: extio0grp { 413 fsl,pins = <IMX8QXP_ENET0_RGMII_RXD3_LSIO_GPIO5_IO08 0x06000040>; /* SODIMM 135 */ 414 }; 415 416 /* Colibri Ethernet: On-module 100Mbps PHY Micrel KSZ8041 */ 417 pinctrl_fec1: fec1grp { 418 fsl,pins = <IMX8QXP_ENET0_MDC_CONN_ENET0_MDC 0x06000020>, 419 <IMX8QXP_ENET0_MDIO_CONN_ENET0_MDIO 0x06000020>, 420 <IMX8QXP_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x61>, 421 <IMX8QXP_ENET0_RGMII_TXC_CONN_ENET0_RCLK50M_OUT 0x06000061>, 422 <IMX8QXP_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x61>, 423 <IMX8QXP_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x61>, 424 <IMX8QXP_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x61>, 425 <IMX8QXP_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x61>, 426 <IMX8QXP_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x61>, 427 <IMX8QXP_ENET0_RGMII_RXD2_CONN_ENET0_RMII_RX_ER 0x61>; 428 }; 429 430 pinctrl_fec1_sleep: fec1slpgrp { 431 fsl,pins = <IMX8QXP_ENET0_MDC_LSIO_GPIO5_IO11 0x06000041>, 432 <IMX8QXP_ENET0_MDIO_LSIO_GPIO5_IO10 0x06000041>, 433 <IMX8QXP_ENET0_RGMII_TX_CTL_LSIO_GPIO4_IO30 0x41>, 434 <IMX8QXP_ENET0_RGMII_TXC_LSIO_GPIO4_IO29 0x41>, 435 <IMX8QXP_ENET0_RGMII_TXD0_LSIO_GPIO4_IO31 0x41>, 436 <IMX8QXP_ENET0_RGMII_TXD1_LSIO_GPIO5_IO00 0x41>, 437 <IMX8QXP_ENET0_RGMII_RX_CTL_LSIO_GPIO5_IO04 0x41>, 438 <IMX8QXP_ENET0_RGMII_RXD0_LSIO_GPIO5_IO05 0x41>, 439 <IMX8QXP_ENET0_RGMII_RXD1_LSIO_GPIO5_IO06 0x41>, 440 <IMX8QXP_ENET0_RGMII_RXD2_LSIO_GPIO5_IO07 0x41>; 441 }; 442 443 /* Colibri optional CAN on UART_B RTS/CTS */ 444 pinctrl_flexcan1: flexcan0grp { 445 fsl,pins = <IMX8QXP_FLEXCAN0_TX_ADMA_FLEXCAN0_TX 0x21>, /* SODIMM 32 */ 446 <IMX8QXP_FLEXCAN0_RX_ADMA_FLEXCAN0_RX 0x21>; /* SODIMM 34 */ 447 }; 448 449 /* Colibri optional CAN on PS2 */ 450 pinctrl_flexcan2: flexcan1grp { 451 fsl,pins = <IMX8QXP_FLEXCAN1_TX_ADMA_FLEXCAN1_TX 0x21>, /* SODIMM 55 */ 452 <IMX8QXP_FLEXCAN1_RX_ADMA_FLEXCAN1_RX 0x21>; /* SODIMM 63 */ 453 }; 454 455 /* Colibri optional CAN on UART_A TXD/RXD */ 456 pinctrl_flexcan3: flexcan2grp { 457 fsl,pins = <IMX8QXP_FLEXCAN2_TX_ADMA_FLEXCAN2_TX 0x21>, /* SODIMM 35 */ 458 <IMX8QXP_FLEXCAN2_RX_ADMA_FLEXCAN2_RX 0x21>; /* SODIMM 33 */ 459 }; 460 461 /* Colibri LCD Back-Light GPIO */ 462 pinctrl_gpio_bl_on: gpioblongrp { 463 fsl,pins = <IMX8QXP_QSPI0A_DATA3_LSIO_GPIO3_IO12 0x60>; /* SODIMM 71 */ 464 }; 465 466 /* HDMI Hot Plug Detect on FFC (X2) */ 467 pinctrl_gpio_hpd: gpiohpdgrp { 468 fsl,pins = <IMX8QXP_MIPI_DSI1_GPIO0_00_LSIO_GPIO1_IO31 0x20>; /* SODIMM 138 */ 469 }; 470 471 pinctrl_gpiokeys: gpiokeysgrp { 472 fsl,pins = <IMX8QXP_QSPI0A_DATA1_LSIO_GPIO3_IO10 0x06700041>; /* SODIMM 45 */ 473 }; 474 475 pinctrl_hog0: hog0grp { 476 fsl,pins = <IMX8QXP_CSI_D07_CI_PI_D09 0x61>, /* SODIMM 65 */ 477 <IMX8QXP_QSPI0A_DATA2_LSIO_GPIO3_IO11 0x20>, /* SODIMM 69 */ 478 <IMX8QXP_SAI0_TXC_LSIO_GPIO0_IO26 0x20>, /* SODIMM 79 */ 479 <IMX8QXP_CSI_D02_CI_PI_D04 0x61>, /* SODIMM 79 */ 480 <IMX8QXP_ENET0_RGMII_RXC_LSIO_GPIO5_IO03 0x06000020>, /* SODIMM 85 */ 481 <IMX8QXP_CSI_D06_CI_PI_D08 0x61>, /* SODIMM 85 */ 482 <IMX8QXP_QSPI0B_SCLK_LSIO_GPIO3_IO17 0x20>, /* SODIMM 95 */ 483 <IMX8QXP_SAI0_RXD_LSIO_GPIO0_IO27 0x20>, /* SODIMM 97 */ 484 <IMX8QXP_CSI_D03_CI_PI_D05 0x61>, /* SODIMM 97 */ 485 <IMX8QXP_QSPI0B_DATA0_LSIO_GPIO3_IO18 0x20>, /* SODIMM 99 */ 486 <IMX8QXP_SAI0_TXFS_LSIO_GPIO0_IO28 0x20>, /* SODIMM 101 */ 487 <IMX8QXP_CSI_D00_CI_PI_D02 0x61>, /* SODIMM 101 */ 488 <IMX8QXP_SAI0_TXD_LSIO_GPIO0_IO25 0x20>, /* SODIMM 103 */ 489 <IMX8QXP_CSI_D01_CI_PI_D03 0x61>, /* SODIMM 103 */ 490 <IMX8QXP_QSPI0B_DATA1_LSIO_GPIO3_IO19 0x20>, /* SODIMM 105 */ 491 <IMX8QXP_USB_SS3_TC2_LSIO_GPIO4_IO05 0x20>, /* SODIMM 127 */ 492 <IMX8QXP_USB_SS3_TC3_LSIO_GPIO4_IO06 0x20>, /* SODIMM 131 */ 493 <IMX8QXP_USB_SS3_TC1_LSIO_GPIO4_IO04 0x20>, /* SODIMM 133 */ 494 <IMX8QXP_CSI_PCLK_LSIO_GPIO3_IO00 0x20>, /* SODIMM 96 */ 495 <IMX8QXP_QSPI0B_DATA3_LSIO_GPIO3_IO21 0x20>, /* SODIMM 98 */ 496 <IMX8QXP_SAI1_RXFS_LSIO_GPIO0_IO31 0x20>, /* SODIMM 100 */ 497 <IMX8QXP_QSPI0B_DQS_LSIO_GPIO3_IO22 0x20>, /* SODIMM 102 */ 498 <IMX8QXP_QSPI0B_SS0_B_LSIO_GPIO3_IO23 0x20>; /* SODIMM 104 */ 499 }; 500 501 pinctrl_hog1: hog1grp { 502 fsl,pins = <IMX8QXP_CSI_MCLK_LSIO_GPIO3_IO01 0x20>, /* SODIMM 75 */ 503 <IMX8QXP_QSPI0A_SCLK_LSIO_GPIO3_IO16 0x20>; /* SODIMM 93 */ 504 }; 505 506 pinctrl_hog2: hog2grp { 507 fsl,pins = <IMX8QXP_CSI_MCLK_LSIO_GPIO3_IO01 0x20>; /* SODIMM 75 */ 508 }; 509 510 /* 511 * This pin is used in the SCFW as a UART. Using it from 512 * Linux would require rewritting the SCFW board file. 513 */ 514 pinctrl_hog_scfw: hogscfwgrp { 515 fsl,pins = <IMX8QXP_SCU_GPIO0_00_LSIO_GPIO2_IO03 0x20>; /* SODIMM 144 */ 516 }; 517 518 /* On Module I2C */ 519 pinctrl_i2c0: i2c0grp { 520 fsl,pins = <IMX8QXP_MIPI_CSI0_GPIO0_00_ADMA_I2C0_SCL 0x06000021>, 521 <IMX8QXP_MIPI_CSI0_GPIO0_01_ADMA_I2C0_SDA 0x06000021>; 522 }; 523 524 /* MIPI DSI I2C accessible on SODIMM (X1) and FFC (X2) */ 525 pinctrl_i2c0_mipi_lvds0: i2c0mipilvds0grp { 526 fsl,pins = <IMX8QXP_MIPI_DSI0_I2C0_SCL_MIPI_DSI0_I2C0_SCL 0xc6000020>, /* SODIMM 140 */ 527 <IMX8QXP_MIPI_DSI0_I2C0_SDA_MIPI_DSI0_I2C0_SDA 0xc6000020>; /* SODIMM 142 */ 528 }; 529 530 /* MIPI CSI I2C accessible on SODIMM (X1) and FFC (X3) */ 531 pinctrl_i2c0_mipi_lvds1: i2c0mipilvds1grp { 532 fsl,pins = <IMX8QXP_MIPI_DSI1_I2C0_SCL_MIPI_DSI1_I2C0_SCL 0xc6000020>, /* SODIMM 186 */ 533 <IMX8QXP_MIPI_DSI1_I2C0_SDA_MIPI_DSI1_I2C0_SDA 0xc6000020>; /* SODIMM 188 */ 534 }; 535 536 /* Colibri I2C */ 537 pinctrl_i2c1: i2c1grp { 538 fsl,pins = <IMX8QXP_MIPI_DSI0_GPIO0_00_ADMA_I2C1_SCL 0x06000021>, /* SODIMM 196 */ 539 <IMX8QXP_MIPI_DSI0_GPIO0_01_ADMA_I2C1_SDA 0x06000021>; /* SODIMM 194 */ 540 }; 541 542 /* Colibri Parallel RGB LCD Interface */ 543 pinctrl_lcdif: lcdifgrp { 544 fsl,pins = <IMX8QXP_MCLK_OUT0_ADMA_LCDIF_CLK 0x60>, /* SODIMM 56 */ 545 <IMX8QXP_SPI3_CS0_ADMA_LCDIF_HSYNC 0x60>, /* SODIMM 68 */ 546 <IMX8QXP_MCLK_IN0_ADMA_LCDIF_VSYNC 0x60>, /* SODIMM 82 */ 547 <IMX8QXP_MCLK_IN1_ADMA_LCDIF_EN 0x40>, /* SODIMM 44 */ 548 <IMX8QXP_USDHC1_RESET_B_LSIO_GPIO4_IO19 0x40>, /* SODIMM 44 */ 549 <IMX8QXP_ESAI0_FSR_ADMA_LCDIF_D00 0x60>, /* SODIMM 76 */ 550 <IMX8QXP_USDHC1_WP_LSIO_GPIO4_IO21 0x60>, /* SODIMM 76 */ 551 <IMX8QXP_ESAI0_FST_ADMA_LCDIF_D01 0x60>, /* SODIMM 70 */ 552 <IMX8QXP_ESAI0_SCKR_ADMA_LCDIF_D02 0x60>, /* SODIMM 60 */ 553 <IMX8QXP_ESAI0_SCKT_ADMA_LCDIF_D03 0x60>, /* SODIMM 58 */ 554 <IMX8QXP_ESAI0_TX0_ADMA_LCDIF_D04 0x60>, /* SODIMM 78 */ 555 <IMX8QXP_ESAI0_TX1_ADMA_LCDIF_D05 0x60>, /* SODIMM 72 */ 556 <IMX8QXP_ESAI0_TX2_RX3_ADMA_LCDIF_D06 0x60>, /* SODIMM 80 */ 557 <IMX8QXP_ESAI0_TX3_RX2_ADMA_LCDIF_D07 0x60>, /* SODIMM 46 */ 558 <IMX8QXP_ESAI0_TX4_RX1_ADMA_LCDIF_D08 0x60>, /* SODIMM 62 */ 559 <IMX8QXP_ESAI0_TX5_RX0_ADMA_LCDIF_D09 0x60>, /* SODIMM 48 */ 560 <IMX8QXP_SPDIF0_RX_ADMA_LCDIF_D10 0x60>, /* SODIMM 74 */ 561 <IMX8QXP_SPDIF0_TX_ADMA_LCDIF_D11 0x60>, /* SODIMM 50 */ 562 <IMX8QXP_SPDIF0_EXT_CLK_ADMA_LCDIF_D12 0x60>, /* SODIMM 52 */ 563 <IMX8QXP_SPI3_SCK_ADMA_LCDIF_D13 0x60>, /* SODIMM 54 */ 564 <IMX8QXP_SPI3_SDO_ADMA_LCDIF_D14 0x60>, /* SODIMM 66 */ 565 <IMX8QXP_SPI3_SDI_ADMA_LCDIF_D15 0x60>, /* SODIMM 64 */ 566 <IMX8QXP_SPI3_CS1_ADMA_LCDIF_D16 0x60>, /* SODIMM 57 */ 567 <IMX8QXP_ENET0_RGMII_TXD2_LSIO_GPIO5_IO01 0x60>, /* SODIMM 57 */ 568 <IMX8QXP_UART1_CTS_B_ADMA_LCDIF_D17 0x60>; /* SODIMM 61 */ 569 }; 570 571 /* Colibri SPI */ 572 pinctrl_lpspi2: lpspi2grp { 573 fsl,pins = <IMX8QXP_SPI2_CS0_LSIO_GPIO1_IO00 0x21>, /* SODIMM 86 */ 574 <IMX8QXP_SPI2_SDO_ADMA_SPI2_SDO 0x06000040>, /* SODIMM 92 */ 575 <IMX8QXP_SPI2_SDI_ADMA_SPI2_SDI 0x06000040>, /* SODIMM 90 */ 576 <IMX8QXP_SPI2_SCK_ADMA_SPI2_SCK 0x06000040>; /* SODIMM 88 */ 577 }; 578 579 pinctrl_lpspi2_cs2: lpspi2cs2grp { 580 fsl,pins = <IMX8QXP_ENET0_RGMII_TXD3_LSIO_GPIO5_IO02 0x21>; /* SODIMM 65 */ 581 }; 582 583 /* Colibri UART_B */ 584 pinctrl_lpuart0: lpuart0grp { 585 fsl,pins = <IMX8QXP_UART0_RX_ADMA_UART0_RX 0x06000020>, /* SODIMM 36 */ 586 <IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020>, /* SODIMM 38 */ 587 <IMX8QXP_FLEXCAN0_RX_ADMA_UART0_RTS_B 0x06000020>, /* SODIMM 34 */ 588 <IMX8QXP_FLEXCAN0_TX_ADMA_UART0_CTS_B 0x06000020>; /* SODIMM 32 */ 589 }; 590 591 /* Colibri UART_C */ 592 pinctrl_lpuart2: lpuart2grp { 593 fsl,pins = <IMX8QXP_UART2_RX_ADMA_UART2_RX 0x06000020>, /* SODIMM 19 */ 594 <IMX8QXP_UART2_TX_ADMA_UART2_TX 0x06000020>; /* SODIMM 21 */ 595 }; 596 597 /* Colibri UART_A */ 598 pinctrl_lpuart3: lpuart3grp { 599 fsl,pins = <IMX8QXP_FLEXCAN2_RX_ADMA_UART3_RX 0x06000020>, /* SODIMM 33 */ 600 <IMX8QXP_FLEXCAN2_TX_ADMA_UART3_TX 0x06000020>; /* SODIMM 35 */ 601 }; 602 603 /* Colibri UART_A Control */ 604 pinctrl_lpuart3_ctrl: lpuart3ctrlgrp { 605 fsl,pins = <IMX8QXP_MIPI_DSI1_GPIO0_01_LSIO_GPIO2_IO00 0x20>, /* SODIMM 23 */ 606 <IMX8QXP_SAI1_RXD_LSIO_GPIO0_IO29 0x20>, /* SODIMM 25 */ 607 <IMX8QXP_SAI1_RXC_LSIO_GPIO0_IO30 0x20>, /* SODIMM 27 */ 608 <IMX8QXP_CSI_RESET_LSIO_GPIO3_IO03 0x20>, /* SODIMM 29 */ 609 <IMX8QXP_USDHC1_CD_B_LSIO_GPIO4_IO22 0x20>, /* SODIMM 31 */ 610 <IMX8QXP_CSI_EN_LSIO_GPIO3_IO02 0x20>; /* SODIMM 37 */ 611 }; 612 613 /* On module wifi module */ 614 pinctrl_pcieb: pciebgrp { 615 fsl,pins = <IMX8QXP_PCIE_CTRL0_CLKREQ_B_LSIO_GPIO4_IO01 0x04000061>, /* SODIMM 178 */ 616 <IMX8QXP_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02 0x04000061>, /* SODIMM 94 */ 617 <IMX8QXP_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00 0x60>; /* SODIMM 81 */ 618 }; 619 620 /* Colibri PWM_A */ 621 pinctrl_pwm_a: pwmagrp { 622 /* both pins are connected together, reserve the unused CSI_D05 */ 623 fsl,pins = <IMX8QXP_CSI_D05_CI_PI_D07 0x61>, /* SODIMM 59 */ 624 <IMX8QXP_SPI0_CS1_ADMA_LCD_PWM0_OUT 0x60>; /* SODIMM 59 */ 625 }; 626 627 /* Colibri PWM_B */ 628 pinctrl_pwm_b: pwmbgrp { 629 fsl,pins = <IMX8QXP_UART1_TX_LSIO_PWM0_OUT 0x60>; /* SODIMM 28 */ 630 }; 631 632 /* Colibri PWM_C */ 633 pinctrl_pwm_c: pwmcgrp { 634 fsl,pins = <IMX8QXP_UART1_RX_LSIO_PWM1_OUT 0x60>; /* SODIMM 30 */ 635 }; 636 637 /* Colibri PWM_D */ 638 pinctrl_pwm_d: pwmdgrp { 639 /* both pins are connected together, reserve the unused CSI_D04 */ 640 fsl,pins = <IMX8QXP_CSI_D04_CI_PI_D06 0x61>, /* SODIMM 67 */ 641 <IMX8QXP_UART1_RTS_B_LSIO_PWM2_OUT 0x60>; /* SODIMM 67 */ 642 }; 643 644 /* On-module I2S */ 645 pinctrl_sai0: sai0grp { 646 fsl,pins = <IMX8QXP_SPI0_SDI_ADMA_SAI0_TXD 0x06000040>, 647 <IMX8QXP_SPI0_CS0_ADMA_SAI0_RXD 0x06000040>, 648 <IMX8QXP_SPI0_SCK_ADMA_SAI0_TXC 0x06000040>, 649 <IMX8QXP_SPI0_SDO_ADMA_SAI0_TXFS 0x06000040>; 650 }; 651 652 /* Colibri Audio Analogue Microphone GND */ 653 pinctrl_sgtl5000: sgtl5000grp { 654 fsl,pins = <IMX8QXP_MIPI_CSI0_I2C0_SDA_LSIO_GPIO3_IO06 0x41>; 655 }; 656 657 /* On-module SGTL5000 clock */ 658 pinctrl_sgtl5000_usb_clk: sgtl5000usbclkgrp { 659 fsl,pins = <IMX8QXP_ADC_IN3_ADMA_ACM_MCLK_OUT0 0x21>; 660 }; 661 662 /* On-module USB interrupt */ 663 pinctrl_usb3503a: usb3503agrp { 664 fsl,pins = <IMX8QXP_MIPI_CSI0_MCLK_OUT_LSIO_GPIO3_IO04 0x61>; 665 }; 666 667 /* Colibri USB Client Cable Detect */ 668 pinctrl_usbc_det: usbcdetgrp { 669 fsl,pins = <IMX8QXP_ENET0_REFCLK_125M_25M_LSIO_GPIO5_IO09 0x06000040>; /* SODIMM 137 */ 670 }; 671 672 /* USB Host Power Enable */ 673 pinctrl_usbh1_reg: usbh1reggrp { 674 fsl,pins = <IMX8QXP_USB_SS3_TC0_LSIO_GPIO4_IO03 0x06000040>; /* SODIMM 129 */ 675 }; 676 677 /* On-module eMMC */ 678 pinctrl_usdhc1: usdhc1grp { 679 fsl,pins = <IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041>, 680 <IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD 0x21>, 681 <IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0 0x21>, 682 <IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1 0x21>, 683 <IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2 0x21>, 684 <IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3 0x21>, 685 <IMX8QXP_EMMC0_DATA4_CONN_EMMC0_DATA4 0x21>, 686 <IMX8QXP_EMMC0_DATA5_CONN_EMMC0_DATA5 0x21>, 687 <IMX8QXP_EMMC0_DATA6_CONN_EMMC0_DATA6 0x21>, 688 <IMX8QXP_EMMC0_DATA7_CONN_EMMC0_DATA7 0x21>, 689 <IMX8QXP_EMMC0_STROBE_CONN_EMMC0_STROBE 0x41>, 690 <IMX8QXP_EMMC0_RESET_B_CONN_EMMC0_RESET_B 0x21>; 691 }; 692 693 pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { 694 fsl,pins = <IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041>, 695 <IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD 0x21>, 696 <IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0 0x21>, 697 <IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1 0x21>, 698 <IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2 0x21>, 699 <IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3 0x21>, 700 <IMX8QXP_EMMC0_DATA4_CONN_EMMC0_DATA4 0x21>, 701 <IMX8QXP_EMMC0_DATA5_CONN_EMMC0_DATA5 0x21>, 702 <IMX8QXP_EMMC0_DATA6_CONN_EMMC0_DATA6 0x21>, 703 <IMX8QXP_EMMC0_DATA7_CONN_EMMC0_DATA7 0x21>, 704 <IMX8QXP_EMMC0_STROBE_CONN_EMMC0_STROBE 0x41>, 705 <IMX8QXP_EMMC0_RESET_B_CONN_EMMC0_RESET_B 0x21>; 706 }; 707 708 pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { 709 fsl,pins = <IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041>, 710 <IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD 0x21>, 711 <IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0 0x21>, 712 <IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1 0x21>, 713 <IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2 0x21>, 714 <IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3 0x21>, 715 <IMX8QXP_EMMC0_DATA4_CONN_EMMC0_DATA4 0x21>, 716 <IMX8QXP_EMMC0_DATA5_CONN_EMMC0_DATA5 0x21>, 717 <IMX8QXP_EMMC0_DATA6_CONN_EMMC0_DATA6 0x21>, 718 <IMX8QXP_EMMC0_DATA7_CONN_EMMC0_DATA7 0x21>, 719 <IMX8QXP_EMMC0_STROBE_CONN_EMMC0_STROBE 0x41>, 720 <IMX8QXP_EMMC0_RESET_B_CONN_EMMC0_RESET_B 0x21>; 721 }; 722 723 /* Colibri SD/MMC Card Detect */ 724 pinctrl_usdhc2_gpio: usdhc2gpiogrp { 725 fsl,pins = <IMX8QXP_QSPI0A_DATA0_LSIO_GPIO3_IO09 0x06000021>; /* SODIMM 43 */ 726 }; 727 728 pinctrl_usdhc2_gpio_sleep: usdhc2gpioslpgrp { 729 fsl,pins = <IMX8QXP_QSPI0A_DATA0_LSIO_GPIO3_IO09 0x60>; /* SODIMM 43 */ 730 }; 731 732 /* Colibri SD/MMC Card */ 733 pinctrl_usdhc2: usdhc2grp { 734 fsl,pins = <IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041>, /* SODIMM 47 */ 735 <IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD 0x21>, /* SODIMM 190 */ 736 <IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0 0x21>, /* SODIMM 192 */ 737 <IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1 0x21>, /* SODIMM 49 */ 738 <IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2 0x21>, /* SODIMM 51 */ 739 <IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3 0x21>, /* SODIMM 53 */ 740 <IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x21>; 741 }; 742 743 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { 744 fsl,pins = <IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041>, /* SODIMM 47 */ 745 <IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD 0x21>, /* SODIMM 190 */ 746 <IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0 0x21>, /* SODIMM 192 */ 747 <IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1 0x21>, /* SODIMM 49 */ 748 <IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2 0x21>, /* SODIMM 51 */ 749 <IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3 0x21>, /* SODIMM 53 */ 750 <IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x21>; 751 }; 752 753 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { 754 fsl,pins = <IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041>, /* SODIMM 47 */ 755 <IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD 0x21>, /* SODIMM 190 */ 756 <IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0 0x21>, /* SODIMM 192 */ 757 <IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1 0x21>, /* SODIMM 49 */ 758 <IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2 0x21>, /* SODIMM 51 */ 759 <IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3 0x21>, /* SODIMM 53 */ 760 <IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x21>; 761 }; 762 763 pinctrl_usdhc2_sleep: usdhc2slpgrp { 764 fsl,pins = <IMX8QXP_USDHC1_CLK_LSIO_GPIO4_IO23 0x60>, /* SODIMM 47 */ 765 <IMX8QXP_USDHC1_CMD_LSIO_GPIO4_IO24 0x60>, /* SODIMM 190 */ 766 <IMX8QXP_USDHC1_DATA0_LSIO_GPIO4_IO25 0x60>, /* SODIMM 192 */ 767 <IMX8QXP_USDHC1_DATA1_LSIO_GPIO4_IO26 0x60>, /* SODIMM 49 */ 768 <IMX8QXP_USDHC1_DATA2_LSIO_GPIO4_IO27 0x60>, /* SODIMM 51 */ 769 <IMX8QXP_USDHC1_DATA3_LSIO_GPIO4_IO28 0x60>, /* SODIMM 53 */ 770 <IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x21>; 771 }; 772 773 pinctrl_wifi: wifigrp { 774 fsl,pins = <IMX8QXP_SCU_BOOT_MODE3_SCU_DSC_RTC_CLOCK_OUTPUT_32K 0x20>; 775 }; 776}; 777