blob: 496a15e1d1acbcc10f5c0091b71dc98864378ac5 [file] [log] [blame]
Lokesh Vutla9a5e5532019-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"
9
10/ {
11 chosen {
12 stdout-path = "serial2:115200n8";
13 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
14 };
Lokesh Vutlab9f035e2019-09-04 16:01:37 +053015
16 aliases {
17 remoteproc0 = &mcu_r5fss0_core0;
18 remoteproc1 = &mcu_r5fss0_core1;
Lokesh Vutla55f8eb32019-09-04 16:01:38 +053019 remoteproc2 = &main_r5fss0_core0;
20 remoteproc3 = &main_r5fss0_core1;
21 remoteproc4 = &main_r5fss1_core0;
22 remoteproc5 = &main_r5fss1_core1;
Lokesh Vutla293e3972019-09-04 16:01:39 +053023 remoteproc6 = &c66_0;
24 remoteproc7 = &c66_1;
Lokesh Vutla1b846fc2019-09-04 16:01:40 +053025 remoteproc8 = &c71_0;
Lokesh Vutlab9f035e2019-09-04 16:01:37 +053026 };
Lokesh Vutla9a5e5532019-06-13 10:29:54 +053027};
28
29&wkup_uart0 {
30 /* Wakeup UART is used by System firmware */
31 status = "disabled";
32};
33
Lokesh Vutlafbbcb1e2019-09-29 17:37:58 +053034&main_uart0 {
35 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
36};
37
Lokesh Vutla9a5e5532019-06-13 10:29:54 +053038&main_uart3 {
39 /* UART not brought out */
40 status = "disabled";
41};
42
43&main_uart5 {
44 /* UART not brought out */
45 status = "disabled";
46};
47
48&main_uart6 {
49 /* UART not brought out */
50 status = "disabled";
51};
52
53&main_uart7 {
54 /* UART not brought out */
55 status = "disabled";
56};
57
58&main_uart8 {
59 /* UART not brought out */
60 status = "disabled";
61};
62
63&main_uart9 {
64 /* UART not brought out */
65 status = "disabled";
66};
67
Faiz Abbasccc855e2020-01-16 19:42:21 +053068&main_pmx0 {
69 main_mmc1_pins_default: main_mmc1_pins_default {
70 pinctrl-single,pins = <
71 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
72 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
73 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
74 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
75 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
76 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
77 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
78 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
79 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
80 >;
81 };
82};
83
Lokesh Vutla9a5e5532019-06-13 10:29:54 +053084&main_sdhci0 {
85 /* eMMC */
Lokesh Vutla9a5e5532019-06-13 10:29:54 +053086 non-removable;
87 ti,driver-strength-ohm = <50>;
88};
89
90&main_sdhci1 {
Faiz Abbasccc855e2020-01-16 19:42:21 +053091 /* SD card */
92 pinctrl-names = "default";
93 pinctrl-0 = <&main_mmc1_pins_default>;
Lokesh Vutla9a5e5532019-06-13 10:29:54 +053094 ti,driver-strength-ohm = <50>;
95};
Vignesh Raghavendra5aeab3b2019-11-18 19:16:35 +053096
97&main_pmx0 {
98 main_usbss0_pins_default: main_usbss0_pins_default {
99 pinctrl-single,pins = <
100 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
101 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
102 >;
103 };
104
105 main_usbss1_pins_default: main_usbss1_pins_default {
106 pinctrl-single,pins = <
107 J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
108 >;
109 };
Vignesh Raghavendra18402a12020-01-27 23:22:14 +0530110
111 main_i2c0_pins_default: main-i2c0-pins-default {
112 pinctrl-single,pins = <
113 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
114 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
115 >;
116 };
Vignesh Raghavendra5aeab3b2019-11-18 19:16:35 +0530117};
118
Andreas Dannenbergc44fb272020-01-07 13:15:56 +0530119&wkup_pmx0 {
120 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
121 pinctrl-single,pins = <
122 J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
123 J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
124 >;
125 };
Vignesh Raghavendra224d7fe2020-02-04 11:09:52 +0530126
127 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
128 pinctrl-single,pins = <
129 J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
130 J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
131 J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
132 J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
133 J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
134 J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
135 J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
136 J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
137 >;
138 };
Andreas Dannenbergc44fb272020-01-07 13:15:56 +0530139};
140
Vignesh Raghavendra5aeab3b2019-11-18 19:16:35 +0530141&usbss0 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&main_usbss0_pins_default>;
144 ti,vbus-divider;
145};
146
147&usb0 {
148 dr_mode = "otg";
149 maximum-speed = "super-speed";
150};
151
152&usbss1 {
153 pinctrl-names = "default";
154 pinctrl-0 = <&main_usbss1_pins_default>;
155 ti,usb2-only;
156};
157
158&usb1 {
159 dr_mode = "host";
160 maximum-speed = "high-speed";
161};
Andreas Dannenbergc44fb272020-01-07 13:15:56 +0530162
163&wkup_i2c0 {
164 pinctrl-names = "default";
165 pinctrl-0 = <&wkup_i2c0_pins_default>;
166 clock-frequency = <400000>;
167};
Vignesh Raghavendra18402a12020-01-27 23:22:14 +0530168
169&main_i2c0 {
170 pinctrl-names = "default";
171 pinctrl-0 = <&main_i2c0_pins_default>;
172 clock-frequency = <400000>;
173
174 exp1: gpio@20 {
175 compatible = "ti,tca6416";
176 reg = <0x20>;
177 gpio-controller;
178 #gpio-cells = <2>;
179 };
180
181 exp2: gpio@22 {
182 compatible = "ti,tca6424";
183 reg = <0x22>;
184 gpio-controller;
185 #gpio-cells = <2>;
186 };
187};
Vignesh Raghavendra224d7fe2020-02-04 11:09:52 +0530188
189&ospi1 {
190 pinctrl-names = "default";
191 pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
192
193 flash@0{
194 compatible = "jedec,spi-nor";
195 reg = <0x0>;
196 spi-tx-bus-width = <1>;
197 spi-rx-bus-width = <4>;
198 spi-max-frequency = <40000000>;
199 cdns,tshsl-ns = <60>;
200 cdns,tsd2d-ns = <60>;
201 cdns,tchsh-ns = <60>;
202 cdns,tslch-ns = <60>;
203 cdns,read-delay = <2>;
204 #address-cells = <1>;
205 #size-cells = <1>;
206 };
207};