Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-j721s2-common-proc-board.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2 /*
3 * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * Common Processor Board: https://www.ti.com/tool/J721EXCPXEVM
6 */
7
8 /dts-v1/;
9
10 #include "k3-j721s2-som-p0.dtsi"
11 #include <dt-bindings/net/ti-dp83867.h>
12 #include <dt-bindings/phy/phy-cadence.h>
13 #include <dt-bindings/phy/phy.h>
14
15 #include "k3-serdes.h"
16
17 / {
18 compatible = "ti,j721s2-evm", "ti,j721s2";
19 model = "Texas Instruments J721S2 EVM";
20
21 chosen {
22 stdout-path = "serial2:115200n8";
23 };
24
25 aliases {
26 serial1 = &mcu_uart0;
27 serial2 = &main_uart8;
28 mmc0 = &main_sdhci0;
29 mmc1 = &main_sdhci1;
30 can0 = &main_mcan16;
31 can1 = &mcu_mcan0;
32 can2 = &mcu_mcan1;
33 can3 = &main_mcan3;
34 can4 = &main_mcan5;
35 };
36
37 evm_12v0: fixedregulator-evm12v0 {
38 /* main supply */
39 compatible = "regulator-fixed";
40 regulator-name = "evm_12v0";
41 regulator-min-microvolt = <12000000>;
42 regulator-max-microvolt = <12000000>;
43 regulator-always-on;
44 regulator-boot-on;
45 };
46
47 vsys_3v3: fixedregulator-vsys3v3 {
48 /* Output of LM5140 */
49 compatible = "regulator-fixed";
50 regulator-name = "vsys_3v3";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 vin-supply = <&evm_12v0>;
54 regulator-always-on;
55 regulator-boot-on;
56 };
57
58 vsys_5v0: fixedregulator-vsys5v0 {
59 /* Output of LM5140 */
60 compatible = "regulator-fixed";
61 regulator-name = "vsys_5v0";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
64 vin-supply = <&evm_12v0>;
65 regulator-always-on;
66 regulator-boot-on;
67 };
68
69 vdd_mmc1: fixedregulator-sd {
70 /* Output of TPS22918 */
71 compatible = "regulator-fixed";
72 regulator-name = "vdd_mmc1";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
75 regulator-boot-on;
76 enable-active-high;
77 vin-supply = <&vsys_3v3>;
78 gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
79 };
80
81 vdd_sd_dv: gpio-regulator-TLV71033 {
82 /* Output of TLV71033 */
83 compatible = "regulator-gpio";
84 regulator-name = "tlv71033";
85 pinctrl-names = "default";
86 pinctrl-0 = <&vdd_sd_dv_pins_default>;
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <3300000>;
89 regulator-boot-on;
90 vin-supply = <&vsys_5v0>;
91 gpios = <&main_gpio0 8 GPIO_ACTIVE_HIGH>;
92 states = <1800000 0x0>,
93 <3300000 0x1>;
94 };
95
96 dp1_pwr_3v3: regulator-dp1-prw {
97 compatible = "regulator-fixed";
98 regulator-name = "dp1-pwr";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101 gpio = <&exp4 1 GPIO_ACTIVE_HIGH>; /* P1 - DP1_PWR_SW_EN */
102 enable-active-high;
103 };
104
105 dp1: connector-dp1 {
106 compatible = "dp-connector";
107 label = "DP1";
108 type = "full-size";
109 dp-pwr-supply = <&dp1_pwr_3v3>;
110
111 port {
112 dp1_connector_in: endpoint {
113 remote-endpoint = <&dp1_out>;
114 };
115 };
116 };
117
118 transceiver1: can-phy1 {
119 compatible = "ti,tcan1043";
120 #phy-cells = <0>;
121 max-bitrate = <5000000>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&mcu_mcan0_gpio_pins_default>;
124 standby-gpios = <&wkup_gpio0 69 GPIO_ACTIVE_LOW>;
125 enable-gpios = <&wkup_gpio0 0 GPIO_ACTIVE_HIGH>;
126 };
127
128 transceiver2: can-phy2 {
129 compatible = "ti,tcan1042";
130 #phy-cells = <0>;
131 max-bitrate = <5000000>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&mcu_mcan1_gpio_pins_default>;
134 standby-gpios = <&wkup_gpio0 2 GPIO_ACTIVE_HIGH>;
135 };
136
137 transceiver3: can-phy3 {
138 compatible = "ti,tcan1043";
139 #phy-cells = <0>;
140 max-bitrate = <5000000>;
141 standby-gpios = <&exp2 7 GPIO_ACTIVE_LOW>;
142 enable-gpios = <&exp2 6 GPIO_ACTIVE_HIGH>;
143 mux-states = <&mux0 1>;
144 };
145
146 transceiver4: can-phy4 {
147 compatible = "ti,tcan1042";
148 #phy-cells = <0>;
149 max-bitrate = <5000000>;
150 standby-gpios = <&exp_som 7 GPIO_ACTIVE_HIGH>;
151 mux-states = <&mux1 1>;
152 };
153 };
154
155 &main_pmx0 {
156 main_uart8_pins_default: main-uart8-default-pins {
157 pinctrl-single,pins = <
158 J721S2_IOPAD(0x040, PIN_INPUT, 14) /* (AC28) MCASP0_AXR0.UART8_CTSn */
159 J721S2_IOPAD(0x044, PIN_OUTPUT, 14) /* (Y26) MCASP0_AXR1.UART8_RTSn */
160 J721S2_IOPAD(0x0d0, PIN_INPUT, 11) /* (AF26) SPI0_CS1.UART8_RXD */
161 J721S2_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AH27) SPI0_CLK.UART8_TXD */
162 >;
163 bootph-all;
164 };
165
166 main_i2c3_pins_default: main-i2c3-default-pins {
167 pinctrl-single,pins = <
168 J721S2_IOPAD(0x064, PIN_INPUT_PULLUP, 13) /* (W28) MCAN0_TX.I2C3_SCL */
169 J721S2_IOPAD(0x060, PIN_INPUT_PULLUP, 13) /* (AC27) MCASP2_AXR1.I2C3_SDA */
170 >;
171 };
172
173 main_i2c4_pins_default: main-i2c4-default-pins {
174 pinctrl-single,pins = <
175 J721S2_IOPAD(0x014, PIN_INPUT_PULLUP, 8) /* (AD25) I2C4_SCL */
176 J721S2_IOPAD(0x010, PIN_INPUT_PULLUP, 8) /* (AF28) I2C4_SDA */
177 >;
178 };
179
180 main_i2c5_pins_default: main-i2c5-default-pins {
181 pinctrl-single,pins = <
182 J721S2_IOPAD(0x01c, PIN_INPUT, 8) /* (Y24) MCAN15_TX.I2C5_SCL */
183 J721S2_IOPAD(0x018, PIN_INPUT, 8) /* (W23) MCAN14_RX.I2C5_SDA */
184 >;
185 };
186
187 main_mmc1_pins_default: main-mmc1-default-pins {
188 pinctrl-single,pins = <
189 J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */
190 J721S2_IOPAD(0x108, PIN_INPUT, 0) /* (N24) MMC1_CMD */
191 J721S2_IOPAD(0x100, PIN_INPUT, 0) /* (###) MMC1_CLKLB */
192 J721S2_IOPAD(0x0fc, PIN_INPUT, 0) /* (M23) MMC1_DAT0 */
193 J721S2_IOPAD(0x0f8, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
194 J721S2_IOPAD(0x0f4, PIN_INPUT, 0) /* (R24) MMC1_DAT2 */
195 J721S2_IOPAD(0x0f0, PIN_INPUT, 0) /* (R22) MMC1_DAT3 */
196 J721S2_IOPAD(0x0e8, PIN_INPUT, 8) /* (AE25) TIMER_IO0.MMC1_SDCD */
197 >;
198 bootph-all;
199 };
200
201 vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
202 pinctrl-single,pins = <
203 J721S2_IOPAD(0x020, PIN_INPUT, 7) /* (AA23) MCAN15_RX.GPIO0_8 */
204 >;
205 };
206
207 main_usbss0_pins_default: main-usbss0-default-pins {
208 pinctrl-single,pins = <
209 J721S2_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AG25) TIMER_IO1.USB0_DRVVBUS */
210 >;
211 bootph-all;
212 };
213
214 main_mcan3_pins_default: main-mcan3-default-pins {
215 pinctrl-single,pins = <
216 J721S2_IOPAD(0x080, PIN_INPUT, 0) /* (U26) MCASP0_AXR4.MCAN3_RX */
217 J721S2_IOPAD(0x07c, PIN_OUTPUT, 0) /* (T27) MCASP0_AXR3.MCAN3_TX */
218 >;
219 };
220
221 main_mcan5_pins_default: main-mcan5-default-pins {
222 pinctrl-single,pins = <
223 J721S2_IOPAD(0x03c, PIN_INPUT, 0) /* (U27) MCASP0_AFSX.MCAN5_RX */
224 J721S2_IOPAD(0x038, PIN_OUTPUT, 0) /* (AB28) MCASP0_ACLKX.MCAN5_TX */
225 >;
226 };
227 };
228
229 &wkup_pmx2 {
230 wkup_uart0_pins_default: wkup-uart0-default-pins {
231 pinctrl-single,pins = <
232 J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */
233 J721S2_WKUP_IOPAD(0x04c, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */
234 >;
235 bootph-all;
236 };
237
238 mcu_uart0_pins_default: mcu-uart0-default-pins {
239 pinctrl-single,pins = <
240 J721S2_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (B24) WKUP_GPIO0_14.MCU_UART0_CTSn */
241 J721S2_WKUP_IOPAD(0x094, PIN_OUTPUT, 0) /* (D25) WKUP_GPIO0_15.MCU_UART0_RTSn */
242 J721S2_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (C24) WKUP_GPIO0_13.MCU_UART0_RXD */
243 J721S2_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (C25) WKUP_GPIO0_12.MCU_UART0_TXD */
244 >;
245 bootph-all;
246 };
247
248 mcu_cpsw_pins_default: mcu-cpsw-default-pins {
249 pinctrl-single,pins = <
250 J721S2_WKUP_IOPAD(0x02c, PIN_INPUT, 0) /* (B22) MCU_RGMII1_RD0 */
251 J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (B21) MCU_RGMII1_RD1 */
252 J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (C22) MCU_RGMII1_RD2 */
253 J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D23) MCU_RGMII1_RD3 */
254 J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (D22) MCU_RGMII1_RXC */
255 J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E23) MCU_RGMII1_RX_CTL */
256 J721S2_WKUP_IOPAD(0x014, PIN_OUTPUT, 0) /* (F23) MCU_RGMII1_TD0 */
257 J721S2_WKUP_IOPAD(0x010, PIN_OUTPUT, 0) /* (G22) MCU_RGMII1_TD1 */
258 J721S2_WKUP_IOPAD(0x00c, PIN_OUTPUT, 0) /* (E21) MCU_RGMII1_TD2 */
259 J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (E22) MCU_RGMII1_TD3 */
260 J721S2_WKUP_IOPAD(0x018, PIN_OUTPUT, 0) /* (F21) MCU_RGMII1_TXC */
261 J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (F22) MCU_RGMII1_TX_CTL */
262 >;
263 };
264
265 mcu_mdio_pins_default: mcu-mdio-default-pins {
266 pinctrl-single,pins = <
267 J721S2_WKUP_IOPAD(0x034, PIN_OUTPUT, 0) /* (A21) MCU_MDIO0_MDC */
268 J721S2_WKUP_IOPAD(0x030, PIN_INPUT, 0) /* (A22) MCU_MDIO0_MDIO */
269 >;
270 };
271
272 mcu_mcan0_pins_default: mcu-mcan0-default-pins {
273 pinctrl-single,pins = <
274 J721S2_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (E28) MCU_MCAN0_RX */
275 J721S2_WKUP_IOPAD(0x050, PIN_OUTPUT, 0) /* (E27) MCU_MCAN0_TX */
276 >;
277 };
278
279 mcu_mcan1_pins_default: mcu-mcan1-default-pins {
280 pinctrl-single,pins = <
281 J721S2_WKUP_IOPAD(0x06c, PIN_INPUT, 0) /* (F26) WKUP_GPIO0_5.MCU_MCAN1_RX */
282 J721S2_WKUP_IOPAD(0x068, PIN_OUTPUT, 0) /*(C23) WKUP_GPIO0_4.MCU_MCAN1_TX */
283 >;
284 };
285
286 mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-default-pins {
287 pinctrl-single,pins = <
288 J721S2_WKUP_IOPAD(0x058, PIN_INPUT, 7) /* (D26) WKUP_GPIO0_0 */
289 J721S2_WKUP_IOPAD(0x040, PIN_INPUT, 7) /* (B25) MCU_SPI0_D1.WKUP_GPIO0_69 */
290 >;
291 };
292
293 mcu_mcan1_gpio_pins_default: mcu-mcan1-gpio-default-pins {
294 pinctrl-single,pins = <
295 J721S2_WKUP_IOPAD(0x060, PIN_INPUT, 7) /* (C28) WKUP_GPIO0_2 */
296 >;
297 };
298
299 mcu_adc0_pins_default: mcu-adc0-default-pins {
300 pinctrl-single,pins = <
301 J721S2_WKUP_IOPAD(0x0cc, PIN_INPUT, 0) /* (L25) MCU_ADC0_AIN0 */
302 J721S2_WKUP_IOPAD(0x0d0, PIN_INPUT, 0) /* (K25) MCU_ADC0_AIN1 */
303 J721S2_WKUP_IOPAD(0x0d4, PIN_INPUT, 0) /* (M24) MCU_ADC0_AIN2 */
304 J721S2_WKUP_IOPAD(0x0d8, PIN_INPUT, 0) /* (L24) MCU_ADC0_AIN3 */
305 J721S2_WKUP_IOPAD(0x0dc, PIN_INPUT, 0) /* (L27) MCU_ADC0_AIN4 */
306 J721S2_WKUP_IOPAD(0x0e0, PIN_INPUT, 0) /* (K24) MCU_ADC0_AIN5 */
307 J721S2_WKUP_IOPAD(0x0e4, PIN_INPUT, 0) /* (M27) MCU_ADC0_AIN6 */
308 J721S2_WKUP_IOPAD(0x0e8, PIN_INPUT, 0) /* (M26) MCU_ADC0_AIN7 */
309 >;
310 };
311
312 mcu_adc1_pins_default: mcu-adc1-default-pins {
313 pinctrl-single,pins = <
314 J721S2_WKUP_IOPAD(0x0ec, PIN_INPUT, 0) /* (P25) MCU_ADC1_AIN0 */
315 J721S2_WKUP_IOPAD(0x0f0, PIN_INPUT, 0) /* (R25) MCU_ADC1_AIN1 */
316 J721S2_WKUP_IOPAD(0x0f4, PIN_INPUT, 0) /* (P28) MCU_ADC1_AIN2 */
317 J721S2_WKUP_IOPAD(0x0f8, PIN_INPUT, 0) /* (P27) MCU_ADC1_AIN3 */
318 J721S2_WKUP_IOPAD(0x0fc, PIN_INPUT, 0) /* (N25) MCU_ADC1_AIN4 */
319 J721S2_WKUP_IOPAD(0x100, PIN_INPUT, 0) /* (P26) MCU_ADC1_AIN5 */
320 J721S2_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (N26) MCU_ADC1_AIN6 */
321 J721S2_WKUP_IOPAD(0x108, PIN_INPUT, 0) /* (N27) MCU_ADC1_AIN7 */
322 >;
323 };
324 };
325
326 &wkup_pmx1 {
327 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-default-pins {
328 pinctrl-single,pins = <
329 J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (A19) MCU_OSPI1_CLK */
330 J721S2_WKUP_IOPAD(0x024, PIN_OUTPUT, 0) /* (D20) MCU_OSPI1_CSn0 */
331 J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (D21) MCU_OSPI1_D0 */
332 J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (G20) MCU_OSPI1_D1 */
333 J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (C20) MCU_OSPI1_D2 */
334 J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (A20) MCU_OSPI1_D3 */
335 J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B19) MCU_OSPI1_DQS */
336 J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B20) MCU_OSPI1_LBCLKO */
337 >;
338 bootph-all;
339 };
340 };
341
342 &main_gpio0 {
343 status = "okay";
344 };
345
346 &wkup_gpio0 {
347 status = "okay";
348 };
349
350 &wkup_uart0 {
351 status = "reserved";
352 pinctrl-names = "default";
353 pinctrl-0 = <&wkup_uart0_pins_default>;
354 bootph-all;
355 };
356
357 &mcu_uart0 {
358 status = "okay";
359 pinctrl-names = "default";
360 pinctrl-0 = <&mcu_uart0_pins_default>;
361 bootph-all;
362 };
363
364 &main_uart8 {
365 status = "okay";
366 pinctrl-names = "default";
367 pinctrl-0 = <&main_uart8_pins_default>;
368 /* Shared with TFA on this platform */
369 power-domains = <&k3_pds 357 TI_SCI_PD_SHARED>;
370 bootph-all;
371 };
372
373 &main_i2c0 {
374 clock-frequency = <400000>;
375
376 exp1: gpio@20 {
377 compatible = "ti,tca6416";
378 reg = <0x20>;
379 gpio-controller;
380 #gpio-cells = <2>;
381 gpio-line-names = "PCIE_2L_MODE_SEL", "PCIE_2L_PERSTZ", "PCIE_2L_RC_RSTZ",
382 "PCIE_2L_EP_RST_EN", "PCIE_1L_MODE_SEL", "PCIE_1L_PERSTZ",
383 "PCIE_1L_RC_RSTZ", "PCIE_1L_EP_RST_EN", "PCIE_2L_PRSNT#",
384 "PCIE_1L_PRSNT#", "CDCI1_OE1/OE4", "CDCI1_OE2/OE3", "EXP_MUX1",
385 "EXP_MUX2", "EXP_MUX3", "GESI_EXP_PHY_RSTz";
386 };
387
388 exp2: gpio@22 {
389 compatible = "ti,tca6424";
390 reg = <0x22>;
391 gpio-controller;
392 #gpio-cells = <2>;
393 gpio-line-names = "APPLE_AUTH_RSTZ", "MLB_RSTZ", "GPIO_USD_PWR_EN", "USBC_PWR_EN",
394 "USBC_MODE_SEL1", "USBC_MODE_SEL0", "MCAN0_EN", "MCAN0_STB#",
395 "MUX_SPAREMUX_SPARE", "MCASP/TRACE_MUX_S0", "MCASP/TRACE_MUX_S1",
396 "MLB_MUX_SEL", "MCAN_MUX_SEL", "MCASP2/SPI3_MUX_SEL", "PCIe_CLKREQn_MUX_SEL",
397 "CDCI2_RSTZ", "ENET_EXP_PWRDN", "ENET_EXP_RESETZ", "ENET_I2CMUX_SEL",
398 "ENET_EXP_SPARE2", "M2PCIE_RTSZ", "USER_INPUT1", "USER_LED1", "USER_LED2";
399 };
400 };
401
402 &main_i2c4 {
403 status = "okay";
404 pinctrl-names = "default";
405 pinctrl-0 = <&main_i2c4_pins_default>;
406 clock-frequency = <400000>;
407
408 exp4: gpio@20 {
409 compatible = "ti,tca6408";
410 reg = <0x20>;
411 gpio-controller;
412 #gpio-cells = <2>;
413 gpio-line-names = "DP0_PWR_SW_EN", "DP1_PWR_SW_EN", "UB981_PDB",
414 "UB981_GPIO0", "UB981_GPIO1", "UB981_GPIO2",
415 "UB981_GPIO3", "PWR_SW_CNTL_DSI0#";
416 };
417 };
418
419 &main_i2c5 {
420 pinctrl-names = "default";
421 pinctrl-0 = <&main_i2c5_pins_default>;
422 clock-frequency = <400000>;
423 status = "okay";
424
425 exp5: gpio@20 {
426 compatible = "ti,tca6408";
427 reg = <0x20>;
428 gpio-controller;
429 #gpio-cells = <2>;
430 gpio-line-names = "CSI2_EXP_RSTZ", "CSI2_EXP_A_GPIO0",
431 "CSI2_EXP_A_GPIO1", "CSI2_EXP_A_GPIO2",
432 "CSI2_EXP_B_GPIO1", "CSI2_EXP_B_GPIO2",
433 "CSI2_EXP_B_GPIO3", "CSI2_EXP_B_GPIO4";
434 };
435 };
436
437 &main_sdhci0 {
438 /* eMMC */
439 status = "okay";
440 non-removable;
441 bootph-all;
442 ti,driver-strength-ohm = <50>;
443 disable-wp;
444 };
445
446 &main_sdhci1 {
447 /* SD card */
448 status = "okay";
449 pinctrl-0 = <&main_mmc1_pins_default>;
450 pinctrl-names = "default";
451 disable-wp;
452 vmmc-supply = <&vdd_mmc1>;
453 vqmmc-supply = <&vdd_sd_dv>;
454 bootph-all;
455 };
456
457 &mcu_cpsw {
458 pinctrl-names = "default";
459 pinctrl-0 = <&mcu_cpsw_pins_default>, <&mcu_mdio_pins_default>;
460 status = "okay";
461 };
462
463 &davinci_mdio {
464 phy0: ethernet-phy@0 {
465 reg = <0>;
466 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
467 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
468 ti,min-output-impedance;
469 };
470 };
471
472 &cpsw_port1 {
473 phy-mode = "rgmii-id";
474 phy-handle = <&phy0>;
475 };
476
477 &serdes_ln_ctrl {
478 idle-states = <J721S2_SERDES0_LANE0_PCIE1_LANE0>, <J721S2_SERDES0_LANE1_USB>,
479 <J721S2_SERDES0_LANE2_EDP_LANE2>, <J721S2_SERDES0_LANE3_EDP_LANE3>;
480 };
481
482 &serdes_refclk {
483 clock-frequency = <100000000>;
484 };
485
486 &serdes0 {
487 status = "okay";
488 serdes0_pcie_link: phy@0 {
489 reg = <0>;
490 cdns,num-lanes = <1>;
491 #phy-cells = <0>;
492 cdns,phy-type = <PHY_TYPE_PCIE>;
493 resets = <&serdes_wiz0 1>;
494 };
495 };
496
497 &usb_serdes_mux {
498 idle-states = <1>; /* USB0 to SERDES lane 1 */
499 };
500
501 &usbss0 {
502 status = "okay";
503 pinctrl-0 = <&main_usbss0_pins_default>;
504 pinctrl-names = "default";
505 bootph-all;
506 ti,vbus-divider;
507 ti,usb2-only;
508 };
509
510 &usb0 {
511 dr_mode = "otg";
512 maximum-speed = "high-speed";
513 bootph-all;
514 };
515
516 &ospi1 {
517 status = "okay";
518 pinctrl-names = "default";
519 pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
520
521 flash@0 {
522 compatible = "jedec,spi-nor";
523 reg = <0x0>;
524 spi-tx-bus-width = <1>;
525 spi-rx-bus-width = <4>;
526 spi-max-frequency = <40000000>;
527 bootph-all;
528 cdns,tshsl-ns = <60>;
529 cdns,tsd2d-ns = <60>;
530 cdns,tchsh-ns = <60>;
531 cdns,tslch-ns = <60>;
532 cdns,read-delay = <2>;
533 };
534 };
535
536 &pcie1_rc {
537 status = "okay";
538 reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
539 phys = <&serdes0_pcie_link>;
540 phy-names = "pcie-phy";
541 num-lanes = <1>;
542 };
543
544 &mcu_mcan0 {
545 status = "okay";
546 pinctrl-names = "default";
547 pinctrl-0 = <&mcu_mcan0_pins_default>;
548 phys = <&transceiver1>;
549 };
550
551 &mcu_mcan1 {
552 status = "okay";
553 pinctrl-names = "default";
554 pinctrl-0 = <&mcu_mcan1_pins_default>;
555 phys = <&transceiver2>;
556 };
557
558 &tscadc0 {
559 pinctrl-0 = <&mcu_adc0_pins_default>;
560 pinctrl-names = "default";
561 status = "okay";
562 adc {
563 ti,adc-channels = <0 1 2 3 4 5 6 7>;
564 };
565 };
566
567 &tscadc1 {
568 pinctrl-0 = <&mcu_adc1_pins_default>;
569 pinctrl-names = "default";
570 status = "okay";
571 adc {
572 ti,adc-channels = <0 1 2 3 4 5 6 7>;
573 };
574 };
575
576 &main_mcan3 {
577 status = "okay";
578 pinctrl-names = "default";
579 pinctrl-0 = <&main_mcan3_pins_default>;
580 phys = <&transceiver3>;
581 };
582
583 &main_mcan5 {
584 status = "okay";
585 pinctrl-names = "default";
586 pinctrl-0 = <&main_mcan5_pins_default>;
587 phys = <&transceiver4>;
588 };
589
590 &dss {
591 /*
592 * DSS on J721S2-EVM supports DP on VP0 and DSI on VP2.
593 * These clock assignments are chosen to enable the following outputs:
594 * VP0 - DisplayPort SST
595 * VP2 - DSI
596 */
597 status = "okay";
598 assigned-clocks = <&k3_clks 158 2>,
599 <&k3_clks 158 14>;
600 assigned-clock-parents = <&k3_clks 158 3>,
601 <&k3_clks 158 16>;
602 };
603
604 &dss_ports {
605 #address-cells = <1>;
606 #size-cells = <0>;
607
608 port@2 {
609 reg = <2>;
610
611 dpi2_out: endpoint {
612 remote-endpoint = <&dsi0_in>;
613 };
614 };
615 };
616
617 &dsi0_ports {
618 port@0 {
619 reg = <0>;
620
621 dsi0_out: endpoint {
622 remote-endpoint = <&dp1_in>;
623 };
624 };
625
626 port@1 {
627 reg = <1>;
628
629 dsi0_in: endpoint {
630 remote-endpoint = <&dpi2_out>;
631 };
632 };
633 };
634
635 &dsi_edp_bridge_ports {
636 port@0 {
637 reg = <0>;
638
639 dp1_in: endpoint {
640 remote-endpoint = <&dsi0_out>;
641 };
642 };
643
644 port@1 {
645 reg = <1>;
646
647 dp1_out: endpoint {
648 remote-endpoint = <&dp1_connector_in>;
649 };
650 };
651 };
652
653 &dphy_tx0 {
654 status = "okay";
655 };
656
657 &dsi0 {
658 status = "okay";
659 };