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	};
128065d6261SKishon Vijay Abraham I
129065d6261SKishon Vijay Abraham I	com8_ls_en: regulator-1 {
130065d6261SKishon Vijay Abraham I		compatible = "regulator-fixed";
131065d6261SKishon Vijay Abraham I		regulator-name = "com8_ls_en";
132065d6261SKishon Vijay Abraham I		regulator-min-microvolt = <3300000>;
133065d6261SKishon Vijay Abraham I		regulator-max-microvolt = <3300000>;
134065d6261SKishon Vijay Abraham I		regulator-always-on;
135065d6261SKishon Vijay Abraham I		regulator-boot-on;
136065d6261SKishon Vijay Abraham I		pinctrl-0 = <&main_com8_ls_en_pins_default>;
137065d6261SKishon Vijay Abraham I		pinctrl-names = "default";
138065d6261SKishon Vijay Abraham I		gpio = <&main_gpio0 62 GPIO_ACTIVE_LOW>;
139065d6261SKishon Vijay Abraham I	};
140065d6261SKishon Vijay Abraham I
141065d6261SKishon Vijay Abraham I	wlan_en: regulator-2 {
142065d6261SKishon Vijay Abraham I		/* output of SN74AVC4T245RSVR */
143065d6261SKishon Vijay Abraham I		compatible = "regulator-fixed";
144065d6261SKishon Vijay Abraham I		regulator-name = "wlan_en";
145065d6261SKishon Vijay Abraham I		regulator-min-microvolt = <1800000>;
146065d6261SKishon Vijay Abraham I		regulator-max-microvolt = <1800000>;
147065d6261SKishon Vijay Abraham I		enable-active-high;
148065d6261SKishon Vijay Abraham I		pinctrl-0 = <&main_wlan_en_pins_default>;
149065d6261SKishon Vijay Abraham I		pinctrl-names = "default";
150065d6261SKishon Vijay Abraham I		vin-supply = <&com8_ls_en>;
151065d6261SKishon Vijay Abraham I		gpio = <&main_gpio0 48 GPIO_ACTIVE_HIGH>;
152065d6261SKishon Vijay Abraham I	};
1534867caf4SLokesh Vutla};
1544867caf4SLokesh Vutla
1554867caf4SLokesh Vutla&main_pmx0 {
1564867caf4SLokesh Vutla	main_mmc1_pins_default: main-mmc1-pins-default {
1574867caf4SLokesh Vutla		pinctrl-single,pins = <
1584867caf4SLokesh Vutla			AM64X_IOPAD(0x0294, PIN_INPUT, 0) /* (J19) MMC1_CMD */
1594867caf4SLokesh Vutla			AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* (#N/A) MMC1_CLKLB */
1604867caf4SLokesh Vutla			AM64X_IOPAD(0x028c, PIN_INPUT, 0) /* (L20) MMC1_CLK */
1614867caf4SLokesh Vutla			AM64X_IOPAD(0x0288, PIN_INPUT, 0) /* (K21) MMC1_DAT0 */
1624867caf4SLokesh Vutla			AM64X_IOPAD(0x0284, PIN_INPUT, 0) /* (L21) MMC1_DAT1 */
1634867caf4SLokesh Vutla			AM64X_IOPAD(0x0280, PIN_INPUT, 0) /* (K19) MMC1_DAT2 */
1644867caf4SLokesh Vutla			AM64X_IOPAD(0x027c, PIN_INPUT, 0) /* (K18) MMC1_DAT3 */
1654867caf4SLokesh Vutla			AM64X_IOPAD(0x0298, PIN_INPUT, 0) /* (D19) MMC1_SDCD */
1664867caf4SLokesh Vutla		>;
1674867caf4SLokesh Vutla	};
1684867caf4SLokesh Vutla
169c553bf25SAswath Govindraju	main_uart0_pins_default: main-uart0-pins-default {
170c553bf25SAswath Govindraju		pinctrl-single,pins = <
171c553bf25SAswath Govindraju			AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
172c553bf25SAswath Govindraju			AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */
173c553bf25SAswath Govindraju			AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */
174c553bf25SAswath Govindraju			AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */
175c553bf25SAswath Govindraju		>;
176c553bf25SAswath Govindraju	};
177c553bf25SAswath Govindraju
1784e8aa4e3SKishon Vijay Abraham I	main_usb0_pins_default: main-usb0-pins-default {
1794e8aa4e3SKishon Vijay Abraham I		pinctrl-single,pins = <
1804e8aa4e3SKishon Vijay Abraham I			AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
1814e8aa4e3SKishon Vijay Abraham I		>;
1824e8aa4e3SKishon Vijay Abraham I	};
1834e8aa4e3SKishon Vijay Abraham I
1844867caf4SLokesh Vutla	main_i2c1_pins_default: main-i2c1-pins-default {
1854867caf4SLokesh Vutla		pinctrl-single,pins = <
1864867caf4SLokesh Vutla			AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
1874867caf4SLokesh Vutla			AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */
1884867caf4SLokesh Vutla		>;
1894867caf4SLokesh Vutla	};
1907fe968d2SVignesh Raghavendra
1917fe968d2SVignesh Raghavendra	mdio1_pins_default: mdio1-pins-default {
1927fe968d2SVignesh Raghavendra		pinctrl-single,pins = <
1937fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x01fc, PIN_OUTPUT, 4) /* (R2) PRG0_PRU1_GPO19.MDIO0_MDC */
1947fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x01f8, PIN_INPUT, 4) /* (P5) PRG0_PRU1_GPO18.MDIO0_MDIO */
1957fe968d2SVignesh Raghavendra		>;
1967fe968d2SVignesh Raghavendra	};
1977fe968d2SVignesh Raghavendra
1987fe968d2SVignesh Raghavendra	rgmii1_pins_default: rgmii1-pins-default {
1997fe968d2SVignesh Raghavendra		pinctrl-single,pins = <
2007fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x011c, PIN_INPUT, 4) /* (AA13) PRG1_PRU1_GPO5.RGMII1_RD0 */
2017fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0128, PIN_INPUT, 4) /* (U12) PRG1_PRU1_GPO8.RGMII1_RD1 */
2027fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0150, PIN_INPUT, 4) /* (Y13) PRG1_PRU1_GPO18.RGMII1_RD2 */
2037fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0154, PIN_INPUT, 4) /* (V12) PRG1_PRU1_GPO19.RGMII1_RD3 */
2047fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00d8, PIN_INPUT, 4) /* (W13) PRG1_PRU0_GPO8.RGMII1_RXC */
2057fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00cc, PIN_INPUT, 4) /* (V13) PRG1_PRU0_GPO5.RGMII1_RX_CTL */
2067fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0124, PIN_OUTPUT, 4) /* (V15) PRG1_PRU1_GPO7.RGMII1_TD0 */
2077fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x012c, PIN_OUTPUT, 4) /* (V14) PRG1_PRU1_GPO9.RGMII1_TD1 */
2087fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0130, PIN_OUTPUT, 4) /* (W14) PRG1_PRU1_GPO10.RGMII1_TD2 */
2097fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x014c, PIN_OUTPUT, 4) /* (AA14) PRG1_PRU1_GPO17.RGMII1_TD3 */
2107fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00e0, PIN_OUTPUT, 4) /* (U14) PRG1_PRU0_GPO10.RGMII1_TXC */
2117fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x00dc, PIN_OUTPUT, 4) /* (U15) PRG1_PRU0_GPO9.RGMII1_TX_CTL */
2127fe968d2SVignesh Raghavendra		>;
2137fe968d2SVignesh Raghavendra	};
2147fe968d2SVignesh Raghavendra
2157fe968d2SVignesh Raghavendra       rgmii2_pins_default: rgmii2-pins-default {
2167fe968d2SVignesh Raghavendra		pinctrl-single,pins = <
2177fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0108, PIN_INPUT, 4) /* (W11) PRG1_PRU1_GPO0.RGMII2_RD0 */
2187fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x010c, PIN_INPUT, 4) /* (V11) PRG1_PRU1_GPO1.RGMII2_RD1 */
2197fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0110, PIN_INPUT, 4) /* (AA12) PRG1_PRU1_GPO2.RGMII2_RD2 */
2207fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0114, PIN_INPUT, 4) /* (Y12) PRG1_PRU1_GPO3.RGMII2_RD3 */
2217fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0120, PIN_INPUT, 4) /* (U11) PRG1_PRU1_GPO6.RGMII2_RXC */
2227fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0118, PIN_INPUT, 4) /* (W12) PRG1_PRU1_GPO4.RGMII2_RX_CTL */
2237fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0134, PIN_OUTPUT, 4) /* (AA10) PRG1_PRU1_GPO11.RGMII2_TD0 */
2247fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0138, PIN_OUTPUT, 4) /* (V10) PRG1_PRU1_GPO12.RGMII2_TD1 */
2257fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x013c, PIN_OUTPUT, 4) /* (U10) PRG1_PRU1_GPO13.RGMII2_TD2 */
2267fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0140, PIN_OUTPUT, 4) /* (AA11) PRG1_PRU1_GPO14.RGMII2_TD3 */
2277fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0148, PIN_OUTPUT, 4) /* (Y10) PRG1_PRU1_GPO16.RGMII2_TXC */
2287fe968d2SVignesh Raghavendra			AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
2297fe968d2SVignesh Raghavendra		>;
2307fe968d2SVignesh Raghavendra	};
231e4e4e894SVignesh Raghavendra
232e4e4e894SVignesh Raghavendra	ospi0_pins_default: ospi0-pins-default {
233e4e4e894SVignesh Raghavendra		pinctrl-single,pins = <
234e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0000, PIN_OUTPUT, 0) /* (N20) OSPI0_CLK */
235e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x002c, PIN_OUTPUT, 0) /* (L19) OSPI0_CSn0 */
236e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x000c, PIN_INPUT, 0) /* (M19) OSPI0_D0 */
237e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0010, PIN_INPUT, 0) /* (M18) OSPI0_D1 */
238e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0014, PIN_INPUT, 0) /* (M20) OSPI0_D2 */
239e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0018, PIN_INPUT, 0) /* (M21) OSPI0_D3 */
240e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x001c, PIN_INPUT, 0) /* (P21) OSPI0_D4 */
241e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0020, PIN_INPUT, 0) /* (P20) OSPI0_D5 */
242e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0024, PIN_INPUT, 0) /* (N18) OSPI0_D6 */
243e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0028, PIN_INPUT, 0) /* (M17) OSPI0_D7 */
244e4e4e894SVignesh Raghavendra			AM64X_IOPAD(0x0008, PIN_INPUT, 0) /* (N19) OSPI0_DQS */
245e4e4e894SVignesh Raghavendra		>;
246e4e4e894SVignesh Raghavendra	};
247c1fa5ac6SLokesh Vutla
248c1fa5ac6SLokesh Vutla	main_ecap0_pins_default: main-ecap0-pins-default {
249c1fa5ac6SLokesh Vutla		pinctrl-single,pins = <
250c1fa5ac6SLokesh Vutla			AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */
251c1fa5ac6SLokesh Vutla		>;
252c1fa5ac6SLokesh Vutla	};
253065d6261SKishon Vijay Abraham I	main_wlan_en_pins_default: main-wlan-en-pins-default {
254065d6261SKishon Vijay Abraham I		pinctrl-single,pins = <
255065d6261SKishon Vijay Abraham I			AM64X_IOPAD(0x00c4, PIN_OUTPUT_PULLUP, 7) /* (V8) GPIO0_48 */
256065d6261SKishon Vijay Abraham I		>;
257065d6261SKishon Vijay Abraham I	};
258065d6261SKishon Vijay Abraham I
259065d6261SKishon Vijay Abraham I	main_com8_ls_en_pins_default: main-com8-ls-en-pins-default {
260065d6261SKishon Vijay Abraham I		pinctrl-single,pins = <
261065d6261SKishon Vijay Abraham I			AM64X_IOPAD(0x00fc, PIN_OUTPUT, 7) /* (U7) PRG1_PRU0_GPO17.GPIO0_62 */
262065d6261SKishon Vijay Abraham I		>;
263065d6261SKishon Vijay Abraham I	};
264065d6261SKishon Vijay Abraham I
265065d6261SKishon Vijay Abraham I	main_wlan_pins_default: main-wlan-pins-default {
266065d6261SKishon Vijay Abraham I		pinctrl-single,pins = <
267065d6261SKishon Vijay Abraham I			AM64X_IOPAD(0x00bc, PIN_INPUT, 7) /* (U8) GPIO0_46 */
268065d6261SKishon Vijay Abraham I		>;
269065d6261SKishon Vijay Abraham I	};
2704867caf4SLokesh Vutla};
2714867caf4SLokesh Vutla
2724867caf4SLokesh Vutla&mcu_uart0 {
2734867caf4SLokesh Vutla	status = "disabled";
2744867caf4SLokesh Vutla};
2754867caf4SLokesh Vutla
2764867caf4SLokesh Vutla&mcu_uart1 {
2774867caf4SLokesh Vutla	status = "disabled";
2784867caf4SLokesh Vutla};
2794867caf4SLokesh Vutla
280c553bf25SAswath Govindraju&main_uart0 {
281c553bf25SAswath Govindraju	pinctrl-names = "default";
282c553bf25SAswath Govindraju	pinctrl-0 = <&main_uart0_pins_default>;
283c553bf25SAswath Govindraju};
284c553bf25SAswath Govindraju
2854867caf4SLokesh Vutla&main_uart1 {
2864867caf4SLokesh Vutla	/* main_uart1 is reserved for firmware usage */
2874867caf4SLokesh Vutla	status = "reserved";
2884867caf4SLokesh Vutla};
2894867caf4SLokesh Vutla
2904867caf4SLokesh Vutla&main_uart2 {
2914867caf4SLokesh Vutla	status = "disabled";
2924867caf4SLokesh Vutla};
2934867caf4SLokesh Vutla
2944867caf4SLokesh Vutla&main_uart3 {
2954867caf4SLokesh Vutla	status = "disabled";
2964867caf4SLokesh Vutla};
2974867caf4SLokesh Vutla
2984867caf4SLokesh Vutla&main_uart4 {
2994867caf4SLokesh Vutla	status = "disabled";
3004867caf4SLokesh Vutla};
3014867caf4SLokesh Vutla
3024867caf4SLokesh Vutla&main_uart5 {
3034867caf4SLokesh Vutla	status = "disabled";
3044867caf4SLokesh Vutla};
3054867caf4SLokesh Vutla
3064867caf4SLokesh Vutla&main_uart6 {
3074867caf4SLokesh Vutla	status = "disabled";
3084867caf4SLokesh Vutla};
3094867caf4SLokesh Vutla
3104867caf4SLokesh Vutla&mcu_i2c0 {
3114867caf4SLokesh Vutla	status = "disabled";
3124867caf4SLokesh Vutla};
3134867caf4SLokesh Vutla
3144867caf4SLokesh Vutla&mcu_i2c1 {
3154867caf4SLokesh Vutla	status = "disabled";
3164867caf4SLokesh Vutla};
3174867caf4SLokesh Vutla
3184867caf4SLokesh Vutla&main_i2c1 {
3194867caf4SLokesh Vutla	pinctrl-names = "default";
3204867caf4SLokesh Vutla	pinctrl-0 = <&main_i2c1_pins_default>;
3214867caf4SLokesh Vutla	clock-frequency = <400000>;
3224867caf4SLokesh Vutla
3234867caf4SLokesh Vutla	exp1: gpio@70 {
3244867caf4SLokesh Vutla		compatible = "nxp,pca9538";
3254867caf4SLokesh Vutla		reg = <0x70>;
3264867caf4SLokesh Vutla		gpio-controller;
3274867caf4SLokesh Vutla		#gpio-cells = <2>;
3284867caf4SLokesh Vutla		gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
3294867caf4SLokesh Vutla				  "PRU_DETECT", "MMC1_SD_EN",
3304867caf4SLokesh Vutla				  "VPP_LDO_EN", "RPI_PS_3V3_En",
3314867caf4SLokesh Vutla				  "RPI_PS_5V0_En", "RPI_HAT_DETECT";
3324867caf4SLokesh Vutla	};
3334867caf4SLokesh Vutla};
3344867caf4SLokesh Vutla
3354867caf4SLokesh Vutla&main_i2c3 {
3364867caf4SLokesh Vutla	status = "disabled";
3374867caf4SLokesh Vutla};
3384867caf4SLokesh Vutla
3394867caf4SLokesh Vutla&mcu_spi0 {
3404867caf4SLokesh Vutla	status = "disabled";
3414867caf4SLokesh Vutla};
3424867caf4SLokesh Vutla
3434867caf4SLokesh Vutla&mcu_spi1 {
3444867caf4SLokesh Vutla	status = "disabled";
3454867caf4SLokesh Vutla};
3464867caf4SLokesh Vutla
347d5a4d541SAswath Govindraju/* mcu_gpio0 is reserved for mcu firmware usage */
348d5a4d541SAswath Govindraju&mcu_gpio0 {
349d5a4d541SAswath Govindraju	status = "reserved";
350d5a4d541SAswath Govindraju};
351d5a4d541SAswath Govindraju
352065d6261SKishon Vijay Abraham I&sdhci0 {
353065d6261SKishon Vijay Abraham I	vmmc-supply = <&wlan_en>;
354065d6261SKishon Vijay Abraham I	bus-width = <4>;
355065d6261SKishon Vijay Abraham I	non-removable;
356065d6261SKishon Vijay Abraham I	cap-power-off-card;
357065d6261SKishon Vijay Abraham I	keep-power-in-suspend;
358065d6261SKishon Vijay Abraham I	ti,driver-strength-ohm = <50>;
359065d6261SKishon Vijay Abraham I
360065d6261SKishon Vijay Abraham I	#address-cells = <1>;
361065d6261SKishon Vijay Abraham I	#size-cells = <0>;
362065d6261SKishon Vijay Abraham I	wlcore: wlcore@2 {
363065d6261SKishon Vijay Abraham I		compatible = "ti,wl1837";
364065d6261SKishon Vijay Abraham I		reg = <2>;
365065d6261SKishon Vijay Abraham I		pinctrl-0 = <&main_wlan_pins_default>;
366065d6261SKishon Vijay Abraham I		pinctrl-names = "default";
367065d6261SKishon Vijay Abraham I		interrupt-parent = <&main_gpio0>;
368065d6261SKishon Vijay Abraham I		interrupts = <46 IRQ_TYPE_EDGE_FALLING>;
369065d6261SKishon Vijay Abraham I	};
370065d6261SKishon Vijay Abraham I};
371065d6261SKishon Vijay Abraham I
3724867caf4SLokesh Vutla&sdhci1 {
3734867caf4SLokesh Vutla	/* SD/MMC */
3744867caf4SLokesh Vutla	vmmc-supply = <&vdd_mmc1>;
3754867caf4SLokesh Vutla	pinctrl-names = "default";
3764867caf4SLokesh Vutla	bus-width = <4>;
3774867caf4SLokesh Vutla	pinctrl-0 = <&main_mmc1_pins_default>;
3784867caf4SLokesh Vutla	ti,driver-strength-ohm = <50>;
3794867caf4SLokesh Vutla	disable-wp;
3804867caf4SLokesh Vutla};
3817fe968d2SVignesh Raghavendra
3824e8aa4e3SKishon Vijay Abraham I&serdes_ln_ctrl {
3834e8aa4e3SKishon Vijay Abraham I	idle-states = <AM64_SERDES0_LANE0_USB>;
3844e8aa4e3SKishon Vijay Abraham I};
3854e8aa4e3SKishon Vijay Abraham I
3864e8aa4e3SKishon Vijay Abraham I&serdes0 {
3874e8aa4e3SKishon Vijay Abraham I	serdes0_usb_link: phy@0 {
3884e8aa4e3SKishon Vijay Abraham I		reg = <0>;
3894e8aa4e3SKishon Vijay Abraham I		cdns,num-lanes = <1>;
3904e8aa4e3SKishon Vijay Abraham I		#phy-cells = <0>;
3914e8aa4e3SKishon Vijay Abraham I		cdns,phy-type = <PHY_TYPE_USB3>;
3924e8aa4e3SKishon Vijay Abraham I		resets = <&serdes_wiz0 1>;
3934e8aa4e3SKishon Vijay Abraham I	};
3944e8aa4e3SKishon Vijay Abraham I};
3954e8aa4e3SKishon Vijay Abraham I
3964e8aa4e3SKishon Vijay Abraham I&usbss0 {
3974e8aa4e3SKishon Vijay Abraham I	ti,vbus-divider;
3984e8aa4e3SKishon Vijay Abraham I};
3994e8aa4e3SKishon Vijay Abraham I
4004e8aa4e3SKishon Vijay Abraham I&usb0 {
4014e8aa4e3SKishon Vijay Abraham I	dr_mode = "host";
4024e8aa4e3SKishon Vijay Abraham I	maximum-speed = "super-speed";
4034e8aa4e3SKishon Vijay Abraham I	pinctrl-names = "default";
4044e8aa4e3SKishon Vijay Abraham I	pinctrl-0 = <&main_usb0_pins_default>;
4054e8aa4e3SKishon Vijay Abraham I	phys = <&serdes0_usb_link>;
4064e8aa4e3SKishon Vijay Abraham I	phy-names = "cdns3,usb3-phy";
4074e8aa4e3SKishon Vijay Abraham I};
4084e8aa4e3SKishon Vijay Abraham I
4097fe968d2SVignesh Raghavendra&cpsw3g {
4107fe968d2SVignesh Raghavendra	pinctrl-names = "default";
4117fe968d2SVignesh Raghavendra	pinctrl-0 = <&mdio1_pins_default
4127fe968d2SVignesh Raghavendra		     &rgmii1_pins_default
4137fe968d2SVignesh Raghavendra		     &rgmii2_pins_default>;
4147fe968d2SVignesh Raghavendra};
4157fe968d2SVignesh Raghavendra
4167fe968d2SVignesh Raghavendra&cpsw_port1 {
4177fe968d2SVignesh Raghavendra	phy-mode = "rgmii-rxid";
4187fe968d2SVignesh Raghavendra	phy-handle = <&cpsw3g_phy0>;
4197fe968d2SVignesh Raghavendra};
4207fe968d2SVignesh Raghavendra
4217fe968d2SVignesh Raghavendra&cpsw_port2 {
4227fe968d2SVignesh Raghavendra	phy-mode = "rgmii-rxid";
4237fe968d2SVignesh Raghavendra	phy-handle = <&cpsw3g_phy1>;
4247fe968d2SVignesh Raghavendra};
4257fe968d2SVignesh Raghavendra
4267fe968d2SVignesh Raghavendra&cpsw3g_mdio {
4277fe968d2SVignesh Raghavendra	cpsw3g_phy0: ethernet-phy@0 {
4287fe968d2SVignesh Raghavendra		reg = <0>;
4297fe968d2SVignesh Raghavendra		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
4307fe968d2SVignesh Raghavendra		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
4317fe968d2SVignesh Raghavendra	};
4327fe968d2SVignesh Raghavendra
4337fe968d2SVignesh Raghavendra	cpsw3g_phy1: ethernet-phy@1 {
4347fe968d2SVignesh Raghavendra		reg = <1>;
4357fe968d2SVignesh Raghavendra		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
4367fe968d2SVignesh Raghavendra		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
4377fe968d2SVignesh Raghavendra	};
4387fe968d2SVignesh Raghavendra};
439fad4e18fSVignesh Raghavendra
440fad4e18fSVignesh Raghavendra&tscadc0 {
441fad4e18fSVignesh Raghavendra	status = "disabled";
442fad4e18fSVignesh Raghavendra};
443e4e4e894SVignesh Raghavendra
444e4e4e894SVignesh Raghavendra&ospi0 {
445e4e4e894SVignesh Raghavendra	pinctrl-names = "default";
446e4e4e894SVignesh Raghavendra	pinctrl-0 = <&ospi0_pins_default>;
447e4e4e894SVignesh Raghavendra
448e4e4e894SVignesh Raghavendra	flash@0 {
449e4e4e894SVignesh Raghavendra		compatible = "jedec,spi-nor";
450e4e4e894SVignesh Raghavendra		reg = <0x0>;
451e4e4e894SVignesh Raghavendra		spi-tx-bus-width = <8>;
452e4e4e894SVignesh Raghavendra		spi-rx-bus-width = <8>;
453e4e4e894SVignesh Raghavendra		spi-max-frequency = <25000000>;
454e4e4e894SVignesh Raghavendra		cdns,tshsl-ns = <60>;
455e4e4e894SVignesh Raghavendra		cdns,tsd2d-ns = <60>;
456e4e4e894SVignesh Raghavendra		cdns,tchsh-ns = <60>;
457e4e4e894SVignesh Raghavendra		cdns,tslch-ns = <60>;
458e4e4e894SVignesh Raghavendra		cdns,read-delay = <4>;
459e4e4e894SVignesh Raghavendra	};
460e4e4e894SVignesh Raghavendra};
4617dd84752SSuman Anna
4627dd84752SSuman Anna&mailbox0_cluster2 {
4637dd84752SSuman Anna	mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
4647dd84752SSuman Anna		ti,mbox-rx = <0 0 2>;
4657dd84752SSuman Anna		ti,mbox-tx = <1 0 2>;
4667dd84752SSuman Anna	};
4677dd84752SSuman Anna
4687dd84752SSuman Anna	mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
4697dd84752SSuman Anna		ti,mbox-rx = <2 0 2>;
4707dd84752SSuman Anna		ti,mbox-tx = <3 0 2>;
4717dd84752SSuman Anna	};
4727dd84752SSuman Anna};
4737dd84752SSuman Anna
4747dd84752SSuman Anna&mailbox0_cluster3 {
4757dd84752SSuman Anna	status = "disabled";
4767dd84752SSuman Anna};
4777dd84752SSuman Anna
4787dd84752SSuman Anna&mailbox0_cluster4 {
4797dd84752SSuman Anna	mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
4807dd84752SSuman Anna		ti,mbox-rx = <0 0 2>;
4817dd84752SSuman Anna		ti,mbox-tx = <1 0 2>;
4827dd84752SSuman Anna	};
4837dd84752SSuman Anna
4847dd84752SSuman Anna	mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
4857dd84752SSuman Anna		ti,mbox-rx = <2 0 2>;
4867dd84752SSuman Anna		ti,mbox-tx = <3 0 2>;
4877dd84752SSuman Anna	};
4887dd84752SSuman Anna};
4897dd84752SSuman Anna
4907dd84752SSuman Anna&mailbox0_cluster5 {
4917dd84752SSuman Anna	status = "disabled";
4927dd84752SSuman Anna};
4937dd84752SSuman Anna
4947dd84752SSuman Anna&mailbox0_cluster6 {
4957dd84752SSuman Anna	mbox_m4_0: mbox-m4-0 {
4967dd84752SSuman Anna		ti,mbox-rx = <0 0 2>;
4977dd84752SSuman Anna		ti,mbox-tx = <1 0 2>;
4987dd84752SSuman Anna	};
4997dd84752SSuman Anna};
5007dd84752SSuman Anna
5017dd84752SSuman Anna&mailbox0_cluster7 {
5027dd84752SSuman Anna	status = "disabled";
5037dd84752SSuman Anna};
504c90ec93dSKishon Vijay Abraham I
5050afadba4SSuman Anna&main_r5fss0_core0 {
5060afadba4SSuman Anna	mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>;
507d71abfccSSuman Anna	memory-region = <&main_r5fss0_core0_dma_memory_region>,
508d71abfccSSuman Anna			<&main_r5fss0_core0_memory_region>;
5090afadba4SSuman Anna};
5100afadba4SSuman Anna
5110afadba4SSuman Anna&main_r5fss0_core1 {
5120afadba4SSuman Anna	mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core1>;
513d71abfccSSuman Anna	memory-region = <&main_r5fss0_core1_dma_memory_region>,
514d71abfccSSuman Anna			<&main_r5fss0_core1_memory_region>;
5150afadba4SSuman Anna};
5160afadba4SSuman Anna
5170afadba4SSuman Anna&main_r5fss1_core0 {
5180afadba4SSuman Anna	mboxes = <&mailbox0_cluster4 &mbox_main_r5fss1_core0>;
519d71abfccSSuman Anna	memory-region = <&main_r5fss1_core0_dma_memory_region>,
520d71abfccSSuman Anna			<&main_r5fss1_core0_memory_region>;
5210afadba4SSuman Anna};
5220afadba4SSuman Anna
5230afadba4SSuman Anna&main_r5fss1_core1 {
5240afadba4SSuman Anna	mboxes = <&mailbox0_cluster4 &mbox_main_r5fss1_core1>;
525d71abfccSSuman Anna	memory-region = <&main_r5fss1_core1_dma_memory_region>,
526d71abfccSSuman Anna			<&main_r5fss1_core1_memory_region>;
5270afadba4SSuman Anna};
5280afadba4SSuman Anna
529c90ec93dSKishon Vijay Abraham I&pcie0_rc {
530c90ec93dSKishon Vijay Abraham I	status = "disabled";
531c90ec93dSKishon Vijay Abraham I};
532c90ec93dSKishon Vijay Abraham I
533c90ec93dSKishon Vijay Abraham I&pcie0_ep {
534c90ec93dSKishon Vijay Abraham I	status = "disabled";
535c90ec93dSKishon Vijay Abraham I};
536c1fa5ac6SLokesh Vutla
537c1fa5ac6SLokesh Vutla&ecap0 {
538c1fa5ac6SLokesh Vutla	/* PWM is available on Pin 1 of header J3 */
539c1fa5ac6SLokesh Vutla	pinctrl-names = "default";
540c1fa5ac6SLokesh Vutla	pinctrl-0 = <&main_ecap0_pins_default>;
541c1fa5ac6SLokesh Vutla};
542c1fa5ac6SLokesh Vutla
543c1fa5ac6SLokesh Vutla&ecap1 {
544c1fa5ac6SLokesh Vutla	status = "disabled";
545c1fa5ac6SLokesh Vutla};
546c1fa5ac6SLokesh Vutla
547c1fa5ac6SLokesh Vutla&ecap2 {
548c1fa5ac6SLokesh Vutla	status = "disabled";
549c1fa5ac6SLokesh Vutla};
550c1fa5ac6SLokesh Vutla
551c1fa5ac6SLokesh Vutla&epwm0 {
552c1fa5ac6SLokesh Vutla	status = "disabled";
553c1fa5ac6SLokesh Vutla};
554c1fa5ac6SLokesh Vutla
555c1fa5ac6SLokesh Vutla&epwm1 {
556c1fa5ac6SLokesh Vutla	status = "disabled";
557c1fa5ac6SLokesh Vutla};
558c1fa5ac6SLokesh Vutla
559c1fa5ac6SLokesh Vutla&epwm2 {
560c1fa5ac6SLokesh Vutla	status = "disabled";
561c1fa5ac6SLokesh Vutla};
562c1fa5ac6SLokesh Vutla
563c1fa5ac6SLokesh Vutla&epwm3 {
564c1fa5ac6SLokesh Vutla	status = "disabled";
565c1fa5ac6SLokesh Vutla};
566c1fa5ac6SLokesh Vutla
567c1fa5ac6SLokesh Vutla&epwm4 {
568c1fa5ac6SLokesh Vutla	/*
569c1fa5ac6SLokesh Vutla	 * EPWM4_A, EPWM4_B is available on Pin 32 and 33 on J4 (RPi hat)
570c1fa5ac6SLokesh Vutla	 * But RPi Hat will be used for other use cases, so marking epwm4 as disabled.
571c1fa5ac6SLokesh Vutla	 */
572c1fa5ac6SLokesh Vutla	status = "disabled";
573c1fa5ac6SLokesh Vutla};
574c1fa5ac6SLokesh Vutla
575c1fa5ac6SLokesh Vutla&epwm5 {
576c1fa5ac6SLokesh Vutla	/*
577c1fa5ac6SLokesh Vutla	 * EPWM5_A, EPWM5_B is available on Pin 29 and 31 on J4 (RPi hat)
578c1fa5ac6SLokesh Vutla	 * But RPi Hat will be used for other use cases, so marking epwm5 as disabled.
579c1fa5ac6SLokesh Vutla	 */
580c1fa5ac6SLokesh Vutla	status = "disabled";
581c1fa5ac6SLokesh Vutla};
582c1fa5ac6SLokesh Vutla
583c1fa5ac6SLokesh Vutla&epwm6 {
584c1fa5ac6SLokesh Vutla	status = "disabled";
585c1fa5ac6SLokesh Vutla};
586c1fa5ac6SLokesh Vutla
587c1fa5ac6SLokesh Vutla&epwm7 {
588c1fa5ac6SLokesh Vutla	status = "disabled";
589c1fa5ac6SLokesh Vutla};
590c1fa5ac6SLokesh Vutla
591c1fa5ac6SLokesh Vutla&epwm8 {
592c1fa5ac6SLokesh Vutla	status = "disabled";
593c1fa5ac6SLokesh Vutla};
594c9087e38SSuman Anna
595c9087e38SSuman Anna&icssg0_mdio {
596c9087e38SSuman Anna	status = "disabled";
597c9087e38SSuman Anna};
598c9087e38SSuman Anna
599c9087e38SSuman Anna&icssg1_mdio {
600c9087e38SSuman Anna	status = "disabled";
601c9087e38SSuman Anna};
6022f474da9SAswath Govindraju
6032f474da9SAswath Govindraju&main_mcan0 {
6042f474da9SAswath Govindraju	status = "disabled";
6052f474da9SAswath Govindraju};
6062f474da9SAswath Govindraju
6072f474da9SAswath Govindraju&main_mcan1 {
6082f474da9SAswath Govindraju	status = "disabled";
6092f474da9SAswath Govindraju};
610*5ec06904SRoger Quadros
611*5ec06904SRoger Quadros&gpmc0 {
612*5ec06904SRoger Quadros	status = "disabled";
613*5ec06904SRoger Quadros};
614