1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
8 #include "k3-j7200-som-p0.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/net/ti-dp83867.h>
11 #include <dt-bindings/mux/ti-serdes.h>
12 #include <dt-bindings/phy/phy.h>
16 stdout-path = "serial2:115200n8";
17 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
21 remoteproc0 = &mcu_r5fss0_core0;
22 remoteproc1 = &mcu_r5fss0_core1;
23 remoteproc2 = &main_r5fss0_core0;
24 remoteproc3 = &main_r5fss0_core1;
27 vdd_mmc1: fixedregulator-sd {
28 compatible = "regulator-fixed";
29 regulator-name = "vdd_mmc1";
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
34 gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
37 vdd_sd_dv: gpio-regulator-vdd-sd-dv {
38 compatible = "regulator-gpio";
39 regulator-name = "vdd_sd_dv";
40 pinctrl-names = "default";
41 pinctrl-0 = <&vdd_sd_dv_pins_default>;
42 regulator-min-microvolt = <1800000>;
43 regulator-max-microvolt = <3300000>;
45 gpios = <&main_gpio0 55 GPIO_ACTIVE_HIGH>;
52 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
53 pinctrl-single,pins = <
54 J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) WKUP_I2C0_SCL */
55 J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */
59 wkup_gpio_pins_default: wkup-gpio-pins-default {
60 pinctrl-single,pins = <
61 J721E_WKUP_IOPAD(0xd8, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */
65 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
66 pinctrl-single,pins = <
67 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
68 J721E_WKUP_IOPAD(0x006c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
69 J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
70 J721E_WKUP_IOPAD(0x0074, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
71 J721E_WKUP_IOPAD(0x0078, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
72 J721E_WKUP_IOPAD(0x007c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
73 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
74 J721E_WKUP_IOPAD(0x008c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
75 J721E_WKUP_IOPAD(0x0090, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
76 J721E_WKUP_IOPAD(0x0094, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
77 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
78 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
82 mcu_mdio_pins_default: mcu-mdio1-pins-default {
83 pinctrl-single,pins = <
84 J721E_WKUP_IOPAD(0x009c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
85 J721E_WKUP_IOPAD(0x0098, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
91 main_i2c0_pins_default: main-i2c0-pins-default {
92 pinctrl-single,pins = <
93 J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */
94 J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */
98 main_i2c1_pins_default: main-i2c1-pins-default {
99 pinctrl-single,pins = <
100 J721E_IOPAD(0xdc, PIN_INPUT_PULLUP, 3) /* (U3) ECAP0_IN_APWM_OUT.I2C1_SCL */
101 J721E_IOPAD(0xe0, PIN_INPUT_PULLUP, 3) /* (T3) EXT_REFCLK1.I2C1_SDA */
105 main_mmc1_pins_default: main-mmc1-pins-default {
106 pinctrl-single,pins = <
107 J721E_IOPAD(0x104, PIN_INPUT, 0) /* (M20) MMC1_CMD */
108 J721E_IOPAD(0x100, PIN_INPUT, 0) /* (P21) MMC1_CLK */
109 J721E_IOPAD(0xfc, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
110 J721E_IOPAD(0xf8, PIN_INPUT, 0) /* (M19) MMC1_DAT0 */
111 J721E_IOPAD(0xf4, PIN_INPUT, 0) /* (N21) MMC1_DAT1 */
112 J721E_IOPAD(0xf0, PIN_INPUT, 0) /* (N20) MMC1_DAT2 */
113 J721E_IOPAD(0xec, PIN_INPUT, 0) /* (N19) MMC1_DAT3 */
114 J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */
118 vdd_sd_dv_pins_default: vdd_sd_dv_pins_default {
119 pinctrl-single,pins = <
120 J721E_IOPAD(0xd0, PIN_OUTPUT, 7) /* (T5) SPI0_D1.GPIO0_55 */
124 main_usbss0_pins_default: main-usbss0-pins-default {
125 pinctrl-single,pins = <
126 J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */
132 /* Wakeup UART is used by System firmware */
137 /* Shared with ATF on this platform */
138 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
142 /* MAIN UART 2 is used by R5F firmware */
147 /* UART not brought out */
152 /* UART not brought out */
157 /* UART not brought out */
162 /* UART not brought out */
167 /* UART not brought out */
172 /* UART not brought out */
177 /* UART not brought out */
182 pinctrl-names = "default";
183 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
187 phy0: ethernet-phy@0 {
189 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
190 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
195 phy-mode = "rgmii-rxid";
196 phy-handle = <&phy0>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&main_i2c0_pins_default>;
202 clock-frequency = <400000>;
205 compatible = "ti,tca6416";
212 compatible = "ti,tca6424";
220 * The j7200 CPB board is identical to the CPB used for J721E, the SOMs can be
221 * swapped on the CPB.
223 * main_i2c1 of J7200 is connected to the CPB i2c bus labeled as i2c3.
224 * The i2c1 of the CPB (as it is labeled) is not connected to j7200.
227 pinctrl-names = "default";
228 pinctrl-0 = <&main_i2c1_pins_default>;
229 clock-frequency = <400000>;
232 compatible = "ti,tca6408";
236 gpio-line-names = "CODEC_RSTz", "CODEC_SPARE1", "UB926_RESETn",
237 "UB926_LOCK", "UB926_PWR_SW_CNTRL",
238 "UB926_TUNER_RESET", "UB926_GPIO_SPARE", "";
245 ti,driver-strength-ohm = <50>;
251 pinctrl-0 = <&main_mmc1_pins_default>;
252 pinctrl-names = "default";
253 vmmc-supply = <&vdd_mmc1>;
254 vqmmc-supply = <&vdd_sd_dv>;
255 ti,driver-strength-ohm = <50>;
260 idle-states = <J7200_SERDES0_LANE0_PCIE1_LANE0>, <J7200_SERDES0_LANE1_PCIE1_LANE1>,
261 <J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_IP4_UNUSED>;
265 idle-states = <1>; /* USB0 to SERDES lane 3 */
269 pinctrl-names = "default";
270 pinctrl-0 = <&main_usbss0_pins_default>;
277 maximum-speed = "high-speed";
282 ti,adc-channels = <0 1 2 3 4 5 6 7>;
287 clock-frequency = <100000000>;
291 serdes0_pcie_link: link@0 {
293 cdns,num-lanes = <2>;
295 cdns,phy-type = <PHY_TYPE_PCIE>;
296 resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>;
299 serdes0_qsgmii_link: link@1 {
301 cdns,num-lanes = <1>;
303 cdns,phy-type = <PHY_TYPE_QSGMII>;
304 resets = <&serdes_wiz0 3>;