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