1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Copyright 2023 Toradex 4 */ 5 6#include <dt-bindings/leds/common.h> 7 8/ { 9 /* Carrier Board Supply +V1.8 */ 10 reg_1p8v: regulator-1p8v { 11 compatible = "regulator-fixed"; 12 regulator-max-microvolt = <1800000>; 13 regulator-min-microvolt = <1800000>; 14 regulator-name = "+V1.8_SW"; 15 }; 16 17 /* Carrier Board Supply +V3.3 */ 18 reg_3p3v: regulator-3p3v { 19 compatible = "regulator-fixed"; 20 regulator-max-microvolt = <3300000>; 21 regulator-min-microvolt = <3300000>; 22 regulator-name = "+V3.3_SW"; 23 }; 24 25 leds { 26 compatible = "gpio-leds"; 27 28 pinctrl-names = "default"; 29 pinctrl-0 = <&pinctrl_leds_yavia>; 30 31 /* SODIMM 52 - LD1_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 /* SODIMM 54 - LD1_GREEN */ 39 led-1 { 40 color = <LED_COLOR_ID_GREEN>; 41 function = LED_FUNCTION_DEBUG; 42 function-enumerator = <1>; 43 gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 44 }; 45 /* SODIMM 56 - LD1_BLUE */ 46 led-2 { 47 color = <LED_COLOR_ID_BLUE>; 48 function = LED_FUNCTION_DEBUG; 49 function-enumerator = <1>; 50 gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>; 51 }; 52 /* SODIMM 58 - LD2_RED */ 53 led-3 { 54 color = <LED_COLOR_ID_RED>; 55 function = LED_FUNCTION_DEBUG; 56 function-enumerator = <2>; 57 gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; 58 }; 59 /* SODIMM 60 - LD2_GREEN */ 60 led-4 { 61 color = <LED_COLOR_ID_GREEN>; 62 function = LED_FUNCTION_DEBUG; 63 function-enumerator = <2>; 64 gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; 65 }; 66 /* SODIMM 62 - LD2_BLUE */ 67 led-5 { 68 color = <LED_COLOR_ID_BLUE>; 69 function = LED_FUNCTION_DEBUG; 70 function-enumerator = <2>; 71 gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>; 72 }; 73 }; 74}; 75 76&backlight { 77 power-supply = <®_3p3v>; 78}; 79 80/* Verdin SPI_1 */ 81&ecspi1 { 82 status = "okay"; 83}; 84 85/* EEPROM on display adapter boards */ 86&eeprom_display_adapter { 87 status = "okay"; 88}; 89 90/* EEPROM on Verdin yavia board */ 91&eeprom_carrier_board { 92 status = "okay"; 93}; 94 95&eqos { 96 status = "okay"; 97}; 98 99&flexcan1 { 100 status = "okay"; 101}; 102 103&hwmon_temp { 104 status = "okay"; 105}; 106 107/* Verdin I2C_2_DSI */ 108&i2c2 { 109 status = "okay"; 110}; 111 112&i2c3 { 113 status = "okay"; 114}; 115 116&i2c4 { 117 status = "okay"; 118}; 119 120/* Verdin PCIE_1 */ 121&pcie { 122 status = "okay"; 123}; 124 125&pcie_phy{ 126 status = "okay"; 127}; 128 129/* Verdin PWM_1 */ 130&pwm1 { 131 status = "okay"; 132}; 133 134/* Verdin PWM_2 */ 135&pwm2 { 136 status = "okay"; 137}; 138 139/* Verdin PWM_3_DSI */ 140&pwm3 { 141 status = "okay"; 142}; 143 144®_usdhc2_vmmc { 145 vin-supply = <®_3p3v>; 146}; 147 148/* Verdin UART_1 */ 149&uart1 { 150 status = "okay"; 151}; 152 153/* Verdin UART_2 */ 154&uart2 { 155 status = "okay"; 156}; 157 158/* Verdin UART_3, used as the Linux Console */ 159&uart3 { 160 status = "okay"; 161}; 162 163/* Verdin USB_1 */ 164&usb3_phy0 { 165 status = "okay"; 166}; 167 168&usb3_0 { 169 status = "okay"; 170}; 171 172&usb_dwc3_0 { 173 status = "okay"; 174}; 175 176/* Verdin USB_2 */ 177&usb3_phy1 { 178 status = "okay"; 179}; 180 181&usb3_1 { 182 status = "okay"; 183}; 184 185&usb_dwc3_1 { 186 disable-over-current; 187 status = "okay"; 188}; 189 190/* Verdin SD_1 */ 191&usdhc2 { 192 status = "okay"; 193}; 194 195&iomuxc { 196 pinctrl_leds_yavia: ledsyaviagrp { 197 fsl,pins = < 198 MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00 0x106 /* SODIMM 52 */ 199 MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01 0x106 /* SODIMM 54 */ 200 MX8MP_IOMUXC_NAND_DATA00__GPIO3_IO06 0x106 /* SODIMM 56 */ 201 MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07 0x106 /* SODIMM 58 */ 202 MX8MP_IOMUXC_NAND_DATA02__GPIO3_IO08 0x106 /* SODIMM 60 */ 203 MX8MP_IOMUXC_NAND_DATA03__GPIO3_IO09 0x106 /* SODIMM 62 */ 204 >; 205 }; 206 207 pinctrl_gpios_ext_yavia: gpiosextyaviagrp { 208 fsl,pins = < 209 MX8MP_IOMUXC_NAND_CE1_B__GPIO3_IO02 0x106 /* SODIMM 64 */ 210 MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14 0x106 /* SODIMM 66 */ 211 >; 212 }; 213}; 214