// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Copyright (c) Toradex * * Common dtsi for Verdin IMX8MM SoM on Zinnia carrier board * * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-mini-nano * https://www.toradex.com/products/carrier-board/zinnia-carrier-board */ #include / { leds { compatible = "gpio-leds"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_zinnia_leds>; /* LED1 Red - SODIMM 48 - LED1_R */ led-0 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <1>; gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; }; /* LED1 Blue - SODIMM 46 - LED1_B */ led-1 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <1>; gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; }; /* LED3 Red - SODIMM 44 - LED3_R */ led-2 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <3>; gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>; }; /* LED3 Green - SODIMM 54 - LED3_G */ led-3 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <3>; gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; }; /* LED3 Blue - SODIMM 36 - LED3_B */ led-4 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <3>; gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; }; /* LED4 Red - SODIMM 34 - LED4_R */ led-5 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <4>; gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; }; /* LED4 Green - SODIMM 32 - LED4_G */ led-6 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <4>; gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>; }; /* LED4 Blue - SODIMM 30 - LED4_B */ led-7 { color = ; default-state = "off"; function = LED_FUNCTION_STATUS; function-enumerator = <4>; gpios = <&gpio4 25 GPIO_ACTIVE_HIGH>; }; }; zinnia-1v8-voltage { compatible = "voltage-divider"; full-ohms = <39000>; /* 12k + 27k */ /* Verdin ADC_4 */ io-channels = <&verdin_som_adc 4>; output-ohms = <27000>; }; zinnia-3v3-voltage { compatible = "voltage-divider"; full-ohms = <54000>; /* 27k + 27k */ /* Verdin ADC_3 */ io-channels = <&verdin_som_adc 5>; output-ohms = <27000>; }; zinnia-5v-voltage { compatible = "voltage-divider"; full-ohms = <39000>; /* 27k + 12k */ /* Verdin ADC_2 */ io-channels = <&verdin_som_adc 6>; output-ohms = <12000>; }; /* Zinnia Power Supply Input Voltage */ zinnia-input-voltage { compatible = "voltage-divider"; full-ohms = <204700>; /* 200k + 4.7k */ /* Verdin ADC_1 */ io-channels = <&verdin_som_adc 7>; output-ohms = <4700>; }; }; /* Verdin SPI_1 */ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>, <&pinctrl_uart3_cts_gpio>; cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, <&gpio5 13 GPIO_ACTIVE_LOW>; status = "okay"; tpm@1 { compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; reg = <1>; spi-max-frequency = <18500000>; }; }; /* EEPROM on Zinnia */ &eeprom_carrier_board { status = "okay"; }; /* Verdin ETH_1 */ &fec1 { status = "okay"; }; &gpio1 { gpio-line-names = "DI2_RB", /* SODIMM 216 */ /* 0 */ "", "", "", "", "", "", "", "DO3_EN", /* SODIMM 220 */ "DI3_EN", /* SODIMM 222 */ "", /* 10 */ "DI2_EN", /* SODIMM 218 */ "", "", "", "", "", "", "", "", "", /* 20 */ "", "", "", "", ""; }; &gpio2 { gpio-line-names = "", /* 0 */ "", "", "", "", "", "", "", "", "", "", /* 10 */ "", "", "", "", "", "", "", "", "", ""; /* 20 */ }; &gpio3 { gpio-line-names = "", /* 0 */ "", "", "", "DO1_EN", /* SODIMM 206 */ "", "DI3_RB", /* SODIMM 56 */ "", "", "", "", /* 10 */ "", "", "", "", "", "", "", "", "", "", /* 20 */ "", "", "", "", ""; }; &gpio4 { gpio-line-names = "", /* 0 */ "", "", "", "", "", "", "", "", "", "", /* 10 */ "", "", "", "", "", "", "", "", "", "", /* 20 */ "", "", "", "", "", "", "", "", "", "", ""; }; &gpio5 { gpio-line-names = "", /* 0 */ "", "", "", "", "DI1_EN", /* SODIMM 208 */ "", "", "", "", "", /* 10 */ "", "", "", "", "", "", "", "", "", "", /* 20 */ "", "", "", "", "", "DI1_RB", /* SODIMM 210 */ "DO2_EN", /* SODIMM 212 */ "", ""; }; /* Temperature sensor on Zinnia */ &hwmon_temp { compatible = "ti,tmp1075"; status = "okay"; }; /* Verdin I2C_1 */ &i2c4 { status = "okay"; }; /* Verdin UART_3 */ &uart1 { status = "okay"; }; /* Verdin UART_1 */ &uart2 { status = "okay"; }; /* Verdin UART_2 */ &uart3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_uart3_rts>; rs485-rx-during-tx; linux,rs485-enabled-at-boot-time; status = "okay"; }; /* Verdin USB_1 */ &usbotg1 { status = "okay"; }; /* Verdin USB_2 */ &usbotg2 { status = "okay"; }; /* Verdin SD_1 */ &usdhc2 { status = "okay"; }; &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>, <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio5>, <&pinctrl_gpio6>, <&pinctrl_gpio7>, <&pinctrl_gpio8>, <&pinctrl_qspi1_io0_gpio>; pinctrl_qspi1_io0_gpio: gpio3io6grp { fsl,pins = ; /* SODIMM 56 */ }; pinctrl_uart3_cts_gpio: gpio5io9grp { fsl,pins = ; /* SODIMM 143 */ }; pinctrl_zinnia_leds: zinnialedsgrp { fsl,pins = , /* SODIMM 30 */ , /* SODIMM 32 */ , /* SODIMM 34 */ , /* SODIMM 36 */ , /* SODIMM 44 */ , /* SODIMM 46 */ , /* SODIMM 48 */ ; /* SODIMM 54 */ }; };