Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 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 | / { |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 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 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 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 | &backlight { |
| 66 | power-supply = <®_3p3v>; |
| 67 | }; |
| 68 | |
| 69 | /* Verdin SPI_1 */ |
| 70 | &ecspi1 { |
| 71 | pinctrl-0 = <&pinctrl_ecspi1>, <&pinctrl_tpm_cs>; |
| 72 | cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, <&gpio3 16 GPIO_ACTIVE_LOW>; |
| 73 | status = "okay"; |
| 74 | |
| 75 | tpm@1 { |
| 76 | compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; |
| 77 | reg = <1>; |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&pinctrl_tpm_irq>; |
| 80 | interrupt-parent = <&gpio3>; |
| 81 | interrupts = <14 IRQ_TYPE_LEVEL_LOW>; |
| 82 | spi-max-frequency = <18500000>; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | /* EEPROM on Mallow */ |
| 87 | &eeprom_carrier_board { |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | /* Verdin ETH_1 */ |
| 92 | &eqos { |
| 93 | status = "okay"; |
| 94 | }; |
| 95 | |
| 96 | /* Verdin CAN_1 */ |
| 97 | &flexcan1 { |
| 98 | status = "okay"; |
| 99 | }; |
| 100 | |
| 101 | /* Verdin CAN_2 */ |
| 102 | &flexcan2 { |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 106 | /* Verdin HDMI_1 */ |
| 107 | &hdmi_pvi { |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | |
| 111 | &hdmi_tx { |
| 112 | status = "okay"; |
| 113 | |
| 114 | ports { |
| 115 | port@1 { |
| 116 | hdmi_tx_out: endpoint { |
| 117 | remote-endpoint = <&native_hdmi_connector_in>; |
| 118 | }; |
| 119 | }; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | &hdmi_tx_phy { |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 127 | /* Temperature sensor on Mallow */ |
| 128 | &hwmon_temp { |
| 129 | compatible = "ti,tmp1075"; |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
| 133 | /* Verdin I2C_2_DSI */ |
| 134 | &i2c2 { |
| 135 | status = "okay"; |
| 136 | }; |
| 137 | |
| 138 | /* Verdin I2C_4_CSI */ |
| 139 | &i2c3 { |
| 140 | status = "okay"; |
| 141 | }; |
| 142 | |
| 143 | /* Verdin I2C_1 */ |
| 144 | &i2c4 { |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 148 | /* Verdin I2C_3_HDMI */ |
| 149 | &i2c5 { |
| 150 | status = "okay"; |
| 151 | }; |
| 152 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 153 | &lcdif3 { |
| 154 | status = "okay"; |
| 155 | }; |
| 156 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 157 | /* Verdin PCIE_1 */ |
| 158 | &pcie { |
| 159 | status = "okay"; |
| 160 | }; |
| 161 | |
| 162 | &pcie_phy { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | /* Verdin PWM_1 */ |
| 167 | &pwm1 { |
| 168 | status = "okay"; |
| 169 | }; |
| 170 | |
| 171 | /* Verdin PWM_2 */ |
| 172 | &pwm2 { |
| 173 | status = "okay"; |
| 174 | }; |
| 175 | |
| 176 | /* Verdin PWM_3_DSI */ |
| 177 | &pwm3 { |
| 178 | status = "okay"; |
| 179 | }; |
| 180 | |
| 181 | ®_usdhc2_vmmc { |
| 182 | vin-supply = <®_3p3v>; |
| 183 | }; |
| 184 | |
| 185 | /* Verdin UART_1 */ |
| 186 | &uart1 { |
| 187 | status = "okay"; |
| 188 | }; |
| 189 | |
| 190 | /* Verdin UART_2 */ |
| 191 | &uart2 { |
| 192 | status = "okay"; |
| 193 | }; |
| 194 | |
| 195 | /* Verdin UART_3 */ |
| 196 | &uart3 { |
| 197 | status = "okay"; |
| 198 | }; |
| 199 | |
| 200 | /* Verdin USB_1 */ |
| 201 | &usb3_0 { |
| 202 | status = "okay"; |
| 203 | }; |
| 204 | |
| 205 | &usb3_phy0 { |
| 206 | status = "okay"; |
| 207 | }; |
| 208 | |
| 209 | /* Verdin USB_2 */ |
| 210 | &usb3_1 { |
| 211 | status = "okay"; |
| 212 | }; |
| 213 | |
| 214 | &usb3_phy1 { |
| 215 | status = "okay"; |
| 216 | }; |
| 217 | |
| 218 | /* Verdin SD_1 */ |
| 219 | &usdhc2 { |
| 220 | status = "okay"; |
| 221 | }; |
| 222 | |
| 223 | &iomuxc { |
| 224 | pinctrl_leds: ledsgrp { |
| 225 | fsl,pins = |
| 226 | <MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00 0x106>, /* SODIMM 52 */ |
| 227 | <MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01 0x106>, /* SODIMM 54 */ |
| 228 | <MX8MP_IOMUXC_NAND_DATA00__GPIO3_IO06 0x106>, /* SODIMM 56 */ |
| 229 | <MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07 0x106>; /* SODIMM 58 */ |
| 230 | }; |
| 231 | |
| 232 | pinctrl_tpm_cs: tpmcsgrp { |
| 233 | fsl,pins = |
| 234 | <MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x82>; /* SODIMM 64 */ |
| 235 | }; |
| 236 | |
| 237 | pinctrl_tpm_irq: tpmirqgrp { |
| 238 | fsl,pins = |
| 239 | <MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14 0x16>; /* SODIMM 66 */ |
| 240 | }; |
| 241 | }; |