18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci/dts-v1/; 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#include "k3-j7200-som-p0.dtsi" 98c2ecf20Sopenharmony_ci#include <dt-bindings/net/ti-dp83867.h> 108c2ecf20Sopenharmony_ci#include <dt-bindings/mux/ti-serdes.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/ { 138c2ecf20Sopenharmony_ci chosen { 148c2ecf20Sopenharmony_ci stdout-path = "serial2:115200n8"; 158c2ecf20Sopenharmony_ci bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000"; 168c2ecf20Sopenharmony_ci }; 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci&wkup_pmx2 { 208c2ecf20Sopenharmony_ci mcu_cpsw_pins_default: mcu-cpsw-pins-default { 218c2ecf20Sopenharmony_ci pinctrl-single,pins = < 228c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */ 238c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0004, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */ 248c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0008, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */ 258c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x000c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */ 268c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0010, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */ 278c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0014, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */ 288c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */ 298c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */ 308c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */ 318c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x002c, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */ 328c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0018, PIN_OUTPUT, 0) /* MCU_RGMII1_TXC */ 338c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* MCU_RGMII1_RXC */ 348c2ecf20Sopenharmony_ci >; 358c2ecf20Sopenharmony_ci }; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci mcu_mdio_pins_default: mcu-mdio1-pins-default { 388c2ecf20Sopenharmony_ci pinctrl-single,pins = < 398c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0034, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ 408c2ecf20Sopenharmony_ci J721E_WKUP_IOPAD(0x0030, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ 418c2ecf20Sopenharmony_ci >; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci}; 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci&main_pmx0 { 468c2ecf20Sopenharmony_ci main_i2c0_pins_default: main-i2c0-pins-default { 478c2ecf20Sopenharmony_ci pinctrl-single,pins = < 488c2ecf20Sopenharmony_ci J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */ 498c2ecf20Sopenharmony_ci J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */ 508c2ecf20Sopenharmony_ci >; 518c2ecf20Sopenharmony_ci }; 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci main_i2c1_pins_default: main-i2c1-pins-default { 548c2ecf20Sopenharmony_ci pinctrl-single,pins = < 558c2ecf20Sopenharmony_ci J721E_IOPAD(0xdc, PIN_INPUT_PULLUP, 3) /* (U3) ECAP0_IN_APWM_OUT.I2C1_SCL */ 568c2ecf20Sopenharmony_ci J721E_IOPAD(0xe0, PIN_INPUT_PULLUP, 3) /* (T3) EXT_REFCLK1.I2C1_SDA */ 578c2ecf20Sopenharmony_ci >; 588c2ecf20Sopenharmony_ci }; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci main_mmc1_pins_default: main-mmc1-pins-default { 618c2ecf20Sopenharmony_ci pinctrl-single,pins = < 628c2ecf20Sopenharmony_ci J721E_IOPAD(0x104, PIN_INPUT, 0) /* (M20) MMC1_CMD */ 638c2ecf20Sopenharmony_ci J721E_IOPAD(0x100, PIN_INPUT, 0) /* (P21) MMC1_CLK */ 648c2ecf20Sopenharmony_ci J721E_IOPAD(0xfc, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */ 658c2ecf20Sopenharmony_ci J721E_IOPAD(0xf8, PIN_INPUT, 0) /* (M19) MMC1_DAT0 */ 668c2ecf20Sopenharmony_ci J721E_IOPAD(0xf4, PIN_INPUT, 0) /* (N21) MMC1_DAT1 */ 678c2ecf20Sopenharmony_ci J721E_IOPAD(0xf0, PIN_INPUT, 0) /* (N20) MMC1_DAT2 */ 688c2ecf20Sopenharmony_ci J721E_IOPAD(0xec, PIN_INPUT, 0) /* (N19) MMC1_DAT3 */ 698c2ecf20Sopenharmony_ci J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */ 708c2ecf20Sopenharmony_ci >; 718c2ecf20Sopenharmony_ci }; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci main_usbss0_pins_default: main-usbss0-pins-default { 748c2ecf20Sopenharmony_ci pinctrl-single,pins = < 758c2ecf20Sopenharmony_ci J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */ 768c2ecf20Sopenharmony_ci >; 778c2ecf20Sopenharmony_ci }; 788c2ecf20Sopenharmony_ci}; 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci&wkup_uart0 { 818c2ecf20Sopenharmony_ci /* Wakeup UART is used by System firmware */ 828c2ecf20Sopenharmony_ci status = "disabled"; 838c2ecf20Sopenharmony_ci}; 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci&main_uart0 { 868c2ecf20Sopenharmony_ci /* Shared with ATF on this platform */ 878c2ecf20Sopenharmony_ci power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; 888c2ecf20Sopenharmony_ci}; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci&main_uart2 { 918c2ecf20Sopenharmony_ci /* MAIN UART 2 is used by R5F firmware */ 928c2ecf20Sopenharmony_ci status = "disabled"; 938c2ecf20Sopenharmony_ci}; 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci&main_uart3 { 968c2ecf20Sopenharmony_ci /* UART not brought out */ 978c2ecf20Sopenharmony_ci status = "disabled"; 988c2ecf20Sopenharmony_ci}; 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci&main_uart4 { 1018c2ecf20Sopenharmony_ci /* UART not brought out */ 1028c2ecf20Sopenharmony_ci status = "disabled"; 1038c2ecf20Sopenharmony_ci}; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci&main_uart5 { 1068c2ecf20Sopenharmony_ci /* UART not brought out */ 1078c2ecf20Sopenharmony_ci status = "disabled"; 1088c2ecf20Sopenharmony_ci}; 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci&main_uart6 { 1118c2ecf20Sopenharmony_ci /* UART not brought out */ 1128c2ecf20Sopenharmony_ci status = "disabled"; 1138c2ecf20Sopenharmony_ci}; 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci&main_uart7 { 1168c2ecf20Sopenharmony_ci /* UART not brought out */ 1178c2ecf20Sopenharmony_ci status = "disabled"; 1188c2ecf20Sopenharmony_ci}; 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci&main_uart8 { 1218c2ecf20Sopenharmony_ci /* UART not brought out */ 1228c2ecf20Sopenharmony_ci status = "disabled"; 1238c2ecf20Sopenharmony_ci}; 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci&main_uart9 { 1268c2ecf20Sopenharmony_ci /* UART not brought out */ 1278c2ecf20Sopenharmony_ci status = "disabled"; 1288c2ecf20Sopenharmony_ci}; 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ci&mcu_cpsw { 1318c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1328c2ecf20Sopenharmony_ci pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; 1338c2ecf20Sopenharmony_ci}; 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_ci&davinci_mdio { 1368c2ecf20Sopenharmony_ci phy0: ethernet-phy@0 { 1378c2ecf20Sopenharmony_ci reg = <0>; 1388c2ecf20Sopenharmony_ci ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; 1398c2ecf20Sopenharmony_ci ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 1408c2ecf20Sopenharmony_ci }; 1418c2ecf20Sopenharmony_ci}; 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci&cpsw_port1 { 1448c2ecf20Sopenharmony_ci phy-mode = "rgmii-rxid"; 1458c2ecf20Sopenharmony_ci phy-handle = <&phy0>; 1468c2ecf20Sopenharmony_ci}; 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci&main_i2c0 { 1498c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1508c2ecf20Sopenharmony_ci pinctrl-0 = <&main_i2c0_pins_default>; 1518c2ecf20Sopenharmony_ci clock-frequency = <400000>; 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci exp1: gpio@20 { 1548c2ecf20Sopenharmony_ci compatible = "ti,tca6416"; 1558c2ecf20Sopenharmony_ci reg = <0x20>; 1568c2ecf20Sopenharmony_ci gpio-controller; 1578c2ecf20Sopenharmony_ci #gpio-cells = <2>; 1588c2ecf20Sopenharmony_ci }; 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_ci exp2: gpio@22 { 1618c2ecf20Sopenharmony_ci compatible = "ti,tca6424"; 1628c2ecf20Sopenharmony_ci reg = <0x22>; 1638c2ecf20Sopenharmony_ci gpio-controller; 1648c2ecf20Sopenharmony_ci #gpio-cells = <2>; 1658c2ecf20Sopenharmony_ci }; 1668c2ecf20Sopenharmony_ci}; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci&main_i2c1 { 1698c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1708c2ecf20Sopenharmony_ci pinctrl-0 = <&main_i2c1_pins_default>; 1718c2ecf20Sopenharmony_ci clock-frequency = <400000>; 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_ci exp4: gpio@20 { 1748c2ecf20Sopenharmony_ci compatible = "ti,tca6408"; 1758c2ecf20Sopenharmony_ci reg = <0x20>; 1768c2ecf20Sopenharmony_ci gpio-controller; 1778c2ecf20Sopenharmony_ci #gpio-cells = <2>; 1788c2ecf20Sopenharmony_ci }; 1798c2ecf20Sopenharmony_ci}; 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_ci&main_sdhci0 { 1828c2ecf20Sopenharmony_ci /* eMMC */ 1838c2ecf20Sopenharmony_ci non-removable; 1848c2ecf20Sopenharmony_ci ti,driver-strength-ohm = <50>; 1858c2ecf20Sopenharmony_ci disable-wp; 1868c2ecf20Sopenharmony_ci}; 1878c2ecf20Sopenharmony_ci 1888c2ecf20Sopenharmony_ci&main_sdhci1 { 1898c2ecf20Sopenharmony_ci /* SD card */ 1908c2ecf20Sopenharmony_ci pinctrl-0 = <&main_mmc1_pins_default>; 1918c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1928c2ecf20Sopenharmony_ci ti,driver-strength-ohm = <50>; 1938c2ecf20Sopenharmony_ci disable-wp; 1948c2ecf20Sopenharmony_ci}; 1958c2ecf20Sopenharmony_ci 1968c2ecf20Sopenharmony_ci&serdes_ln_ctrl { 1978c2ecf20Sopenharmony_ci idle-states = <J7200_SERDES0_LANE0_PCIE1_LANE0>, <J7200_SERDES0_LANE1_PCIE1_LANE1>, 1988c2ecf20Sopenharmony_ci <J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_IP4_UNUSED>; 1998c2ecf20Sopenharmony_ci}; 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_ci&usb_serdes_mux { 2028c2ecf20Sopenharmony_ci idle-states = <1>; /* USB0 to SERDES lane 3 */ 2038c2ecf20Sopenharmony_ci}; 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_ci&usbss0 { 2068c2ecf20Sopenharmony_ci pinctrl-names = "default"; 2078c2ecf20Sopenharmony_ci pinctrl-0 = <&main_usbss0_pins_default>; 2088c2ecf20Sopenharmony_ci ti,vbus-divider; 2098c2ecf20Sopenharmony_ci ti,usb2-only; 2108c2ecf20Sopenharmony_ci}; 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_ci&usb0 { 2138c2ecf20Sopenharmony_ci dr_mode = "otg"; 2148c2ecf20Sopenharmony_ci maximum-speed = "high-speed"; 2158c2ecf20Sopenharmony_ci}; 216