blob: 85cb159838e3a241dba24f7e3a17dc5a2c43f230 [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"
Faiz Abbas131c3322021-02-04 15:11:00 +053010#include <dt-bindings/gpio/gpio.h>
Lokesh Vutlac8339702020-08-05 22:44:28 +053011
12/ {
13 chosen {
14 stdout-path = "serial2:115200n8";
15 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
16 };
Suman Annae6833162020-08-17 18:15:10 -050017
18 aliases {
19 remoteproc0 = &mcu_r5fss0_core0;
20 remoteproc1 = &mcu_r5fss0_core1;
Suman Annafff422d2020-08-17 18:15:11 -050021 remoteproc2 = &main_r5fss0_core0;
22 remoteproc3 = &main_r5fss0_core1;
Suman Annae6833162020-08-17 18:15:10 -050023 };
Faiz Abbas131c3322021-02-04 15:11:00 +053024
25 vdd_mmc1: fixedregulator-sd {
26 compatible = "regulator-fixed";
27 regulator-name = "vdd_mmc1";
28 regulator-min-microvolt = <3300000>;
29 regulator-max-microvolt = <3300000>;
30 regulator-boot-on;
31 enable-active-high;
32 gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
33 };
34
35 vdd_sd_dv: gpio-regulator-vdd-sd-dv {
36 compatible = "regulator-gpio";
37 regulator-name = "vdd_sd_dv";
38 pinctrl-names = "default";
39 pinctrl-0 = <&vdd_sd_dv_pins_default>;
40 regulator-min-microvolt = <1800000>;
41 regulator-max-microvolt = <3300000>;
42 regulator-boot-on;
43 gpios = <&main_gpio0 55 GPIO_ACTIVE_HIGH>;
44 states = <1800000 0x0
45 3300000 0x1>;
46 };
Lokesh Vutlac8339702020-08-05 22:44:28 +053047};
48
49&wkup_pmx0 {
50 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
51 pinctrl-single,pins = <
52 J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) WKUP_I2C0_SCL */
53 J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */
54 >;
55 };
Vignesh Raghavendra2fae7222020-08-07 00:26:58 +053056
57 wkup_gpio_pins_default: wkup-gpio-pins-default {
58 pinctrl-single,pins = <
59 J721E_WKUP_IOPAD(0xd8, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */
60 >;
61 };
Vignesh Raghavendraf4ee7d52020-08-07 00:27:01 +053062
63 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
64 pinctrl-single,pins = <
65 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
66 J721E_WKUP_IOPAD(0x006c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
67 J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
68 J721E_WKUP_IOPAD(0x0074, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
69 J721E_WKUP_IOPAD(0x0078, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
70 J721E_WKUP_IOPAD(0x007c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
71 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
72 J721E_WKUP_IOPAD(0x008c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
73 J721E_WKUP_IOPAD(0x0090, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
74 J721E_WKUP_IOPAD(0x0094, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
75 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
76 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
77 >;
78 };
79
80 mcu_mdio_pins_default: mcu_mdio1_pins_default {
81 pinctrl-single,pins = <
82 J721E_WKUP_IOPAD(0x009c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
83 J721E_WKUP_IOPAD(0x0098, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
84 >;
85 };
Lokesh Vutlac8339702020-08-05 22:44:28 +053086};
87
88&main_pmx0 {
89 main_i2c0_pins_default: main-i2c0-pins-default {
90 pinctrl-single,pins = <
91 J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */
92 J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */
93 >;
94 };
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +053095
Faiz Abbas131c3322021-02-04 15:11:00 +053096 main_mmc1_pins_default: main_mmc1_pins_default {
97 pinctrl-single,pins = <
98 J721E_IOPAD(0x104, PIN_INPUT, 0) /* (M20) MMC1_CMD */
99 J721E_IOPAD(0x100, PIN_INPUT, 0) /* (P21) MMC1_CLK */
100 J721E_IOPAD(0xfc, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
101 J721E_IOPAD(0xf8, PIN_INPUT, 0) /* (M19) MMC1_DAT0 */
102 J721E_IOPAD(0xf4, PIN_INPUT, 0) /* (N21) MMC1_DAT1 */
103 J721E_IOPAD(0xf0, PIN_INPUT, 0) /* (N20) MMC1_DAT2 */
104 J721E_IOPAD(0xec, PIN_INPUT, 0) /* (N19) MMC1_DAT3 */
105 J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */
106 >;
107 };
108
109 vdd_sd_dv_pins_default: vdd_sd_dv_pins_default {
110 pinctrl-single,pins = <
111 J721E_IOPAD(0xd0, PIN_OUTPUT, 7) /* (T5) SPI0_D1.GPIO0_55 */
112 >;
113 };
114
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +0530115 main_usbss0_pins_default: main_usbss0_pins_default {
116 pinctrl-single,pins = <
117 J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */
118 >;
119 };
Lokesh Vutlac8339702020-08-05 22:44:28 +0530120};
121
122&wkup_uart0 {
123 /* Wakeup UART is used by System firmware */
124 status = "disabled";
125};
126
127&main_uart0 {
128 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
129};
130
131&main_uart2 {
132 /* MAIN UART 2 is used by R5F firmware */
133 status = "disabled";
134};
135
136&main_uart3 {
137 /* UART not brought out */
138 status = "disabled";
139};
140
141&main_uart4 {
142 /* UART not brought out */
143 status = "disabled";
144};
145
146&main_uart5 {
147 /* UART not brought out */
148 status = "disabled";
149};
150
151&main_uart6 {
152 /* UART not brought out */
153 status = "disabled";
154};
155
156&main_uart7 {
157 /* UART not brought out */
158 status = "disabled";
159};
160
161&main_uart8 {
162 /* UART not brought out */
163 status = "disabled";
164};
165
166&main_uart9 {
167 /* UART not brought out */
168 status = "disabled";
169};
170
171&wkup_i2c0 {
172 pinctrl-names = "default";
173 pinctrl-0 = <&wkup_i2c0_pins_default>;
174 clock-frequency = <400000>;
175};
176
177&main_sdhci0 {
178 /* eMMC */
179 non-removable;
180 ti,driver-strength-ohm = <50>;
181 disable-wp;
182};
183
184&main_sdhci1 {
185 /* SD card */
Faiz Abbas131c3322021-02-04 15:11:00 +0530186 pinctrl-0 = <&main_mmc1_pins_default>;
187 pinctrl-names = "default";
188 vmmc-supply = <&vdd_mmc1>;
189 vqmmc-supply = <&vdd_sd_dv>;
Lokesh Vutlac8339702020-08-05 22:44:28 +0530190 ti,driver-strength-ohm = <50>;
191 disable-wp;
Lokesh Vutlac8339702020-08-05 22:44:28 +0530192};
193
194&main_i2c0 {
195 pinctrl-names = "default";
196 pinctrl-0 = <&main_i2c0_pins_default>;
197 clock-frequency = <400000>;
198
199 exp1: gpio@20 {
200 compatible = "ti,tca6416";
201 reg = <0x20>;
202 gpio-controller;
203 #gpio-cells = <2>;
204 };
205
206 exp2: gpio@22 {
207 compatible = "ti,tca6424";
208 reg = <0x22>;
209 gpio-controller;
210 #gpio-cells = <2>;
211 };
212};
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +0530213
214&usbss0 {
215 pinctrl-names = "default";
216 pinctrl-0 = <&main_usbss0_pins_default>;
217 ti,vbus-divider;
218 ti,usb2-only;
219};
220
221&usb0 {
222 dr_mode = "otg";
223 maximum-speed = "high-speed";
224};
Vignesh Raghavendra2fae7222020-08-07 00:26:58 +0530225
226&wkup_gpio0 {
227 pinctrl-names = "default";
228 pinctrl-0 = <&wkup_gpio_pins_default>;
229};
Vignesh Raghavendraf4ee7d52020-08-07 00:27:01 +0530230
231&mcu_cpsw {
232 pinctrl-names = "default";
233 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
234};
235
236&davinci_mdio {
237 phy0: ethernet-phy@0 {
238 reg = <0>;
239 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
240 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
241 };
242};
243
244&cpsw_port1 {
245 phy-mode = "rgmii-rxid";
246 phy-handle = <&phy0>;
247};