| 1 |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 |
/* |
| 3 |
* Copyright 2022 Toradex |
| 4 |
*/ |
| 5 |
|
| 6 |
/ { |
| 7 |
native-hdmi-connector { |
| 8 |
compatible = "hdmi-connector"; |
| 9 |
label = "X21"; |
| 10 |
type = "a"; |
| 11 |
|
| 12 |
port { |
| 13 |
native_hdmi_connector_in: endpoint { |
| 14 |
remote-endpoint = <&hdmi_tx_out>; |
| 15 |
}; |
| 16 |
}; |
| 17 |
}; |
| 18 |
|
| 19 |
sound { |
| 20 |
compatible = "simple-audio-card"; |
| 21 |
simple-audio-card,bitclock-master = <&codec_dai>; |
| 22 |
simple-audio-card,format = "i2s"; |
| 23 |
simple-audio-card,frame-master = <&codec_dai>; |
| 24 |
simple-audio-card,mclk-fs = <256>; |
| 25 |
simple-audio-card,name = "verdin-wm8904"; |
| 26 |
simple-audio-card,routing = |
| 27 |
"Headphone Jack", "HPOUTL", |
| 28 |
"Headphone Jack", "HPOUTR", |
| 29 |
"IN2L", "Line In Jack", |
| 30 |
"IN2R", "Line In Jack", |
| 31 |
"Microphone Jack", "MICBIAS", |
| 32 |
"IN1L", "Microphone Jack"; |
| 33 |
simple-audio-card,widgets = |
| 34 |
"Microphone", "Microphone Jack", |
| 35 |
"Headphone", "Headphone Jack", |
| 36 |
"Line", "Line In Jack"; |
| 37 |
|
| 38 |
codec_dai: simple-audio-card,codec { |
| 39 |
clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1>; |
| 40 |
sound-dai = <&wm8904_1a>; |
| 41 |
}; |
| 42 |
|
| 43 |
simple-audio-card,cpu { |
| 44 |
sound-dai = <&sai1>; |
| 45 |
}; |
| 46 |
}; |
| 47 |
|
| 48 |
reg_usb_hub: regulator-usb-hub { |
| 49 |
compatible = "regulator-fixed"; |
| 50 |
enable-active-high; |
| 51 |
/* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ |
| 52 |
gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; |
| 53 |
regulator-boot-on; |
| 54 |
regulator-name = "HUB_PWR_EN"; |
| 55 |
}; |
| 56 |
|
| 57 |
reg_pcie: regulator-pcie { |
| 58 |
compatible = "regulator-fixed"; |
| 59 |
enable-active-high; |
| 60 |
/* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ |
| 61 |
gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; |
| 62 |
regulator-boot-on; |
| 63 |
regulator-name = "PCIE_1_PWR_EN"; |
| 64 |
startup-delay-us = <100000>; |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
/* Verdin HDMI_1 Audio */ |
| 69 |
&aud2htx { |
| 70 |
status = "okay"; |
| 71 |
}; |
| 72 |
|
| 73 |
&backlight { |
| 74 |
power-supply = <®_3p3v>; |
| 75 |
}; |
| 76 |
|
| 77 |
/* Verdin SPI_1 */ |
| 78 |
&ecspi1 { |
| 79 |
status = "okay"; |
| 80 |
}; |
| 81 |
|
| 82 |
/* EEPROM on display adapter boards */ |
| 83 |
&eeprom_display_adapter { |
| 84 |
status = "okay"; |
| 85 |
}; |
| 86 |
|
| 87 |
/* EEPROM on Verdin Development board */ |
| 88 |
&eeprom_carrier_board { |
| 89 |
status = "okay"; |
| 90 |
}; |
| 91 |
|
| 92 |
&eqos { |
| 93 |
status = "okay"; |
| 94 |
}; |
| 95 |
|
| 96 |
&flexcan1 { |
| 97 |
status = "okay"; |
| 98 |
}; |
| 99 |
|
| 100 |
&flexcan2 { |
| 101 |
status = "okay"; |
| 102 |
}; |
| 103 |
|
| 104 |
/* Verdin QSPI_1 */ |
| 105 |
&flexspi { |
| 106 |
status = "okay"; |
| 107 |
}; |
| 108 |
|
| 109 |
&gpio4 { |
| 110 |
pinctrl-names = "default"; |
| 111 |
pinctrl-0 = <&pinctrl_ctrl_sleep_moci>; |
| 112 |
}; |
| 113 |
|
| 114 |
/* Verdin HDMI_1 */ |
| 115 |
&hdmi_pai { |
| 116 |
status = "okay"; |
| 117 |
}; |
| 118 |
|
| 119 |
&hdmi_pvi { |
| 120 |
status = "okay"; |
| 121 |
}; |
| 122 |
|
| 123 |
&hdmi_tx { |
| 124 |
status = "okay"; |
| 125 |
|
| 126 |
ports { |
| 127 |
port@1 { |
| 128 |
hdmi_tx_out: endpoint { |
| 129 |
remote-endpoint = <&native_hdmi_connector_in>; |
| 130 |
}; |
| 131 |
}; |
| 132 |
}; |
| 133 |
}; |
| 134 |
|
| 135 |
&hdmi_tx_phy { |
| 136 |
status = "okay"; |
| 137 |
}; |
| 138 |
|
| 139 |
/* Current measurement into module VCC */ |
| 140 |
&hwmon { |
| 141 |
status = "okay"; |
| 142 |
}; |
| 143 |
|
| 144 |
&hwmon_temp { |
| 145 |
vs-supply = <®_1p8v>; |
| 146 |
status = "okay"; |
| 147 |
}; |
| 148 |
|
| 149 |
/* Verdin I2C_2_DSI */ |
| 150 |
&i2c2 { |
| 151 |
status = "okay"; |
| 152 |
}; |
| 153 |
|
| 154 |
&i2c3 { |
| 155 |
status = "okay"; |
| 156 |
}; |
| 157 |
|
| 158 |
/* Verdin I2C_1 */ |
| 159 |
&i2c4 { |
| 160 |
status = "okay"; |
| 161 |
|
| 162 |
/* Audio Codec */ |
| 163 |
wm8904_1a: audio-codec@1a { |
| 164 |
compatible = "wlf,wm8904"; |
| 165 |
reg = <0x1a>; |
| 166 |
pinctrl-names = "default"; |
| 167 |
pinctrl-0 = <&pinctrl_sai1>; |
| 168 |
#sound-dai-cells = <0>; |
| 169 |
clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1>; |
| 170 |
clock-names = "mclk"; |
| 171 |
AVDD-supply = <®_1p8v>; |
| 172 |
CPVDD-supply = <®_1p8v>; |
| 173 |
DBVDD-supply = <®_1p8v>; |
| 174 |
DCVDD-supply = <®_1p8v>; |
| 175 |
MICVDD-supply = <®_1p8v>; |
| 176 |
}; |
| 177 |
}; |
| 178 |
|
| 179 |
/* Verdin I2C_3_HDMI */ |
| 180 |
&i2c5 { |
| 181 |
status = "okay"; |
| 182 |
}; |
| 183 |
|
| 184 |
&lcdif3 { |
| 185 |
status = "okay"; |
| 186 |
}; |
| 187 |
|
| 188 |
/* Verdin PCIE_1 */ |
| 189 |
&pcie { |
| 190 |
vpcie-supply = <®_pcie>; |
| 191 |
status = "okay"; |
| 192 |
}; |
| 193 |
|
| 194 |
&pcie_phy { |
| 195 |
status = "okay"; |
| 196 |
}; |
| 197 |
|
| 198 |
/* Verdin PWM_1 */ |
| 199 |
&pwm1 { |
| 200 |
status = "okay"; |
| 201 |
}; |
| 202 |
|
| 203 |
/* Verdin PWM_2 */ |
| 204 |
&pwm2 { |
| 205 |
status = "okay"; |
| 206 |
}; |
| 207 |
|
| 208 |
/* Verdin PWM_3_DSI */ |
| 209 |
&pwm3 { |
| 210 |
status = "okay"; |
| 211 |
}; |
| 212 |
|
| 213 |
®_usdhc2_vmmc { |
| 214 |
vin-supply = <®_3p3v>; |
| 215 |
}; |
| 216 |
|
| 217 |
/* We support turning off sleep moci on Dahlia */ |
| 218 |
®_force_sleep_moci { |
| 219 |
status = "disabled"; |
| 220 |
}; |
| 221 |
|
| 222 |
/* Verdin I2S_1 */ |
| 223 |
&sai1 { |
| 224 |
assigned-clocks = <&clk IMX8MP_CLK_SAI1>; |
| 225 |
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; |
| 226 |
assigned-clock-rates = <24576000>; |
| 227 |
fsl,sai-mclk-direction-output; |
| 228 |
status = "okay"; |
| 229 |
}; |
| 230 |
|
| 231 |
/* Verdin HDMI_1 Audio */ |
| 232 |
&sound_hdmi { |
| 233 |
status = "okay"; |
| 234 |
}; |
| 235 |
|
| 236 |
/* Verdin UART_1 */ |
| 237 |
&uart1 { |
| 238 |
status = "okay"; |
| 239 |
}; |
| 240 |
|
| 241 |
/* Verdin UART_2 */ |
| 242 |
&uart2 { |
| 243 |
status = "okay"; |
| 244 |
}; |
| 245 |
|
| 246 |
/* Verdin UART_3, used as the Linux Console */ |
| 247 |
&uart3 { |
| 248 |
status = "okay"; |
| 249 |
}; |
| 250 |
|
| 251 |
/* Verdin USB_1 */ |
| 252 |
&usb3_0 { |
| 253 |
status = "okay"; |
| 254 |
}; |
| 255 |
|
| 256 |
&usb3_phy0 { |
| 257 |
status = "okay"; |
| 258 |
}; |
| 259 |
|
| 260 |
/* Verdin USB_2 */ |
| 261 |
&usb3_1 { |
| 262 |
fsl,permanently-attached; |
| 263 |
status = "okay"; |
| 264 |
}; |
| 265 |
|
| 266 |
&usb3_phy1 { |
| 267 |
status = "okay"; |
| 268 |
}; |
| 269 |
|
| 270 |
&usb_dwc3_1 { |
| 271 |
#address-cells = <1>; |
| 272 |
#size-cells = <0>; |
| 273 |
|
| 274 |
usb_hub_3_0: usb-hub@1 { |
| 275 |
compatible = "usb424,5744"; |
| 276 |
reg = <1>; |
| 277 |
peer-hub = <&usb_hub_2_0>; |
| 278 |
vdd-supply = <®_usb_hub>; |
| 279 |
}; |
| 280 |
|
| 281 |
usb_hub_2_0: usb-hub@2 { |
| 282 |
compatible = "usb424,2744"; |
| 283 |
reg = <2>; |
| 284 |
peer-hub = <&usb_hub_3_0>; |
| 285 |
vdd-supply = <®_usb_hub>; |
| 286 |
}; |
| 287 |
}; |
| 288 |
|
| 289 |
/* Verdin SD_1 */ |
| 290 |
&usdhc2 { |
| 291 |
status = "okay"; |
| 292 |
}; |