blob: 62009719fc6b6309d63bf0094bb0358ae847e45b [file] [log] [blame]
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +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"
Lokesh Vutlaec2fa9f2019-10-07 19:26:37 +05309#include "k3-j721e-ddr-evm-lp4-3733.dtsi"
10#include "k3-j721e-ddr.dtsi"
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053011
12/ {
13 aliases {
14 remoteproc0 = &sysctrler;
15 remoteproc1 = &a72_0;
Keerthy2984b822020-02-12 13:55:08 +053016 remoteproc2 = &main_r5fss0_core0;
17 remoteproc3 = &main_r5fss0_core1;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053018 };
19
20 chosen {
21 stdout-path = "serial2:115200n8";
22 tick-timer = &timer1;
23 };
24
25 a72_0: a72@0 {
26 compatible = "ti,am654-rproc";
27 reg = <0x0 0x00a90000 0x0 0x10>;
28 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
29 <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>;
30 resets = <&k3_reset 202 0>;
31 assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>;
32 assigned-clock-rates = <2000000000>, <200000000>;
33 ti,sci = <&dmsc>;
34 ti,sci-proc-id = <32>;
35 ti,sci-host-id = <10>;
36 u-boot,dm-spl;
37 };
38
39 clk_200mhz: dummy_clock {
40 compatible = "fixed-clock";
41 #clock-cells = <0>;
42 clock-frequency = <200000000>;
43 u-boot,dm-spl;
44 };
Vignesh Raghavendrab070f582020-01-27 17:59:25 +053045
46 clk_19_2mhz: dummy_clock {
47 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <19200000>;
50 u-boot,dm-spl;
51 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053052};
53
54&cbass_mcu_wakeup {
55 mcu_secproxy: secproxy@28380000 {
56 u-boot,dm-spl;
57 compatible = "ti,am654-secure-proxy";
58 reg = <0x0 0x2a380000 0x0 0x80000>,
59 <0x0 0x2a400000 0x0 0x80000>,
60 <0x0 0x2a480000 0x0 0x80000>;
61 reg-names = "rt", "scfg", "target_data";
62 #mbox-cells = <1>;
63 };
64
65 sysctrler: sysctrler {
66 u-boot,dm-spl;
67 compatible = "ti,am654-system-controller";
68 mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>;
69 mbox-names = "tx", "rx";
70 };
Keerthy69eceae2019-10-24 15:00:58 +053071
72 wkup_vtm0: wkup_vtm@42040000 {
73 compatible = "ti,am654-vtm", "ti,j721e-avs";
74 reg = <0x0 0x42040000 0x0 0x330>;
75 power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
76 #thermal-sensor-cells = <1>;
77 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053078};
79
80&dmsc {
81 mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
82 mbox-names = "tx", "rx", "notify";
83 ti,host-id = <4>;
84 ti,secure-host;
85};
86
87&wkup_pmx0 {
88 wkup_uart0_pins_default: wkup_uart0_pins_default {
89 u-boot,dm-spl;
90 pinctrl-single,pins = <
91 J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */
92 J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */
93 >;
94 };
95
96 mcu_uart0_pins_default: mcu_uart0_pins_default {
97 u-boot,dm-spl;
98 pinctrl-single,pins = <
99 J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */
100 J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */
101 J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */
102 J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */
103 >;
104 };
Keerthy0f63cea2019-10-24 15:00:59 +0530105
106 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
107 pinctrl-single,pins = <
108 J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
109 J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
110 >;
111 };
Vignesh Raghavendra224d7fe2020-02-04 11:09:52 +0530112
113 mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
114 pinctrl-single,pins = <
115 J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */
116 J721E_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* MCU_OSPI0_DQS */
117 J721E_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* MCU_OSPI0_D0 */
118 J721E_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* MCU_OSPI0_D1 */
119 J721E_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* MCU_OSPI0_D2 */
120 J721E_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* MCU_OSPI0_D3 */
121 J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* MCU_OSPI0_D4 */
122 J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* MCU_OSPI0_D5 */
123 J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* MCU_OSPI0_D6 */
124 J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* MCU_OSPI0_D7 */
125 J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */
126 >;
127 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530128};
129
130&main_pmx0 {
131 main_uart0_pins_default: main_uart0_pins_default {
132 u-boot,dm-spl;
133 pinctrl-single,pins = <
134 J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */
135 J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */
136 J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
137 J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
138 >;
139 };
Vignesh Raghavendra5aeab3b2019-11-18 19:16:35 +0530140
141 main_usbss0_pins_default: main_usbss0_pins_default {
142 pinctrl-single,pins = <
143 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
144 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
145 >;
146 };
Faiz Abbasccc855e2020-01-16 19:42:21 +0530147
148 main_mmc1_pins_default: main_mmc1_pins_default {
149 pinctrl-single,pins = <
150 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
151 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
152 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
153 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
154 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
155 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
156 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
157 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
158 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
159 >;
160 };
Vignesh Raghavendrab6427782020-01-27 23:22:15 +0530161
162 main_i2c0_pins_default: main-i2c0-pins-default {
163 pinctrl-single,pins = <
164 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
165 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
166 >;
167 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530168};
169
170&wkup_uart0 {
171 u-boot,dm-spl;
172 pinctrl-names = "default";
173 pinctrl-0 = <&wkup_uart0_pins_default>;
174 status = "okay";
175};
176
177&mcu_uart0 {
Lokesh Vutlafde109d2020-02-03 19:16:53 +0530178 /delete-property/ power-domains;
179 /delete-property/ clocks;
180 /delete-property/ clock-names;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530181 pinctrl-names = "default";
182 pinctrl-0 = <&mcu_uart0_pins_default>;
183 status = "okay";
Lokesh Vutlafde109d2020-02-03 19:16:53 +0530184 clock-frequency = <48000000>;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530185};
186
187&main_uart0 {
188 pinctrl-names = "default";
189 pinctrl-0 = <&main_uart0_pins_default>;
190 status = "okay";
191 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
192};
193
194&main_sdhci0 {
195 /delete-property/ power-domains;
196 /delete-property/ assigned-clocks;
197 /delete-property/ assigned-clock-parents;
198 clock-names = "clk_xin";
199 clocks = <&clk_200mhz>;
200 ti,driver-strength-ohm = <50>;
201 non-removable;
202 bus-width = <8>;
203};
204
205&main_sdhci1 {
206 /delete-property/ power-domains;
207 /delete-property/ assigned-clocks;
208 /delete-property/ assigned-clock-parents;
Faiz Abbasccc855e2020-01-16 19:42:21 +0530209 pinctrl-names = "default";
210 pinctrl-0 = <&main_mmc1_pins_default>;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530211 clock-names = "clk_xin";
212 clocks = <&clk_200mhz>;
213 ti,driver-strength-ohm = <50>;
214};
215
Keerthy0f63cea2019-10-24 15:00:59 +0530216&wkup_i2c0 {
217 u-boot,dm-spl;
218 tps659413a: tps659413a@48 {
219 reg = <0x48>;
220 compatible = "ti,tps659413";
221 u-boot,dm-spl;
222 pinctrl-names = "default";
223 pinctrl-0 = <&wkup_i2c0_pins_default>;
224 clock-frequency = <400000>;
225
226 regulators: regulators {
227 u-boot,dm-spl;
228 buck12_reg: buck12 {
229 /*VDD_MPU*/
230 regulator-name = "buck12";
231 regulator-min-microvolt = <800000>;
232 regulator-max-microvolt = <1250000>;
233 regulator-always-on;
234 regulator-boot-on;
235 u-boot,dm-spl;
236 };
237 };
238 };
239};
240
Keerthy2f714982019-10-24 15:01:00 +0530241&wkup_vtm0 {
242 vdd-supply-2 = <&buck12_reg>;
243 u-boot,dm-spl;
244};
245
Vignesh Raghavendrab070f582020-01-27 17:59:25 +0530246&usbss0 {
247 /delete-property/ power-domains;
248 /delete-property/ assigned-clocks;
249 /delete-property/ assigned-clock-parents;
250 clocks = <&clk_19_2mhz>;
251 clock-names = "usb2_refclk";
252 pinctrl-names = "default";
253 pinctrl-0 = <&main_usbss0_pins_default>;
254 ti,vbus-divider;
255};
256
Vignesh Raghavendrab6427782020-01-27 23:22:15 +0530257&main_i2c0 {
258 pinctrl-names = "default";
259 pinctrl-0 = <&main_i2c0_pins_default>;
260 clock-frequency = <400000>;
261
262 exp1: gpio@20 {
263 compatible = "ti,tca6416";
264 reg = <0x20>;
265 gpio-controller;
266 #gpio-cells = <2>;
267 };
268
269 exp2: gpio@22 {
270 compatible = "ti,tca6424";
271 reg = <0x22>;
272 gpio-controller;
273 #gpio-cells = <2>;
274 };
275};
276
Vignesh Raghavendra224d7fe2020-02-04 11:09:52 +0530277&ospi0 {
278 pinctrl-names = "default";
279 pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
280
281 reg = <0x0 0x47040000 0x0 0x100>,
282 <0x0 0x50000000 0x0 0x8000000>;
283
284 flash@0{
285 compatible = "jedec,spi-nor";
286 reg = <0x0>;
287 spi-tx-bus-width = <1>;
288 spi-rx-bus-width = <8>;
289 spi-max-frequency = <40000000>;
290 cdns,tshsl-ns = <60>;
291 cdns,tsd2d-ns = <60>;
292 cdns,tchsh-ns = <60>;
293 cdns,tslch-ns = <60>;
294 cdns,read-delay = <0>;
295 #address-cells = <1>;
296 #size-cells = <1>;
297 };
298};
299
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530300#include "k3-j721e-common-proc-board-u-boot.dtsi"