1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Copyright 2023 Toradex 4 * 5 * Common dtsi for Verdin IMX8MM SoM on Mallow carrier board 6 * 7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-mini-nano 8 * https://www.toradex.com/products/carrier-board/mallow-carrier-board 9 */ 10 11#include <dt-bindings/leds/common.h> 12 13/ { 14 leds { 15 compatible = "gpio-leds"; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_leds>; 18 19 /* SODIMM 52 - USER_LED_1_RED */ 20 led-0 { 21 color = <LED_COLOR_ID_RED>; 22 function = LED_FUNCTION_DEBUG; 23 function-enumerator = <1>; 24 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; 25 }; 26 27 /* SODIMM 54 - USER_LED_1_GREEN */ 28 led-1 { 29 color = <LED_COLOR_ID_GREEN>; 30 function = LED_FUNCTION_DEBUG; 31 function-enumerator = <1>; 32 gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 33 }; 34 35 /* SODIMM 56 - USER_LED_2_RED */ 36 led-2 { 37 color = <LED_COLOR_ID_RED>; 38 function = LED_FUNCTION_DEBUG; 39 function-enumerator = <2>; 40 gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>; 41 }; 42 43 /* SODIMM 58 - USER_LED_2_GREEN */ 44 led-3 { 45 color = <LED_COLOR_ID_GREEN>; 46 function = LED_FUNCTION_DEBUG; 47 function-enumerator = <2>; 48 gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; 49 }; 50 }; 51}; 52 53/* Verdin SPI_1 */ 54&ecspi2 { 55 pinctrl-0 = <&pinctrl_ecspi2>, <&pinctrl_tpm_cs>; 56 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>, <&gpio3 2 GPIO_ACTIVE_LOW>; 57 status = "okay"; 58 59 tpm@1 { 60 compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 61 reg = <1>; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&pinctrl_tpm_irq>; 64 interrupt-parent = <&gpio3>; 65 interrupts = <14 IRQ_TYPE_LEVEL_LOW>; 66 spi-max-frequency = <18500000>; 67 }; 68}; 69 70/* EEPROM on Mallow */ 71&eeprom_carrier_board { 72 status = "okay"; 73}; 74 75/* Verdin ETH_1 */ 76&fec1 { 77 status = "okay"; 78}; 79 80/* Temperature sensor on Mallow */ 81&hwmon_temp { 82 compatible = "ti,tmp1075"; 83 status = "okay"; 84}; 85 86/* Verdin I2C_2_DSI */ 87&i2c2 { 88 status = "okay"; 89}; 90 91/* Verdin I2C_4_CSI */ 92&i2c3 { 93 status = "okay"; 94}; 95 96/* Verdin I2C_1 */ 97&i2c4 { 98 status = "okay"; 99}; 100 101/* Verdin PCIE_1 */ 102&pcie0 { 103 status = "okay"; 104}; 105 106&pcie_phy { 107 status = "okay"; 108}; 109 110/* Verdin PWM_3_DSI */ 111&pwm1 { 112 status = "okay"; 113}; 114 115/* Verdin PWM_1 */ 116&pwm2 { 117 status = "okay"; 118}; 119 120/* Verdin PWM_2 */ 121&pwm3 { 122 status = "okay"; 123}; 124 125/* Verdin UART_3 */ 126&uart1 { 127 status = "okay"; 128}; 129 130/* Verdin UART_1 */ 131&uart2 { 132 status = "okay"; 133}; 134 135/* Verdin UART_2 */ 136&uart3 { 137 status = "okay"; 138}; 139 140/* Verdin USB_1 */ 141&usbotg1 { 142 status = "okay"; 143}; 144 145/* Verdin USB_2 */ 146&usbotg2 { 147 status = "okay"; 148}; 149 150/* Verdin SD_1 */ 151&usdhc2 { 152 status = "okay"; 153}; 154 155&iomuxc { 156 pinctrl_leds: ledsgrp { 157 fsl,pins = 158 <MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0 0x106>, /* SODIMM 52 */ 159 <MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1 0x106>, /* SODIMM 54 */ 160 <MX8MM_IOMUXC_NAND_DATA00_GPIO3_IO6 0x106>, /* SODIMM 56 */ 161 <MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7 0x106>; /* SODIMM 58 */ 162 }; 163 164 pinctrl_tpm_cs: tpmcsgrp { 165 fsl,pins = 166 <MX8MM_IOMUXC_NAND_CE1_B_GPIO3_IO2 0x146>; /* SODIMM 64 */ 167 }; 168 169 pinctrl_tpm_irq: tpmirqgrp { 170 fsl,pins = 171 <MX8MM_IOMUXC_NAND_DQS_GPIO3_IO14 0x141>; /* SODIMM 66 */ 172 }; 173}; 174