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