1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Copyright 2023 Toradex 3 * Copyright 2023 Toradex 4 * 4 * 5 * Common dtsi for Verdin IMX8MP SoM on Mallow 5 * Common dtsi for Verdin IMX8MP SoM on Mallow carrier board 6 * 6 * 7 * https://www.toradex.com/computer-on-modules 7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus 8 * https://www.toradex.com/products/carrier-bo 8 * https://www.toradex.com/products/carrier-board/mallow-carrier-board 9 */ 9 */ 10 10 11 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/leds/common.h> 12 12 13 / { 13 / { 14 native-hdmi-connector { << 15 compatible = "hdmi-connector"; << 16 label = "X14"; << 17 type = "a"; << 18 << 19 port { << 20 native_hdmi_connector_ << 21 remote-endpoin << 22 }; << 23 }; << 24 }; << 25 << 26 leds { 14 leds { 27 compatible = "gpio-leds"; 15 compatible = "gpio-leds"; 28 pinctrl-names = "default"; 16 pinctrl-names = "default"; 29 pinctrl-0 = <&pinctrl_leds>; 17 pinctrl-0 = <&pinctrl_leds>; 30 18 31 /* SODIMM 52 - USER_LED_1_RED 19 /* SODIMM 52 - USER_LED_1_RED */ 32 led-0 { 20 led-0 { 33 color = <LED_COLOR_ID_ 21 color = <LED_COLOR_ID_RED>; 34 function = LED_FUNCTIO 22 function = LED_FUNCTION_DEBUG; 35 function-enumerator = 23 function-enumerator = <1>; 36 gpios = <&gpio3 0 GPIO 24 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; 37 }; 25 }; 38 26 39 /* SODIMM 54 - USER_LED_1_GREE 27 /* SODIMM 54 - USER_LED_1_GREEN */ 40 led-1 { 28 led-1 { 41 color = <LED_COLOR_ID_ 29 color = <LED_COLOR_ID_GREEN>; 42 function = LED_FUNCTIO 30 function = LED_FUNCTION_DEBUG; 43 function-enumerator = 31 function-enumerator = <1>; 44 gpios = <&gpio3 1 GPIO 32 gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 45 }; 33 }; 46 34 47 /* SODIMM 56 - USER_LED_2_RED 35 /* SODIMM 56 - USER_LED_2_RED */ 48 led-2 { 36 led-2 { 49 color = <LED_COLOR_ID_ 37 color = <LED_COLOR_ID_RED>; 50 function = LED_FUNCTIO 38 function = LED_FUNCTION_DEBUG; 51 function-enumerator = 39 function-enumerator = <2>; 52 gpios = <&gpio3 6 GPIO 40 gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>; 53 }; 41 }; 54 42 55 /* SODIMM 58 - USER_LED_2_GREE 43 /* SODIMM 58 - USER_LED_2_GREEN */ 56 led-3 { 44 led-3 { 57 color = <LED_COLOR_ID_ 45 color = <LED_COLOR_ID_GREEN>; 58 function = LED_FUNCTIO 46 function = LED_FUNCTION_DEBUG; 59 function-enumerator = 47 function-enumerator = <2>; 60 gpios = <&gpio3 7 GPIO 48 gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; 61 }; 49 }; 62 }; 50 }; 63 }; 51 }; 64 52 65 /* Verdin HDMI_1 Audio */ << 66 &aud2htx { << 67 status = "okay"; << 68 }; << 69 << 70 &backlight { 53 &backlight { 71 power-supply = <®_3p3v>; 54 power-supply = <®_3p3v>; 72 }; 55 }; 73 56 74 /* Verdin SPI_1 */ 57 /* Verdin SPI_1 */ 75 &ecspi1 { 58 &ecspi1 { 76 pinctrl-0 = <&pinctrl_ecspi1>, <&pinct 59 pinctrl-0 = <&pinctrl_ecspi1>, <&pinctrl_tpm_cs>; 77 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, 60 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, <&gpio3 16 GPIO_ACTIVE_LOW>; 78 status = "okay"; 61 status = "okay"; 79 62 80 tpm@1 { 63 tpm@1 { 81 compatible = "infineon,slb9670 64 compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 82 reg = <1>; 65 reg = <1>; 83 pinctrl-names = "default"; 66 pinctrl-names = "default"; 84 pinctrl-0 = <&pinctrl_tpm_irq> 67 pinctrl-0 = <&pinctrl_tpm_irq>; 85 interrupt-parent = <&gpio3>; 68 interrupt-parent = <&gpio3>; 86 interrupts = <14 IRQ_TYPE_LEVE 69 interrupts = <14 IRQ_TYPE_LEVEL_LOW>; 87 spi-max-frequency = <18500000> 70 spi-max-frequency = <18500000>; 88 }; 71 }; 89 }; 72 }; 90 73 91 /* EEPROM on Mallow */ 74 /* EEPROM on Mallow */ 92 &eeprom_carrier_board { 75 &eeprom_carrier_board { 93 status = "okay"; 76 status = "okay"; 94 }; 77 }; 95 78 96 /* Verdin ETH_1 */ 79 /* Verdin ETH_1 */ 97 &eqos { 80 &eqos { 98 status = "okay"; 81 status = "okay"; 99 }; 82 }; 100 83 101 /* Verdin CAN_1 */ 84 /* Verdin CAN_1 */ 102 &flexcan1 { 85 &flexcan1 { 103 status = "okay"; 86 status = "okay"; 104 }; 87 }; 105 88 106 /* Verdin CAN_2 */ 89 /* Verdin CAN_2 */ 107 &flexcan2 { 90 &flexcan2 { 108 status = "okay"; 91 status = "okay"; 109 }; 92 }; 110 93 111 /* Verdin HDMI_1 */ << 112 &hdmi_pvi { << 113 status = "okay"; << 114 }; << 115 << 116 &hdmi_tx { << 117 status = "okay"; << 118 << 119 ports { << 120 port@1 { << 121 hdmi_tx_out: endpoint << 122 remote-endpoin << 123 }; << 124 }; << 125 }; << 126 }; << 127 << 128 &hdmi_tx_phy { << 129 status = "okay"; << 130 }; << 131 << 132 /* Temperature sensor on Mallow */ 94 /* Temperature sensor on Mallow */ 133 &hwmon_temp { 95 &hwmon_temp { 134 compatible = "ti,tmp1075"; 96 compatible = "ti,tmp1075"; 135 status = "okay"; 97 status = "okay"; 136 }; 98 }; 137 99 138 /* Verdin I2C_2_DSI */ 100 /* Verdin I2C_2_DSI */ 139 &i2c2 { 101 &i2c2 { 140 status = "okay"; 102 status = "okay"; 141 }; 103 }; 142 104 143 /* Verdin I2C_4_CSI */ 105 /* Verdin I2C_4_CSI */ 144 &i2c3 { 106 &i2c3 { 145 status = "okay"; 107 status = "okay"; 146 }; 108 }; 147 109 148 /* Verdin I2C_1 */ 110 /* Verdin I2C_1 */ 149 &i2c4 { 111 &i2c4 { 150 status = "okay"; 112 status = "okay"; 151 }; 113 }; 152 114 153 /* Verdin I2C_3_HDMI */ << 154 &i2c5 { << 155 status = "okay"; << 156 }; << 157 << 158 &lcdif3 { << 159 status = "okay"; << 160 }; << 161 << 162 /* Verdin PCIE_1 */ 115 /* Verdin PCIE_1 */ 163 &pcie { 116 &pcie { 164 status = "okay"; 117 status = "okay"; 165 }; 118 }; 166 119 167 &pcie_phy { 120 &pcie_phy { 168 status = "okay"; 121 status = "okay"; 169 }; 122 }; 170 123 171 /* Verdin PWM_1 */ 124 /* Verdin PWM_1 */ 172 &pwm1 { 125 &pwm1 { 173 status = "okay"; 126 status = "okay"; 174 }; 127 }; 175 128 176 /* Verdin PWM_2 */ 129 /* Verdin PWM_2 */ 177 &pwm2 { 130 &pwm2 { 178 status = "okay"; 131 status = "okay"; 179 }; 132 }; 180 133 181 /* Verdin PWM_3_DSI */ 134 /* Verdin PWM_3_DSI */ 182 &pwm3 { 135 &pwm3 { 183 status = "okay"; 136 status = "okay"; 184 }; 137 }; 185 138 186 ®_usdhc2_vmmc { 139 ®_usdhc2_vmmc { 187 vin-supply = <®_3p3v>; 140 vin-supply = <®_3p3v>; 188 }; << 189 << 190 /* Verdin HDMI_1 Audio */ << 191 &sound_hdmi { << 192 status = "okay"; << 193 }; 141 }; 194 142 195 /* Verdin UART_1 */ 143 /* Verdin UART_1 */ 196 &uart1 { 144 &uart1 { 197 status = "okay"; 145 status = "okay"; 198 }; 146 }; 199 147 200 /* Verdin UART_2 */ 148 /* Verdin UART_2 */ 201 &uart2 { 149 &uart2 { 202 status = "okay"; 150 status = "okay"; 203 }; 151 }; 204 152 205 /* Verdin UART_3 */ 153 /* Verdin UART_3 */ 206 &uart3 { 154 &uart3 { 207 status = "okay"; 155 status = "okay"; 208 }; 156 }; 209 157 210 /* Verdin USB_1 */ 158 /* Verdin USB_1 */ 211 &usb3_0 { 159 &usb3_0 { 212 status = "okay"; 160 status = "okay"; 213 }; 161 }; 214 162 215 &usb3_phy0 { 163 &usb3_phy0 { 216 status = "okay"; 164 status = "okay"; 217 }; 165 }; 218 166 219 /* Verdin USB_2 */ 167 /* Verdin USB_2 */ 220 &usb3_1 { 168 &usb3_1 { 221 status = "okay"; 169 status = "okay"; 222 }; 170 }; 223 171 224 &usb3_phy1 { 172 &usb3_phy1 { 225 status = "okay"; 173 status = "okay"; 226 }; 174 }; 227 175 228 /* Verdin SD_1 */ 176 /* Verdin SD_1 */ 229 &usdhc2 { 177 &usdhc2 { 230 status = "okay"; 178 status = "okay"; 231 }; 179 }; 232 180 233 &iomuxc { 181 &iomuxc { 234 pinctrl_leds: ledsgrp { 182 pinctrl_leds: ledsgrp { 235 fsl,pins = 183 fsl,pins = 236 <MX8MP_IOMUXC_NAND_ALE 184 <MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00 0x106>, /* SODIMM 52 */ 237 <MX8MP_IOMUXC_NAND_CE0 185 <MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01 0x106>, /* SODIMM 54 */ 238 <MX8MP_IOMUXC_NAND_DAT 186 <MX8MP_IOMUXC_NAND_DATA00__GPIO3_IO06 0x106>, /* SODIMM 56 */ 239 <MX8MP_IOMUXC_NAND_DAT 187 <MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07 0x106>; /* SODIMM 58 */ 240 }; 188 }; 241 189 242 pinctrl_tpm_cs: tpmcsgrp { 190 pinctrl_tpm_cs: tpmcsgrp { 243 fsl,pins = 191 fsl,pins = 244 <MX8MP_IOMUXC_NAND_REA 192 <MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x82>; /* SODIMM 64 */ 245 }; 193 }; 246 194 247 pinctrl_tpm_irq: tpmirqgrp { 195 pinctrl_tpm_irq: tpmirqgrp { 248 fsl,pins = 196 fsl,pins = 249 <MX8MP_IOMUXC_NAND_DQS 197 <MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14 0x16>; /* SODIMM 66 */ 250 }; 198 }; 251 }; 199 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.