| 1 |
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2024 TQ-Systems GmbH <[email protected]>, |
| 4 |
* D-82229 Seefeld, Germany. |
| 5 |
* Author: Alexander Stein |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include <dt-bindings/phy/phy-imx8-pcie.h> |
| 11 |
#include "imx95-tqma9596sa.dtsi" |
| 12 |
|
| 13 |
/ { |
| 14 |
model = "TQ-Systems i.MX95 TQMa95xxSA on MB-SMARC-2"; |
| 15 |
compatible = "tq,imx95-tqma9596sa-mb-smarc-2", "tq,imx95-tqma9596sa", "fsl,imx95"; |
| 16 |
|
| 17 |
aliases { |
| 18 |
gpio0 = &gpio1; |
| 19 |
gpio1 = &gpio2; |
| 20 |
gpio2 = &gpio3; |
| 21 |
gpio3 = &gpio4; |
| 22 |
i2c0 = &lpi2c1; |
| 23 |
i2c1 = &lpi2c2; |
| 24 |
i2c2 = &lpi2c3; |
| 25 |
i2c3 = &lpi2c4; |
| 26 |
i2c4 = &lpi2c5; |
| 27 |
i2c5 = &lpi2c6; |
| 28 |
i2c6 = &lpi2c7; |
| 29 |
i2c7 = &lpi2c8; |
| 30 |
mmc0 = &usdhc1; |
| 31 |
mmc1 = &usdhc2; |
| 32 |
rtc0 = &pcf85063; |
| 33 |
rtc1 = &scmi_bbm; |
| 34 |
serial0 = &lpuart1; |
| 35 |
serial1 = &lpuart2; |
| 36 |
serial2 = &lpuart3; |
| 37 |
serial3 = &lpuart4; |
| 38 |
serial4 = &lpuart5; |
| 39 |
serial5 = &lpuart6; |
| 40 |
serial6 = &lpuart7; |
| 41 |
serial7 = &lpuart8; |
| 42 |
spi0 = &flexspi1; |
| 43 |
spi1 = &lpspi3; |
| 44 |
}; |
| 45 |
|
| 46 |
chosen { |
| 47 |
stdout-path = &lpuart7; |
| 48 |
}; |
| 49 |
|
| 50 |
backlight_lvds0: backlight-lvds0 { |
| 51 |
compatible = "pwm-backlight"; |
| 52 |
pwms = <&tpm3 0 100000 0>; |
| 53 |
brightness-levels = <0 4 8 16 32 64 128 255>; |
| 54 |
default-brightness-level = <7>; |
| 55 |
enable-gpios = <&expander2 1 GPIO_ACTIVE_HIGH>; |
| 56 |
power-supply = <®_12v0>; |
| 57 |
status = "disabled"; |
| 58 |
}; |
| 59 |
|
| 60 |
backlight_lvds1: backlight-lvds1 { |
| 61 |
compatible = "pwm-backlight"; |
| 62 |
pwms = <&tpm4 0 100000 0>; |
| 63 |
brightness-levels = <0 4 8 16 32 64 128 255>; |
| 64 |
default-brightness-level = <7>; |
| 65 |
enable-gpios = <&expander2 3 GPIO_ACTIVE_HIGH>; |
| 66 |
power-supply = <®_12v0>; |
| 67 |
status = "disabled"; |
| 68 |
}; |
| 69 |
|
| 70 |
panel_lvds0: panel-lvds0 { |
| 71 |
/* |
| 72 |
* Display is not fixed, so compatible has to be added from |
| 73 |
* DT overlay |
| 74 |
*/ |
| 75 |
backlight = <&backlight_lvds0>; |
| 76 |
power-supply = <®_lvds0>; |
| 77 |
status = "disabled"; |
| 78 |
|
| 79 |
port { |
| 80 |
panel_in_lvds0: endpoint { |
| 81 |
/* TODO: LVDS0 out */ |
| 82 |
}; |
| 83 |
}; |
| 84 |
}; |
| 85 |
|
| 86 |
panel_lvds1: panel-lvds1 { |
| 87 |
/* |
| 88 |
* Display is not fixed, so compatible has to be added from |
| 89 |
* DT overlay |
| 90 |
*/ |
| 91 |
backlight = <&backlight_lvds1>; |
| 92 |
power-supply = <®_lvds1>; |
| 93 |
status = "disabled"; |
| 94 |
|
| 95 |
port { |
| 96 |
panel_in_lvds1: endpoint { |
| 97 |
/* TODO: LVDS1 out */ |
| 98 |
}; |
| 99 |
}; |
| 100 |
}; |
| 101 |
|
| 102 |
reg_1v8: regulator-1v8 { |
| 103 |
compatible = "regulator-fixed"; |
| 104 |
regulator-name = "1V8"; |
| 105 |
regulator-min-microvolt = <1800000>; |
| 106 |
regulator-max-microvolt = <1800000>; |
| 107 |
regulator-always-on; |
| 108 |
}; |
| 109 |
|
| 110 |
reg_3v3: regulator-3v3 { |
| 111 |
compatible = "regulator-fixed"; |
| 112 |
regulator-name = "3V3"; |
| 113 |
regulator-min-microvolt = <3300000>; |
| 114 |
regulator-max-microvolt = <3300000>; |
| 115 |
regulator-always-on; |
| 116 |
}; |
| 117 |
|
| 118 |
reg_12v0: regulator-12v0 { |
| 119 |
compatible = "regulator-fixed"; |
| 120 |
regulator-name = "12V0"; |
| 121 |
regulator-min-microvolt = <12000000>; |
| 122 |
regulator-max-microvolt = <12000000>; |
| 123 |
regulator-always-on; |
| 124 |
}; |
| 125 |
|
| 126 |
reg_lvds0: regulator-lvds0 { |
| 127 |
compatible = "regulator-fixed"; |
| 128 |
regulator-name = "LCD0_VDD_EN"; |
| 129 |
regulator-min-microvolt = <3300000>; |
| 130 |
regulator-max-microvolt = <3300000>; |
| 131 |
gpio = <&expander2 2 GPIO_ACTIVE_HIGH>; |
| 132 |
enable-active-high; |
| 133 |
}; |
| 134 |
|
| 135 |
reg_lvds1: regulator-lvds1 { |
| 136 |
compatible = "regulator-fixed"; |
| 137 |
regulator-name = "LCD1_VDD_EN"; |
| 138 |
regulator-min-microvolt = <3300000>; |
| 139 |
regulator-max-microvolt = <3300000>; |
| 140 |
gpio = <&expander2 4 GPIO_ACTIVE_HIGH>; |
| 141 |
enable-active-high; |
| 142 |
}; |
| 143 |
|
| 144 |
sound { |
| 145 |
compatible = "fsl,imx-audio-tlv320aic32x4"; |
| 146 |
model = "tqm-tlv320aic32"; |
| 147 |
audio-codec = <&tlv320aic3x04>; |
| 148 |
audio-cpu = <&sai3>; |
| 149 |
audio-routing = |
| 150 |
"IN3_L", "Mic Jack", |
| 151 |
"Mic Jack", "Mic Bias", |
| 152 |
"IN1_L", "Line In Jack", |
| 153 |
"IN1_R", "Line In Jack", |
| 154 |
"Line Out Jack", "LOL", |
| 155 |
"Line Out Jack", "LOR"; |
| 156 |
}; |
| 157 |
}; |
| 158 |
|
| 159 |
&enetc_port0 { |
| 160 |
status = "okay"; |
| 161 |
}; |
| 162 |
|
| 163 |
&enetc_port1 { |
| 164 |
status = "okay"; |
| 165 |
}; |
| 166 |
|
| 167 |
&expander2 { |
| 168 |
pcie1-clk-en-hog { |
| 169 |
gpio-hog; |
| 170 |
gpios = <14 GPIO_ACTIVE_HIGH>; |
| 171 |
output-high; |
| 172 |
line-name = "PCIE1_CLK_EN"; |
| 173 |
}; |
| 174 |
|
| 175 |
pcie2-clk-en-hog { |
| 176 |
gpio-hog; |
| 177 |
gpios = <15 GPIO_ACTIVE_HIGH>; |
| 178 |
output-high; |
| 179 |
line-name = "PCIE2_CLK_EN"; |
| 180 |
}; |
| 181 |
}; |
| 182 |
|
| 183 |
&flexcan1 { |
| 184 |
xceiver-supply = <®_3v3>; |
| 185 |
status = "okay"; |
| 186 |
}; |
| 187 |
|
| 188 |
&flexcan3 { |
| 189 |
xceiver-supply = <®_3v3>; |
| 190 |
status = "okay"; |
| 191 |
}; |
| 192 |
|
| 193 |
&lpi2c1 { |
| 194 |
tlv320aic3x04: audio-codec@18 { |
| 195 |
compatible = "ti,tlv320aic32x4"; |
| 196 |
reg = <0x18>; |
| 197 |
clocks = <&scmi_clk IMX95_CLK_SAI3>; |
| 198 |
clock-names = "mclk"; |
| 199 |
iov-supply = <®_1v8>; |
| 200 |
ldoin-supply = <®_3v3>; |
| 201 |
}; |
| 202 |
|
| 203 |
eeprom2: eeprom@57 { |
| 204 |
compatible = "atmel,24c32"; |
| 205 |
reg = <0x57>; |
| 206 |
pagesize = <32>; |
| 207 |
vcc-supply = <®_3v3>; |
| 208 |
}; |
| 209 |
}; |
| 210 |
|
| 211 |
&lpspi3 { |
| 212 |
status = "okay"; |
| 213 |
}; |
| 214 |
|
| 215 |
/* SER0 */ |
| 216 |
&lpuart1 { |
| 217 |
status = "reserved"; |
| 218 |
}; |
| 219 |
|
| 220 |
/* SER3 */ |
| 221 |
&lpuart5 { |
| 222 |
status = "okay"; |
| 223 |
}; |
| 224 |
|
| 225 |
/* SER1 */ |
| 226 |
&lpuart7 { |
| 227 |
status = "okay"; |
| 228 |
}; |
| 229 |
|
| 230 |
/* SER2 */ |
| 231 |
&lpuart8 { |
| 232 |
status = "okay"; |
| 233 |
}; |
| 234 |
|
| 235 |
/* X44 mPCIe */ |
| 236 |
&pcie0 { |
| 237 |
status = "okay"; |
| 238 |
}; |
| 239 |
|
| 240 |
/* X22 PCIe x1 socket */ |
| 241 |
&pcie1 { |
| 242 |
status = "okay"; |
| 243 |
}; |
| 244 |
|
| 245 |
®_sdvmmc { |
| 246 |
status = "okay"; |
| 247 |
}; |
| 248 |
|
| 249 |
&sai3 { |
| 250 |
status = "okay"; |
| 251 |
}; |
| 252 |
|
| 253 |
/* X4 */ |
| 254 |
&usb2 { |
| 255 |
srp-disable; |
| 256 |
hnp-disable; |
| 257 |
adp-disable; |
| 258 |
/* DR not yet supported */ |
| 259 |
dr_mode = "peripheral"; |
| 260 |
disable-over-current; |
| 261 |
status = "okay"; |
| 262 |
}; |
| 263 |
|
| 264 |
/* X16 */ |
| 265 |
&usdhc2 { |
| 266 |
no-mmc; |
| 267 |
no-sdio; |
| 268 |
status = "okay"; |
| 269 |
}; |