1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 4 */ 5 6/dts-v1/; 7 8#include "k3-j7200-som-p0.dtsi" 9#include <dt-bindings/net/ti-dp83867.h> 10#include <dt-bindings/mux/ti-serdes.h> 11 12/ { 13 chosen { 14 stdout-path = "serial2:115200n8"; 15 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000"; 16 }; 17}; 18 19&wkup_pmx0 { 20 mcu_cpsw_pins_default: mcu-cpsw-pins-default { 21 pinctrl-single,pins = < 22 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */ 23 J721E_WKUP_IOPAD(0x006c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */ 24 J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */ 25 J721E_WKUP_IOPAD(0x0074, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */ 26 J721E_WKUP_IOPAD(0x0078, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */ 27 J721E_WKUP_IOPAD(0x007c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */ 28 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */ 29 J721E_WKUP_IOPAD(0x008c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */ 30 J721E_WKUP_IOPAD(0x0090, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */ 31 J721E_WKUP_IOPAD(0x0094, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */ 32 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_TXC */ 33 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RXC */ 34 >; 35 }; 36 37 mcu_mdio_pins_default: mcu-mdio1-pins-default { 38 pinctrl-single,pins = < 39 J721E_WKUP_IOPAD(0x009c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ 40 J721E_WKUP_IOPAD(0x0098, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ 41 >; 42 }; 43}; 44 45&main_pmx0 { 46 main_i2c0_pins_default: main-i2c0-pins-default { 47 pinctrl-single,pins = < 48 J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */ 49 J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */ 50 >; 51 }; 52 53 main_i2c1_pins_default: main-i2c1-pins-default { 54 pinctrl-single,pins = < 55 J721E_IOPAD(0xdc, PIN_INPUT_PULLUP, 3) /* (U3) ECAP0_IN_APWM_OUT.I2C1_SCL */ 56 J721E_IOPAD(0xe0, PIN_INPUT_PULLUP, 3) /* (T3) EXT_REFCLK1.I2C1_SDA */ 57 >; 58 }; 59 60 main_mmc1_pins_default: main-mmc1-pins-default { 61 pinctrl-single,pins = < 62 J721E_IOPAD(0x104, PIN_INPUT, 0) /* (M20) MMC1_CMD */ 63 J721E_IOPAD(0x100, PIN_INPUT, 0) /* (P21) MMC1_CLK */ 64 J721E_IOPAD(0xfc, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */ 65 J721E_IOPAD(0xf8, PIN_INPUT, 0) /* (M19) MMC1_DAT0 */ 66 J721E_IOPAD(0xf4, PIN_INPUT, 0) /* (N21) MMC1_DAT1 */ 67 J721E_IOPAD(0xf0, PIN_INPUT, 0) /* (N20) MMC1_DAT2 */ 68 J721E_IOPAD(0xec, PIN_INPUT, 0) /* (N19) MMC1_DAT3 */ 69 J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */ 70 >; 71 }; 72 73 main_usbss0_pins_default: main-usbss0-pins-default { 74 pinctrl-single,pins = < 75 J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */ 76 >; 77 }; 78}; 79 80&wkup_uart0 { 81 /* Wakeup UART is used by System firmware */ 82 status = "disabled"; 83}; 84 85&main_uart0 { 86 /* Shared with ATF on this platform */ 87 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; 88}; 89 90&main_uart2 { 91 /* MAIN UART 2 is used by R5F firmware */ 92 status = "disabled"; 93}; 94 95&main_uart3 { 96 /* UART not brought out */ 97 status = "disabled"; 98}; 99 100&main_uart4 { 101 /* UART not brought out */ 102 status = "disabled"; 103}; 104 105&main_uart5 { 106 /* UART not brought out */ 107 status = "disabled"; 108}; 109 110&main_uart6 { 111 /* UART not brought out */ 112 status = "disabled"; 113}; 114 115&main_uart7 { 116 /* UART not brought out */ 117 status = "disabled"; 118}; 119 120&main_uart8 { 121 /* UART not brought out */ 122 status = "disabled"; 123}; 124 125&main_uart9 { 126 /* UART not brought out */ 127 status = "disabled"; 128}; 129 130&mcu_cpsw { 131 pinctrl-names = "default"; 132 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; 133}; 134 135&davinci_mdio { 136 phy0: ethernet-phy@0 { 137 reg = <0>; 138 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; 139 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 140 }; 141}; 142 143&cpsw_port1 { 144 phy-mode = "rgmii-rxid"; 145 phy-handle = <&phy0>; 146}; 147 148&main_i2c0 { 149 pinctrl-names = "default"; 150 pinctrl-0 = <&main_i2c0_pins_default>; 151 clock-frequency = <400000>; 152 153 exp1: gpio@20 { 154 compatible = "ti,tca6416"; 155 reg = <0x20>; 156 gpio-controller; 157 #gpio-cells = <2>; 158 }; 159 160 exp2: gpio@22 { 161 compatible = "ti,tca6424"; 162 reg = <0x22>; 163 gpio-controller; 164 #gpio-cells = <2>; 165 }; 166}; 167 168&main_i2c1 { 169 pinctrl-names = "default"; 170 pinctrl-0 = <&main_i2c1_pins_default>; 171 clock-frequency = <400000>; 172 173 exp4: gpio@20 { 174 compatible = "ti,tca6408"; 175 reg = <0x20>; 176 gpio-controller; 177 #gpio-cells = <2>; 178 }; 179}; 180 181&main_sdhci0 { 182 /* eMMC */ 183 non-removable; 184 ti,driver-strength-ohm = <50>; 185 disable-wp; 186}; 187 188&main_sdhci1 { 189 /* SD card */ 190 pinctrl-0 = <&main_mmc1_pins_default>; 191 pinctrl-names = "default"; 192 ti,driver-strength-ohm = <50>; 193 disable-wp; 194}; 195 196&serdes_ln_ctrl { 197 idle-states = <J7200_SERDES0_LANE0_PCIE1_LANE0>, <J7200_SERDES0_LANE1_PCIE1_LANE1>, 198 <J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_IP4_UNUSED>; 199}; 200 201&usb_serdes_mux { 202 idle-states = <1>; /* USB0 to SERDES lane 3 */ 203}; 204 205&usbss0 { 206 pinctrl-names = "default"; 207 pinctrl-0 = <&main_usbss0_pins_default>; 208 ti,vbus-divider; 209 ti,usb2-only; 210}; 211 212&usb0 { 213 dr_mode = "otg"; 214 maximum-speed = "high-speed"; 215}; 216 217&tscadc0 { 218 adc { 219 ti,adc-channels = <0 1 2 3 4 5 6 7>; 220 }; 221}; 222