1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/phy/phy.h>
9#include <dt-bindings/leds/common.h>
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/net/ti-dp83867.h>
12#include "k3-am642.dtsi"
13
14#include "k3-serdes.h"
15
16/ {
17	compatible = "ti,am642-evm", "ti,am642";
18	model = "Texas Instruments AM642 EVM";
19
20	chosen {
21		stdout-path = &main_uart0;
22	};
23
24	aliases {
25		serial0 = &mcu_uart0;
26		serial1 = &main_uart1;
27		serial2 = &main_uart0;
28		serial3 = &main_uart3;
29		i2c0 = &main_i2c0;
30		i2c1 = &main_i2c1;
31		mmc0 = &sdhci0;
32		mmc1 = &sdhci1;
33		ethernet0 = &cpsw_port1;
34		ethernet1 = &cpsw_port2;
35	};
36
37	memory@80000000 {
38		bootph-all;
39		device_type = "memory";
40		/* 2G RAM */
41		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
42	};
43
44	reserved-memory {
45		#address-cells = <2>;
46		#size-cells = <2>;
47		ranges;
48
49		secure_ddr: optee@9e800000 {
50			reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
51			alignment = <0x1000>;
52			no-map;
53		};
54
55		main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
56			compatible = "shared-dma-pool";
57			reg = <0x00 0xa0000000 0x00 0x100000>;
58			no-map;
59		};
60
61		main_r5fss0_core0_memory_region: r5f-memory@a0100000 {
62			compatible = "shared-dma-pool";
63			reg = <0x00 0xa0100000 0x00 0xf00000>;
64			no-map;
65		};
66
67		main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
68			compatible = "shared-dma-pool";
69			reg = <0x00 0xa1000000 0x00 0x100000>;
70			no-map;
71		};
72
73		main_r5fss0_core1_memory_region: r5f-memory@a1100000 {
74			compatible = "shared-dma-pool";
75			reg = <0x00 0xa1100000 0x00 0xf00000>;
76			no-map;
77		};
78
79		main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a2000000 {
80			compatible = "shared-dma-pool";
81			reg = <0x00 0xa2000000 0x00 0x100000>;
82			no-map;
83		};
84
85		main_r5fss1_core0_memory_region: r5f-memory@a2100000 {
86			compatible = "shared-dma-pool";
87			reg = <0x00 0xa2100000 0x00 0xf00000>;
88			no-map;
89		};
90
91		main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a3000000 {
92			compatible = "shared-dma-pool";
93			reg = <0x00 0xa3000000 0x00 0x100000>;
94			no-map;
95		};
96
97		main_r5fss1_core1_memory_region: r5f-memory@a3100000 {
98			compatible = "shared-dma-pool";
99			reg = <0x00 0xa3100000 0x00 0xf00000>;
100			no-map;
101		};
102
103		rtos_ipc_memory_region: ipc-memories@a5000000 {
104			reg = <0x00 0xa5000000 0x00 0x00800000>;
105			alignment = <0x1000>;
106			no-map;
107		};
108	};
109
110	evm_12v0: regulator-0 {
111		/* main DC jack */
112		bootph-all;
113		compatible = "regulator-fixed";
114		regulator-name = "evm_12v0";
115		regulator-min-microvolt = <12000000>;
116		regulator-max-microvolt = <12000000>;
117		regulator-always-on;
118		regulator-boot-on;
119	};
120
121	vsys_5v0: regulator-1 {
122		/* output of LM5140 */
123		compatible = "regulator-fixed";
124		regulator-name = "vsys_5v0";
125		regulator-min-microvolt = <5000000>;
126		regulator-max-microvolt = <5000000>;
127		vin-supply = <&evm_12v0>;
128		regulator-always-on;
129		regulator-boot-on;
130	};
131
132	vsys_3v3: regulator-2 {
133		/* output of LM5140 */
134		bootph-all;
135		compatible = "regulator-fixed";
136		regulator-name = "vsys_3v3";
137		regulator-min-microvolt = <3300000>;
138		regulator-max-microvolt = <3300000>;
139		vin-supply = <&evm_12v0>;
140		regulator-always-on;
141		regulator-boot-on;
142	};
143
144	vdd_mmc1: regulator-3 {
145		/* TPS2051BD */
146		bootph-all;
147		compatible = "regulator-fixed";
148		regulator-name = "vdd_mmc1";
149		regulator-min-microvolt = <3300000>;
150		regulator-max-microvolt = <3300000>;
151		regulator-boot-on;
152		enable-active-high;
153		vin-supply = <&vsys_3v3>;
154		gpio = <&exp1 6 GPIO_ACTIVE_HIGH>;
155	};
156
157	vddb: regulator-4 {
158		compatible = "regulator-fixed";
159		regulator-name = "vddb_3v3_display";
160		regulator-min-microvolt = <3300000>;
161		regulator-max-microvolt = <3300000>;
162		vin-supply = <&vsys_3v3>;
163		regulator-always-on;
164		regulator-boot-on;
165	};
166
167	vtt_supply: regulator-5 {
168		bootph-all;
169		compatible = "regulator-fixed";
170		regulator-name = "vtt";
171		pinctrl-names = "default";
172		pinctrl-0 = <&ddr_vtt_pins_default>;
173		regulator-min-microvolt = <3300000>;
174		regulator-max-microvolt = <3300000>;
175		gpio = <&main_gpio0 12 GPIO_ACTIVE_HIGH>;
176		vin-supply = <&vsys_3v3>;
177		enable-active-high;
178		regulator-always-on;
179		regulator-boot-on;
180	};
181
182	leds {
183		compatible = "gpio-leds";
184
185		led-0 {
186			label = "am64-evm:red:heartbeat";
187			gpios = <&exp1 16 GPIO_ACTIVE_HIGH>;
188			linux,default-trigger = "heartbeat";
189			function = LED_FUNCTION_HEARTBEAT;
190			default-state = "off";
191		};
192	};
193
194	mdio_mux: mux-controller {
195		compatible = "gpio-mux";
196		#mux-control-cells = <0>;
197
198		mux-gpios = <&exp1 12 GPIO_ACTIVE_HIGH>;
199	};
200
201	mdio-mux-1 {
202		compatible = "mdio-mux-multiplexer";
203		mux-controls = <&mdio_mux>;
204		mdio-parent-bus = <&cpsw3g_mdio>;
205		#address-cells = <1>;
206		#size-cells = <0>;
207
208		mdio@1 {
209			reg = <0x1>;
210			#address-cells = <1>;
211			#size-cells = <0>;
212
213			cpsw3g_phy3: ethernet-phy@3 {
214				reg = <3>;
215			};
216		};
217	};
218
219	transceiver1: can-phy0 {
220		compatible = "ti,tcan1042";
221		#phy-cells = <0>;
222		max-bitrate = <5000000>;
223		standby-gpios = <&exp1 8 GPIO_ACTIVE_HIGH>;
224	};
225
226	transceiver2: can-phy1 {
227		compatible = "ti,tcan1042";
228		#phy-cells = <0>;
229		max-bitrate = <5000000>;
230		standby-gpios = <&exp1 9 GPIO_ACTIVE_HIGH>;
231	};
232};
233
234&main_pmx0 {
235	main_mmc1_pins_default: main-mmc1-default-pins {
236		pinctrl-single,pins = <
237			AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */
238			AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */
239			AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */
240			AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */
241			AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */
242			AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */
243			AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */
244			AM64X_IOPAD(0x029c, PIN_INPUT, 0) /* (C20) MMC1_SDWP */
245			AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* MMC1_CLKLB */
246		>;
247	};
248
249	main_uart1_pins_default: main-uart1-default-pins {
250		pinctrl-single,pins = <
251			AM64X_IOPAD(0x0248, PIN_INPUT, 0)		/* (D16) UART1_CTSn */
252			AM64X_IOPAD(0x024c, PIN_OUTPUT, 0)		/* (E16) UART1_RTSn */
253			AM64X_IOPAD(0x0240, PIN_INPUT, 0)		/* (E15) UART1_RXD */
254			AM64X_IOPAD(0x0244, PIN_OUTPUT, 0)		/* (E14) UART1_TXD */
255		>;
256	};
257
258	main_uart0_pins_default: main-uart0-default-pins {
259		bootph-all;
260		pinctrl-single,pins = <
261			AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
262			AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */
263			AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */
264			AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */
265		>;
266	};
267
268	main_spi0_pins_default: main-spi0-default-pins {
269		pinctrl-single,pins = <
270			AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */
271			AM64X_IOPAD(0x0208, PIN_OUTPUT, 0) /* (D12) SPI0_CS0 */
272			AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) /* (A13) SPI0_D0 */
273			AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */
274		>;
275	};
276
277	main_i2c0_pins_default: main-i2c0-default-pins {
278		bootph-all;
279		pinctrl-single,pins = <
280			AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */
281			AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */
282		>;
283	};
284
285	main_i2c1_pins_default: main-i2c1-default-pins {
286		bootph-all;
287		pinctrl-single,pins = <
288			AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
289			AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */
290		>;
291	};
292
293	mdio1_pins_default: mdio1-default-pins {
294		bootph-all;
295		pinctrl-single,pins = <
296			AM64X_IOPAD(0x01fc, PIN_OUTPUT, 4) /* (R2) PRG0_PRU1_GPO19.MDIO0_MDC */
297			AM64X_IOPAD(0x01f8, PIN_INPUT, 4) /* (P5) PRG0_PRU1_GPO18.MDIO0_MDIO */
298		>;
299	};
300
301	rgmii1_pins_default: rgmii1-default-pins {
302		bootph-all;
303		pinctrl-single,pins = <
304			AM64X_IOPAD(0x01cc, PIN_INPUT, 4) /* (W5) PRG0_PRU1_GPO7.RGMII1_RD0 */
305			AM64X_IOPAD(0x01d4, PIN_INPUT, 4) /* (Y5) PRG0_PRU1_GPO9.RGMII1_RD1 */
306			AM64X_IOPAD(0x01d8, PIN_INPUT, 4) /* (V6) PRG0_PRU1_GPO10.RGMII1_RD2 */
307			AM64X_IOPAD(0x01f4, PIN_INPUT, 4) /* (V5) PRG0_PRU1_GPO17.RGMII1_RD3 */
308			AM64X_IOPAD(0x0188, PIN_INPUT, 4) /* (AA5) PRG0_PRU0_GPO10.RGMII1_RXC */
309			AM64X_IOPAD(0x0184, PIN_INPUT, 4) /* (W6) PRG0_PRU0_GPO9.RGMII1_RX_CTL */
310			AM64X_IOPAD(0x0124, PIN_OUTPUT, 4) /* (V15) PRG1_PRU1_GPO7.RGMII1_TD0 */
311			AM64X_IOPAD(0x012c, PIN_OUTPUT, 4) /* (V14) PRG1_PRU1_GPO9.RGMII1_TD1 */
312			AM64X_IOPAD(0x0130, PIN_OUTPUT, 4) /* (W14) PRG1_PRU1_GPO10.RGMII1_TD2 */
313			AM64X_IOPAD(0x014c, PIN_OUTPUT, 4) /* (AA14) PRG1_PRU1_GPO17.RGMII1_TD3 */
314			AM64X_IOPAD(0x00e0, PIN_OUTPUT, 4) /* (U14) PRG1_PRU0_GPO10.RGMII1_TXC */
315			AM64X_IOPAD(0x00dc, PIN_OUTPUT, 4) /* (U15) PRG1_PRU0_GPO9.RGMII1_TX_CTL */
316		>;
317	};
318
319       rgmii2_pins_default: rgmii2-default-pins {
320		bootph-all;
321		pinctrl-single,pins = <
322			AM64X_IOPAD(0x0108, PIN_INPUT, 4) /* (W11) PRG1_PRU1_GPO0.RGMII2_RD0 */
323			AM64X_IOPAD(0x010c, PIN_INPUT, 4) /* (V11) PRG1_PRU1_GPO1.RGMII2_RD1 */
324			AM64X_IOPAD(0x0110, PIN_INPUT, 4) /* (AA12) PRG1_PRU1_GPO2.RGMII2_RD2 */
325			AM64X_IOPAD(0x0114, PIN_INPUT, 4) /* (Y12) PRG1_PRU1_GPO3.RGMII2_RD3 */
326			AM64X_IOPAD(0x0120, PIN_INPUT, 4) /* (U11) PRG1_PRU1_GPO6.RGMII2_RXC */
327			AM64X_IOPAD(0x0118, PIN_INPUT, 4) /* (W12) PRG1_PRU1_GPO4.RGMII2_RX_CTL */
328			AM64X_IOPAD(0x0134, PIN_OUTPUT, 4) /* (AA10) PRG1_PRU1_GPO11.RGMII2_TD0 */
329			AM64X_IOPAD(0x0138, PIN_OUTPUT, 4) /* (V10) PRG1_PRU1_GPO12.RGMII2_TD1 */
330			AM64X_IOPAD(0x013c, PIN_OUTPUT, 4) /* (U10) PRG1_PRU1_GPO13.RGMII2_TD2 */
331			AM64X_IOPAD(0x0140, PIN_OUTPUT, 4) /* (AA11) PRG1_PRU1_GPO14.RGMII2_TD3 */
332			AM64X_IOPAD(0x0148, PIN_OUTPUT, 4) /* (Y10) PRG1_PRU1_GPO16.RGMII2_TXC */
333			AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
334		>;
335	};
336
337	main_usb0_pins_default: main-usb0-default-pins {
338		bootph-all;
339		pinctrl-single,pins = <
340			AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
341		>;
342	};
343
344	ospi0_pins_default: ospi0-default-pins {
345		pinctrl-single,pins = <
346			AM64X_IOPAD(0x0000, PIN_OUTPUT, 0) /* (N20) OSPI0_CLK */
347			AM64X_IOPAD(0x002c, PIN_OUTPUT, 0) /* (L19) OSPI0_CSn0 */
348			AM64X_IOPAD(0x000c, PIN_INPUT, 0) /* (M19) OSPI0_D0 */
349			AM64X_IOPAD(0x0010, PIN_INPUT, 0) /* (M18) OSPI0_D1 */
350			AM64X_IOPAD(0x0014, PIN_INPUT, 0) /* (M20) OSPI0_D2 */
351			AM64X_IOPAD(0x0018, PIN_INPUT, 0) /* (M21) OSPI0_D3 */
352			AM64X_IOPAD(0x001c, PIN_INPUT, 0) /* (P21) OSPI0_D4 */
353			AM64X_IOPAD(0x0020, PIN_INPUT, 0) /* (P20) OSPI0_D5 */
354			AM64X_IOPAD(0x0024, PIN_INPUT, 0) /* (N18) OSPI0_D6 */
355			AM64X_IOPAD(0x0028, PIN_INPUT, 0) /* (M17) OSPI0_D7 */
356			AM64X_IOPAD(0x0008, PIN_INPUT, 0) /* (N19) OSPI0_DQS */
357		>;
358	};
359
360	main_ecap0_pins_default: main-ecap0-default-pins {
361		pinctrl-single,pins = <
362			AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */
363		>;
364	};
365
366	main_mcan0_pins_default: main-mcan0-default-pins {
367		pinctrl-single,pins = <
368			AM64X_IOPAD(0x0254, PIN_INPUT, 0) /* (B17) MCAN0_RX */
369			AM64X_IOPAD(0x0250, PIN_OUTPUT, 0) /* (A17) MCAN0_TX */
370		>;
371	};
372
373	main_mcan1_pins_default: main-mcan1-default-pins {
374		pinctrl-single,pins = <
375			AM64X_IOPAD(0x025c, PIN_INPUT, 0) /* (D17) MCAN1_RX */
376			AM64X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (C17) MCAN1_TX */
377		>;
378	};
379
380	ddr_vtt_pins_default: ddr-vtt-default-pins {
381		bootph-all;
382		pinctrl-single,pins = <
383			AM64X_IOPAD(0x0030, PIN_OUTPUT_PULLUP, 7) /* (L18) OSPI0_CSN1.GPIO0_12 */
384		>;
385	};
386};
387
388&main_uart0 {
389	bootph-all;
390	status = "okay";
391	pinctrl-names = "default";
392	pinctrl-0 = <&main_uart0_pins_default>;
393	current-speed = <115200>;
394};
395
396/* main_uart1 is reserved for firmware usage */
397&main_uart1 {
398	status = "reserved";
399	pinctrl-names = "default";
400	pinctrl-0 = <&main_uart1_pins_default>;
401};
402
403&main_i2c0 {
404	bootph-all;
405	status = "okay";
406	pinctrl-names = "default";
407	pinctrl-0 = <&main_i2c0_pins_default>;
408	clock-frequency = <400000>;
409
410	eeprom@50 {
411		/* AT24CM01 */
412		compatible = "atmel,24c1024";
413		reg = <0x50>;
414	};
415};
416
417&main_i2c1 {
418	bootph-all;
419	status = "okay";
420	pinctrl-names = "default";
421	pinctrl-0 = <&main_i2c1_pins_default>;
422	clock-frequency = <400000>;
423
424	exp1: gpio@22 {
425		bootph-all;
426		compatible = "ti,tca6424";
427		reg = <0x22>;
428		gpio-controller;
429		#gpio-cells = <2>;
430		gpio-line-names = "GPIO_eMMC_RSTn", "CAN_MUX_SEL",
431				  "GPIO_CPSW1_RST", "GPIO_RGMII1_RST",
432				  "GPIO_RGMII2_RST", "GPIO_PCIe_RST_OUT",
433				  "MMC1_SD_EN", "FSI_FET_SEL",
434				  "MCAN0_STB_3V3", "MCAN1_STB_3V3",
435				  "CPSW_FET_SEL", "CPSW_FET2_SEL",
436				  "PRG1_RGMII2_FET_SEL", "TEST_GPIO2",
437				  "GPIO_OLED_RESETn", "VPP_LDO_EN",
438				  "TEST_LED1", "TP92", "TP90", "TP88",
439				  "TP87", "TP86", "TP89", "TP91";
440	};
441
442	/* osd9616p0899-10 */
443	display@3c {
444		compatible = "solomon,ssd1306fb-i2c";
445		reg = <0x3c>;
446		reset-gpios = <&exp1 14 GPIO_ACTIVE_LOW>;
447		vbat-supply = <&vddb>;
448		solomon,height = <16>;
449		solomon,width = <96>;
450		solomon,com-seq;
451		solomon,com-invdir;
452		solomon,page-offset = <0>;
453		solomon,prechargep1 = <2>;
454		solomon,prechargep2 = <13>;
455	};
456};
457
458&main_gpio0 {
459	bootph-all;
460};
461
462/* mcu_gpio0 is reserved for mcu firmware usage */
463&mcu_gpio0 {
464	status = "reserved";
465};
466
467&main_spi0 {
468	status = "okay";
469	pinctrl-names = "default";
470	pinctrl-0 = <&main_spi0_pins_default>;
471	ti,pindir-d0-out-d1-in;
472	eeprom@0 {
473		compatible = "microchip,93lc46b";
474		reg = <0>;
475		spi-max-frequency = <1000000>;
476		spi-cs-high;
477		data-size = <16>;
478	};
479};
480
481&sdhci0 {
482	/* emmc */
483	bus-width = <8>;
484	non-removable;
485	ti,driver-strength-ohm = <50>;
486	disable-wp;
487};
488
489&sdhci1 {
490	/* SD/MMC */
491	bootph-all;
492	vmmc-supply = <&vdd_mmc1>;
493	pinctrl-names = "default";
494	bus-width = <4>;
495	pinctrl-0 = <&main_mmc1_pins_default>;
496	ti,driver-strength-ohm = <50>;
497	disable-wp;
498};
499
500&usbss0 {
501	bootph-all;
502	ti,vbus-divider;
503	ti,usb2-only;
504};
505
506&usb0 {
507	bootph-all;
508	dr_mode = "otg";
509	maximum-speed = "high-speed";
510	pinctrl-names = "default";
511	pinctrl-0 = <&main_usb0_pins_default>;
512};
513
514&cpsw3g {
515	bootph-all;
516	pinctrl-names = "default";
517	pinctrl-0 = <&rgmii1_pins_default>, <&rgmii2_pins_default>;
518};
519
520&cpsw_port1 {
521	bootph-all;
522	phy-mode = "rgmii-rxid";
523	phy-handle = <&cpsw3g_phy0>;
524};
525
526&cpsw_port2 {
527	phy-mode = "rgmii-rxid";
528	phy-handle = <&cpsw3g_phy3>;
529};
530
531&cpsw3g_mdio {
532	bootph-all;
533	status = "okay";
534	pinctrl-names = "default";
535	pinctrl-0 = <&mdio1_pins_default>;
536
537	cpsw3g_phy0: ethernet-phy@0 {
538		bootph-all;
539		reg = <0>;
540		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
541		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
542	};
543};
544
545&tscadc0 {
546	/* ADC is reserved for R5 usage */
547	status = "reserved";
548};
549
550&ospi0 {
551	status = "okay";
552	pinctrl-names = "default";
553	pinctrl-0 = <&ospi0_pins_default>;
554
555	flash@0 {
556		compatible = "jedec,spi-nor";
557		reg = <0x0>;
558		spi-tx-bus-width = <8>;
559		spi-rx-bus-width = <8>;
560		spi-max-frequency = <25000000>;
561		cdns,tshsl-ns = <60>;
562		cdns,tsd2d-ns = <60>;
563		cdns,tchsh-ns = <60>;
564		cdns,tslch-ns = <60>;
565		cdns,read-delay = <4>;
566
567		partitions {
568			compatible = "fixed-partitions";
569			#address-cells = <1>;
570			#size-cells = <1>;
571
572			partition@0 {
573				label = "ospi.tiboot3";
574				reg = <0x0 0x100000>;
575			};
576
577			partition@100000 {
578				label = "ospi.tispl";
579				reg = <0x100000 0x200000>;
580			};
581
582			partition@300000 {
583				label = "ospi.u-boot";
584				reg = <0x300000 0x400000>;
585			};
586
587			partition@700000 {
588				label = "ospi.env";
589				reg = <0x700000 0x40000>;
590			};
591
592			partition@740000 {
593				label = "ospi.env.backup";
594				reg = <0x740000 0x40000>;
595			};
596
597			partition@800000 {
598				label = "ospi.rootfs";
599				reg = <0x800000 0x37c0000>;
600			};
601
602			partition@3fc0000 {
603				label = "ospi.phypattern";
604				reg = <0x3fc0000 0x40000>;
605			};
606		};
607	};
608};
609
610&mailbox0_cluster2 {
611	status = "okay";
612
613	mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
614		ti,mbox-rx = <0 0 2>;
615		ti,mbox-tx = <1 0 2>;
616	};
617
618	mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
619		ti,mbox-rx = <2 0 2>;
620		ti,mbox-tx = <3 0 2>;
621	};
622};
623
624&mailbox0_cluster4 {
625	status = "okay";
626
627	mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
628		ti,mbox-rx = <0 0 2>;
629		ti,mbox-tx = <1 0 2>;
630	};
631
632	mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
633		ti,mbox-rx = <2 0 2>;
634		ti,mbox-tx = <3 0 2>;
635	};
636};
637
638&mailbox0_cluster6 {
639	status = "okay";
640
641	mbox_m4_0: mbox-m4-0 {
642		ti,mbox-rx = <0 0 2>;
643		ti,mbox-tx = <1 0 2>;
644	};
645};
646
647&main_r5fss0_core0 {
648	mboxes = <&mailbox0_cluster2>, <&mbox_main_r5fss0_core0>;
649	memory-region = <&main_r5fss0_core0_dma_memory_region>,
650			<&main_r5fss0_core0_memory_region>;
651};
652
653&main_r5fss0_core1 {
654	mboxes = <&mailbox0_cluster2>, <&mbox_main_r5fss0_core1>;
655	memory-region = <&main_r5fss0_core1_dma_memory_region>,
656			<&main_r5fss0_core1_memory_region>;
657};
658
659&main_r5fss1_core0 {
660	mboxes = <&mailbox0_cluster4>, <&mbox_main_r5fss1_core0>;
661	memory-region = <&main_r5fss1_core0_dma_memory_region>,
662			<&main_r5fss1_core0_memory_region>;
663};
664
665&main_r5fss1_core1 {
666	mboxes = <&mailbox0_cluster4>, <&mbox_main_r5fss1_core1>;
667	memory-region = <&main_r5fss1_core1_dma_memory_region>,
668			<&main_r5fss1_core1_memory_region>;
669};
670
671&serdes_ln_ctrl {
672	idle-states = <AM64_SERDES0_LANE0_PCIE0>;
673};
674
675&serdes0 {
676	serdes0_pcie_link: phy@0 {
677		reg = <0>;
678		cdns,num-lanes = <1>;
679		#phy-cells = <0>;
680		cdns,phy-type = <PHY_TYPE_PCIE>;
681		resets = <&serdes_wiz0 1>;
682	};
683};
684
685&pcie0_rc {
686	status = "okay";
687	reset-gpios = <&exp1 5 GPIO_ACTIVE_HIGH>;
688	phys = <&serdes0_pcie_link>;
689	phy-names = "pcie-phy";
690	num-lanes = <1>;
691};
692
693&pcie0_ep {
694	phys = <&serdes0_pcie_link>;
695	phy-names = "pcie-phy";
696	num-lanes = <1>;
697};
698
699&ecap0 {
700	status = "okay";
701	/* PWM is available on Pin 1 of header J12 */
702	pinctrl-names = "default";
703	pinctrl-0 = <&main_ecap0_pins_default>;
704};
705
706&main_mcan0 {
707	status = "okay";
708	pinctrl-names = "default";
709	pinctrl-0 = <&main_mcan0_pins_default>;
710	phys = <&transceiver1>;
711};
712
713&main_mcan1 {
714	status = "okay";
715	pinctrl-names = "default";
716	pinctrl-0 = <&main_mcan1_pins_default>;
717	phys = <&transceiver2>;
718};
719