xref: /linux/arch/arm64/boot/dts/ti/k3-j721e-sk.dts (revision 0e2b2a76278153d1ac312b0691cb65dabb9aef3e)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * J721E SK URL: https://www.ti.com/tool/SK-TDA4VM
6 */
7
8/dts-v1/;
9
10#include "k3-j721e.dtsi"
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/input/input.h>
13#include <dt-bindings/net/ti-dp83867.h>
14
15/ {
16	compatible = "ti,j721e-sk", "ti,j721e";
17	model = "Texas Instruments J721E SK";
18
19	aliases {
20		serial0 = &wkup_uart0;
21		serial1 = &mcu_uart0;
22		serial2 = &main_uart0;
23		serial3 = &main_uart1;
24		ethernet0 = &cpsw_port1;
25		mmc1 = &main_sdhci1;
26	};
27
28	chosen {
29		stdout-path = "serial2:115200n8";
30	};
31
32	memory@80000000 {
33		device_type = "memory";
34		/* 4G RAM */
35		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
36		      <0x00000008 0x80000000 0x00000000 0x80000000>;
37	};
38
39	reserved_memory: reserved-memory {
40		#address-cells = <2>;
41		#size-cells = <2>;
42		ranges;
43
44		secure_ddr: optee@9e800000 {
45			reg = <0x00 0x9e800000 0x00 0x01800000>;
46			alignment = <0x1000>;
47			no-map;
48		};
49
50		mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
51			compatible = "shared-dma-pool";
52			reg = <0x00 0xa0000000 0x00 0x100000>;
53			no-map;
54		};
55
56		mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
57			compatible = "shared-dma-pool";
58			reg = <0x00 0xa0100000 0x00 0xf00000>;
59			no-map;
60		};
61
62		mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
63			compatible = "shared-dma-pool";
64			reg = <0x00 0xa1000000 0x00 0x100000>;
65			no-map;
66		};
67
68		mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
69			compatible = "shared-dma-pool";
70			reg = <0x00 0xa1100000 0x00 0xf00000>;
71			no-map;
72		};
73
74		main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
75			compatible = "shared-dma-pool";
76			reg = <0x00 0xa2000000 0x00 0x100000>;
77			no-map;
78		};
79
80		main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
81			compatible = "shared-dma-pool";
82			reg = <0x00 0xa2100000 0x00 0xf00000>;
83			no-map;
84		};
85
86		main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a3000000 {
87			compatible = "shared-dma-pool";
88			reg = <0x00 0xa3000000 0x00 0x100000>;
89			no-map;
90		};
91
92		main_r5fss0_core1_memory_region: r5f-memory@a3100000 {
93			compatible = "shared-dma-pool";
94			reg = <0x00 0xa3100000 0x00 0xf00000>;
95			no-map;
96		};
97
98		main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a4000000 {
99			compatible = "shared-dma-pool";
100			reg = <0x00 0xa4000000 0x00 0x100000>;
101			no-map;
102		};
103
104		main_r5fss1_core0_memory_region: r5f-memory@a4100000 {
105			compatible = "shared-dma-pool";
106			reg = <0x00 0xa4100000 0x00 0xf00000>;
107			no-map;
108		};
109
110		main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a5000000 {
111			compatible = "shared-dma-pool";
112			reg = <0x00 0xa5000000 0x00 0x100000>;
113			no-map;
114		};
115
116		main_r5fss1_core1_memory_region: r5f-memory@a5100000 {
117			compatible = "shared-dma-pool";
118			reg = <0x00 0xa5100000 0x00 0xf00000>;
119			no-map;
120		};
121
122		c66_1_dma_memory_region: c66-dma-memory@a6000000 {
123			compatible = "shared-dma-pool";
124			reg = <0x00 0xa6000000 0x00 0x100000>;
125			no-map;
126		};
127
128		c66_0_memory_region: c66-memory@a6100000 {
129			compatible = "shared-dma-pool";
130			reg = <0x00 0xa6100000 0x00 0xf00000>;
131			no-map;
132		};
133
134		c66_0_dma_memory_region: c66-dma-memory@a7000000 {
135			compatible = "shared-dma-pool";
136			reg = <0x00 0xa7000000 0x00 0x100000>;
137			no-map;
138		};
139
140		c66_1_memory_region: c66-memory@a7100000 {
141			compatible = "shared-dma-pool";
142			reg = <0x00 0xa7100000 0x00 0xf00000>;
143			no-map;
144		};
145
146		c71_0_dma_memory_region: c71-dma-memory@a8000000 {
147			compatible = "shared-dma-pool";
148			reg = <0x00 0xa8000000 0x00 0x100000>;
149			no-map;
150		};
151
152		c71_0_memory_region: c71-memory@a8100000 {
153			compatible = "shared-dma-pool";
154			reg = <0x00 0xa8100000 0x00 0xf00000>;
155			no-map;
156		};
157
158		rtos_ipc_memory_region: ipc-memories@aa000000 {
159			reg = <0x00 0xaa000000 0x00 0x01c00000>;
160			alignment = <0x1000>;
161			no-map;
162		};
163	};
164
165	vusb_main: fixedregulator-vusb-main5v0 {
166		/* USB MAIN INPUT 5V DC */
167		compatible = "regulator-fixed";
168		regulator-name = "vusb-main5v0";
169		regulator-min-microvolt = <5000000>;
170		regulator-max-microvolt = <5000000>;
171		regulator-always-on;
172		regulator-boot-on;
173	};
174
175	vsys_3v3: fixedregulator-vsys3v3 {
176		/* Output of LM5141 */
177		compatible = "regulator-fixed";
178		regulator-name = "vsys_3v3";
179		regulator-min-microvolt = <3300000>;
180		regulator-max-microvolt = <3300000>;
181		vin-supply = <&vusb_main>;
182		regulator-always-on;
183		regulator-boot-on;
184	};
185
186	vdd_mmc1: fixedregulator-sd {
187		compatible = "regulator-fixed";
188		pinctrl-names = "default";
189		pinctrl-0 = <&vdd_mmc1_en_pins_default>;
190		regulator-name = "vdd_mmc1";
191		regulator-min-microvolt = <3300000>;
192		regulator-max-microvolt = <3300000>;
193		regulator-boot-on;
194		enable-active-high;
195		vin-supply = <&vsys_3v3>;
196		gpio = <&wkup_gpio0 8 GPIO_ACTIVE_HIGH>;
197	};
198
199	vdd_sd_dv_alt: gpio-regulator-tps659411 {
200		compatible = "regulator-gpio";
201		pinctrl-names = "default";
202		pinctrl-0 = <&vdd_sd_dv_alt_pins_default>;
203		regulator-name = "tps659411";
204		regulator-min-microvolt = <1800000>;
205		regulator-max-microvolt = <3300000>;
206		regulator-boot-on;
207		vin-supply = <&vsys_3v3>;
208		gpios = <&wkup_gpio0 9 GPIO_ACTIVE_HIGH>;
209		states = <1800000 0x0>,
210			 <3300000 0x1>;
211	};
212
213	dp_pwr_3v3: fixedregulator-dp-prw {
214		compatible = "regulator-fixed";
215		regulator-name = "dp-pwr";
216		regulator-min-microvolt = <3300000>;
217		regulator-max-microvolt = <3300000>;
218		pinctrl-names = "default";
219		pinctrl-0 = <&dp_pwr_en_pins_default>;
220		gpio = <&main_gpio0 111 0>;	/* DP0_3V3 _EN */
221		enable-active-high;
222	};
223
224	dp0: connector {
225		compatible = "dp-connector";
226		label = "DP0";
227		type = "full-size";
228		dp-pwr-supply = <&dp_pwr_3v3>;
229
230		port {
231			dp_connector_in: endpoint {
232				remote-endpoint = <&dp0_out>;
233			};
234		};
235	};
236
237	hdmi-connector {
238		compatible = "hdmi-connector";
239		label = "hdmi";
240		type = "a";
241
242		pinctrl-names = "default";
243		pinctrl-0 = <&hdmi_hpd_pins_default>;
244
245		ddc-i2c-bus = <&main_i2c1>;
246
247		/* HDMI_HPD */
248		hpd-gpios = <&main_gpio1 0 GPIO_ACTIVE_HIGH>;
249
250		port {
251			hdmi_connector_in: endpoint {
252				remote-endpoint = <&tfp410_out>;
253			};
254		};
255	};
256
257	dvi-bridge {
258		compatible = "ti,tfp410";
259
260		pinctrl-names = "default";
261		pinctrl-0 = <&hdmi_pdn_pins_default>;
262
263		powerdown-gpios = <&main_gpio0 127 GPIO_ACTIVE_LOW>;
264		ti,deskew = <0>;
265
266		ports {
267			#address-cells = <1>;
268			#size-cells = <0>;
269
270			port@0 {
271				reg = <0>;
272
273				tfp410_in: endpoint {
274					remote-endpoint = <&dpi1_out>;
275					pclk-sample = <1>;
276				};
277			};
278
279			port@1 {
280				reg = <1>;
281
282				tfp410_out: endpoint {
283					remote-endpoint =
284						<&hdmi_connector_in>;
285				};
286			};
287		};
288	};
289};
290
291&main_pmx0 {
292	main_mmc1_pins_default: main-mmc1-default-pins {
293		pinctrl-single,pins = <
294			J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
295			J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
296			J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
297			J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
298			J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
299			J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
300			J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
301			J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
302		>;
303	};
304
305	main_uart0_pins_default: main-uart0-default-pins {
306		pinctrl-single,pins = <
307			J721E_IOPAD(0x1f0, PIN_INPUT, 0) /* (AC2) UART0_CTSn */
308			J721E_IOPAD(0x1f4, PIN_OUTPUT, 0) /* (AB1) UART0_RTSn */
309			J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
310			J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
311		>;
312	};
313
314	main_uart1_pins_default: main-uart1-default-pins {
315		pinctrl-single,pins = <
316			J721E_IOPAD(0x1f8, PIN_INPUT, 0) /* (AA4) UART1_RXD */
317			J721E_IOPAD(0x1fc, PIN_OUTPUT, 0) /* (AB4) UART1_TXD */
318		>;
319	};
320
321	main_i2c0_pins_default: main-i2c0-default-pins {
322		pinctrl-single,pins = <
323			J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
324			J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
325		>;
326	};
327
328	main_i2c1_pins_default: main-i2c1-default-pins {
329		pinctrl-single,pins = <
330			J721E_IOPAD(0x228, PIN_INPUT_PULLUP, 0) /* (Y6) I2C1_SCL */
331			J721E_IOPAD(0x22c, PIN_INPUT_PULLUP, 0) /* (AA6) I2C1_SDA */
332		>;
333	};
334
335	main_i2c3_pins_default: main-i2c3-default-pins {
336		pinctrl-single,pins = <
337			J721E_IOPAD(0x270, PIN_INPUT_PULLUP, 4) /* (T26) MMC2_CLK.I2C3_SCL */
338			J721E_IOPAD(0x274, PIN_INPUT_PULLUP, 4) /* (T25) MMC2_CMD.I2C3_SDA */
339		>;
340	};
341
342	main_usbss0_pins_default: main-usbss0-default-pins {
343		pinctrl-single,pins = <
344			J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
345			J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
346		>;
347	};
348
349	main_usbss1_pins_default: main-usbss1-default-pins {
350		pinctrl-single,pins = <
351			J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
352		>;
353	};
354
355	dp0_pins_default: dp0-default-pins {
356		pinctrl-single,pins = <
357			J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */
358		>;
359	};
360
361	dp_pwr_en_pins_default: dp-pwr-en-default-pins {
362		pinctrl-single,pins = <
363			J721E_IOPAD(0x1c0, PIN_INPUT, 7) /* (AA2) SPI0_CS0.GPIO0_111 */
364		>;
365	};
366
367	dss_vout0_pins_default: dss-vout0-default-pins {
368		pinctrl-single,pins = <
369			J721E_IOPAD(0x58, PIN_OUTPUT, 10) /* (AE22) PRG1_PRU1_GPO0.VOUT0_DATA0 */
370			J721E_IOPAD(0x5c, PIN_OUTPUT, 10) /* (AG23) PRG1_PRU1_GPO1.VOUT0_DATA1 */
371			J721E_IOPAD(0x60, PIN_OUTPUT, 10) /* (AF23) PRG1_PRU1_GPO2.VOUT0_DATA2 */
372			J721E_IOPAD(0x64, PIN_OUTPUT, 10) /* (AD23) PRG1_PRU1_GPO3.VOUT0_DATA3 */
373			J721E_IOPAD(0x68, PIN_OUTPUT, 10) /* (AH24) PRG1_PRU1_GPO4.VOUT0_DATA4 */
374			J721E_IOPAD(0x6c, PIN_OUTPUT, 10) /* (AG21) PRG1_PRU1_GPO5.VOUT0_DATA5 */
375			J721E_IOPAD(0x70, PIN_OUTPUT, 10) /* (AE23) PRG1_PRU1_GPO6.VOUT0_DATA6 */
376			J721E_IOPAD(0x74, PIN_OUTPUT, 10) /* (AC21) PRG1_PRU1_GPO7.VOUT0_DATA7 */
377			J721E_IOPAD(0x78, PIN_OUTPUT, 10) /* (Y23) PRG1_PRU1_GPO8.VOUT0_DATA8 */
378			J721E_IOPAD(0x7c, PIN_OUTPUT, 10) /* (AF21) PRG1_PRU1_GPO9.VOUT0_DATA9 */
379			J721E_IOPAD(0x80, PIN_OUTPUT, 10) /* (AB23) PRG1_PRU1_GPO10.VOUT0_DATA10 */
380			J721E_IOPAD(0x84, PIN_OUTPUT, 10) /* (AJ25) PRG1_PRU1_GPO11.VOUT0_DATA11 */
381			J721E_IOPAD(0x88, PIN_OUTPUT, 10) /* (AH25) PRG1_PRU1_GPO12.VOUT0_DATA12 */
382			J721E_IOPAD(0x8c, PIN_OUTPUT, 10) /* (AG25) PRG1_PRU1_GPO13.VOUT0_DATA13 */
383			J721E_IOPAD(0x90, PIN_OUTPUT, 10) /* (AH26) PRG1_PRU1_GPO14.VOUT0_DATA14 */
384			J721E_IOPAD(0x94, PIN_OUTPUT, 10) /* (AJ27) PRG1_PRU1_GPO15.VOUT0_DATA15 */
385			J721E_IOPAD(0x30, PIN_OUTPUT, 10) /* (AF24) PRG1_PRU0_GPO11.VOUT0_DATA16 */
386			J721E_IOPAD(0x34, PIN_OUTPUT, 10) /* (AJ24) PRG1_PRU0_GPO12.VOUT0_DATA17 */
387			J721E_IOPAD(0x38, PIN_OUTPUT, 10) /* (AG24) PRG1_PRU0_GPO13.VOUT0_DATA18 */
388			J721E_IOPAD(0x3c, PIN_OUTPUT, 10) /* (AD24) PRG1_PRU0_GPO14.VOUT0_DATA19 */
389			J721E_IOPAD(0x40, PIN_OUTPUT, 10) /* (AC24) PRG1_PRU0_GPO15.VOUT0_DATA20 */
390			J721E_IOPAD(0x44, PIN_OUTPUT, 10) /* (AE24) PRG1_PRU0_GPO16.VOUT0_DATA21 */
391			J721E_IOPAD(0x24, PIN_OUTPUT, 10) /* (AJ20) PRG1_PRU0_GPO8.VOUT0_DATA22 */
392			J721E_IOPAD(0x28, PIN_OUTPUT, 10) /* (AG20) PRG1_PRU0_GPO9.VOUT0_DATA23 */
393			J721E_IOPAD(0x9c, PIN_OUTPUT, 10) /* (AC22) PRG1_PRU1_GPO17.VOUT0_DE */
394			J721E_IOPAD(0x98, PIN_OUTPUT, 10) /* (AJ26) PRG1_PRU1_GPO16.VOUT0_HSYNC */
395			J721E_IOPAD(0xa4, PIN_OUTPUT, 10) /* (AH22) PRG1_PRU1_GPO19.VOUT0_PCLK */
396			J721E_IOPAD(0xa0, PIN_OUTPUT, 10) /* (AJ22) PRG1_PRU1_GPO18.VOUT0_VSYNC */
397		>;
398	};
399
400	hdmi_hpd_pins_default: hdmi-hpd-default-pins {
401		pinctrl-single,pins = <
402			J721E_IOPAD(0x204, PIN_INPUT, 7) /* (AD5) UART1_RTSn.GPIO1_0 */
403		>;
404	};
405
406	hdmi_pdn_pins_default: hdmi-pdn-default-pins {
407		pinctrl-single,pins = <
408			J721E_IOPAD(0x200, PIN_INPUT, 7) /* (AC4) UART1_CTSn.GPIO0_127 */
409		>;
410	};
411
412	/* Reset for M.2 E Key slot on PCIe0  */
413	ekey_reset_pins_default: ekey-reset-pns-default-pins {
414		pinctrl-single,pins = <
415			J721E_IOPAD(0x124, PIN_INPUT, 7) /* (Y24) PRG0_PRU1_GPO9.GPIO0_72 */
416		>;
417	};
418
419	main_i2c5_pins_default: main-i2c5-default-pins {
420		pinctrl-single,pins = <
421			J721E_IOPAD(0x150, PIN_INPUT_PULLUP, 2) /* (Y26) PRG0_MDIO0_MDIO.I2C5_SCL */
422			J721E_IOPAD(0x154, PIN_INPUT_PULLUP, 2) /* (AA27) PRG0_MDIO0_MDC.I2C5_SDA */
423		>;
424	};
425
426	rpi_header_gpio0_pins_default: rpi-header-gpio0-default-pins {
427		pinctrl-single,pins = <
428			J721E_IOPAD(0x01C, PIN_INPUT, 7) /* (AD22) PRG1_PRU0_GPO6.GPIO0_7 */
429			J721E_IOPAD(0x120, PIN_INPUT, 7) /* (AA28) PRG0_PRU1_GPO8.GPIO0_71 */
430			J721E_IOPAD(0x14C, PIN_INPUT, 7) /* (AA29) PRG0_PRU1_GPO19.GPIO0_82 */
431			J721E_IOPAD(0x02C, PIN_INPUT, 7) /* (AD21) PRG1_PRU0_GPO10.GPIO0_11 */
432			J721E_IOPAD(0x198, PIN_INPUT, 7) /* (V25) RGMII6_TD1.GPIO0_101 */
433			J721E_IOPAD(0x1B0, PIN_INPUT, 7) /* (W24) RGMII6_RD1.GPIO0_107 */
434			J721E_IOPAD(0x1A0, PIN_INPUT, 7) /* (W29) RGMII6_TXC.GPIO0_103 */
435			J721E_IOPAD(0x008, PIN_INPUT, 7) /* (AG22) PRG1_PRU0_GPO1.GPIO0_2 */
436			J721E_IOPAD(0x1D0, PIN_INPUT, 7) /* (AA3) SPI0_D1.GPIO0_115 */
437			J721E_IOPAD(0x11C, PIN_INPUT, 7) /* (AA24) PRG0_PRU1_GPO7.GPIO0_70 */
438			J721E_IOPAD(0x148, PIN_INPUT, 7) /* (AA26) PRG0_PRU1_GPO18.GPIO0_81 */
439			J721E_IOPAD(0x004, PIN_INPUT, 7) /* (AC23) PRG1_PRU0_GPO0.GPIO0_1 */
440			J721E_IOPAD(0x014, PIN_INPUT, 7) /* (AH23) PRG1_PRU0_GPO4.GPIO0_5 */
441			J721E_IOPAD(0x020, PIN_INPUT, 7) /* (AE20) PRG1_PRU0_GPO7.GPIO0_8 */
442			J721E_IOPAD(0x19C, PIN_INPUT, 7) /* (W27) RGMII6_TD0.GPIO0_102 */
443			J721E_IOPAD(0x1B4, PIN_INPUT, 7) /* (W25) RGMII6_RD0.GPIO0_108 */
444			J721E_IOPAD(0x188, PIN_INPUT, 7) /* (Y28) RGMII6_TX_CTL.GPIO0_97 */
445			J721E_IOPAD(0x00C, PIN_INPUT, 7) /* (AF22) PRG1_PRU0_GPO2.GPIO0_3 */
446			J721E_IOPAD(0x010, PIN_INPUT, 7) /* (AJ23) PRG1_PRU0_GPO3.GPIO0_4 */
447			J721E_IOPAD(0x178, PIN_INPUT, 7) /* (U27) RGMII5_RD3.GPIO0_93 */
448			J721E_IOPAD(0x17C, PIN_INPUT, 7) /* (U24) RGMII5_RD2.GPIO0_94 */
449			J721E_IOPAD(0x190, PIN_INPUT, 7) /* (W23) RGMII6_TD3.GPIO0_99 */
450			J721E_IOPAD(0x18C, PIN_INPUT, 7) /* (V23) RGMII6_RX_CTL.GPIO0_98 */
451		>;
452	};
453
454	rpi_header_gpio1_pins_default: rpi-header-gpio1-default-pins {
455		pinctrl-single,pins = <
456			J721E_IOPAD(0x234, PIN_INPUT, 7) /* (U3) EXT_REFCLK1.GPIO1_12 */
457		>;
458	};
459};
460
461&wkup_pmx0 {
462	mcu_cpsw_pins_default: mcu-cpsw-default-pins {
463		pinctrl-single,pins = <
464			J721E_WKUP_IOPAD(0x84, PIN_INPUT, 0) /* (B24) MCU_RGMII1_RD0 */
465			J721E_WKUP_IOPAD(0x80, PIN_INPUT, 0) /* (A24) MCU_RGMII1_RD1 */
466			J721E_WKUP_IOPAD(0x7c, PIN_INPUT, 0) /* (D24) MCU_RGMII1_RD2 */
467			J721E_WKUP_IOPAD(0x78, PIN_INPUT, 0) /* (A25) MCU_RGMII1_RD3 */
468			J721E_WKUP_IOPAD(0x74, PIN_INPUT, 0) /* (C24) MCU_RGMII1_RXC */
469			J721E_WKUP_IOPAD(0x5c, PIN_INPUT, 0) /* (C25) MCU_RGMII1_RX_CTL */
470			J721E_WKUP_IOPAD(0x6c, PIN_OUTPUT, 0) /* (B25) MCU_RGMII1_TD0 */
471			J721E_WKUP_IOPAD(0x68, PIN_OUTPUT, 0) /* (A26) MCU_RGMII1_TD1 */
472			J721E_WKUP_IOPAD(0x64, PIN_OUTPUT, 0) /* (A27) MCU_RGMII1_TD2 */
473			J721E_WKUP_IOPAD(0x60, PIN_OUTPUT, 0) /* (A28) MCU_RGMII1_TD3 */
474			J721E_WKUP_IOPAD(0x70, PIN_OUTPUT, 0) /* (B26) MCU_RGMII1_TXC */
475			J721E_WKUP_IOPAD(0x58, PIN_OUTPUT, 0) /* (B27) MCU_RGMII1_TX_CTL */
476		>;
477	};
478
479	mcu_mdio_pins_default: mcu-mdio1-default-pins {
480		pinctrl-single,pins = <
481			J721E_WKUP_IOPAD(0x8c, PIN_OUTPUT, 0) /* (F23) MCU_MDIO0_MDC */
482			J721E_WKUP_IOPAD(0x88, PIN_INPUT, 0) /* (E23) MCU_MDIO0_MDIO */
483		>;
484	};
485
486	mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins {
487		pinctrl-single,pins = <
488			J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 0) /* (E20) MCU_OSPI0_CLK */
489			J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 0) /* (F19) MCU_OSPI0_CSn0 */
490			J721E_WKUP_IOPAD(0xc, PIN_INPUT, 0) /* (D20) MCU_OSPI0_D0 */
491			J721E_WKUP_IOPAD(0x10, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D1 */
492			J721E_WKUP_IOPAD(0x14, PIN_INPUT, 0) /* (G20) MCU_OSPI0_D2 */
493			J721E_WKUP_IOPAD(0x18, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D3 */
494			J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 0) /* (F21) MCU_OSPI0_D4 */
495			J721E_WKUP_IOPAD(0x20, PIN_INPUT, 0) /* (E21) MCU_OSPI0_D5 */
496			J721E_WKUP_IOPAD(0x24, PIN_INPUT, 0) /* (B22) MCU_OSPI0_D6 */
497			J721E_WKUP_IOPAD(0x28, PIN_INPUT, 0) /* (G21) MCU_OSPI0_D7 */
498			J721E_WKUP_IOPAD(0x8, PIN_INPUT, 0) /* (D21) MCU_OSPI0_DQS */
499		>;
500	};
501
502	vdd_mmc1_en_pins_default: vdd-mmc1-en-default-pins {
503		pinctrl-single,pins = <
504			J721E_WKUP_IOPAD(0xd0, PIN_OUTPUT, 7) /* (G27) WKUP_GPIO0_8 */
505		>;
506	};
507
508	vdd_sd_dv_alt_pins_default: vdd-sd-dv-alt-default-pins {
509		pinctrl-single,pins = <
510			J721E_WKUP_IOPAD(0xd4, PIN_OUTPUT, 7) /* (G26) WKUP_GPIO0_9 */
511		>;
512	};
513
514	wkup_uart0_pins_default: wkup-uart0-default-pins {
515		pinctrl-single,pins = <
516			J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */
517			J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */
518		>;
519	};
520
521	mcu_uart0_pins_default: mcu-uart0-default-pins {
522		pinctrl-single,pins = <
523			J721E_WKUP_IOPAD(0xf0, PIN_INPUT, 2) /* (D26) MCU_I3C0_SCL.MCU_UART0_CTSn */
524			J721E_WKUP_IOPAD(0xf4, PIN_OUTPUT, 2)/* (D25) MCU_I3C0_SDA.MCU_UART0_RTSn */
525			J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */
526			J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0)/* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */
527		>;
528	};
529
530	wkup_i2c0_pins_default: wkup-i2c0-default-pins {
531		pinctrl-single,pins = <
532			J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
533			J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
534		>;
535	};
536
537	/* Reset for M.2 M Key slot on PCIe1  */
538	mkey_reset_pins_default: mkey-reset-pns-default-pins {
539		pinctrl-single,pins = <
540			J721E_WKUP_IOPAD(0xdc, PIN_INPUT, 7) /* (H27) WKUP_GPIO0_11 */
541		>;
542	};
543};
544
545&wkup_uart0 {
546	/* Wakeup UART is used by System firmware */
547	status = "reserved";
548	pinctrl-names = "default";
549	pinctrl-0 = <&wkup_uart0_pins_default>;
550};
551
552&wkup_i2c0 {
553	status = "okay";
554	pinctrl-names = "default";
555	pinctrl-0 = <&wkup_i2c0_pins_default>;
556	clock-frequency = <400000>;
557
558	eeprom@51 {
559		/* AT24C512C-MAHM-T */
560		compatible = "atmel,24c512";
561		reg = <0x51>;
562	};
563};
564
565&mcu_uart0 {
566	status = "okay";
567	pinctrl-names = "default";
568	pinctrl-0 = <&mcu_uart0_pins_default>;
569};
570
571&main_uart0 {
572	status = "okay";
573	pinctrl-names = "default";
574	pinctrl-0 = <&main_uart0_pins_default>;
575	/* Shared with ATF on this platform */
576	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
577};
578
579&main_uart1 {
580	status = "okay";
581	pinctrl-names = "default";
582	pinctrl-0 = <&main_uart1_pins_default>;
583};
584
585&main_sdhci0 {
586	/* Unused */
587	status = "disabled";
588};
589
590&main_sdhci1 {
591	/* SD Card */
592	vmmc-supply = <&vdd_mmc1>;
593	vqmmc-supply = <&vdd_sd_dv_alt>;
594	pinctrl-names = "default";
595	pinctrl-0 = <&main_mmc1_pins_default>;
596	ti,driver-strength-ohm = <50>;
597	disable-wp;
598};
599
600&main_sdhci2 {
601	/* Unused */
602	status = "disabled";
603};
604
605&ospi0 {
606	pinctrl-names = "default";
607	pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
608
609	flash@0 {
610		compatible = "jedec,spi-nor";
611		reg = <0x0>;
612		spi-tx-bus-width = <8>;
613		spi-rx-bus-width = <8>;
614		spi-max-frequency = <25000000>;
615		cdns,tshsl-ns = <60>;
616		cdns,tsd2d-ns = <60>;
617		cdns,tchsh-ns = <60>;
618		cdns,tslch-ns = <60>;
619		cdns,read-delay = <4>;
620
621		partitions {
622			compatible = "fixed-partitions";
623			#address-cells = <1>;
624			#size-cells = <1>;
625
626			partition@0 {
627				label = "ospi.tiboot3";
628				reg = <0x0 0x80000>;
629			};
630
631			partition@80000 {
632				label = "ospi.tispl";
633				reg = <0x80000 0x200000>;
634			};
635
636			partition@280000 {
637				label = "ospi.u-boot";
638				reg = <0x280000 0x400000>;
639			};
640
641			partition@680000 {
642				label = "ospi.env";
643				reg = <0x680000 0x40000>;
644			};
645
646			partition@6c0000 {
647				label = "ospi.sysfw";
648				reg = <0x6c0000 0x100000>;
649			};
650
651			partition@7c0000 {
652				label = "ospi.env.backup";
653				reg = <0x7c0000 0x40000>;
654			};
655
656			partition@800000 {
657				label = "ospi.rootfs";
658				reg = <0x800000 0x37c0000>;
659			};
660
661			partition@3fc0000 {
662				label = "ospi.phypattern";
663				reg = <0x3fc0000 0x40000>;
664			};
665		};
666	};
667};
668
669&ospi1 {
670	/* Unused */
671	status = "disabled";
672};
673
674&main_i2c0 {
675	status = "okay";
676	pinctrl-names = "default";
677	pinctrl-0 = <&main_i2c0_pins_default>;
678	clock-frequency = <400000>;
679
680	i2c-mux@71 {
681		compatible = "nxp,pca9543";
682		#address-cells = <1>;
683		#size-cells = <0>;
684		reg = <0x71>;
685
686		/* PCIe1 M.2 M Key I2C */
687		i2c@0 {
688			#address-cells = <1>;
689			#size-cells = <0>;
690			reg = <0>;
691		};
692
693		/* PCIe0 M.2 E Key I2C */
694		i2c@1 {
695			#address-cells = <1>;
696			#size-cells = <0>;
697			reg = <1>;
698		};
699	};
700};
701
702&main_i2c1 {
703	status = "okay";
704	pinctrl-names = "default";
705	pinctrl-0 = <&main_i2c1_pins_default>;
706	/* i2c1 is used for DVI DDC, so we need to use 100kHz */
707	clock-frequency = <100000>;
708};
709
710&main_i2c3 {
711	status = "okay";
712	pinctrl-names = "default";
713	pinctrl-0 = <&main_i2c3_pins_default>;
714	clock-frequency = <400000>;
715
716	i2c-mux@70 {
717		compatible = "nxp,pca9543";
718		#address-cells = <1>;
719		#size-cells = <0>;
720		reg = <0x70>;
721
722		/* CSI0 I2C */
723		i2c@0 {
724			#address-cells = <1>;
725			#size-cells = <0>;
726			reg = <0>;
727		};
728
729		/* CSI1 I2C */
730		i2c@1 {
731			#address-cells = <1>;
732			#size-cells = <0>;
733			reg = <1>;
734		};
735	};
736};
737
738&main_i2c5 {
739	/* Brought out on RPi Header */
740	status = "okay";
741	pinctrl-names = "default";
742	pinctrl-0 = <&main_i2c5_pins_default>;
743	clock-frequency = <400000>;
744};
745
746&main_gpio0 {
747	pinctrl-names = "default";
748	pinctrl-0 = <&rpi_header_gpio0_pins_default>;
749};
750
751&main_gpio1 {
752	pinctrl-names = "default";
753	pinctrl-0 = <&rpi_header_gpio1_pins_default>;
754};
755
756&main_gpio2 {
757	status = "disabled";
758};
759
760&main_gpio3 {
761	status = "disabled";
762};
763
764&main_gpio4 {
765	status = "disabled";
766};
767
768&main_gpio5 {
769	status = "disabled";
770};
771
772&main_gpio6 {
773	status = "disabled";
774};
775
776&main_gpio7 {
777	status = "disabled";
778};
779
780&wkup_gpio1 {
781	status = "disabled";
782};
783
784&usb_serdes_mux {
785	idle-states = <1>, <1>; /* USB0 to SERDES3, USB1 to SERDES2 */
786};
787
788&serdes_ln_ctrl {
789	idle-states = <J721E_SERDES0_LANE0_PCIE0_LANE0>, <J721E_SERDES0_LANE1_IP4_UNUSED>,
790		      <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
791		      <J721E_SERDES2_LANE0_IP1_UNUSED>, <J721E_SERDES2_LANE1_USB3_1>,
792		      <J721E_SERDES3_LANE0_USB3_0_SWAP>, <J721E_SERDES3_LANE1_USB3_0>,
793		      <J721E_SERDES4_LANE0_EDP_LANE0>, <J721E_SERDES4_LANE1_EDP_LANE1>,
794		      <J721E_SERDES4_LANE2_EDP_LANE2>, <J721E_SERDES4_LANE3_EDP_LANE3>;
795};
796
797&serdes_wiz3 {
798	typec-dir-gpios = <&main_gpio1 3 GPIO_ACTIVE_HIGH>;
799	typec-dir-debounce-ms = <700>;	/* TUSB321, tCCB_DEFAULT 133 ms */
800};
801
802&serdes3 {
803	serdes3_usb_link: phy@0 {
804		reg = <0>;
805		cdns,num-lanes = <2>;
806		#phy-cells = <0>;
807		cdns,phy-type = <PHY_TYPE_USB3>;
808		resets = <&serdes_wiz3 1>, <&serdes_wiz3 2>;
809	};
810};
811
812&serdes4 {
813	torrent_phy_dp: phy@0 {
814		reg = <0>;
815		resets = <&serdes_wiz4 1>;
816		cdns,phy-type = <PHY_TYPE_DP>;
817		cdns,num-lanes = <4>;
818		cdns,max-bit-rate = <5400>;
819		#phy-cells = <0>;
820	};
821};
822
823&mhdp {
824	phys = <&torrent_phy_dp>;
825	phy-names = "dpphy";
826	pinctrl-names = "default";
827	pinctrl-0 = <&dp0_pins_default>;
828};
829
830&usbss0 {
831	pinctrl-names = "default";
832	pinctrl-0 = <&main_usbss0_pins_default>;
833	ti,vbus-divider;
834};
835
836&usb0 {
837	dr_mode = "otg";
838	maximum-speed = "super-speed";
839	phys = <&serdes3_usb_link>;
840	phy-names = "cdns3,usb3-phy";
841};
842
843&serdes2 {
844	serdes2_usb_link: phy@1 {
845		reg = <1>;
846		cdns,num-lanes = <1>;
847		#phy-cells = <0>;
848		cdns,phy-type = <PHY_TYPE_USB3>;
849		resets = <&serdes_wiz2 2>;
850	};
851};
852
853&usbss1 {
854	pinctrl-names = "default";
855	pinctrl-0 = <&main_usbss1_pins_default>;
856	ti,vbus-divider;
857};
858
859&usb1 {
860	dr_mode = "host";
861	maximum-speed = "super-speed";
862	phys = <&serdes2_usb_link>;
863	phy-names = "cdns3,usb3-phy";
864};
865
866&tscadc0 {
867	/* Unused */
868	status = "disabled";
869};
870
871&tscadc1 {
872	/* Unused */
873	status = "disabled";
874};
875
876&mcu_cpsw {
877	pinctrl-names = "default";
878	pinctrl-0 = <&mcu_cpsw_pins_default>, <&mcu_mdio_pins_default>;
879};
880
881&davinci_mdio {
882	phy0: ethernet-phy@0 {
883		reg = <0>;
884		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
885		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
886	};
887};
888
889&cpsw_port1 {
890	phy-mode = "rgmii-rxid";
891	phy-handle = <&phy0>;
892};
893
894&dss {
895	pinctrl-names = "default";
896	pinctrl-0 = <&dss_vout0_pins_default>;
897
898	assigned-clocks = <&k3_clks 152 1>,	/* VP 1 pixel clock */
899			  <&k3_clks 152 4>,	/* VP 2 pixel clock */
900			  <&k3_clks 152 9>,	/* VP 3 pixel clock */
901			  <&k3_clks 152 13>;	/* VP 4 pixel clock */
902	assigned-clock-parents = <&k3_clks 152 2>,	/* PLL16_HSDIV0 */
903				 <&k3_clks 152 6>,	/* DPI0_EXT_CLKSEL_OUT0 */
904				 <&k3_clks 152 11>,	/* PLL18_HSDIV0 */
905				 <&k3_clks 152 18>;	/* DPI1_EXT_CLKSEL_OUT0 */
906};
907
908&dss_ports {
909	#address-cells = <1>;
910	#size-cells = <0>;
911
912	port@0  {
913		reg = <0>;
914
915		dpi0_out: endpoint {
916			remote-endpoint = <&dp0_in>;
917		};
918	};
919
920	port@1 {
921		reg = <1>;
922
923		dpi1_out: endpoint {
924			remote-endpoint = <&tfp410_in>;
925		};
926	};
927};
928
929&dp0_ports {
930	#address-cells = <1>;
931	#size-cells = <0>;
932
933	port@0 {
934		reg = <0>;
935		dp0_in: endpoint {
936			remote-endpoint = <&dpi0_out>;
937		};
938	};
939
940	port@4 {
941		reg = <4>;
942		dp0_out: endpoint {
943			remote-endpoint = <&dp_connector_in>;
944		};
945	};
946};
947
948&serdes0 {
949	serdes0_pcie_link: phy@0 {
950		reg = <0>;
951		cdns,num-lanes = <1>;
952		#phy-cells = <0>;
953		cdns,phy-type = <PHY_TYPE_PCIE>;
954		resets = <&serdes_wiz0 1>;
955	};
956};
957
958&serdes1 {
959	serdes1_pcie_link: phy@0 {
960		reg = <0>;
961		cdns,num-lanes = <2>;
962		#phy-cells = <0>;
963		cdns,phy-type = <PHY_TYPE_PCIE>;
964		resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>;
965	};
966};
967
968&pcie0_rc {
969	status = "okay";
970	pinctrl-names = "default";
971	pinctrl-0 = <&ekey_reset_pins_default>;
972	reset-gpios = <&main_gpio0 72 GPIO_ACTIVE_HIGH>;
973
974	phys = <&serdes0_pcie_link>;
975	phy-names = "pcie-phy";
976	num-lanes = <1>;
977};
978
979&pcie1_rc {
980	status = "okay";
981	pinctrl-names = "default";
982	pinctrl-0 = <&mkey_reset_pins_default>;
983	reset-gpios = <&wkup_gpio0 11 GPIO_ACTIVE_HIGH>;
984
985	phys = <&serdes1_pcie_link>;
986	phy-names = "pcie-phy";
987	num-lanes = <2>;
988};
989
990&ufs_wrapper {
991	status = "disabled";
992};
993
994&mailbox0_cluster0 {
995	status = "okay";
996	interrupts = <436>;
997
998	mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
999		ti,mbox-rx = <0 0 0>;
1000		ti,mbox-tx = <1 0 0>;
1001	};
1002
1003	mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
1004		ti,mbox-rx = <2 0 0>;
1005		ti,mbox-tx = <3 0 0>;
1006	};
1007};
1008
1009&mailbox0_cluster1 {
1010	status = "okay";
1011	interrupts = <432>;
1012
1013	mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
1014		ti,mbox-rx = <0 0 0>;
1015		ti,mbox-tx = <1 0 0>;
1016	};
1017
1018	mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
1019		ti,mbox-rx = <2 0 0>;
1020		ti,mbox-tx = <3 0 0>;
1021	};
1022};
1023
1024&mailbox0_cluster2 {
1025	status = "okay";
1026	interrupts = <428>;
1027
1028	mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
1029		ti,mbox-rx = <0 0 0>;
1030		ti,mbox-tx = <1 0 0>;
1031	};
1032
1033	mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
1034		ti,mbox-rx = <2 0 0>;
1035		ti,mbox-tx = <3 0 0>;
1036	};
1037};
1038
1039&mailbox0_cluster3 {
1040	status = "okay";
1041	interrupts = <424>;
1042
1043	mbox_c66_0: mbox-c66-0 {
1044		ti,mbox-rx = <0 0 0>;
1045		ti,mbox-tx = <1 0 0>;
1046	};
1047
1048	mbox_c66_1: mbox-c66-1 {
1049		ti,mbox-rx = <2 0 0>;
1050		ti,mbox-tx = <3 0 0>;
1051	};
1052};
1053
1054&mailbox0_cluster4 {
1055	status = "okay";
1056	interrupts = <420>;
1057
1058	mbox_c71_0: mbox-c71-0 {
1059		ti,mbox-rx = <0 0 0>;
1060		ti,mbox-tx = <1 0 0>;
1061	};
1062};
1063
1064&mcu_r5fss0_core0 {
1065	mboxes = <&mailbox0_cluster0>, <&mbox_mcu_r5fss0_core0>;
1066	memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
1067			<&mcu_r5fss0_core0_memory_region>;
1068};
1069
1070&mcu_r5fss0_core1 {
1071	mboxes = <&mailbox0_cluster0>, <&mbox_mcu_r5fss0_core1>;
1072	memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
1073			<&mcu_r5fss0_core1_memory_region>;
1074};
1075
1076&main_r5fss0_core0 {
1077	mboxes = <&mailbox0_cluster1>, <&mbox_main_r5fss0_core0>;
1078	memory-region = <&main_r5fss0_core0_dma_memory_region>,
1079			<&main_r5fss0_core0_memory_region>;
1080};
1081
1082&main_r5fss0_core1 {
1083	mboxes = <&mailbox0_cluster1>, <&mbox_main_r5fss0_core1>;
1084	memory-region = <&main_r5fss0_core1_dma_memory_region>,
1085			<&main_r5fss0_core1_memory_region>;
1086};
1087
1088&main_r5fss1_core0 {
1089	mboxes = <&mailbox0_cluster2>, <&mbox_main_r5fss1_core0>;
1090	memory-region = <&main_r5fss1_core0_dma_memory_region>,
1091			<&main_r5fss1_core0_memory_region>;
1092};
1093
1094&main_r5fss1_core1 {
1095	mboxes = <&mailbox0_cluster2>, <&mbox_main_r5fss1_core1>;
1096	memory-region = <&main_r5fss1_core1_dma_memory_region>,
1097			<&main_r5fss1_core1_memory_region>;
1098};
1099
1100&c66_0 {
1101	mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>;
1102	memory-region = <&c66_0_dma_memory_region>,
1103			<&c66_0_memory_region>;
1104};
1105
1106&c66_1 {
1107	mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>;
1108	memory-region = <&c66_1_dma_memory_region>,
1109			<&c66_1_memory_region>;
1110};
1111
1112&c71_0 {
1113	mboxes = <&mailbox0_cluster4>, <&mbox_c71_0>;
1114	memory-region = <&c71_0_dma_memory_region>,
1115			<&c71_0_memory_region>;
1116};
1117