1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Copyright (c) Toradex 4 * 5 * Common dtsi for Verdin iMX95 SoM on Yavia carrier board 6 * 7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx95 8 * https://www.toradex.com/products/carrier-board/yavia 9 */ 10 11#include <dt-bindings/leds/common.h> 12 13/ { 14 aliases { 15 eeprom1 = &carrier_eeprom; 16 }; 17 18 leds { 19 compatible = "gpio-leds"; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&pinctrl_qspi1_clk_gpio>, 22 <&pinctrl_qspi1_cs_gpio>, 23 <&pinctrl_qspi1_io0_gpio>, 24 <&pinctrl_qspi1_io1_gpio>, 25 <&pinctrl_qspi1_io2_gpio>, 26 <&pinctrl_qspi1_io3_gpio>; 27 28 /* SODIMM 52 - LD1_RED */ 29 led-0 { 30 color = <LED_COLOR_ID_RED>; 31 function = LED_FUNCTION_DEBUG; 32 function-enumerator = <1>; 33 gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>; 34 }; 35 /* SODIMM 54 - LD1_GREEN */ 36 led-1 { 37 color = <LED_COLOR_ID_GREEN>; 38 function = LED_FUNCTION_DEBUG; 39 function-enumerator = <1>; 40 gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; 41 }; 42 /* SODIMM 56 - LD1_BLUE */ 43 led-2 { 44 color = <LED_COLOR_ID_BLUE>; 45 function = LED_FUNCTION_DEBUG; 46 function-enumerator = <1>; 47 gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>; 48 }; 49 /* SODIMM 58 - LD2_RED */ 50 led-3 { 51 color = <LED_COLOR_ID_RED>; 52 function = LED_FUNCTION_DEBUG; 53 function-enumerator = <2>; 54 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 55 }; 56 /* SODIMM 60 - LD2_GREEN */ 57 led-4 { 58 color = <LED_COLOR_ID_GREEN>; 59 function = LED_FUNCTION_DEBUG; 60 function-enumerator = <2>; 61 gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>; 62 }; 63 /* SODIMM 62 - LD2_BLUE */ 64 led-5 { 65 color = <LED_COLOR_ID_BLUE>; 66 function = LED_FUNCTION_DEBUG; 67 function-enumerator = <2>; 68 gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>; 69 }; 70 }; 71}; 72 73/* Verdin ADC_1, ADC_2, ADC_3 and ADC_4 */ 74&adc1 { 75 status = "okay"; 76}; 77 78/* Verdin ETH_1 (On-module PHY) */ 79&enetc_port0 { 80 status = "okay"; 81}; 82 83/* Verdin CAN_1 */ 84&flexcan1 { 85 status = "okay"; 86}; 87 88/* Verdin CAN_2 */ 89&flexcan2 { 90 status = "okay"; 91}; 92 93&gpio1 { 94 pinctrl-names = "default"; 95 pinctrl-0 = <&pinctrl_ctrl_sleep_moci>; 96}; 97 98&gpio2 { 99 pinctrl-names = "default"; 100 pinctrl-0 = <&pinctrl_gpio1>, 101 <&pinctrl_gpio2>, 102 <&pinctrl_gpio3>; 103}; 104 105&gpio3 { 106 pinctrl-names = "default"; 107 pinctrl-0 = <&pinctrl_gpio6>; 108}; 109 110&gpio4 { 111 pinctrl-names = "default"; 112 pinctrl-0 = <&pinctrl_gpio5>; 113}; 114 115&gpio5 { 116 pinctrl-names = "default"; 117 pinctrl-0 = <&pinctrl_gpio4>, 118 <&pinctrl_qspi1_cs2_gpio>, 119 <&pinctrl_qspi1_dqs_gpio>; 120}; 121 122/* Verdin I2C_3_HDMI */ 123&i3c2 { 124 status = "okay"; 125}; 126 127/* Verdin I2C_2_DSI */ 128&lpi2c3 { 129 status = "okay"; 130}; 131 132/* Verdin I2C_1 */ 133&lpi2c4 { 134 status = "okay"; 135 136 temperature-sensor@4f { 137 compatible = "ti,tmp75c"; 138 reg = <0x4f>; 139 }; 140 141 carrier_eeprom: eeprom@57 { 142 compatible = "st,24c02", "atmel,24c02"; 143 reg = <0x57>; 144 pagesize = <16>; 145 }; 146}; 147 148/* Verdin I2C_4_CSI */ 149&lpi2c5 { 150 status = "okay"; 151}; 152 153/* Verdin UART_3, used as the Linux console */ 154&lpuart1 { 155 status = "okay"; 156}; 157 158/* Verdin UART_4 */ 159&lpuart2 { 160 status = "okay"; 161}; 162 163/* Verdin UART_1 */ 164&lpuart7 { 165 status = "okay"; 166}; 167 168/* Verdin UART_2 */ 169&lpuart8 { 170 status = "okay"; 171}; 172 173/* Verdin PCIE_1 */ 174&pcie0 { 175 status = "okay"; 176}; 177 178/* Verdin PWM_1 */ 179&tpm4 { 180 status = "okay"; 181}; 182 183/* Verdin PWM_2 */ 184&tpm5 { 185 status = "okay"; 186}; 187 188/* Verdin PWM_3_DSI */ 189&tpm6 { 190 status = "okay"; 191}; 192 193/* Verdin USB_1 */ 194&usb2 { 195 status = "okay"; 196}; 197 198/* Verdin USB_2 */ 199&usb3 { 200 fsl,permanently-attached; 201 202 status = "okay"; 203}; 204 205&usb3_phy { 206 status = "okay"; 207}; 208 209/* Verdin SD_1 */ 210&usdhc2 { 211 status = "okay"; 212}; 213 214/* Verdin CTRL_WAKE1_MICO# */ 215&verdin_gpio_keys { 216 status = "okay"; 217}; 218