blob: 5973e211c387fd5ed3a662cf29234c4a49e36a69 [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;
16 };
17
18 chosen {
19 stdout-path = "serial2:115200n8";
20 tick-timer = &timer1;
21 };
22
23 a72_0: a72@0 {
24 compatible = "ti,am654-rproc";
25 reg = <0x0 0x00a90000 0x0 0x10>;
26 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
27 <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>;
28 resets = <&k3_reset 202 0>;
29 assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>;
30 assigned-clock-rates = <2000000000>, <200000000>;
31 ti,sci = <&dmsc>;
32 ti,sci-proc-id = <32>;
33 ti,sci-host-id = <10>;
34 u-boot,dm-spl;
35 };
36
Faiz Abbas0abf6002020-02-26 13:44:37 +053037 clk_200mhz: dummy_clock_200mhz {
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053038 compatible = "fixed-clock";
39 #clock-cells = <0>;
40 clock-frequency = <200000000>;
41 u-boot,dm-spl;
42 };
Vignesh Raghavendrab070f582020-01-27 17:59:25 +053043
Faiz Abbas0abf6002020-02-26 13:44:37 +053044 clk_19_2mhz: dummy_clock_19_2mhz {
Vignesh Raghavendrab070f582020-01-27 17:59:25 +053045 compatible = "fixed-clock";
46 #clock-cells = <0>;
47 clock-frequency = <19200000>;
48 u-boot,dm-spl;
49 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053050};
51
52&cbass_mcu_wakeup {
53 mcu_secproxy: secproxy@28380000 {
54 u-boot,dm-spl;
55 compatible = "ti,am654-secure-proxy";
56 reg = <0x0 0x2a380000 0x0 0x80000>,
57 <0x0 0x2a400000 0x0 0x80000>,
58 <0x0 0x2a480000 0x0 0x80000>;
59 reg-names = "rt", "scfg", "target_data";
60 #mbox-cells = <1>;
61 };
62
63 sysctrler: sysctrler {
64 u-boot,dm-spl;
65 compatible = "ti,am654-system-controller";
66 mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>;
67 mbox-names = "tx", "rx";
68 };
Keerthy69eceae2019-10-24 15:00:58 +053069
70 wkup_vtm0: wkup_vtm@42040000 {
71 compatible = "ti,am654-vtm", "ti,j721e-avs";
72 reg = <0x0 0x42040000 0x0 0x330>;
73 power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
74 #thermal-sensor-cells = <1>;
75 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +053076};
77
78&dmsc {
79 mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
80 mbox-names = "tx", "rx", "notify";
81 ti,host-id = <4>;
82 ti,secure-host;
83};
84
85&wkup_pmx0 {
86 wkup_uart0_pins_default: wkup_uart0_pins_default {
87 u-boot,dm-spl;
88 pinctrl-single,pins = <
89 J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */
90 J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */
91 >;
92 };
93
94 mcu_uart0_pins_default: mcu_uart0_pins_default {
95 u-boot,dm-spl;
96 pinctrl-single,pins = <
97 J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */
98 J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */
99 J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */
100 J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */
101 >;
102 };
Keerthy0f63cea2019-10-24 15:00:59 +0530103
104 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
105 pinctrl-single,pins = <
106 J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
107 J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
108 >;
109 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530110};
111
112&main_pmx0 {
113 main_uart0_pins_default: main_uart0_pins_default {
114 u-boot,dm-spl;
115 pinctrl-single,pins = <
116 J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */
117 J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */
118 J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
119 J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
120 >;
121 };
Vignesh Raghavendra5aeab3b2019-11-18 19:16:35 +0530122
123 main_usbss0_pins_default: main_usbss0_pins_default {
124 pinctrl-single,pins = <
125 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
126 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
127 >;
128 };
Faiz Abbasccc855e2020-01-16 19:42:21 +0530129
130 main_mmc1_pins_default: main_mmc1_pins_default {
131 pinctrl-single,pins = <
132 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
133 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
134 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
135 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
136 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
137 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
138 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
139 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
140 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
141 >;
142 };
Vignesh Raghavendrab6427782020-01-27 23:22:15 +0530143
144 main_i2c0_pins_default: main-i2c0-pins-default {
145 pinctrl-single,pins = <
146 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
147 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
148 >;
149 };
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530150};
151
152&wkup_uart0 {
153 u-boot,dm-spl;
154 pinctrl-names = "default";
155 pinctrl-0 = <&wkup_uart0_pins_default>;
156 status = "okay";
157};
158
159&mcu_uart0 {
Lokesh Vutlafde109d2020-02-03 19:16:53 +0530160 /delete-property/ power-domains;
161 /delete-property/ clocks;
162 /delete-property/ clock-names;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530163 pinctrl-names = "default";
164 pinctrl-0 = <&mcu_uart0_pins_default>;
165 status = "okay";
Lokesh Vutlafde109d2020-02-03 19:16:53 +0530166 clock-frequency = <48000000>;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530167};
168
169&main_uart0 {
170 pinctrl-names = "default";
171 pinctrl-0 = <&main_uart0_pins_default>;
172 status = "okay";
173 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
174};
175
176&main_sdhci0 {
177 /delete-property/ power-domains;
178 /delete-property/ assigned-clocks;
179 /delete-property/ assigned-clock-parents;
180 clock-names = "clk_xin";
181 clocks = <&clk_200mhz>;
182 ti,driver-strength-ohm = <50>;
183 non-removable;
184 bus-width = <8>;
185};
186
187&main_sdhci1 {
188 /delete-property/ power-domains;
189 /delete-property/ assigned-clocks;
190 /delete-property/ assigned-clock-parents;
Faiz Abbasccc855e2020-01-16 19:42:21 +0530191 pinctrl-names = "default";
192 pinctrl-0 = <&main_mmc1_pins_default>;
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530193 clock-names = "clk_xin";
194 clocks = <&clk_200mhz>;
195 ti,driver-strength-ohm = <50>;
196};
197
Keerthy0f63cea2019-10-24 15:00:59 +0530198&wkup_i2c0 {
199 u-boot,dm-spl;
200 tps659413a: tps659413a@48 {
201 reg = <0x48>;
202 compatible = "ti,tps659413";
203 u-boot,dm-spl;
204 pinctrl-names = "default";
205 pinctrl-0 = <&wkup_i2c0_pins_default>;
206 clock-frequency = <400000>;
207
208 regulators: regulators {
209 u-boot,dm-spl;
210 buck12_reg: buck12 {
211 /*VDD_MPU*/
212 regulator-name = "buck12";
213 regulator-min-microvolt = <800000>;
214 regulator-max-microvolt = <1250000>;
215 regulator-always-on;
216 regulator-boot-on;
217 u-boot,dm-spl;
218 };
219 };
220 };
221};
222
Keerthy2f714982019-10-24 15:01:00 +0530223&wkup_vtm0 {
224 vdd-supply-2 = <&buck12_reg>;
225 u-boot,dm-spl;
226};
227
Vignesh Raghavendrab070f582020-01-27 17:59:25 +0530228&usbss0 {
229 /delete-property/ power-domains;
230 /delete-property/ assigned-clocks;
231 /delete-property/ assigned-clock-parents;
232 clocks = <&clk_19_2mhz>;
233 clock-names = "usb2_refclk";
234 pinctrl-names = "default";
235 pinctrl-0 = <&main_usbss0_pins_default>;
236 ti,vbus-divider;
237};
238
Vignesh Raghavendrab6427782020-01-27 23:22:15 +0530239&main_i2c0 {
240 pinctrl-names = "default";
241 pinctrl-0 = <&main_i2c0_pins_default>;
242 clock-frequency = <400000>;
243
244 exp1: gpio@20 {
245 compatible = "ti,tca6416";
246 reg = <0x20>;
247 gpio-controller;
248 #gpio-cells = <2>;
249 };
250
251 exp2: gpio@22 {
252 compatible = "ti,tca6424";
253 reg = <0x22>;
254 gpio-controller;
255 #gpio-cells = <2>;
256 };
257};
258
Lokesh Vutlaaebb2a42019-06-13 10:29:55 +0530259#include "k3-j721e-common-proc-board-u-boot.dtsi"