// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Copyright 2019 Toradex */ / { chosen { stdout-path = &lpuart3; }; reg_module_3v3: regulator-module-3v3 { compatible = "regulator-fixed"; regulator-name = "+V3.3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; }; /* On-module I2C */ &i2c0 { #address-cells = <1>; #size-cells = <0>; clock-frequency = <100000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c0>, <&pinctrl_sgtl5000_usb_clk>; status = "okay"; /* Touch controller */ touchscreen@2c { compatible = "adi,ad7879-1"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ad7879_int>; reg = <0x2c>; interrupt-parent = <&lsio_gpio3>; interrupts = <5 IRQ_TYPE_EDGE_FALLING>; touchscreen-max-pressure = <4096>; adi,resistance-plate-x = <120>; adi,first-conversion-delay = /bits/ 8 <3>; adi,acquisition-time = /bits/ 8 <1>; adi,median-filter-size = /bits/ 8 <2>; adi,averaging = /bits/ 8 <1>; adi,conversion-interval = /bits/ 8 <255>; status = "disabled"; }; }; /* Colibri I2C */ &i2c1 { #address-cells = <1>; #size-cells = <0>; clock-frequency = <100000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; }; &jpegdec { status = "okay"; }; &jpegenc { status = "okay"; }; /* Colibri UART_B */ &lpuart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart0>; }; /* Colibri UART_C */ &lpuart2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart2>; }; /* Colibri UART_A */ &lpuart3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart3>, <&pinctrl_lpuart3_ctrl>; }; /* Colibri FastEthernet */ &fec1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_fec1>; pinctrl-1 = <&pinctrl_fec1_sleep>; phy-mode = "rmii"; phy-handle = <ðphy0>; fsl,magic-packet; mdio { #address-cells = <1>; #size-cells = <0>; ethphy0: ethernet-phy@2 { compatible = "ethernet-phy-ieee802.3-c22"; max-speed = <100>; reg = <2>; }; }; }; /* Colibri SPI */ &lpspi2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpspi2>; cs-gpios = <&lsio_gpio1 0 GPIO_ACTIVE_LOW>; }; &lsio_gpio0 { gpio-line-names = "", "SODIMM_70", "SODIMM_60", "SODIMM_58", "SODIMM_78", "SODIMM_72", "SODIMM_80", "SODIMM_46", "SODIMM_62", "SODIMM_48", "SODIMM_74", "SODIMM_50", "SODIMM_52", "SODIMM_54", "SODIMM_66", "SODIMM_64", "SODIMM_68", "", "", "SODIMM_82", "SODIMM_56", "SODIMM_28", "SODIMM_30", "", "SODIMM_61", "SODIMM_103", "", "", "", "SODIMM_25", "SODIMM_27", "SODIMM_100"; }; &lsio_gpio1 { gpio-line-names = "SODIMM_86", "SODIMM_92", "SODIMM_90", "SODIMM_88", "", "", "", "SODIMM_59", "", "SODIMM_6", "SODIMM_8", "", "", "SODIMM_2", "SODIMM_4", "SODIMM_34", "SODIMM_32", "SODIMM_63", "SODIMM_55", "SODIMM_33", "SODIMM_35", "SODIMM_36", "SODIMM_38", "SODIMM_21", "SODIMM_19", "SODIMM_140", "SODIMM_142", "SODIMM_196", "SODIMM_194", "SODIMM_186", "SODIMM_188", "SODIMM_138"; }; &lsio_gpio2 { gpio-line-names = "SODIMM_23", "", "", "SODIMM_144"; }; &lsio_gpio3 { gpio-line-names = "SODIMM_96", "SODIMM_75", "SODIMM_37", "SODIMM_29", "", "", "", "", "", "SODIMM_43", "SODIMM_45", "SODIMM_69", "SODIMM_71", "SODIMM_73", "SODIMM_77", "SODIMM_89", "SODIMM_93", "SODIMM_95", "SODIMM_99", "SODIMM_105", "SODIMM_107", "SODIMM_98", "SODIMM_102", "SODIMM_104", "SODIMM_106"; }; &lsio_gpio4 { gpio-line-names = "", "", "", "SODIMM_129", "SODIMM_133", "SODIMM_127", "SODIMM_131", "", "", "", "", "", "", "", "", "", "", "", "", "SODIMM_44", "", "SODIMM_76", "SODIMM_31", "SODIMM_47", "SODIMM_190", "SODIMM_192", "SODIMM_49", "SODIMM_51", "SODIMM_53"; }; &lsio_gpio5 { gpio-line-names = "", "SODIMM_57", "SODIMM_65", "SODIMM_85", "", "", "", "", "SODIMM_135", "SODIMM_137", "UNUSABLE_SODIMM_180", "UNUSABLE_SODIMM_184"; }; /* Colibri PWM_B */ &lsio_pwm0 { #pwm-cells = <3>; pinctrl-0 = <&pinctrl_pwm_b>; pinctrl-names = "default"; }; /* Colibri PWM_C */ &lsio_pwm1 { #pwm-cells = <3>; pinctrl-0 = <&pinctrl_pwm_c>; pinctrl-names = "default"; }; /* Colibri PWM_D */ &lsio_pwm2 { #pwm-cells = <3>; pinctrl-0 = <&pinctrl_pwm_d>; pinctrl-names = "default"; }; /* On-module eMMC */ &usdhc1 { bus-width = <8>; non-removable; no-sd; no-sdio; pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc1>; pinctrl-1 = <&pinctrl_usdhc1_100mhz>; pinctrl-2 = <&pinctrl_usdhc1_200mhz>; status = "okay"; }; /* Colibri SD/MMC Card */ &usdhc2 { bus-width = <4>; cd-gpios = <&lsio_gpio3 9 GPIO_ACTIVE_LOW>; vmmc-supply = <®_module_3v3>; pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; pinctrl-3 = <&pinctrl_usdhc2_sleep>, <&pinctrl_usdhc2_gpio_sleep>; disable-wp; no-1-8-v; }; &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ext_io0>, <&pinctrl_hog0>, <&pinctrl_hog1>, <&pinctrl_hog2>, <&pinctrl_lpspi2_cs2>; /* On-module touch pen-down interrupt */ pinctrl_ad7879_int: ad7879intgrp { fsl,pins = ; }; /* Colibri Analogue Inputs */ pinctrl_adc0: adc0grp { fsl,pins = , /* SODIMM 8 */ , /* SODIMM 6 */ , /* SODIMM 4 */ ; /* SODIMM 2 */ }; /* Atmel MXT touchsceen + Capacitive Touch Adapter */ /* NOTE: This pingroup conflicts with pingroups * pinctrl_pwm_b/pinctrl_pwm_c. Don't enable them * simultaneously. */ pinctrl_atmel_adap: atmeladaptergrp { fsl,pins = , /* SODIMM 30 */ ; /* SODIMM 28 */ }; /* Atmel MXT touchsceen + boards with built-in Capacitive Touch Connector */ pinctrl_atmel_conn: atmelconnectorgrp { fsl,pins = , /* SODIMM 107 */ ; /* SODIMM 106 */ }; pinctrl_can_int: canintgrp { fsl,pins = ; /* SODIMM 73 */ }; pinctrl_csi_ctl: csictlgrp { fsl,pins = , /* SODIMM 77 */ ; /* SODIMM 89 */ }; pinctrl_csi_mclk: csimclkgrp { fsl,pins = ; /* SODIMM 75 / X3-12 */ }; pinctrl_ext_io0: extio0grp { fsl,pins = ; /* SODIMM 135 */ }; /* Colibri Ethernet: On-module 100Mbps PHY Micrel KSZ8041 */ pinctrl_fec1: fec1grp { fsl,pins = , , , , , , , , , ; }; pinctrl_fec1_sleep: fec1slpgrp { fsl,pins = , , , , , , , , , ; }; /* Colibri optional CAN on UART_B RTS/CTS */ pinctrl_flexcan1: flexcan0grp { fsl,pins = , /* SODIMM 32 */ ; /* SODIMM 34 */ }; /* Colibri optional CAN on PS2 */ pinctrl_flexcan2: flexcan1grp { fsl,pins = , /* SODIMM 55 */ ; /* SODIMM 63 */ }; /* Colibri optional CAN on UART_A TXD/RXD */ pinctrl_flexcan3: flexcan2grp { fsl,pins = , /* SODIMM 35 */ ; /* SODIMM 33 */ }; /* Colibri LCD Back-Light GPIO */ pinctrl_gpio_bl_on: gpioblongrp { fsl,pins = ; /* SODIMM 71 */ }; /* HDMI Hot Plug Detect on FFC (X2) */ pinctrl_gpio_hpd: gpiohpdgrp { fsl,pins = ; /* SODIMM 138 */ }; pinctrl_gpiokeys: gpiokeysgrp { fsl,pins = ; /* SODIMM 45 */ }; pinctrl_hog0: hog0grp { fsl,pins = , /* SODIMM 65 */ , /* SODIMM 69 */ , /* SODIMM 79 */ , /* SODIMM 79 */ , /* SODIMM 85 */ , /* SODIMM 85 */ , /* SODIMM 95 */ , /* SODIMM 97 */ , /* SODIMM 97 */ , /* SODIMM 99 */ , /* SODIMM 101 */ , /* SODIMM 101 */ , /* SODIMM 103 */ , /* SODIMM 103 */ , /* SODIMM 105 */ , /* SODIMM 127 */ , /* SODIMM 131 */ , /* SODIMM 133 */ , /* SODIMM 96 */ , /* SODIMM 98 */ , /* SODIMM 100 */ , /* SODIMM 102 */ ; /* SODIMM 104 */ }; pinctrl_hog1: hog1grp { fsl,pins = , /* SODIMM 75 */ ; /* SODIMM 93 */ }; pinctrl_hog2: hog2grp { fsl,pins = ; /* SODIMM 75 */ }; /* * This pin is used in the SCFW as a UART. Using it from * Linux would require rewritting the SCFW board file. */ pinctrl_hog_scfw: hogscfwgrp { fsl,pins = ; /* SODIMM 144 */ }; /* On Module I2C */ pinctrl_i2c0: i2c0grp { fsl,pins = , ; }; /* MIPI DSI I2C accessible on SODIMM (X1) and FFC (X2) */ pinctrl_i2c0_mipi_lvds0: i2c0mipilvds0grp { fsl,pins = , /* SODIMM 140 */ ; /* SODIMM 142 */ }; /* MIPI CSI I2C accessible on SODIMM (X1) and FFC (X3) */ pinctrl_i2c0_mipi_lvds1: i2c0mipilvds1grp { fsl,pins = , /* SODIMM 186 */ ; /* SODIMM 188 */ }; /* Colibri I2C */ pinctrl_i2c1: i2c1grp { fsl,pins = , /* SODIMM 196 */ ; /* SODIMM 194 */ }; /* Colibri Parallel RGB LCD Interface */ pinctrl_lcdif: lcdifgrp { fsl,pins = , /* SODIMM 56 */ , /* SODIMM 68 */ , /* SODIMM 82 */ , /* SODIMM 44 */ , /* SODIMM 44 */ , /* SODIMM 76 */ , /* SODIMM 76 */ , /* SODIMM 70 */ , /* SODIMM 60 */ , /* SODIMM 58 */ , /* SODIMM 78 */ , /* SODIMM 72 */ , /* SODIMM 80 */ , /* SODIMM 46 */ , /* SODIMM 62 */ , /* SODIMM 48 */ , /* SODIMM 74 */ , /* SODIMM 50 */ , /* SODIMM 52 */ , /* SODIMM 54 */ , /* SODIMM 66 */ , /* SODIMM 64 */ , /* SODIMM 57 */ , /* SODIMM 57 */ ; /* SODIMM 61 */ }; /* Colibri SPI */ pinctrl_lpspi2: lpspi2grp { fsl,pins = , /* SODIMM 86 */ , /* SODIMM 92 */ , /* SODIMM 90 */ ; /* SODIMM 88 */ }; pinctrl_lpspi2_cs2: lpspi2cs2grp { fsl,pins = ; /* SODIMM 65 */ }; /* Colibri UART_B */ pinctrl_lpuart0: lpuart0grp { fsl,pins = , /* SODIMM 36 */ , /* SODIMM 38 */ , /* SODIMM 34 */ ; /* SODIMM 32 */ }; /* Colibri UART_C */ pinctrl_lpuart2: lpuart2grp { fsl,pins = , /* SODIMM 19 */ ; /* SODIMM 21 */ }; /* Colibri UART_A */ pinctrl_lpuart3: lpuart3grp { fsl,pins = , /* SODIMM 33 */ ; /* SODIMM 35 */ }; /* Colibri UART_A Control */ pinctrl_lpuart3_ctrl: lpuart3ctrlgrp { fsl,pins = , /* SODIMM 23 */ , /* SODIMM 25 */ , /* SODIMM 27 */ , /* SODIMM 29 */ , /* SODIMM 31 */ ; /* SODIMM 37 */ }; /* On module wifi module */ pinctrl_pcieb: pciebgrp { fsl,pins = , /* SODIMM 178 */ , /* SODIMM 94 */ ; /* SODIMM 81 */ }; /* Colibri PWM_A */ pinctrl_pwm_a: pwmagrp { /* both pins are connected together, reserve the unused CSI_D05 */ fsl,pins = , /* SODIMM 59 */ ; /* SODIMM 59 */ }; /* Colibri PWM_B */ pinctrl_pwm_b: pwmbgrp { fsl,pins = ; /* SODIMM 28 */ }; /* Colibri PWM_C */ pinctrl_pwm_c: pwmcgrp { fsl,pins = ; /* SODIMM 30 */ }; /* Colibri PWM_D */ pinctrl_pwm_d: pwmdgrp { /* both pins are connected together, reserve the unused CSI_D04 */ fsl,pins = , /* SODIMM 67 */ ; /* SODIMM 67 */ }; /* On-module I2S */ pinctrl_sai0: sai0grp { fsl,pins = , , , ; }; /* Colibri Audio Analogue Microphone GND */ pinctrl_sgtl5000: sgtl5000grp { fsl,pins = ; }; /* On-module SGTL5000 clock */ pinctrl_sgtl5000_usb_clk: sgtl5000usbclkgrp { fsl,pins = ; }; /* On-module USB interrupt */ pinctrl_usb3503a: usb3503agrp { fsl,pins = ; }; /* Colibri USB Client Cable Detect */ pinctrl_usbc_det: usbcdetgrp { fsl,pins = ; /* SODIMM 137 */ }; /* USB Host Power Enable */ pinctrl_usbh1_reg: usbh1reggrp { fsl,pins = ; /* SODIMM 129 */ }; /* On-module eMMC */ pinctrl_usdhc1: usdhc1grp { fsl,pins = , , , , , , , , , , , ; }; pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { fsl,pins = , , , , , , , , , , , ; }; pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { fsl,pins = , , , , , , , , , , , ; }; /* Colibri SD/MMC Card Detect */ pinctrl_usdhc2_gpio: usdhc2gpiogrp { fsl,pins = ; /* SODIMM 43 */ }; pinctrl_usdhc2_gpio_sleep: usdhc2gpioslpgrp { fsl,pins = ; /* SODIMM 43 */ }; /* Colibri SD/MMC Card */ pinctrl_usdhc2: usdhc2grp { fsl,pins = , /* SODIMM 47 */ , /* SODIMM 190 */ , /* SODIMM 192 */ , /* SODIMM 49 */ , /* SODIMM 51 */ , /* SODIMM 53 */ ; }; pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { fsl,pins = , /* SODIMM 47 */ , /* SODIMM 190 */ , /* SODIMM 192 */ , /* SODIMM 49 */ , /* SODIMM 51 */ , /* SODIMM 53 */ ; }; pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { fsl,pins = , /* SODIMM 47 */ , /* SODIMM 190 */ , /* SODIMM 192 */ , /* SODIMM 49 */ , /* SODIMM 51 */ , /* SODIMM 53 */ ; }; pinctrl_usdhc2_sleep: usdhc2slpgrp { fsl,pins = , /* SODIMM 47 */ , /* SODIMM 190 */ , /* SODIMM 192 */ , /* SODIMM 49 */ , /* SODIMM 51 */ , /* SODIMM 53 */ ; }; pinctrl_wifi: wifigrp { fsl,pins = ; }; };