blob: fcfc665f0944f9e761b1731d4b3b9a789a4710dc [file] [log] [blame]
Lokesh Vutlab2c99a22019-06-13 10:29:54 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
4 */
5
6/dts-v1/;
7
8#include "k3-j721e-som-p0.dtsi"
Faiz Abbas3af31502021-02-04 15:10:58 +05309#include <dt-bindings/gpio/gpio.h>
Lokesh Vutlab2c99a22019-06-13 10:29:54 +053010
11/ {
12 chosen {
13 stdout-path = "serial2:115200n8";
14 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
15 };
Lokesh Vutla1a128042019-09-04 16:01:37 +053016
17 aliases {
18 remoteproc0 = &mcu_r5fss0_core0;
19 remoteproc1 = &mcu_r5fss0_core1;
Lokesh Vutla28b97652019-09-04 16:01:38 +053020 remoteproc2 = &main_r5fss0_core0;
21 remoteproc3 = &main_r5fss0_core1;
22 remoteproc4 = &main_r5fss1_core0;
23 remoteproc5 = &main_r5fss1_core1;
Lokesh Vutla4dbd7ed2019-09-04 16:01:39 +053024 remoteproc6 = &c66_0;
25 remoteproc7 = &c66_1;
Lokesh Vutlac9d636d2019-09-04 16:01:40 +053026 remoteproc8 = &c71_0;
Lokesh Vutla1a128042019-09-04 16:01:37 +053027 };
Faiz Abbas3af31502021-02-04 15:10:58 +053028
29 vdd_mmc1: fixedregulator-sd {
30 compatible = "regulator-fixed";
31 regulator-name = "vdd_mmc1";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
34 regulator-boot-on;
35 enable-active-high;
36 gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
37 };
38
39 vdd_sd_dv_alt: gpio-regulator-TLV71033 {
40 compatible = "regulator-gpio";
41 pinctrl-names = "default";
42 pinctrl-0 = <&vdd_sd_dv_alt_pins_default>;
43 regulator-name = "tlv71033";
44 regulator-min-microvolt = <1800000>;
45 regulator-max-microvolt = <3300000>;
46 regulator-boot-on;
47 gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>;
48 states = <1800000 0x0
49 3300000 0x1>;
50 };
Lokesh Vutlab2c99a22019-06-13 10:29:54 +053051};
52
53&wkup_uart0 {
54 /* Wakeup UART is used by System firmware */
55 status = "disabled";
56};
57
Lokesh Vutla190ff642019-09-29 17:37:58 +053058&main_uart0 {
59 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
60};
61
Lokesh Vutlab2c99a22019-06-13 10:29:54 +053062&main_uart3 {
63 /* UART not brought out */
64 status = "disabled";
65};
66
67&main_uart5 {
68 /* UART not brought out */
69 status = "disabled";
70};
71
72&main_uart6 {
73 /* UART not brought out */
74 status = "disabled";
75};
76
77&main_uart7 {
78 /* UART not brought out */
79 status = "disabled";
80};
81
82&main_uart8 {
83 /* UART not brought out */
84 status = "disabled";
85};
86
87&main_uart9 {
88 /* UART not brought out */
89 status = "disabled";
90};
91
Faiz Abbasc67d3892020-01-16 19:42:21 +053092&main_pmx0 {
93 main_mmc1_pins_default: main_mmc1_pins_default {
94 pinctrl-single,pins = <
95 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
96 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
97 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
98 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
99 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
100 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
101 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
102 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
103 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
104 >;
105 };
Faiz Abbas3af31502021-02-04 15:10:58 +0530106
107 vdd_sd_dv_alt_pins_default: vdd_sd_dv_alt_pins_default {
108 pinctrl-single,pins = <
109 J721E_IOPAD(0x1d8, PIN_OUTPUT, 7) /* (W4) SPI1_CS1.GPIO0_117 */
110 >;
111 };
Faiz Abbasc67d3892020-01-16 19:42:21 +0530112};
113
Lokesh Vutlab2c99a22019-06-13 10:29:54 +0530114&main_sdhci0 {
115 /* eMMC */
Lokesh Vutlab2c99a22019-06-13 10:29:54 +0530116 non-removable;
117 ti,driver-strength-ohm = <50>;
118};
119
120&main_sdhci1 {
Faiz Abbasc67d3892020-01-16 19:42:21 +0530121 /* SD card */
122 pinctrl-names = "default";
123 pinctrl-0 = <&main_mmc1_pins_default>;
Lokesh Vutlab2c99a22019-06-13 10:29:54 +0530124 ti,driver-strength-ohm = <50>;
Faiz Abbas3af31502021-02-04 15:10:58 +0530125 vmmc-supply = <&vdd_mmc1>;
126 vqmmc-supply = <&vdd_sd_dv_alt>;
Lokesh Vutlab2c99a22019-06-13 10:29:54 +0530127};
Vignesh Raghavendra04ed4932019-11-18 19:16:35 +0530128
129&main_pmx0 {
130 main_usbss0_pins_default: main_usbss0_pins_default {
131 pinctrl-single,pins = <
132 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
133 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
134 >;
135 };
136
137 main_usbss1_pins_default: main_usbss1_pins_default {
138 pinctrl-single,pins = <
139 J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
140 >;
141 };
Vignesh Raghavendra1c5aa322020-01-27 23:22:14 +0530142
143 main_i2c0_pins_default: main-i2c0-pins-default {
144 pinctrl-single,pins = <
145 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
146 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
147 >;
148 };
Vignesh Raghavendra04ed4932019-11-18 19:16:35 +0530149};
150
Andreas Dannenberg0fe40e92020-01-07 13:15:56 +0530151&wkup_pmx0 {
152 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
153 pinctrl-single,pins = <
154 J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
155 J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
156 >;
157 };
Vignesh Raghavendrada674372020-02-04 11:09:52 +0530158
159 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
160 pinctrl-single,pins = <
161 J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
162 J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
163 J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
164 J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
165 J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
166 J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
167 J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
168 J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
169 >;
170 };
Andreas Dannenberg0fe40e92020-01-07 13:15:56 +0530171};
172
Vignesh Raghavendra04ed4932019-11-18 19:16:35 +0530173&usbss0 {
174 pinctrl-names = "default";
175 pinctrl-0 = <&main_usbss0_pins_default>;
176 ti,vbus-divider;
177};
178
179&usb0 {
180 dr_mode = "otg";
181 maximum-speed = "super-speed";
182};
183
184&usbss1 {
185 pinctrl-names = "default";
186 pinctrl-0 = <&main_usbss1_pins_default>;
187 ti,usb2-only;
188};
189
190&usb1 {
191 dr_mode = "host";
192 maximum-speed = "high-speed";
193};
Andreas Dannenberg0fe40e92020-01-07 13:15:56 +0530194
195&wkup_i2c0 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&wkup_i2c0_pins_default>;
198 clock-frequency = <400000>;
Vignesh Raghavendra1c5aa322020-01-27 23:22:14 +0530199};
200
201&main_i2c0 {
202 pinctrl-names = "default";
203 pinctrl-0 = <&main_i2c0_pins_default>;
204 clock-frequency = <400000>;
205
206 exp1: gpio@20 {
207 compatible = "ti,tca6416";
208 reg = <0x20>;
209 gpio-controller;
210 #gpio-cells = <2>;
211 };
212
213 exp2: gpio@22 {
214 compatible = "ti,tca6424";
215 reg = <0x22>;
216 gpio-controller;
217 #gpio-cells = <2>;
218 };
Andreas Dannenberg0fe40e92020-01-07 13:15:56 +0530219};
Vignesh Raghavendrada674372020-02-04 11:09:52 +0530220
221&ospi1 {
222 pinctrl-names = "default";
223 pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
224
225 flash@0{
226 compatible = "jedec,spi-nor";
227 reg = <0x0>;
228 spi-tx-bus-width = <1>;
229 spi-rx-bus-width = <4>;
230 spi-max-frequency = <40000000>;
231 cdns,tshsl-ns = <60>;
232 cdns,tsd2d-ns = <60>;
233 cdns,tchsh-ns = <60>;
234 cdns,tslch-ns = <60>;
235 cdns,read-delay = <2>;
236 #address-cells = <1>;
237 #size-cells = <1>;
238 };
239};