blob: 3f1d03c960371a4ffe19f84838e37d1af9fd43e4 [file] [log] [blame]
Lokesh Vutlac8339702020-08-05 22:44:28 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6/dts-v1/;
7
Vignesh Raghavendraf4ee7d52020-08-07 00:27:01 +05308#include <dt-bindings/net/ti-dp83867.h>
Lokesh Vutlac8339702020-08-05 22:44:28 +05309#include "k3-j7200-som-p0.dtsi"
10
11/ {
12 chosen {
13 stdout-path = "serial2:115200n8";
14 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
15 };
16};
17
18&wkup_pmx0 {
19 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
20 pinctrl-single,pins = <
21 J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) WKUP_I2C0_SCL */
22 J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */
23 >;
24 };
Vignesh Raghavendra2fae7222020-08-07 00:26:58 +053025
26 wkup_gpio_pins_default: wkup-gpio-pins-default {
27 pinctrl-single,pins = <
28 J721E_WKUP_IOPAD(0xd8, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */
29 >;
30 };
Vignesh Raghavendraf4ee7d52020-08-07 00:27:01 +053031
32 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
33 pinctrl-single,pins = <
34 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
35 J721E_WKUP_IOPAD(0x006c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
36 J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
37 J721E_WKUP_IOPAD(0x0074, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
38 J721E_WKUP_IOPAD(0x0078, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
39 J721E_WKUP_IOPAD(0x007c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
40 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
41 J721E_WKUP_IOPAD(0x008c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
42 J721E_WKUP_IOPAD(0x0090, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
43 J721E_WKUP_IOPAD(0x0094, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
44 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
45 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
46 >;
47 };
48
49 mcu_mdio_pins_default: mcu_mdio1_pins_default {
50 pinctrl-single,pins = <
51 J721E_WKUP_IOPAD(0x009c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
52 J721E_WKUP_IOPAD(0x0098, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
53 >;
54 };
Lokesh Vutlac8339702020-08-05 22:44:28 +053055};
56
57&main_pmx0 {
58 main_i2c0_pins_default: main-i2c0-pins-default {
59 pinctrl-single,pins = <
60 J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */
61 J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */
62 >;
63 };
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +053064
65 main_usbss0_pins_default: main_usbss0_pins_default {
66 pinctrl-single,pins = <
67 J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */
68 >;
69 };
Lokesh Vutlac8339702020-08-05 22:44:28 +053070};
71
72&wkup_uart0 {
73 /* Wakeup UART is used by System firmware */
74 status = "disabled";
75};
76
77&main_uart0 {
78 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
79};
80
81&main_uart2 {
82 /* MAIN UART 2 is used by R5F firmware */
83 status = "disabled";
84};
85
86&main_uart3 {
87 /* UART not brought out */
88 status = "disabled";
89};
90
91&main_uart4 {
92 /* UART not brought out */
93 status = "disabled";
94};
95
96&main_uart5 {
97 /* UART not brought out */
98 status = "disabled";
99};
100
101&main_uart6 {
102 /* UART not brought out */
103 status = "disabled";
104};
105
106&main_uart7 {
107 /* UART not brought out */
108 status = "disabled";
109};
110
111&main_uart8 {
112 /* UART not brought out */
113 status = "disabled";
114};
115
116&main_uart9 {
117 /* UART not brought out */
118 status = "disabled";
119};
120
121&wkup_i2c0 {
122 pinctrl-names = "default";
123 pinctrl-0 = <&wkup_i2c0_pins_default>;
124 clock-frequency = <400000>;
125};
126
127&main_sdhci0 {
128 /* eMMC */
129 non-removable;
130 ti,driver-strength-ohm = <50>;
131 disable-wp;
132};
133
134&main_sdhci1 {
135 /* SD card */
136 ti,driver-strength-ohm = <50>;
137 disable-wp;
138 no-1-8-v;
139 sdhci-caps-mask = <0x8000000F 0x0>;
140};
141
142&main_i2c0 {
143 pinctrl-names = "default";
144 pinctrl-0 = <&main_i2c0_pins_default>;
145 clock-frequency = <400000>;
146
147 exp1: gpio@20 {
148 compatible = "ti,tca6416";
149 reg = <0x20>;
150 gpio-controller;
151 #gpio-cells = <2>;
152 };
153
154 exp2: gpio@22 {
155 compatible = "ti,tca6424";
156 reg = <0x22>;
157 gpio-controller;
158 #gpio-cells = <2>;
159 };
160};
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +0530161
162&usbss0 {
163 pinctrl-names = "default";
164 pinctrl-0 = <&main_usbss0_pins_default>;
165 ti,vbus-divider;
166 ti,usb2-only;
167};
168
169&usb0 {
170 dr_mode = "otg";
171 maximum-speed = "high-speed";
172};
Vignesh Raghavendra2fae7222020-08-07 00:26:58 +0530173
174&wkup_gpio0 {
175 pinctrl-names = "default";
176 pinctrl-0 = <&wkup_gpio_pins_default>;
177};
Vignesh Raghavendraf4ee7d52020-08-07 00:27:01 +0530178
179&mcu_cpsw {
180 pinctrl-names = "default";
181 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
182};
183
184&davinci_mdio {
185 phy0: ethernet-phy@0 {
186 reg = <0>;
187 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
188 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
189 };
190};
191
192&cpsw_port1 {
193 phy-mode = "rgmii-rxid";
194 phy-handle = <&phy0>;
195};