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 IMX8MM SoM on Mallow 5 * Common dtsi for Verdin IMX8MM 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-mini-nano 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 leds { 14 leds { 15 compatible = "gpio-leds"; 15 compatible = "gpio-leds"; 16 pinctrl-names = "default"; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_leds>; 17 pinctrl-0 = <&pinctrl_leds>; 18 18 19 /* SODIMM 52 - USER_LED_1_RED 19 /* SODIMM 52 - USER_LED_1_RED */ 20 led-0 { 20 led-0 { 21 color = <LED_COLOR_ID_ 21 color = <LED_COLOR_ID_RED>; 22 function = LED_FUNCTIO 22 function = LED_FUNCTION_DEBUG; 23 function-enumerator = 23 function-enumerator = <1>; 24 gpios = <&gpio3 0 GPIO 24 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; 25 }; 25 }; 26 26 27 /* SODIMM 54 - USER_LED_1_GREE 27 /* SODIMM 54 - USER_LED_1_GREEN */ 28 led-1 { 28 led-1 { 29 color = <LED_COLOR_ID_ 29 color = <LED_COLOR_ID_GREEN>; 30 function = LED_FUNCTIO 30 function = LED_FUNCTION_DEBUG; 31 function-enumerator = 31 function-enumerator = <1>; 32 gpios = <&gpio3 1 GPIO 32 gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 33 }; 33 }; 34 34 35 /* SODIMM 56 - USER_LED_2_RED 35 /* SODIMM 56 - USER_LED_2_RED */ 36 led-2 { 36 led-2 { 37 color = <LED_COLOR_ID_ 37 color = <LED_COLOR_ID_RED>; 38 function = LED_FUNCTIO 38 function = LED_FUNCTION_DEBUG; 39 function-enumerator = 39 function-enumerator = <2>; 40 gpios = <&gpio3 6 GPIO 40 gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>; 41 }; 41 }; 42 42 43 /* SODIMM 58 - USER_LED_2_GREE 43 /* SODIMM 58 - USER_LED_2_GREEN */ 44 led-3 { 44 led-3 { 45 color = <LED_COLOR_ID_ 45 color = <LED_COLOR_ID_GREEN>; 46 function = LED_FUNCTIO 46 function = LED_FUNCTION_DEBUG; 47 function-enumerator = 47 function-enumerator = <2>; 48 gpios = <&gpio3 7 GPIO 48 gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; 49 }; 49 }; 50 }; 50 }; 51 }; 51 }; 52 52 53 /* Verdin SPI_1 */ 53 /* Verdin SPI_1 */ 54 &ecspi2 { 54 &ecspi2 { 55 pinctrl-0 = <&pinctrl_ecspi2>, <&pinct 55 pinctrl-0 = <&pinctrl_ecspi2>, <&pinctrl_tpm_cs>; 56 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW> 56 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>, <&gpio3 2 GPIO_ACTIVE_LOW>; 57 status = "okay"; 57 status = "okay"; 58 58 59 tpm@1 { 59 tpm@1 { 60 compatible = "infineon,slb9670 60 compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 61 reg = <1>; 61 reg = <1>; 62 pinctrl-names = "default"; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&pinctrl_tpm_irq> 63 pinctrl-0 = <&pinctrl_tpm_irq>; 64 interrupt-parent = <&gpio3>; 64 interrupt-parent = <&gpio3>; 65 interrupts = <14 IRQ_TYPE_LEVE 65 interrupts = <14 IRQ_TYPE_LEVEL_LOW>; 66 spi-max-frequency = <18500000> 66 spi-max-frequency = <18500000>; 67 }; 67 }; 68 }; 68 }; 69 69 70 /* EEPROM on Mallow */ 70 /* EEPROM on Mallow */ 71 &eeprom_carrier_board { 71 &eeprom_carrier_board { 72 status = "okay"; 72 status = "okay"; 73 }; 73 }; 74 74 75 /* Verdin ETH_1 */ 75 /* Verdin ETH_1 */ 76 &fec1 { 76 &fec1 { 77 status = "okay"; 77 status = "okay"; 78 }; 78 }; 79 79 80 /* Temperature sensor on Mallow */ 80 /* Temperature sensor on Mallow */ 81 &hwmon_temp { 81 &hwmon_temp { 82 compatible = "ti,tmp1075"; 82 compatible = "ti,tmp1075"; 83 status = "okay"; 83 status = "okay"; 84 }; 84 }; 85 85 86 /* Verdin I2C_2_DSI */ 86 /* Verdin I2C_2_DSI */ 87 &i2c2 { 87 &i2c2 { 88 status = "okay"; 88 status = "okay"; 89 }; 89 }; 90 90 91 /* Verdin I2C_4_CSI */ 91 /* Verdin I2C_4_CSI */ 92 &i2c3 { 92 &i2c3 { 93 status = "okay"; 93 status = "okay"; 94 }; 94 }; 95 95 96 /* Verdin I2C_1 */ 96 /* Verdin I2C_1 */ 97 &i2c4 { 97 &i2c4 { 98 status = "okay"; 98 status = "okay"; 99 }; 99 }; 100 100 101 /* Verdin PCIE_1 */ 101 /* Verdin PCIE_1 */ 102 &pcie0 { 102 &pcie0 { 103 status = "okay"; 103 status = "okay"; 104 }; 104 }; 105 105 106 &pcie_phy { 106 &pcie_phy { 107 status = "okay"; 107 status = "okay"; 108 }; 108 }; 109 109 110 /* Verdin PWM_3_DSI */ 110 /* Verdin PWM_3_DSI */ 111 &pwm1 { 111 &pwm1 { 112 status = "okay"; 112 status = "okay"; 113 }; 113 }; 114 114 115 /* Verdin PWM_1 */ 115 /* Verdin PWM_1 */ 116 &pwm2 { 116 &pwm2 { 117 status = "okay"; 117 status = "okay"; 118 }; 118 }; 119 119 120 /* Verdin PWM_2 */ 120 /* Verdin PWM_2 */ 121 &pwm3 { 121 &pwm3 { 122 status = "okay"; 122 status = "okay"; 123 }; 123 }; 124 124 125 /* Verdin UART_3 */ 125 /* Verdin UART_3 */ 126 &uart1 { 126 &uart1 { 127 status = "okay"; 127 status = "okay"; 128 }; 128 }; 129 129 130 /* Verdin UART_1 */ 130 /* Verdin UART_1 */ 131 &uart2 { 131 &uart2 { 132 status = "okay"; 132 status = "okay"; 133 }; 133 }; 134 134 135 /* Verdin UART_2 */ 135 /* Verdin UART_2 */ 136 &uart3 { 136 &uart3 { 137 status = "okay"; 137 status = "okay"; 138 }; 138 }; 139 139 140 /* Verdin USB_1 */ 140 /* Verdin USB_1 */ 141 &usbotg1 { 141 &usbotg1 { 142 status = "okay"; 142 status = "okay"; 143 }; 143 }; 144 144 145 /* Verdin USB_2 */ 145 /* Verdin USB_2 */ 146 &usbotg2 { 146 &usbotg2 { 147 status = "okay"; 147 status = "okay"; 148 }; 148 }; 149 149 150 /* Verdin SD_1 */ 150 /* Verdin SD_1 */ 151 &usdhc2 { 151 &usdhc2 { 152 status = "okay"; 152 status = "okay"; 153 }; 153 }; 154 154 155 &iomuxc { 155 &iomuxc { 156 pinctrl_leds: ledsgrp { 156 pinctrl_leds: ledsgrp { 157 fsl,pins = 157 fsl,pins = 158 <MX8MM_IOMUXC_NAND_ALE 158 <MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0 0x106>, /* SODIMM 52 */ 159 <MX8MM_IOMUXC_NAND_CE0 159 <MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1 0x106>, /* SODIMM 54 */ 160 <MX8MM_IOMUXC_NAND_DAT 160 <MX8MM_IOMUXC_NAND_DATA00_GPIO3_IO6 0x106>, /* SODIMM 56 */ 161 <MX8MM_IOMUXC_NAND_DAT 161 <MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7 0x106>; /* SODIMM 58 */ 162 }; 162 }; 163 163 164 pinctrl_tpm_cs: tpmcsgrp { 164 pinctrl_tpm_cs: tpmcsgrp { 165 fsl,pins = 165 fsl,pins = 166 <MX8MM_IOMUXC_NAND_CE1 166 <MX8MM_IOMUXC_NAND_CE1_B_GPIO3_IO2 0x146>; /* SODIMM 64 */ 167 }; 167 }; 168 168 169 pinctrl_tpm_irq: tpmirqgrp { 169 pinctrl_tpm_irq: tpmirqgrp { 170 fsl,pins = 170 fsl,pins = 171 <MX8MM_IOMUXC_NAND_DQS 171 <MX8MM_IOMUXC_NAND_DQS_GPIO3_IO14 0x141>; /* SODIMM 66 */ 172 }; 172 }; 173 }; 173 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.