14867caf4SLokesh Vutla// SPDX-License-Identifier: GPL-2.0
24867caf4SLokesh Vutla/*
34867caf4SLokesh Vutla * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
44867caf4SLokesh Vutla */
54867caf4SLokesh Vutla
64867caf4SLokesh Vutla/dts-v1/;
74867caf4SLokesh Vutla
84e8aa4e3SKishon Vijay Abraham I#include <dt-bindings/mux/ti-serdes.h>
94e8aa4e3SKishon Vijay Abraham I#include <dt-bindings/phy/phy.h>
104867caf4SLokesh Vutla#include <dt-bindings/gpio/gpio.h>
117fe968d2SVignesh Raghavendra#include <dt-bindings/net/ti-dp83867.h>
124867caf4SLokesh Vutla#include "k3-am642.dtsi"
134867caf4SLokesh Vutla
144867caf4SLokesh Vutla/ {
154867caf4SLokesh Vutla	compatible =  "ti,am642-sk", "ti,am642";
164867caf4SLokesh Vutla	model = "Texas Instruments AM642 SK";
174867caf4SLokesh Vutla
184867caf4SLokesh Vutla	chosen {
194867caf4SLokesh Vutla		stdout-path = "serial2:115200n8";
204867caf4SLokesh Vutla		bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
214867caf4SLokesh Vutla	};
224867caf4SLokesh Vutla
234867caf4SLokesh Vutla	memory@80000000 {
244867caf4SLokesh Vutla		device_type = "memory";
254867caf4SLokesh Vutla		/* 2G RAM */
264867caf4SLokesh Vutla		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
274867caf4SLokesh Vutla
284867caf4SLokesh Vutla	};
294867caf4SLokesh Vutla
304867caf4SLokesh Vutla	reserved-memory {
314867caf4SLokesh Vutla		#address-cells = <2>;
324867caf4SLokesh Vutla		#size-cells = <2>;
334867caf4SLokesh Vutla		ranges;
344867caf4SLokesh Vutla
354867caf4SLokesh Vutla		secure_ddr: optee@9e800000 {
364867caf4SLokesh Vutla			reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
374867caf4SLokesh Vutla			alignment = <0x1000>;
384867caf4SLokesh Vutla			no-map;
394867caf4SLokesh Vutla		};
40d71abfccSSuman Anna
41d71abfccSSuman Anna		main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
42d71abfccSSuman Anna			compatible = "shared-dma-pool";
43d71abfccSSuman Anna			reg = <0x00 0xa0000000 0x00 0x100000>;
44d71abfccSSuman Anna			no-map;
45d71abfccSSuman Anna		};
46d71abfccSSuman Anna
47d71abfccSSuman Anna		main_r5fss0_core0_memory_region: r5f-memory@a0100000 {
48d71abfccSSuman Anna			compatible = "shared-dma-pool";
49d71abfccSSuman Anna			reg = <0x00 0xa0100000 0x00 0xf00000>;
50d71abfccSSuman Anna			no-map;
51d71abfccSSuman Anna		};
52d71abfccSSuman Anna
53d71abfccSSuman Anna		main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
54d71abfccSSuman Anna			compatible = "shared-dma-pool";
55d71abfccSSuman Anna			reg = <0x00 0xa1000000 0x00 0x100000>;
56d71abfccSSuman Anna			no-map;
57d71abfccSSuman Anna		};
58d71abfccSSuman Anna
59d71abfccSSuman Anna		main_r5fss0_core1_memory_region: r5f-memory@a1100000 {
60d71abfccSSuman Anna			compatible = "shared-dma-pool";
61d71abfccSSuman Anna			reg = <0x00 0xa1100000 0x00 0xf00000>;
62d71abfccSSuman Anna			no-map;
63d71abfccSSuman Anna		};
64d71abfccSSuman Anna
65d71abfccSSuman Anna		main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a2000000 {
66d71abfccSSuman Anna			compatible = "shared-dma-pool";
67d71abfccSSuman Anna			reg = <0x00 0xa2000000 0x00 0x100000>;
68d71abfccSSuman Anna			no-map;
69d71abfccSSuman Anna		};
70d71abfccSSuman Anna
71d71abfccSSuman Anna		main_r5fss1_core0_memory_region: r5f-memory@a2100000 {
72d71abfccSSuman Anna			compatible = "shared-dma-pool";
73d71abfccSSuman Anna			reg = <0x00 0xa2100000 0x00 0xf00000>;
74d71abfccSSuman Anna			no-map;
75d71abfccSSuman Anna		};
76d71abfccSSuman Anna
77d71abfccSSuman Anna		main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a3000000 {
78d71abfccSSuman Anna			compatible = "shared-dma-pool";
79d71abfccSSuman Anna			reg = <0x00 0xa3000000 0x00 0x100000>;
80d71abfccSSuman Anna			no-map;
81d71abfccSSuman Anna		};
82d71abfccSSuman Anna
83d71abfccSSuman Anna		main_r5fss1_core1_memory_region: r5f-memory@a3100000 {
84d71abfccSSuman Anna			compatible = "shared-dma-pool";
85d71abfccSSuman Anna			reg = <0x00 0xa3100000 0x00 0xf00000>;
86d71abfccSSuman Anna			no-map;
87d71abfccSSuman Anna		};
88d71abfccSSuman Anna
89d71abfccSSuman Anna		rtos_ipc_memory_region: ipc-memories@a5000000 {
90d71abfccSSuman Anna			reg = <0x00 0xa5000000 0x00 0x00800000>;
91d71abfccSSuman Anna			alignment = <0x1000>;
92d71abfccSSuman Anna			no-map;
93d71abfccSSuman Anna		};
944867caf4SLokesh Vutla	};
954867caf4SLokesh Vutla
964867caf4SLokesh Vutla	vusb_main: fixed-regulator-vusb-main5v0 {
974867caf4SLokesh Vutla		/* USB MAIN INPUT 5V DC */
984867caf4SLokesh Vutla		compatible = "regulator-fixed";
994867caf4SLokesh Vutla		regulator-name = "vusb_main5v0";
1004867caf4SLokesh Vutla		regulator-min-microvolt = <5000000>;
1014867caf4SLokesh Vutla		regulator-max-microvolt = <5000000>;
1024867caf4SLokesh Vutla		regulator-always-on;
1034867caf4SLokesh Vutla		regulator-boot-on;
1044867caf4SLokesh Vutla	};
1054867caf4SLokesh Vutla
1064867caf4SLokesh Vutla	vcc_3v3_sys: fixedregulator-vcc-3v3-sys {
1074867caf4SLokesh Vutla		/* output of LP8733xx */
1084867caf4SLokesh Vutla		compatible = "regulator-fixed";
1094867caf4SLokesh Vutla		regulator-name = "vcc_3v3_sys";
1104867caf4SLokesh Vutla		regulator-min-microvolt = <3300000>;
1114867caf4SLokesh Vutla		regulator-max-microvolt = <3300000>;
1124867caf4SLokesh Vutla		vin-supply = <&vusb_main>;
1134867caf4SLokesh Vutla		regulator-always-on;
1144867caf4SLokesh Vutla		regulator-boot-on;
1154867caf4SLokesh Vutla	};
1164867caf4SLokesh Vutla
1174867caf4SLokesh Vutla	vdd_mmc1: fixed-regulator-sd {
1184867caf4SLokesh Vutla		/* TPS2051BD */
1194867caf4SLokesh Vutla		compatible = "regulator-fixed";
1204867caf4SLokesh Vutla		regulator-name = "vdd_mmc1";
1214867caf4SLokesh Vutla		regulator-min-microvolt = <3300000>;
1224867caf4SLokesh Vutla		regulator-max-microvolt = <3300000>;
1234867caf4SLokesh Vutla		regulator-boot-on;
1244867caf4SLokesh Vutla		enable-active-high;
1254867caf4SLokesh Vutla		vin-supply = <&vcc_3v3_sys>;
1264867caf4SLokesh Vutla		gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
1274867caf4SLokesh Vutla	};
1284867caf4SLokesh Vutla};
1294867caf4SLokesh Vutla
1304867caf4SLokesh Vutla&main_pmx0 {
1314867caf4SLokesh Vutla	main_mmc1_pins_default: main-mmc1-pins-default {
1324867caf4SLokesh Vutla		pinctrl-single,pins = <
1334867caf4SLokesh Vutla			AM64X_IOPAD(0x0294, PIN_INPUT, 0) /* (J19) MMC1_CMD */
1344867caf4SLokesh Vutla			AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* (#N/A) MMC1_CLKLB */
1354867caf4SLokesh Vutla			AM64X_IOPAD(0x028c, PIN_INPUT, 0) /* (L20) MMC1_CLK */
1364867caf4SLokesh Vutla			AM64X_IOPAD(0x0288, PIN_INPUT, 0) /* (K21) MMC1_DAT0 */
1374867caf4SLokesh Vutla			AM64X_IOPAD(0x0284, PIN_INPUT, 0) /* (L21) MMC1_DAT1 */
1384867caf4SLokesh Vutla			AM64X_IOPAD(0x0280, PIN_INPUT, 0) /* (K19) MMC1_DAT2 */
1394867caf4SLokesh Vutla			AM64X_IOPAD(0x027c, PIN_INPUT, 0) /* (K18) MMC1_DAT3 */
1404867caf4SLokesh Vutla			AM64X_IOPAD(0x0298, PIN_INPUT, 0) /* (D19) MMC1_SDCD */
1414867caf4SLokesh Vutla		>;
1424867caf4SLokesh Vutla	};
1434867caf4SLokesh Vutla
1444e8aa4e3SKishon Vijay Abraham I	main_usb0_pins_default: main-usb0-pins-default {
1454e8aa4e3SKishon Vijay Abraham I		pinctrl-single,pins = <
1464e8aa4e3SKishon Vijay Abraham I			AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
1474e8aa4e3SKishon Vijay Abraham I		>;
1484e8aa4e3SKishon Vijay Abraham I	};
1494e8aa4e3SKishon Vijay Abraham I
1504867caf4SLokesh Vutla	main_i2c1_pins_default: main-i2c1-pins-default {
1514867caf4SLokesh Vutla		pinctrl-single,pins = <
1524867caf4SLokesh Vutla			AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
1534867caf4SLokesh Vutla			AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */
1544867caf4SLokesh Vutla		>;
1554867caf4SLokesh Vutla	};
1567fe968d2SVignesh Raghavendra
1577fe968d2SVignesh Raghavendra	mdio1_pins_default: mdio1-pins-default {
1587fe968d2SVignesh Raghavendra		pinctrl-single,pins = <
1597fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x01fc, PIN_OUTPUT, 4) /* (R2) PRG0_PRU1_GPO19.MDIO0_MDC */
1607fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x01f8, PIN_INPUT, 4) /* (P5) PRG0_PRU1_GPO18.MDIO0_MDIO */
1617fe968d2SVignesh Raghavendra		>;
1627fe968d2SVignesh Raghavendra	};
1637fe968d2SVignesh Raghavendra
1647fe968d2SVignesh Raghavendra	rgmii1_pins_default: rgmii1-pins-default {
1657fe968d2SVignesh Raghavendra		pinctrl-single,pins = <
1667fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x011c, PIN_INPUT, 4) /* (AA13) PRG1_PRU1_GPO5.RGMII1_RD0 */
1677fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0128, PIN_INPUT, 4) /* (U12) PRG1_PRU1_GPO8.RGMII1_RD1 */
1687fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0150, PIN_INPUT, 4) /* (Y13) PRG1_PRU1_GPO18.RGMII1_RD2 */
1697fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0154, PIN_INPUT, 4) /* (V12) PRG1_PRU1_GPO19.RGMII1_RD3 */
1707fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00d8, PIN_INPUT, 4) /* (W13) PRG1_PRU0_GPO8.RGMII1_RXC */
1717fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00cc, PIN_INPUT, 4) /* (V13) PRG1_PRU0_GPO5.RGMII1_RX_CTL */
1727fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0124, PIN_OUTPUT, 4) /* (V15) PRG1_PRU1_GPO7.RGMII1_TD0 */
1737fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x012c, PIN_OUTPUT, 4) /* (V14) PRG1_PRU1_GPO9.RGMII1_TD1 */
1747fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0130, PIN_OUTPUT, 4) /* (W14) PRG1_PRU1_GPO10.RGMII1_TD2 */
1757fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x014c, PIN_OUTPUT, 4) /* (AA14) PRG1_PRU1_GPO17.RGMII1_TD3 */
1767fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00e0, PIN_OUTPUT, 4) /* (U14) PRG1_PRU0_GPO10.RGMII1_TXC */
1777fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00dc, PIN_OUTPUT, 4) /* (U15) PRG1_PRU0_GPO9.RGMII1_TX_CTL */
1787fe968d2SVignesh Raghavendra		>;
1797fe968d2SVignesh Raghavendra	};
1807fe968d2SVignesh Raghavendra
1817fe968d2SVignesh Raghavendra       rgmii2_pins_default: rgmii2-pins-default {
1827fe968d2SVignesh Raghavendra		pinctrl-single,pins = <
1837fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0108, PIN_INPUT, 4) /* (W11) PRG1_PRU1_GPO0.RGMII2_RD0 */
1847fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x010c, PIN_INPUT, 4) /* (V11) PRG1_PRU1_GPO1.RGMII2_RD1 */
1857fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0110, PIN_INPUT, 4) /* (AA12) PRG1_PRU1_GPO2.RGMII2_RD2 */
1867fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0114, PIN_INPUT, 4) /* (Y12) PRG1_PRU1_GPO3.RGMII2_RD3 */
1877fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0120, PIN_INPUT, 4) /* (U11) PRG1_PRU1_GPO6.RGMII2_RXC */
1887fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0118, PIN_INPUT, 4) /* (W12) PRG1_PRU1_GPO4.RGMII2_RX_CTL */
1897fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0134, PIN_OUTPUT, 4) /* (AA10) PRG1_PRU1_GPO11.RGMII2_TD0 */
1907fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0138, PIN_OUTPUT, 4) /* (V10) PRG1_PRU1_GPO12.RGMII2_TD1 */
1917fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x013c, PIN_OUTPUT, 4) /* (U10) PRG1_PRU1_GPO13.RGMII2_TD2 */
1927fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0140, PIN_OUTPUT, 4) /* (AA11) PRG1_PRU1_GPO14.RGMII2_TD3 */
1937fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0148, PIN_OUTPUT, 4) /* (Y10) PRG1_PRU1_GPO16.RGMII2_TXC */
1947fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
1957fe968d2SVignesh Raghavendra		>;
1967fe968d2SVignesh Raghavendra	};
197e4e4e894SVignesh Raghavendra
198e4e4e894SVignesh Raghavendra	ospi0_pins_default: ospi0-pins-default {
199e4e4e894SVignesh Raghavendra		pinctrl-single,pins = <
200e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0000, PIN_OUTPUT, 0) /* (N20) OSPI0_CLK */
201e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x002c, PIN_OUTPUT, 0) /* (L19) OSPI0_CSn0 */
202e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x000c, PIN_INPUT, 0) /* (M19) OSPI0_D0 */
203e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0010, PIN_INPUT, 0) /* (M18) OSPI0_D1 */
204e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0014, PIN_INPUT, 0) /* (M20) OSPI0_D2 */
205e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0018, PIN_INPUT, 0) /* (M21) OSPI0_D3 */
206e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x001c, PIN_INPUT, 0) /* (P21) OSPI0_D4 */
207e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0020, PIN_INPUT, 0) /* (P20) OSPI0_D5 */
208e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0024, PIN_INPUT, 0) /* (N18) OSPI0_D6 */
209e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0028, PIN_INPUT, 0) /* (M17) OSPI0_D7 */
210e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0008, PIN_INPUT, 0) /* (N19) OSPI0_DQS */
211e4e4e894SVignesh Raghavendra		>;
212e4e4e894SVignesh Raghavendra	};
213c1fa5ac6SLokesh Vutla
214c1fa5ac6SLokesh Vutla	main_ecap0_pins_default: main-ecap0-pins-default {
215c1fa5ac6SLokesh Vutla		pinctrl-single,pins = <
216c1fa5ac6SLokesh Vutla			AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */
217c1fa5ac6SLokesh Vutla		>;
218c1fa5ac6SLokesh Vutla	};
2194867caf4SLokesh Vutla};
2204867caf4SLokesh Vutla
2214867caf4SLokesh Vutla&mcu_uart0 {
2224867caf4SLokesh Vutla	status = "disabled";
2234867caf4SLokesh Vutla};
2244867caf4SLokesh Vutla
2254867caf4SLokesh Vutla&mcu_uart1 {
2264867caf4SLokesh Vutla	status = "disabled";
2274867caf4SLokesh Vutla};
2284867caf4SLokesh Vutla
2294867caf4SLokesh Vutla&main_uart1 {
2304867caf4SLokesh Vutla	/* main_uart1 is reserved for firmware usage */
2314867caf4SLokesh Vutla	status = "reserved";
2324867caf4SLokesh Vutla};
2334867caf4SLokesh Vutla
2344867caf4SLokesh Vutla&main_uart2 {
2354867caf4SLokesh Vutla	status = "disabled";
2364867caf4SLokesh Vutla};
2374867caf4SLokesh Vutla
2384867caf4SLokesh Vutla&main_uart3 {
2394867caf4SLokesh Vutla	status = "disabled";
2404867caf4SLokesh Vutla};
2414867caf4SLokesh Vutla
2424867caf4SLokesh Vutla&main_uart4 {
2434867caf4SLokesh Vutla	status = "disabled";
2444867caf4SLokesh Vutla};
2454867caf4SLokesh Vutla
2464867caf4SLokesh Vutla&main_uart5 {
2474867caf4SLokesh Vutla	status = "disabled";
2484867caf4SLokesh Vutla};
2494867caf4SLokesh Vutla
2504867caf4SLokesh Vutla&main_uart6 {
2514867caf4SLokesh Vutla	status = "disabled";
2524867caf4SLokesh Vutla};
2534867caf4SLokesh Vutla
2544867caf4SLokesh Vutla&mcu_i2c0 {
2554867caf4SLokesh Vutla	status = "disabled";
2564867caf4SLokesh Vutla};
2574867caf4SLokesh Vutla
2584867caf4SLokesh Vutla&mcu_i2c1 {
2594867caf4SLokesh Vutla	status = "disabled";
2604867caf4SLokesh Vutla};
2614867caf4SLokesh Vutla
2624867caf4SLokesh Vutla&main_i2c1 {
2634867caf4SLokesh Vutla	pinctrl-names = "default";
2644867caf4SLokesh Vutla	pinctrl-0 = <&main_i2c1_pins_default>;
2654867caf4SLokesh Vutla	clock-frequency = <400000>;
2664867caf4SLokesh Vutla
2674867caf4SLokesh Vutla	exp1: gpio@70 {
2684867caf4SLokesh Vutla		compatible = "nxp,pca9538";
2694867caf4SLokesh Vutla		reg = <0x70>;
2704867caf4SLokesh Vutla		gpio-controller;
2714867caf4SLokesh Vutla		#gpio-cells = <2>;
2724867caf4SLokesh Vutla		gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
2734867caf4SLokesh Vutla				  "PRU_DETECT", "MMC1_SD_EN",
2744867caf4SLokesh Vutla				  "VPP_LDO_EN", "RPI_PS_3V3_En",
2754867caf4SLokesh Vutla				  "RPI_PS_5V0_En", "RPI_HAT_DETECT";
2764867caf4SLokesh Vutla	};
2774867caf4SLokesh Vutla};
2784867caf4SLokesh Vutla
2794867caf4SLokesh Vutla&main_i2c3 {
2804867caf4SLokesh Vutla	status = "disabled";
2814867caf4SLokesh Vutla};
2824867caf4SLokesh Vutla
2834867caf4SLokesh Vutla&mcu_spi0 {
2844867caf4SLokesh Vutla	status = "disabled";
2854867caf4SLokesh Vutla};
2864867caf4SLokesh Vutla
2874867caf4SLokesh Vutla&mcu_spi1 {
2884867caf4SLokesh Vutla	status = "disabled";
2894867caf4SLokesh Vutla};
2904867caf4SLokesh Vutla
291d5a4d541SAswath Govindraju/* mcu_gpio0 is reserved for mcu firmware usage */
292d5a4d541SAswath Govindraju&mcu_gpio0 {
293d5a4d541SAswath Govindraju	status = "reserved";
294d5a4d541SAswath Govindraju};
295d5a4d541SAswath Govindraju
2964867caf4SLokesh Vutla&sdhci1 {
2974867caf4SLokesh Vutla	/* SD/MMC */
2984867caf4SLokesh Vutla	vmmc-supply = <&vdd_mmc1>;
2994867caf4SLokesh Vutla	pinctrl-names = "default";
3004867caf4SLokesh Vutla	bus-width = <4>;
3014867caf4SLokesh Vutla	pinctrl-0 = <&main_mmc1_pins_default>;
3024867caf4SLokesh Vutla	ti,driver-strength-ohm = <50>;
3034867caf4SLokesh Vutla	disable-wp;
3044867caf4SLokesh Vutla};
3057fe968d2SVignesh Raghavendra
3064e8aa4e3SKishon Vijay Abraham I&serdes_ln_ctrl {
3074e8aa4e3SKishon Vijay Abraham I	idle-states = <AM64_SERDES0_LANE0_USB>;
3084e8aa4e3SKishon Vijay Abraham I};
3094e8aa4e3SKishon Vijay Abraham I
3104e8aa4e3SKishon Vijay Abraham I&serdes0 {
3114e8aa4e3SKishon Vijay Abraham I	serdes0_usb_link: phy@0 {
3124e8aa4e3SKishon Vijay Abraham I		reg = <0>;
3134e8aa4e3SKishon Vijay Abraham I		cdns,num-lanes = <1>;
3144e8aa4e3SKishon Vijay Abraham I		#phy-cells = <0>;
3154e8aa4e3SKishon Vijay Abraham I		cdns,phy-type = <PHY_TYPE_USB3>;
3164e8aa4e3SKishon Vijay Abraham I		resets = <&serdes_wiz0 1>;
3174e8aa4e3SKishon Vijay Abraham I	};
3184e8aa4e3SKishon Vijay Abraham I};
3194e8aa4e3SKishon Vijay Abraham I
3204e8aa4e3SKishon Vijay Abraham I&usbss0 {
3214e8aa4e3SKishon Vijay Abraham I	ti,vbus-divider;
3224e8aa4e3SKishon Vijay Abraham I};
3234e8aa4e3SKishon Vijay Abraham I
3244e8aa4e3SKishon Vijay Abraham I&usb0 {
3254e8aa4e3SKishon Vijay Abraham I	dr_mode = "host";
3264e8aa4e3SKishon Vijay Abraham I	maximum-speed = "super-speed";
3274e8aa4e3SKishon Vijay Abraham I	pinctrl-names = "default";
3284e8aa4e3SKishon Vijay Abraham I	pinctrl-0 = <&main_usb0_pins_default>;
3294e8aa4e3SKishon Vijay Abraham I	phys = <&serdes0_usb_link>;
3304e8aa4e3SKishon Vijay Abraham I	phy-names = "cdns3,usb3-phy";
3314e8aa4e3SKishon Vijay Abraham I};
3324e8aa4e3SKishon Vijay Abraham I
3337fe968d2SVignesh Raghavendra&cpsw3g {
3347fe968d2SVignesh Raghavendra	pinctrl-names = "default";
3357fe968d2SVignesh Raghavendra	pinctrl-0 = <&mdio1_pins_default
3367fe968d2SVignesh Raghavendra		     &rgmii1_pins_default
3377fe968d2SVignesh Raghavendra		     &rgmii2_pins_default>;
3387fe968d2SVignesh Raghavendra};
3397fe968d2SVignesh Raghavendra
3407fe968d2SVignesh Raghavendra&cpsw_port1 {
3417fe968d2SVignesh Raghavendra	phy-mode = "rgmii-rxid";
3427fe968d2SVignesh Raghavendra	phy-handle = <&cpsw3g_phy0>;
3437fe968d2SVignesh Raghavendra};
3447fe968d2SVignesh Raghavendra
3457fe968d2SVignesh Raghavendra&cpsw_port2 {
3467fe968d2SVignesh Raghavendra	phy-mode = "rgmii-rxid";
3477fe968d2SVignesh Raghavendra	phy-handle = <&cpsw3g_phy1>;
3487fe968d2SVignesh Raghavendra};
3497fe968d2SVignesh Raghavendra
3507fe968d2SVignesh Raghavendra&cpsw3g_mdio {
3517fe968d2SVignesh Raghavendra	cpsw3g_phy0: ethernet-phy@0 {
3527fe968d2SVignesh Raghavendra		reg = <0>;
3537fe968d2SVignesh Raghavendra		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
3547fe968d2SVignesh Raghavendra		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
3557fe968d2SVignesh Raghavendra	};
3567fe968d2SVignesh Raghavendra
3577fe968d2SVignesh Raghavendra	cpsw3g_phy1: ethernet-phy@1 {
3587fe968d2SVignesh Raghavendra		reg = <1>;
3597fe968d2SVignesh Raghavendra		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
3607fe968d2SVignesh Raghavendra		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
3617fe968d2SVignesh Raghavendra	};
3627fe968d2SVignesh Raghavendra};
363fad4e18fSVignesh Raghavendra
364fad4e18fSVignesh Raghavendra&tscadc0 {
365fad4e18fSVignesh Raghavendra	status = "disabled";
366fad4e18fSVignesh Raghavendra};
367e4e4e894SVignesh Raghavendra
368e4e4e894SVignesh Raghavendra&ospi0 {
369e4e4e894SVignesh Raghavendra	pinctrl-names = "default";
370e4e4e894SVignesh Raghavendra	pinctrl-0 = <&ospi0_pins_default>;
371e4e4e894SVignesh Raghavendra
372e4e4e894SVignesh Raghavendra	flash@0{
373e4e4e894SVignesh Raghavendra		compatible = "jedec,spi-nor";
374e4e4e894SVignesh Raghavendra		reg = <0x0>;
375e4e4e894SVignesh Raghavendra		spi-tx-bus-width = <8>;
376e4e4e894SVignesh Raghavendra		spi-rx-bus-width = <8>;
377e4e4e894SVignesh Raghavendra		spi-max-frequency = <25000000>;
378e4e4e894SVignesh Raghavendra		cdns,tshsl-ns = <60>;
379e4e4e894SVignesh Raghavendra		cdns,tsd2d-ns = <60>;
380e4e4e894SVignesh Raghavendra		cdns,tchsh-ns = <60>;
381e4e4e894SVignesh Raghavendra		cdns,tslch-ns = <60>;
382e4e4e894SVignesh Raghavendra		cdns,read-delay = <4>;
383e4e4e894SVignesh Raghavendra		#address-cells = <1>;
384e4e4e894SVignesh Raghavendra		#size-cells = <1>;
385e4e4e894SVignesh Raghavendra	};
386e4e4e894SVignesh Raghavendra};
3877dd84752SSuman Anna
3887dd84752SSuman Anna&mailbox0_cluster2 {
3897dd84752SSuman Anna	mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
3907dd84752SSuman Anna		ti,mbox-rx = <0 0 2>;
3917dd84752SSuman Anna		ti,mbox-tx = <1 0 2>;
3927dd84752SSuman Anna	};
3937dd84752SSuman Anna
3947dd84752SSuman Anna	mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
3957dd84752SSuman Anna		ti,mbox-rx = <2 0 2>;
3967dd84752SSuman Anna		ti,mbox-tx = <3 0 2>;
3977dd84752SSuman Anna	};
3987dd84752SSuman Anna};
3997dd84752SSuman Anna
4007dd84752SSuman Anna&mailbox0_cluster3 {
4017dd84752SSuman Anna	status = "disabled";
4027dd84752SSuman Anna};
4037dd84752SSuman Anna
4047dd84752SSuman Anna&mailbox0_cluster4 {
4057dd84752SSuman Anna	mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
4067dd84752SSuman Anna		ti,mbox-rx = <0 0 2>;
4077dd84752SSuman Anna		ti,mbox-tx = <1 0 2>;
4087dd84752SSuman Anna	};
4097dd84752SSuman Anna
4107dd84752SSuman Anna	mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
4117dd84752SSuman Anna		ti,mbox-rx = <2 0 2>;
4127dd84752SSuman Anna		ti,mbox-tx = <3 0 2>;
4137dd84752SSuman Anna	};
4147dd84752SSuman Anna};
4157dd84752SSuman Anna
4167dd84752SSuman Anna&mailbox0_cluster5 {
4177dd84752SSuman Anna	status = "disabled";
4187dd84752SSuman Anna};
4197dd84752SSuman Anna
4207dd84752SSuman Anna&mailbox0_cluster6 {
4217dd84752SSuman Anna	mbox_m4_0: mbox-m4-0 {
4227dd84752SSuman Anna		ti,mbox-rx = <0 0 2>;
4237dd84752SSuman Anna		ti,mbox-tx = <1 0 2>;
4247dd84752SSuman Anna	};
4257dd84752SSuman Anna};
4267dd84752SSuman Anna
4277dd84752SSuman Anna&mailbox0_cluster7 {
4287dd84752SSuman Anna	status = "disabled";
4297dd84752SSuman Anna};
430c90ec93dSKishon Vijay Abraham I
4310afadba4SSuman Anna&main_r5fss0_core0 {
4320afadba4SSuman Anna	mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>;
433d71abfccSSuman Anna	memory-region = <&main_r5fss0_core0_dma_memory_region>,
434d71abfccSSuman Anna			<&main_r5fss0_core0_memory_region>;
4350afadba4SSuman Anna};
4360afadba4SSuman Anna
4370afadba4SSuman Anna&main_r5fss0_core1 {
4380afadba4SSuman Anna	mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core1>;
439d71abfccSSuman Anna	memory-region = <&main_r5fss0_core1_dma_memory_region>,
440d71abfccSSuman Anna			<&main_r5fss0_core1_memory_region>;
4410afadba4SSuman Anna};
4420afadba4SSuman Anna
4430afadba4SSuman Anna&main_r5fss1_core0 {
4440afadba4SSuman Anna	mboxes = <&mailbox0_cluster4 &mbox_main_r5fss1_core0>;
445d71abfccSSuman Anna	memory-region = <&main_r5fss1_core0_dma_memory_region>,
446d71abfccSSuman Anna			<&main_r5fss1_core0_memory_region>;
4470afadba4SSuman Anna};
4480afadba4SSuman Anna
4490afadba4SSuman Anna&main_r5fss1_core1 {
4500afadba4SSuman Anna	mboxes = <&mailbox0_cluster4 &mbox_main_r5fss1_core1>;
451d71abfccSSuman Anna	memory-region = <&main_r5fss1_core1_dma_memory_region>,
452d71abfccSSuman Anna			<&main_r5fss1_core1_memory_region>;
4530afadba4SSuman Anna};
4540afadba4SSuman Anna
455c90ec93dSKishon Vijay Abraham I&pcie0_rc {
456c90ec93dSKishon Vijay Abraham I	status = "disabled";
457c90ec93dSKishon Vijay Abraham I};
458c90ec93dSKishon Vijay Abraham I
459c90ec93dSKishon Vijay Abraham I&pcie0_ep {
460c90ec93dSKishon Vijay Abraham I	status = "disabled";
461c90ec93dSKishon Vijay Abraham I};
462c1fa5ac6SLokesh Vutla
463c1fa5ac6SLokesh Vutla&ecap0 {
464c1fa5ac6SLokesh Vutla	/* PWM is available on Pin 1 of header J3 */
465c1fa5ac6SLokesh Vutla	pinctrl-names = "default";
466c1fa5ac6SLokesh Vutla	pinctrl-0 = <&main_ecap0_pins_default>;
467c1fa5ac6SLokesh Vutla};
468c1fa5ac6SLokesh Vutla
469c1fa5ac6SLokesh Vutla&ecap1 {
470c1fa5ac6SLokesh Vutla	status = "disabled";
471c1fa5ac6SLokesh Vutla};
472c1fa5ac6SLokesh Vutla
473c1fa5ac6SLokesh Vutla&ecap2 {
474c1fa5ac6SLokesh Vutla	status = "disabled";
475c1fa5ac6SLokesh Vutla};
476c1fa5ac6SLokesh Vutla
477c1fa5ac6SLokesh Vutla&epwm0 {
478c1fa5ac6SLokesh Vutla	status = "disabled";
479c1fa5ac6SLokesh Vutla};
480c1fa5ac6SLokesh Vutla
481c1fa5ac6SLokesh Vutla&epwm1 {
482c1fa5ac6SLokesh Vutla	status = "disabled";
483c1fa5ac6SLokesh Vutla};
484c1fa5ac6SLokesh Vutla
485c1fa5ac6SLokesh Vutla&epwm2 {
486c1fa5ac6SLokesh Vutla	status = "disabled";
487c1fa5ac6SLokesh Vutla};
488c1fa5ac6SLokesh Vutla
489c1fa5ac6SLokesh Vutla&epwm3 {
490c1fa5ac6SLokesh Vutla	status = "disabled";
491c1fa5ac6SLokesh Vutla};
492c1fa5ac6SLokesh Vutla
493c1fa5ac6SLokesh Vutla&epwm4 {
494c1fa5ac6SLokesh Vutla	/*
495c1fa5ac6SLokesh Vutla	 * EPWM4_A, EPWM4_B is available on Pin 32 and 33 on J4 (RPi hat)
496c1fa5ac6SLokesh Vutla	 * But RPi Hat will be used for other use cases, so marking epwm4 as disabled.
497c1fa5ac6SLokesh Vutla	 */
498c1fa5ac6SLokesh Vutla	status = "disabled";
499c1fa5ac6SLokesh Vutla};
500c1fa5ac6SLokesh Vutla
501c1fa5ac6SLokesh Vutla&epwm5 {
502c1fa5ac6SLokesh Vutla	/*
503c1fa5ac6SLokesh Vutla	 * EPWM5_A, EPWM5_B is available on Pin 29 and 31 on J4 (RPi hat)
504c1fa5ac6SLokesh Vutla	 * But RPi Hat will be used for other use cases, so marking epwm5 as disabled.
505c1fa5ac6SLokesh Vutla	 */
506c1fa5ac6SLokesh Vutla	status = "disabled";
507c1fa5ac6SLokesh Vutla};
508c1fa5ac6SLokesh Vutla
509c1fa5ac6SLokesh Vutla&epwm6 {
510c1fa5ac6SLokesh Vutla	status = "disabled";
511c1fa5ac6SLokesh Vutla};
512c1fa5ac6SLokesh Vutla
513c1fa5ac6SLokesh Vutla&epwm7 {
514c1fa5ac6SLokesh Vutla	status = "disabled";
515c1fa5ac6SLokesh Vutla};
516c1fa5ac6SLokesh Vutla
517c1fa5ac6SLokesh Vutla&epwm8 {
518c1fa5ac6SLokesh Vutla	status = "disabled";
519c1fa5ac6SLokesh Vutla};
520*c9087e38SSuman Anna
521*c9087e38SSuman Anna&icssg0_mdio {
522*c9087e38SSuman Anna	status = "disabled";
523*c9087e38SSuman Anna};
524*c9087e38SSuman Anna
525*c9087e38SSuman Anna&icssg1_mdio {
526*c9087e38SSuman Anna	status = "disabled";
527*c9087e38SSuman Anna};
528