| 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 |
native-hdmi-connector { |
| 10 |
compatible = "hdmi-connector"; |
| 11 |
label = "J15"; |
| 12 |
type = "a"; |
| 13 |
|
| 14 |
port { |
| 15 |
native_hdmi_connector_in: endpoint { |
| 16 |
remote-endpoint = <&hdmi_tx_out>; |
| 17 |
}; |
| 18 |
}; |
| 19 |
}; |
| 20 |
|
| 21 |
/* Carrier Board Supply +V1.8 */ |
| 22 |
reg_1p8v: regulator-1p8v { |
| 23 |
compatible = "regulator-fixed"; |
| 24 |
regulator-max-microvolt = <1800000>; |
| 25 |
regulator-min-microvolt = <1800000>; |
| 26 |
regulator-name = "+V1.8_SW"; |
| 27 |
}; |
| 28 |
|
| 29 |
/* Carrier Board Supply +V3.3 */ |
| 30 |
reg_3p3v: regulator-3p3v { |
| 31 |
compatible = "regulator-fixed"; |
| 32 |
regulator-max-microvolt = <3300000>; |
| 33 |
regulator-min-microvolt = <3300000>; |
| 34 |
regulator-name = "+V3.3_SW"; |
| 35 |
}; |
| 36 |
|
| 37 |
leds { |
| 38 |
compatible = "gpio-leds"; |
| 39 |
|
| 40 |
pinctrl-names = "default"; |
| 41 |
pinctrl-0 = <&pinctrl_leds_yavia>; |
| 42 |
|
| 43 |
/* SODIMM 52 - LD1_RED */ |
| 44 |
led-0 { |
| 45 |
color = <LED_COLOR_ID_RED>; |
| 46 |
function = LED_FUNCTION_DEBUG; |
| 47 |
function-enumerator = <1>; |
| 48 |
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; |
| 49 |
}; |
| 50 |
/* SODIMM 54 - LD1_GREEN */ |
| 51 |
led-1 { |
| 52 |
color = <LED_COLOR_ID_GREEN>; |
| 53 |
function = LED_FUNCTION_DEBUG; |
| 54 |
function-enumerator = <1>; |
| 55 |
gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; |
| 56 |
}; |
| 57 |
/* SODIMM 56 - LD1_BLUE */ |
| 58 |
led-2 { |
| 59 |
color = <LED_COLOR_ID_BLUE>; |
| 60 |
function = LED_FUNCTION_DEBUG; |
| 61 |
function-enumerator = <1>; |
| 62 |
gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>; |
| 63 |
}; |
| 64 |
/* SODIMM 58 - LD2_RED */ |
| 65 |
led-3 { |
| 66 |
color = <LED_COLOR_ID_RED>; |
| 67 |
function = LED_FUNCTION_DEBUG; |
| 68 |
function-enumerator = <2>; |
| 69 |
gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; |
| 70 |
}; |
| 71 |
/* SODIMM 60 - LD2_GREEN */ |
| 72 |
led-4 { |
| 73 |
color = <LED_COLOR_ID_GREEN>; |
| 74 |
function = LED_FUNCTION_DEBUG; |
| 75 |
function-enumerator = <2>; |
| 76 |
gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; |
| 77 |
}; |
| 78 |
/* SODIMM 62 - LD2_BLUE */ |
| 79 |
led-5 { |
| 80 |
color = <LED_COLOR_ID_BLUE>; |
| 81 |
function = LED_FUNCTION_DEBUG; |
| 82 |
function-enumerator = <2>; |
| 83 |
gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
}; |
| 87 |
|
| 88 |
/* Verdin HDMI_1 Audio */ |
| 89 |
&aud2htx { |
| 90 |
status = "okay"; |
| 91 |
}; |
| 92 |
|
| 93 |
&backlight { |
| 94 |
power-supply = <®_3p3v>; |
| 95 |
}; |
| 96 |
|
| 97 |
/* Verdin SPI_1 */ |
| 98 |
&ecspi1 { |
| 99 |
status = "okay"; |
| 100 |
}; |
| 101 |
|
| 102 |
/* EEPROM on display adapter boards */ |
| 103 |
&eeprom_display_adapter { |
| 104 |
status = "okay"; |
| 105 |
}; |
| 106 |
|
| 107 |
/* EEPROM on Verdin Yavia board */ |
| 108 |
&eeprom_carrier_board { |
| 109 |
status = "okay"; |
| 110 |
}; |
| 111 |
|
| 112 |
&eqos { |
| 113 |
status = "okay"; |
| 114 |
}; |
| 115 |
|
| 116 |
&flexcan1 { |
| 117 |
status = "okay"; |
| 118 |
}; |
| 119 |
|
| 120 |
&gpio4 { |
| 121 |
pinctrl-names = "default"; |
| 122 |
pinctrl-0 = <&pinctrl_ctrl_sleep_moci>; |
| 123 |
}; |
| 124 |
|
| 125 |
/* Verdin HDMI_1 */ |
| 126 |
&hdmi_pai { |
| 127 |
status = "okay"; |
| 128 |
}; |
| 129 |
|
| 130 |
&hdmi_pvi { |
| 131 |
status = "okay"; |
| 132 |
}; |
| 133 |
|
| 134 |
&hdmi_tx { |
| 135 |
status = "okay"; |
| 136 |
|
| 137 |
ports { |
| 138 |
port@1 { |
| 139 |
hdmi_tx_out: endpoint { |
| 140 |
remote-endpoint = <&native_hdmi_connector_in>; |
| 141 |
}; |
| 142 |
}; |
| 143 |
}; |
| 144 |
}; |
| 145 |
|
| 146 |
&hdmi_tx_phy { |
| 147 |
status = "okay"; |
| 148 |
}; |
| 149 |
|
| 150 |
&hwmon_temp { |
| 151 |
status = "okay"; |
| 152 |
}; |
| 153 |
|
| 154 |
/* Verdin I2C_2_DSI */ |
| 155 |
&i2c2 { |
| 156 |
status = "okay"; |
| 157 |
}; |
| 158 |
|
| 159 |
&i2c3 { |
| 160 |
status = "okay"; |
| 161 |
}; |
| 162 |
|
| 163 |
&i2c4 { |
| 164 |
status = "okay"; |
| 165 |
}; |
| 166 |
|
| 167 |
/* Verdin I2C_3_HDMI */ |
| 168 |
&i2c5 { |
| 169 |
status = "okay"; |
| 170 |
}; |
| 171 |
|
| 172 |
&lcdif3 { |
| 173 |
status = "okay"; |
| 174 |
}; |
| 175 |
|
| 176 |
/* Verdin PCIE_1 */ |
| 177 |
&pcie { |
| 178 |
status = "okay"; |
| 179 |
}; |
| 180 |
|
| 181 |
&pcie_phy { |
| 182 |
status = "okay"; |
| 183 |
}; |
| 184 |
|
| 185 |
/* Verdin PWM_1 */ |
| 186 |
&pwm1 { |
| 187 |
status = "okay"; |
| 188 |
}; |
| 189 |
|
| 190 |
/* Verdin PWM_2 */ |
| 191 |
&pwm2 { |
| 192 |
status = "okay"; |
| 193 |
}; |
| 194 |
|
| 195 |
/* Verdin PWM_3_DSI */ |
| 196 |
&pwm3 { |
| 197 |
status = "okay"; |
| 198 |
}; |
| 199 |
|
| 200 |
®_usdhc2_vmmc { |
| 201 |
vin-supply = <®_3p3v>; |
| 202 |
}; |
| 203 |
|
| 204 |
/* Verdin HDMI_1 Audio */ |
| 205 |
&sound_hdmi { |
| 206 |
status = "okay"; |
| 207 |
}; |
| 208 |
|
| 209 |
/* Verdin UART_1 */ |
| 210 |
&uart1 { |
| 211 |
status = "okay"; |
| 212 |
}; |
| 213 |
|
| 214 |
/* Verdin UART_2 */ |
| 215 |
&uart2 { |
| 216 |
status = "okay"; |
| 217 |
}; |
| 218 |
|
| 219 |
/* Verdin UART_3, used as the Linux Console */ |
| 220 |
&uart3 { |
| 221 |
status = "okay"; |
| 222 |
}; |
| 223 |
|
| 224 |
/* Verdin USB_1 */ |
| 225 |
&usb3_phy0 { |
| 226 |
status = "okay"; |
| 227 |
}; |
| 228 |
|
| 229 |
&usb3_0 { |
| 230 |
status = "okay"; |
| 231 |
}; |
| 232 |
|
| 233 |
&usb_dwc3_0 { |
| 234 |
status = "okay"; |
| 235 |
}; |
| 236 |
|
| 237 |
/* Verdin USB_2 */ |
| 238 |
&usb3_phy1 { |
| 239 |
status = "okay"; |
| 240 |
}; |
| 241 |
|
| 242 |
&usb3_1 { |
| 243 |
status = "okay"; |
| 244 |
}; |
| 245 |
|
| 246 |
&usb_dwc3_1 { |
| 247 |
status = "okay"; |
| 248 |
}; |
| 249 |
|
| 250 |
/* Verdin SD_1 */ |
| 251 |
&usdhc2 { |
| 252 |
status = "okay"; |
| 253 |
}; |
| 254 |
|
| 255 |
&iomuxc { |
| 256 |
pinctrl_leds_yavia: ledsyaviagrp { |
| 257 |
fsl,pins = < |
| 258 |
MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00 0x106 /* SODIMM 52 */ |
| 259 |
MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01 0x106 /* SODIMM 54 */ |
| 260 |
MX8MP_IOMUXC_NAND_DATA00__GPIO3_IO06 0x106 /* SODIMM 56 */ |
| 261 |
MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07 0x106 /* SODIMM 58 */ |
| 262 |
MX8MP_IOMUXC_NAND_DATA02__GPIO3_IO08 0x106 /* SODIMM 60 */ |
| 263 |
MX8MP_IOMUXC_NAND_DATA03__GPIO3_IO09 0x106 /* SODIMM 62 */ |
| 264 |
>; |
| 265 |
}; |
| 266 |
|
| 267 |
pinctrl_gpios_ext_yavia: gpiosextyaviagrp { |
| 268 |
fsl,pins = < |
| 269 |
MX8MP_IOMUXC_NAND_CE1_B__GPIO3_IO02 0x106 /* SODIMM 64 */ |
| 270 |
MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14 0x106 /* SODIMM 66 */ |
| 271 |
>; |
| 272 |
}; |
| 273 |
}; |