xref: /linux/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts (revision 0e2b2a76278153d1ac312b0691cb65dabb9aef3e)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * EVM Board Schematics: https://www.ti.com/lit/zip/sprr458
6 */
7
8/dts-v1/;
9
10#include <dt-bindings/net/ti-dp83867.h>
11#include <dt-bindings/gpio/gpio.h>
12#include "k3-j784s4.dtsi"
13
14/ {
15	compatible = "ti,j784s4-evm", "ti,j784s4";
16	model = "Texas Instruments J784S4 EVM";
17
18	chosen {
19		stdout-path = "serial2:115200n8";
20	};
21
22	aliases {
23		serial0 = &wkup_uart0;
24		serial1 = &mcu_uart0;
25		serial2 = &main_uart8;
26		mmc0 = &main_sdhci0;
27		mmc1 = &main_sdhci1;
28		i2c0 = &wkup_i2c0;
29		i2c3 = &main_i2c0;
30	};
31
32	memory@80000000 {
33		device_type = "memory";
34		/* 32G RAM */
35		reg = <0x00 0x80000000 0x00 0x80000000>,
36		      <0x08 0x80000000 0x07 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			no-map;
47		};
48
49		mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
50			compatible = "shared-dma-pool";
51			reg = <0x00 0xa0000000 0x00 0x100000>;
52			no-map;
53		};
54
55		mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
56			compatible = "shared-dma-pool";
57			reg = <0x00 0xa0100000 0x00 0xf00000>;
58			no-map;
59		};
60
61		mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
62			compatible = "shared-dma-pool";
63			reg = <0x00 0xa1000000 0x00 0x100000>;
64			no-map;
65		};
66
67		mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
68			compatible = "shared-dma-pool";
69			reg = <0x00 0xa1100000 0x00 0xf00000>;
70			no-map;
71		};
72
73		main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
74			compatible = "shared-dma-pool";
75			reg = <0x00 0xa2000000 0x00 0x100000>;
76			no-map;
77		};
78
79		main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
80			compatible = "shared-dma-pool";
81			reg = <0x00 0xa2100000 0x00 0xf00000>;
82			no-map;
83		};
84
85		main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a3000000 {
86			compatible = "shared-dma-pool";
87			reg = <0x00 0xa3000000 0x00 0x100000>;
88			no-map;
89		};
90
91		main_r5fss0_core1_memory_region: r5f-memory@a3100000 {
92			compatible = "shared-dma-pool";
93			reg = <0x00 0xa3100000 0x00 0xf00000>;
94			no-map;
95		};
96
97		main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a4000000 {
98			compatible = "shared-dma-pool";
99			reg = <0x00 0xa4000000 0x00 0x100000>;
100			no-map;
101		};
102
103		main_r5fss1_core0_memory_region: r5f-memory@a4100000 {
104			compatible = "shared-dma-pool";
105			reg = <0x00 0xa4100000 0x00 0xf00000>;
106			no-map;
107		};
108
109		main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a5000000 {
110			compatible = "shared-dma-pool";
111			reg = <0x00 0xa5000000 0x00 0x100000>;
112			no-map;
113		};
114
115		main_r5fss1_core1_memory_region: r5f-memory@a5100000 {
116			compatible = "shared-dma-pool";
117			reg = <0x00 0xa5100000 0x00 0xf00000>;
118			no-map;
119		};
120
121		main_r5fss2_core0_dma_memory_region: r5f-dma-memory@a6000000 {
122			compatible = "shared-dma-pool";
123			reg = <0x00 0xa6000000 0x00 0x100000>;
124			no-map;
125		};
126
127		main_r5fss2_core0_memory_region: r5f-memory@a6100000 {
128			compatible = "shared-dma-pool";
129			reg = <0x00 0xa6100000 0x00 0xf00000>;
130			no-map;
131		};
132
133		main_r5fss2_core1_dma_memory_region: r5f-dma-memory@a7000000 {
134			compatible = "shared-dma-pool";
135			reg = <0x00 0xa7000000 0x00 0x100000>;
136			no-map;
137		};
138
139		main_r5fss2_core1_memory_region: r5f-memory@a7100000 {
140			compatible = "shared-dma-pool";
141			reg = <0x00 0xa7100000 0x00 0xf00000>;
142			no-map;
143		};
144
145		c71_0_dma_memory_region: c71-dma-memory@a8000000 {
146			compatible = "shared-dma-pool";
147			reg = <0x00 0xa8000000 0x00 0x100000>;
148			no-map;
149		};
150
151		c71_0_memory_region: c71-memory@a8100000 {
152			compatible = "shared-dma-pool";
153			reg = <0x00 0xa8100000 0x00 0xf00000>;
154			no-map;
155		};
156
157		c71_1_dma_memory_region: c71-dma-memory@a9000000 {
158			compatible = "shared-dma-pool";
159			reg = <0x00 0xa9000000 0x00 0x100000>;
160			no-map;
161		};
162
163		c71_1_memory_region: c71-memory@a9100000 {
164			compatible = "shared-dma-pool";
165			reg = <0x00 0xa9100000 0x00 0xf00000>;
166			no-map;
167		};
168
169		c71_2_dma_memory_region: c71-dma-memory@aa000000 {
170			compatible = "shared-dma-pool";
171			reg = <0x00 0xaa000000 0x00 0x100000>;
172			no-map;
173		};
174
175		c71_2_memory_region: c71-memory@aa100000 {
176			compatible = "shared-dma-pool";
177			reg = <0x00 0xaa100000 0x00 0xf00000>;
178			no-map;
179		};
180
181		c71_3_dma_memory_region: c71-dma-memory@ab000000 {
182			compatible = "shared-dma-pool";
183			reg = <0x00 0xab000000 0x00 0x100000>;
184			no-map;
185		};
186
187		c71_3_memory_region: c71-memory@ab100000 {
188			compatible = "shared-dma-pool";
189			reg = <0x00 0xab100000 0x00 0xf00000>;
190			no-map;
191		};
192	};
193
194	evm_12v0: regulator-evm12v0 {
195		/* main supply */
196		compatible = "regulator-fixed";
197		regulator-name = "evm_12v0";
198		regulator-min-microvolt = <12000000>;
199		regulator-max-microvolt = <12000000>;
200		regulator-always-on;
201		regulator-boot-on;
202	};
203
204	vsys_3v3: regulator-vsys3v3 {
205		/* Output of LM5140 */
206		compatible = "regulator-fixed";
207		regulator-name = "vsys_3v3";
208		regulator-min-microvolt = <3300000>;
209		regulator-max-microvolt = <3300000>;
210		vin-supply = <&evm_12v0>;
211		regulator-always-on;
212		regulator-boot-on;
213	};
214
215	vsys_5v0: regulator-vsys5v0 {
216		/* Output of LM5140 */
217		compatible = "regulator-fixed";
218		regulator-name = "vsys_5v0";
219		regulator-min-microvolt = <5000000>;
220		regulator-max-microvolt = <5000000>;
221		vin-supply = <&evm_12v0>;
222		regulator-always-on;
223		regulator-boot-on;
224	};
225
226	vdd_mmc1: regulator-sd {
227		/* Output of TPS22918 */
228		compatible = "regulator-fixed";
229		regulator-name = "vdd_mmc1";
230		regulator-min-microvolt = <3300000>;
231		regulator-max-microvolt = <3300000>;
232		regulator-boot-on;
233		enable-active-high;
234		vin-supply = <&vsys_3v3>;
235		gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
236	};
237
238	vdd_sd_dv: regulator-TLV71033 {
239		/* Output of TLV71033 */
240		compatible = "regulator-gpio";
241		regulator-name = "tlv71033";
242		pinctrl-names = "default";
243		pinctrl-0 = <&vdd_sd_dv_pins_default>;
244		regulator-min-microvolt = <1800000>;
245		regulator-max-microvolt = <3300000>;
246		regulator-boot-on;
247		vin-supply = <&vsys_5v0>;
248		gpios = <&main_gpio0 8 GPIO_ACTIVE_HIGH>;
249		states = <1800000 0x0>,
250			 <3300000 0x1>;
251	};
252};
253
254&main_pmx0 {
255	main_uart8_pins_default: main-uart8-default-pins {
256		pinctrl-single,pins = <
257			J784S4_IOPAD(0x040, PIN_INPUT, 14) /* (AF37) MCASP0_AXR0.UART8_CTSn */
258			J784S4_IOPAD(0x044, PIN_OUTPUT, 14) /* (AG37) MCASP0_AXR1.UART8_RTSn */
259			J784S4_IOPAD(0x0d0, PIN_INPUT, 11) /* (AP38) SPI0_CS1.UART8_RXD */
260			J784S4_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AN38) SPI0_CLK.UART8_TXD */
261		>;
262	};
263
264	main_i2c0_pins_default: main-i2c0-default-pins {
265		pinctrl-single,pins = <
266			J784S4_IOPAD(0x0e0, PIN_INPUT_PULLUP, 0) /* (AN36) I2C0_SCL */
267			J784S4_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AP37) I2C0_SDA */
268		>;
269	};
270
271	main_mmc1_pins_default: main-mmc1-default-pins {
272		pinctrl-single,pins = <
273			J784S4_IOPAD(0x104, PIN_INPUT, 0) /* (AB38) MMC1_CLK */
274			J784S4_IOPAD(0x108, PIN_INPUT, 0) /* (AB36) MMC1_CMD */
275			J784S4_IOPAD(0x100, PIN_INPUT, 0) /* (No Pin) MMC1_CLKLB */
276			J784S4_IOPAD(0x0fc, PIN_INPUT, 0) /* (AA33) MMC1_DAT0 */
277			J784S4_IOPAD(0x0f8, PIN_INPUT, 0) /* (AB34) MMC1_DAT1 */
278			J784S4_IOPAD(0x0f4, PIN_INPUT, 0) /* (AA32) MMC1_DAT2 */
279			J784S4_IOPAD(0x0f0, PIN_INPUT, 0) /* (AC38) MMC1_DAT3 */
280			J784S4_IOPAD(0x0e8, PIN_INPUT, 8) /* (AR38) TIMER_IO0.MMC1_SDCD */
281		>;
282	};
283
284	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
285		pinctrl-single,pins = <
286			J784S4_IOPAD(0x020, PIN_INPUT, 7) /* (AJ35) MCAN15_RX.GPIO0_8 */
287		>;
288	};
289};
290
291&wkup_pmx2 {
292	wkup_uart0_pins_default: wkup-uart0-default-pins {
293		pinctrl-single,pins = <
294			J721S2_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (L37) WKUP_GPIO0_6.WKUP_UART0_CTSn */
295			J721S2_WKUP_IOPAD(0x074, PIN_INPUT, 0) /* (L36) WKUP_GPIO0_7.WKUP_UART0_RTSn */
296			J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (K35) WKUP_UART0_RXD */
297			J721S2_WKUP_IOPAD(0x04c, PIN_INPUT, 0) /* (K34) WKUP_UART0_TXD */
298		>;
299	};
300
301	wkup_i2c0_pins_default: wkup-i2c0-default-pins {
302		pinctrl-single,pins = <
303			J721S2_WKUP_IOPAD(0x98, PIN_INPUT, 0) /* (N33) WKUP_I2C0_SCL */
304			J721S2_WKUP_IOPAD(0x9c, PIN_INPUT, 0) /* (N35) WKUP_I2C0_SDA */
305		>;
306	};
307
308	mcu_uart0_pins_default: mcu-uart0-default-pins {
309		pinctrl-single,pins = <
310			J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (H37) WKUP_GPIO0_14.MCU_UART0_CTSn */
311			J784S4_WKUP_IOPAD(0x094, PIN_OUTPUT, 0) /* (K37) WKUP_GPIO0_15.MCU_UART0_RTSn */
312			J784S4_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (K38) WKUP_GPIO0_13.MCU_UART0_RXD */
313			J784S4_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (J37) WKUP_GPIO0_12.MCU_UART0_TXD */
314		>;
315	};
316
317	mcu_cpsw_pins_default: mcu-cpsw-default-pins {
318		pinctrl-single,pins = <
319			J784S4_WKUP_IOPAD(0x02c, PIN_INPUT, 0) /* (A35) MCU_RGMII1_RD0 */
320			J784S4_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (B36) MCU_RGMII1_RD1 */
321			J784S4_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (C36) MCU_RGMII1_RD2 */
322			J784S4_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D36) MCU_RGMII1_RD3 */
323			J784S4_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (B37) MCU_RGMII1_RXC */
324			J784S4_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (C37) MCU_RGMII1_RX_CTL */
325			J784S4_WKUP_IOPAD(0x014, PIN_OUTPUT, 0) /* (D37) MCU_RGMII1_TD0 */
326			J784S4_WKUP_IOPAD(0x010, PIN_OUTPUT, 0) /* (D38) MCU_RGMII1_TD1 */
327			J784S4_WKUP_IOPAD(0x00c, PIN_OUTPUT, 0) /* (E37) MCU_RGMII1_TD2 */
328			J784S4_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (E38) MCU_RGMII1_TD3 */
329			J784S4_WKUP_IOPAD(0x018, PIN_OUTPUT, 0) /* (E36) MCU_RGMII1_TXC */
330			J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (C38) MCU_RGMII1_TX_CTL */
331		>;
332	};
333
334	mcu_mdio_pins_default: mcu-mdio-default-pins {
335		pinctrl-single,pins = <
336			J784S4_WKUP_IOPAD(0x034, PIN_OUTPUT, 0) /* (A36) MCU_MDIO0_MDC */
337			J784S4_WKUP_IOPAD(0x030, PIN_INPUT, 0) /* (B35) MCU_MDIO0_MDIO */
338		>;
339	};
340
341	mcu_adc0_pins_default: mcu-adc0-default-pins {
342		pinctrl-single,pins = <
343			J784S4_WKUP_IOPAD(0x134, PIN_INPUT, 0) /* (P36) MCU_ADC0_AIN0 */
344			J784S4_WKUP_IOPAD(0x138, PIN_INPUT, 0) /* (V36) MCU_ADC0_AIN1 */
345			J784S4_WKUP_IOPAD(0x13c, PIN_INPUT, 0) /* (T34) MCU_ADC0_AIN2 */
346			J784S4_WKUP_IOPAD(0x140, PIN_INPUT, 0) /* (T36) MCU_ADC0_AIN3 */
347			J784S4_WKUP_IOPAD(0x144, PIN_INPUT, 0) /* (P34) MCU_ADC0_AIN4 */
348			J784S4_WKUP_IOPAD(0x148, PIN_INPUT, 0) /* (R37) MCU_ADC0_AIN5 */
349			J784S4_WKUP_IOPAD(0x14c, PIN_INPUT, 0) /* (R33) MCU_ADC0_AIN6 */
350			J784S4_WKUP_IOPAD(0x150, PIN_INPUT, 0) /* (V38) MCU_ADC0_AIN7 */
351		>;
352	};
353
354	mcu_adc1_pins_default: mcu-adc1-default-pins {
355		pinctrl-single,pins = <
356			J784S4_WKUP_IOPAD(0x154, PIN_INPUT, 0) /* (Y38) MCU_ADC1_AIN0 */
357			J784S4_WKUP_IOPAD(0x158, PIN_INPUT, 0) /* (Y34) MCU_ADC1_AIN1 */
358			J784S4_WKUP_IOPAD(0x15c, PIN_INPUT, 0) /* (V34) MCU_ADC1_AIN2 */
359			J784S4_WKUP_IOPAD(0x160, PIN_INPUT, 0) /* (W37) MCU_ADC1_AIN3 */
360			J784S4_WKUP_IOPAD(0x164, PIN_INPUT, 0) /* (AA37) MCU_ADC1_AIN4 */
361			J784S4_WKUP_IOPAD(0x168, PIN_INPUT, 0) /* (W33) MCU_ADC1_AIN5 */
362			J784S4_WKUP_IOPAD(0x16c, PIN_INPUT, 0) /* (U33) MCU_ADC1_AIN6 */
363			J784S4_WKUP_IOPAD(0x170, PIN_INPUT, 0) /* (Y36) MCU_ADC1_AIN7 */
364		>;
365	};
366};
367
368&wkup_pmx0 {
369	mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins {
370		pinctrl-single,pins = <
371			J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (E32) MCU_OSPI0_CLK */
372			J784S4_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (A32) MCU_OSPI0_CSn0 */
373			J784S4_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B33) MCU_OSPI0_D0 */
374			J784S4_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B32) MCU_OSPI0_D1 */
375			J784S4_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (C33) MCU_OSPI0_D2 */
376			J784S4_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (C35) MCU_OSPI0_D3 */
377			J784S4_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (D33) MCU_OSPI0_D4 */
378			J784S4_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D34) MCU_OSPI0_D5 */
379			J784S4_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (E34) MCU_OSPI0_D6 */
380			J784S4_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (E33) MCU_OSPI0_D7 */
381			J784S4_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (C34) MCU_OSPI0_DQS */
382			J784S4_WKUP_IOPAD(0x03c, PIN_OUTPUT, 6) /* (C32) MCU_OSPI0_CSn3.MCU_OSPI0_ECC_FAIL */
383			J784S4_WKUP_IOPAD(0x038, PIN_OUTPUT, 6) /* (B34) MCU_OSPI0_CSn2.MCU_OSPI0_RESET_OUT0 */
384		>;
385	};
386
387	mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-default-pins {
388		pinctrl-single,pins = <
389			J784S4_WKUP_IOPAD(0x040, PIN_OUTPUT, 0) /* (F32) MCU_OSPI1_CLK */
390			J784S4_WKUP_IOPAD(0x05c, PIN_OUTPUT, 0) /* (G32) MCU_OSPI1_CSn0 */
391			J784S4_WKUP_IOPAD(0x04c, PIN_INPUT, 0) /* (E35) MCU_OSPI1_D0 */
392			J784S4_WKUP_IOPAD(0x050, PIN_INPUT, 0) /* (D31) MCU_OSPI1_D1 */
393			J784S4_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (G31) MCU_OSPI1_D2 */
394			J784S4_WKUP_IOPAD(0x058, PIN_INPUT, 0) /* (F33) MCU_OSPI1_D3 */
395			J784S4_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (F31) MCU_OSPI1_DQS */
396			J784S4_WKUP_IOPAD(0x044, PIN_INPUT, 0) /* (C31) MCU_OSPI1_LBCLKO */
397		>;
398	};
399};
400
401&wkup_uart0 {
402	/* Firmware usage */
403	status = "reserved";
404	pinctrl-names = "default";
405	pinctrl-0 = <&wkup_uart0_pins_default>;
406};
407
408&wkup_i2c0 {
409	status = "okay";
410	pinctrl-names = "default";
411	pinctrl-0 = <&wkup_i2c0_pins_default>;
412	clock-frequency = <400000>;
413
414	eeprom@50 {
415		/* CAV24C256WE-GT3 */
416		compatible = "atmel,24c256";
417		reg = <0x50>;
418	};
419};
420
421&mcu_uart0 {
422	status = "okay";
423	pinctrl-names = "default";
424	pinctrl-0 = <&mcu_uart0_pins_default>;
425};
426
427&main_uart8 {
428	status = "okay";
429	pinctrl-names = "default";
430	pinctrl-0 = <&main_uart8_pins_default>;
431};
432
433&fss {
434	status = "okay";
435};
436
437&ospi0 {
438	status = "okay";
439	pinctrl-names = "default";
440	pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
441
442	flash@0 {
443		compatible = "jedec,spi-nor";
444		reg = <0x0>;
445		spi-tx-bus-width = <8>;
446		spi-rx-bus-width = <8>;
447		spi-max-frequency = <25000000>;
448		cdns,tshsl-ns = <60>;
449		cdns,tsd2d-ns = <60>;
450		cdns,tchsh-ns = <60>;
451		cdns,tslch-ns = <60>;
452		cdns,read-delay = <4>;
453
454		partitions {
455			compatible = "fixed-partitions";
456			#address-cells = <1>;
457			#size-cells = <1>;
458
459			partition@0 {
460				label = "ospi.tiboot3";
461				reg = <0x0 0x80000>;
462			};
463
464			partition@80000 {
465				label = "ospi.tispl";
466				reg = <0x80000 0x200000>;
467			};
468
469			partition@280000 {
470				label = "ospi.u-boot";
471				reg = <0x280000 0x400000>;
472			};
473
474			partition@680000 {
475				label = "ospi.env";
476				reg = <0x680000 0x40000>;
477			};
478
479			partition@6c0000 {
480				label = "ospi.env.backup";
481				reg = <0x6c0000 0x40000>;
482			};
483
484			partition@800000 {
485				label = "ospi.rootfs";
486				reg = <0x800000 0x37c0000>;
487			};
488
489			partition@3fc0000 {
490				label = "ospi.phypattern";
491				reg = <0x3fc0000 0x40000>;
492			};
493		};
494	};
495};
496
497&ospi1 {
498	status = "okay";
499	pinctrl-names = "default";
500	pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
501
502	flash@0{
503		compatible = "jedec,spi-nor";
504		reg = <0x0>;
505		spi-tx-bus-width = <1>;
506		spi-rx-bus-width = <4>;
507		spi-max-frequency = <40000000>;
508		cdns,tshsl-ns = <60>;
509		cdns,tsd2d-ns = <60>;
510		cdns,tchsh-ns = <60>;
511		cdns,tslch-ns = <60>;
512		cdns,read-delay = <2>;
513
514		partitions {
515			compatible = "fixed-partitions";
516			#address-cells = <1>;
517			#size-cells = <1>;
518
519			partition@0 {
520				label = "qspi.tiboot3";
521				reg = <0x0 0x80000>;
522			};
523
524			partition@80000 {
525				label = "qspi.tispl";
526				reg = <0x80000 0x200000>;
527			};
528
529			partition@280000 {
530				label = "qspi.u-boot";
531				reg = <0x280000 0x400000>;
532			};
533
534			partition@680000 {
535				label = "qspi.env";
536				reg = <0x680000 0x40000>;
537			};
538
539			partition@6c0000 {
540				label = "qspi.env.backup";
541				reg = <0x6c0000 0x40000>;
542			};
543
544			partition@800000 {
545				label = "qspi.rootfs";
546				reg = <0x800000 0x37c0000>;
547			};
548
549			partition@3fc0000 {
550				label = "qspi.phypattern";
551				reg = <0x3fc0000 0x40000>;
552			};
553		};
554
555	};
556};
557
558&main_i2c0 {
559	status = "okay";
560	pinctrl-names = "default";
561	pinctrl-0 = <&main_i2c0_pins_default>;
562
563	clock-frequency = <400000>;
564
565	exp1: gpio@20 {
566		compatible = "ti,tca6416";
567		reg = <0x20>;
568		gpio-controller;
569		#gpio-cells = <2>;
570		gpio-line-names = "PCIE1_2L_MODE_SEL", "PCIE1_4L_PERSTZ", "PCIE1_2L_RC_RSTZ",
571				  "PCIE1_2L_EP_RST_EN", "PCIE0_4L_MODE_SEL", "PCIE0_4L_PERSTZ",
572				  "PCIE0_4L_RC_RSTZ", "PCIE0_4L_EP_RST_EN", "PCIE1_4L_PRSNT#",
573				  "PCIE0_4L_PRSNT#", "CDCI1_OE1/OE4", "CDCI1_OE2/OE3",
574				  "AUDIO_MUX_SEL", "EXP_MUX2", "EXP_MUX3", "GESI_EXP_PHY_RSTZ";
575	};
576
577	exp2: gpio@22 {
578		compatible = "ti,tca6424";
579		reg = <0x22>;
580		gpio-controller;
581		#gpio-cells = <2>;
582		gpio-line-names = "R_GPIO_RGMII1_RST", "ENET2_I2CMUX_SEL", "GPIO_USD_PWR_EN",
583				  "USBC_PWR_EN", "USBC_MODE_SEL1", "USBC_MODE_SEL0",
584				  "GPIO_LIN_EN", "R_CAN_STB", "CTRL_PM_I2C_OE#",
585				  "ENET2_EXP_PWRDN", "ENET2_EXP_SPARE2", "CDCI2_RSTZ",
586				  "USB2.0_MUX_SEL", "CANUART_MUX_SEL0", "CANUART_MUX2_SEL1",
587				  "CANUART_MUX1_SEL1", "ENET1_EXP_PWRDN", "ENET1_EXP_RESETZ",
588				  "ENET1_I2CMUX_SEL", "ENET1_EXP_SPARE2", "ENET2_EXP_RESETZ",
589				  "USER_INPUT1", "USER_LED1", "USER_LED2";
590	};
591};
592
593&main_sdhci0 {
594	/* eMMC */
595	status = "okay";
596	non-removable;
597	ti,driver-strength-ohm = <50>;
598	disable-wp;
599};
600
601&main_sdhci1 {
602	/* SD card */
603	status = "okay";
604	pinctrl-0 = <&main_mmc1_pins_default>;
605	pinctrl-names = "default";
606	disable-wp;
607	vmmc-supply = <&vdd_mmc1>;
608	vqmmc-supply = <&vdd_sd_dv>;
609};
610
611&main_gpio0 {
612	status = "okay";
613};
614
615&mcu_cpsw {
616	status = "okay";
617	pinctrl-names = "default";
618	pinctrl-0 = <&mcu_cpsw_pins_default>;
619};
620
621&davinci_mdio {
622	pinctrl-names = "default";
623	pinctrl-0 = <&mcu_mdio_pins_default>;
624
625	mcu_phy0: ethernet-phy@0 {
626		reg = <0>;
627		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
628		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
629		ti,min-output-impedance;
630	};
631};
632
633&mcu_cpsw_port1 {
634	status = "okay";
635	phy-mode = "rgmii-rxid";
636	phy-handle = <&mcu_phy0>;
637};
638
639&mailbox0_cluster0 {
640	status = "okay";
641	interrupts = <436>;
642
643	mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
644		ti,mbox-rx = <0 0 0>;
645		ti,mbox-tx = <1 0 0>;
646	};
647
648	mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
649		ti,mbox-rx = <2 0 0>;
650		ti,mbox-tx = <3 0 0>;
651	};
652};
653
654&mailbox0_cluster1 {
655	status = "okay";
656	interrupts = <432>;
657
658	mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
659		ti,mbox-rx = <0 0 0>;
660		ti,mbox-tx = <1 0 0>;
661	};
662
663	mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
664		ti,mbox-rx = <2 0 0>;
665		ti,mbox-tx = <3 0 0>;
666	};
667};
668
669&mailbox0_cluster2 {
670	status = "okay";
671	interrupts = <428>;
672
673	mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
674		ti,mbox-rx = <0 0 0>;
675		ti,mbox-tx = <1 0 0>;
676	};
677
678	mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
679		ti,mbox-rx = <2 0 0>;
680		ti,mbox-tx = <3 0 0>;
681	};
682};
683
684&mailbox0_cluster3 {
685	status = "okay";
686	interrupts = <424>;
687
688	mbox_main_r5fss2_core0: mbox-main-r5fss2-core0 {
689		ti,mbox-rx = <0 0 0>;
690		ti,mbox-tx = <1 0 0>;
691	};
692
693	mbox_main_r5fss2_core1: mbox-main-r5fss2-core1 {
694		ti,mbox-rx = <2 0 0>;
695		ti,mbox-tx = <3 0 0>;
696	};
697};
698
699&mailbox0_cluster4 {
700	status = "okay";
701	interrupts = <420>;
702
703	mbox_c71_0: mbox-c71-0 {
704		ti,mbox-rx = <0 0 0>;
705		ti,mbox-tx = <1 0 0>;
706	};
707
708	mbox_c71_1: mbox-c71-1 {
709		ti,mbox-rx = <2 0 0>;
710		ti,mbox-tx = <3 0 0>;
711	};
712};
713
714&mailbox0_cluster5 {
715	status = "okay";
716	interrupts = <416>;
717
718	mbox_c71_2: mbox-c71-2 {
719		ti,mbox-rx = <0 0 0>;
720		ti,mbox-tx = <1 0 0>;
721	};
722
723	mbox_c71_3: mbox-c71-3 {
724		ti,mbox-rx = <2 0 0>;
725		ti,mbox-tx = <3 0 0>;
726	};
727};
728
729&mcu_r5fss0_core0 {
730	status = "okay";
731	mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core0>;
732	memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
733			<&mcu_r5fss0_core0_memory_region>;
734};
735
736&mcu_r5fss0_core1 {
737	status = "okay";
738	mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core1>;
739	memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
740			<&mcu_r5fss0_core1_memory_region>;
741};
742
743&main_r5fss0_core0 {
744	status = "okay";
745	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
746	memory-region = <&main_r5fss0_core0_dma_memory_region>,
747			<&main_r5fss0_core0_memory_region>;
748};
749
750&main_r5fss0_core1 {
751	status = "okay";
752	mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core1>;
753	memory-region = <&main_r5fss0_core1_dma_memory_region>,
754			<&main_r5fss0_core1_memory_region>;
755};
756
757&main_r5fss1_core0 {
758	status = "okay";
759	mboxes = <&mailbox0_cluster2 &mbox_main_r5fss1_core0>;
760	memory-region = <&main_r5fss1_core0_dma_memory_region>,
761			<&main_r5fss1_core0_memory_region>;
762};
763
764&main_r5fss1_core1 {
765	status = "okay";
766	mboxes = <&mailbox0_cluster2 &mbox_main_r5fss1_core1>;
767	memory-region = <&main_r5fss1_core1_dma_memory_region>,
768			<&main_r5fss1_core1_memory_region>;
769};
770
771&main_r5fss2_core0 {
772	status = "okay";
773	mboxes = <&mailbox0_cluster3 &mbox_main_r5fss2_core0>;
774	memory-region = <&main_r5fss2_core0_dma_memory_region>,
775			<&main_r5fss2_core0_memory_region>;
776};
777
778&main_r5fss2_core1 {
779	status = "okay";
780	mboxes = <&mailbox0_cluster3 &mbox_main_r5fss2_core1>;
781	memory-region = <&main_r5fss2_core1_dma_memory_region>,
782			<&main_r5fss2_core1_memory_region>;
783};
784
785&c71_0 {
786	status = "okay";
787	mboxes = <&mailbox0_cluster4 &mbox_c71_0>;
788	memory-region = <&c71_0_dma_memory_region>,
789			<&c71_0_memory_region>;
790};
791
792&c71_1 {
793	status = "okay";
794	mboxes = <&mailbox0_cluster4 &mbox_c71_1>;
795	memory-region = <&c71_1_dma_memory_region>,
796			<&c71_1_memory_region>;
797};
798
799&c71_2 {
800	status = "okay";
801	mboxes = <&mailbox0_cluster5 &mbox_c71_2>;
802	memory-region = <&c71_2_dma_memory_region>,
803			<&c71_2_memory_region>;
804};
805
806&c71_3 {
807	status = "okay";
808	mboxes = <&mailbox0_cluster5 &mbox_c71_3>;
809	memory-region = <&c71_3_dma_memory_region>,
810			<&c71_3_memory_region>;
811};
812
813&tscadc0 {
814	pinctrl-0 = <&mcu_adc0_pins_default>;
815	pinctrl-names = "default";
816	status = "okay";
817	adc {
818		ti,adc-channels = <0 1 2 3 4 5 6 7>;
819	};
820};
821
822&tscadc1 {
823	pinctrl-0 = <&mcu_adc1_pins_default>;
824	pinctrl-names = "default";
825	status = "okay";
826	adc {
827		ti,adc-channels = <0 1 2 3 4 5 6 7>;
828	};
829};
830