blob: e62f9218e830f0f9e1f7708bbd352995004534df [file] [log] [blame]
Dave Gerlachfe506932020-08-05 22:44:29 +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
8#include "k3-j7200-som-p0.dtsi"
Kevin Scholz7a16fb52021-06-03 08:14:53 -05009#include "k3-j7200-ddr-evm-lp4-2666.dtsi"
Dave Gerlachfe506932020-08-05 22:44:29 +053010#include "k3-j721e-ddr.dtsi"
11
12/ {
13 aliases {
14 remoteproc0 = &sysctrler;
15 remoteproc1 = &a72_0;
16 };
17
18 chosen {
19 stdout-path = &main_uart0;
20 tick-timer = &timer1;
Suman Anna0da9b002020-08-18 14:09:44 -050021 firmware-loader = &fs_loader0;
22 };
23
24 fs_loader0: fs_loader@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070025 bootph-all;
Suman Anna0da9b002020-08-18 14:09:44 -050026 compatible = "u-boot,fs-loader";
Dave Gerlachfe506932020-08-05 22:44:29 +053027 };
28
29 a72_0: a72@0 {
30 compatible = "ti,am654-rproc";
31 reg = <0x0 0x00a90000 0x0 0x10>;
32 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
Manorit Chawdhry2806e832023-04-14 09:47:55 +053033 <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>,
34 <&k3_pds 4 TI_SCI_PD_EXCLUSIVE>;
Dave Gerlachfe506932020-08-05 22:44:29 +053035 resets = <&k3_reset 202 0>;
Nishanth Menon975b78c2021-01-06 13:20:31 -060036 clocks = <&k3_clks 61 1>;
Dave Gerlachfe506932020-08-05 22:44:29 +053037 assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>;
38 assigned-clock-rates = <2000000000>, <200000000>;
39 ti,sci = <&dmsc>;
40 ti,sci-proc-id = <32>;
41 ti,sci-host-id = <10>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070042 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +053043 };
44
45 clk_200mhz: dummy_clock_200mhz {
46 compatible = "fixed-clock";
47 #clock-cells = <0>;
48 clock-frequency = <200000000>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070049 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +053050 };
51
52 clk_19_2mhz: dummy_clock_19_2mhz {
53 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <19200000>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070056 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +053057 };
58};
59
60&memorycontroller {
61 power-domains = <&k3_pds 8 TI_SCI_PD_SHARED>,
62 <&k3_pds 90 TI_SCI_PD_SHARED>;
63 clocks = <&k3_clks 8 5>, <&k3_clks 30 9>;
64};
65
66&cbass_mcu_wakeup {
67 mcu_secproxy: secproxy@2a380000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070068 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +053069 compatible = "ti,am654-secure-proxy";
70 reg = <0x0 0x2a380000 0x0 0x80000>,
71 <0x0 0x2a400000 0x0 0x80000>,
72 <0x0 0x2a480000 0x0 0x80000>;
73 reg-names = "rt", "scfg", "target_data";
74 #mbox-cells = <1>;
75 };
76
77 sysctrler: sysctrler {
Simon Glassd3a98cb2023-02-13 08:56:33 -070078 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +053079 compatible = "ti,am654-system-controller";
80 mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>;
81 mbox-names = "tx", "rx";
82 };
Vignesh Raghavendra98181972021-06-07 19:47:50 +053083
84 dm_tifs: dm-tifs {
85 compatible = "ti,j721e-dm-sci";
86 ti,host-id = <3>;
87 ti,secure-host;
88 mbox-names = "rx", "tx";
89 mboxes= <&mcu_secproxy 21>,
90 <&mcu_secproxy 23>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070091 bootph-pre-ram;
Vignesh Raghavendra98181972021-06-07 19:47:50 +053092 };
Gowtham Tammana3a345012021-07-14 15:52:58 -050093
94 wkup_vtm0: vtm@42040000 {
95 compatible = "ti,am654-vtm", "ti,j721e-avs";
96 reg = <0x0 0x42040000 0x0 0x330>;
97 power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
98 #thermal-sensor-cells = <1>;
99 };
Dave Gerlachfe506932020-08-05 22:44:29 +0530100};
101
102&dmsc {
103 mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
104 mbox-names = "tx", "rx", "notify";
105 ti,host-id = <4>;
106 ti,secure-host;
107};
108
109&wkup_pmx0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700110 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530111 wkup_uart0_pins_default: wkup_uart0_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700112 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530113 pinctrl-single,pins = <
114 J721E_WKUP_IOPAD(0xb0, PIN_INPUT, 0) /* (B14) WKUP_UART0_RXD */
115 J721E_WKUP_IOPAD(0xb4, PIN_OUTPUT, 0) /* (A14) WKUP_UART0_TXD */
116 >;
117 };
118
119 mcu_uart0_pins_default: mcu_uart0_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700120 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530121 pinctrl-single,pins = <
122 J721E_WKUP_IOPAD(0xf4, PIN_INPUT, 0) /* (D20) WKUP_GPIO0_13.MCU_UART0_RXD */
123 J721E_WKUP_IOPAD(0xf0, PIN_OUTPUT, 0) /* (D19) WKUP_GPIO0_12.MCU_UART0_TXD */
124 J721E_WKUP_IOPAD(0xf8, PIN_INPUT, 0) /* (E20) WKUP_GPIO0_14.MCU_UART0_CTSn */
125 J721E_WKUP_IOPAD(0xfc, PIN_OUTPUT, 0) /* (E21) WKUP_GPIO0_15.MCU_UART0_RTSn */
126 >;
127 };
128
129 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
130 pinctrl-single,pins = <
131 J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) WKUP_I2C0_SCL */
132 J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */
133 >;
134 };
Vignesh Raghavendra962f95f2020-08-13 14:56:17 +0530135
136 mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default {
137 pinctrl-single,pins = <
138 J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* (E20) MCU_OSPI0_CLK.MCU_HYPERBUS0_CK */
139 J721E_WKUP_IOPAD(0x4, PIN_OUTPUT, 1) /* (C21) MCU_OSPI0_LBCLKO.MCU_HYPERBUS0_CKn */
140 J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 1) /* (F19) MCU_OSPI0_CSn0.MCU_HYPERBUS0_CSn0 */
141 J721E_WKUP_IOPAD(0x54, PIN_OUTPUT, 3) /* (E22) MCU_OSPI1_CSn1.MCU_HYPERBUS0_CSn1 */
142 J721E_WKUP_IOPAD(0x30, PIN_OUTPUT, 1) /* (E19) MCU_OSPI0_CSn1.MCU_HYPERBUS0_RESETn */
143 J721E_WKUP_IOPAD(0x8, PIN_INPUT, 1) /* (D21) MCU_OSPI0_DQS.MCU_HYPERBUS0_RWDS */
144 J721E_WKUP_IOPAD(0xc, PIN_INPUT, 1) /* (D20) MCU_OSPI0_D0.MCU_HYPERBUS0_DQ0 */
145 J721E_WKUP_IOPAD(0x10, PIN_INPUT, 1) /* (G19) MCU_OSPI0_D1.MCU_HYPERBUS0_DQ1 */
146 J721E_WKUP_IOPAD(0x14, PIN_INPUT, 1) /* (G20) MCU_OSPI0_D2.MCU_HYPERBUS0_DQ2 */
147 J721E_WKUP_IOPAD(0x18, PIN_INPUT, 1) /* (F20) MCU_OSPI0_D3.MCU_HYPERBUS0_DQ3 */
148 J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 1) /* (F21) MCU_OSPI0_D4.MCU_HYPERBUS0_DQ4 */
149 J721E_WKUP_IOPAD(0x20, PIN_INPUT, 1) /* (E21) MCU_OSPI0_D5.MCU_HYPERBUS0_DQ5 */
150 J721E_WKUP_IOPAD(0x24, PIN_INPUT, 1) /* (B22) MCU_OSPI0_D6.MCU_HYPERBUS0_DQ6 */
151 J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1) /* (G21) MCU_OSPI0_D7.MCU_HYPERBUS0_DQ7 */
152 >;
153 };
154
155 wkup_gpio_pins_default: wkup-gpio-pins-default {
156 pinctrl-single,pins = <
157 J721E_WKUP_IOPAD(0xd8, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */
158 >;
159 };
Dave Gerlachfe506932020-08-05 22:44:29 +0530160};
161
162&main_pmx0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700163 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530164
165 main_uart0_pins_default: main_uart0_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700166 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530167 pinctrl-single,pins = <
168 J721E_IOPAD(0xb0, PIN_INPUT, 0) /* (T16) UART0_RXD */
169 J721E_IOPAD(0xb4, PIN_OUTPUT, 0) /* (T17) UART0_TXD */
170 J721E_IOPAD(0xc0, PIN_INPUT, 2) /* (W3) SPI0_CS0.UART0_CTSn */
171 J721E_IOPAD(0xc4, PIN_OUTPUT, 2) /* (U5) SPI0_CS1.UART0_RTSn */
172 >;
173 };
174
175 main_i2c0_pins_default: main-i2c0-pins-default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700176 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530177 pinctrl-single,pins = <
178 J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */
179 J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */
180 >;
181 };
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +0530182
Faiz Abbas131c3322021-02-04 15:11:00 +0530183 main_mmc1_pins_default: main_mmc1_pins_default {
184 pinctrl-single,pins = <
185 J721E_IOPAD(0x104, PIN_INPUT, 0) /* (M20) MMC1_CMD */
186 J721E_IOPAD(0x100, PIN_INPUT, 0) /* (P21) MMC1_CLK */
187 J721E_IOPAD(0xfc, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
188 J721E_IOPAD(0xf8, PIN_INPUT, 0) /* (M19) MMC1_DAT0 */
189 J721E_IOPAD(0xf4, PIN_INPUT, 0) /* (N21) MMC1_DAT1 */
190 J721E_IOPAD(0xf0, PIN_INPUT, 0) /* (N20) MMC1_DAT2 */
191 J721E_IOPAD(0xec, PIN_INPUT, 0) /* (N19) MMC1_DAT3 */
192 J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */
193 >;
194 };
195
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +0530196 main_usbss0_pins_default: main_usbss0_pins_default {
197 pinctrl-single,pins = <
198 J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */
199 >;
200 };
Dave Gerlachfe506932020-08-05 22:44:29 +0530201};
202
203&wkup_uart0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700204 bootph-pre-ram;
Dave Gerlachfe506932020-08-05 22:44:29 +0530205 pinctrl-names = "default";
206 pinctrl-0 = <&wkup_uart0_pins_default>;
207 status = "okay";
208};
209
210&mcu_uart0 {
211 /delete-property/ power-domains;
212 /delete-property/ clocks;
213 /delete-property/ clock-names;
214 pinctrl-names = "default";
215 pinctrl-0 = <&mcu_uart0_pins_default>;
216 status = "okay";
217 clock-frequency = <96000000>;
218};
219
220&main_uart0 {
221 status = "okay";
222 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&main_uart0_pins_default>;
225 status = "okay";
226};
227
228&main_sdhci0 {
229 /delete-property/ power-domains;
230 /delete-property/ assigned-clocks;
231 /delete-property/ assigned-clock-parents;
Faiz Abbas131c3322021-02-04 15:11:00 +0530232 pinctrl-0 = <&main_mmc1_pins_default>;
233 pinctrl-names = "default";
Dave Gerlachfe506932020-08-05 22:44:29 +0530234 clock-names = "clk_xin";
235 clocks = <&clk_200mhz>;
236 ti,driver-strength-ohm = <50>;
237 non-removable;
238 bus-width = <8>;
239};
240
241&main_sdhci1 {
242 /delete-property/ power-domains;
243 /delete-property/ assigned-clocks;
244 /delete-property/ assigned-clock-parents;
245 clock-names = "clk_xin";
246 clocks = <&clk_200mhz>;
247 ti,driver-strength-ohm = <50>;
248};
249
Gowtham Tammana8a6a7c12021-07-14 15:52:57 -0500250&wkup_i2c0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700251 bootph-pre-ram;
Gowtham Tammana8a6a7c12021-07-14 15:52:57 -0500252 lp876441: lp876441@4c {
253 compatible = "ti,lp876441";
254 reg = <0x4c>;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700255 bootph-pre-ram;
Gowtham Tammana8a6a7c12021-07-14 15:52:57 -0500256 pinctrl-names = "default";
257 pinctrl-0 = <&wkup_i2c0_pins_default>;
258 clock-frequency = <400000>;
259
260 regulators: regulators {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700261 bootph-pre-ram;
Gowtham Tammana8a6a7c12021-07-14 15:52:57 -0500262 buck1_reg: buck1 {
263 /*VDD_CPU_AVS_REG*/
264 regulator-name = "buck1";
265 regulator-min-microvolt = <800000>;
266 regulator-max-microvolt = <1250000>;
267 regulator-always-on;
268 regulator-boot-on;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700269 bootph-pre-ram;
Gowtham Tammana8a6a7c12021-07-14 15:52:57 -0500270 };
271 };
272 };
273
274};
275
Gowtham Tammana5075bad2021-07-14 15:52:59 -0500276&wkup_vtm0 {
277 vdd-supply-2 = <&buck1_reg>;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700278 bootph-pre-ram;
Gowtham Tammana5075bad2021-07-14 15:52:59 -0500279};
280
Dave Gerlachfe506932020-08-05 22:44:29 +0530281&main_i2c0 {
282 pinctrl-names = "default";
283 pinctrl-0 = <&main_i2c0_pins_default>;
284 clock-frequency = <400000>;
285
286 exp1: gpio@20 {
287 compatible = "ti,tca6416";
288 reg = <0x20>;
289 gpio-controller;
290 #gpio-cells = <2>;
291 };
292
293 exp2: gpio@22 {
294 compatible = "ti,tca6424";
295 reg = <0x22>;
296 gpio-controller;
297 #gpio-cells = <2>;
298 };
299};
300
Vignesh Raghavendra9bbc49f2020-08-07 00:26:56 +0530301&usbss0 {
302 pinctrl-names = "default";
303 pinctrl-0 = <&main_usbss0_pins_default>;
304 ti,vbus-divider;
305 ti,usb2-only;
306};
307
308&usb0 {
309 dr_mode = "otg";
310 maximum-speed = "high-speed";
311};
312
Vignesh Raghavendra962f95f2020-08-13 14:56:17 +0530313&hbmc {
314 status = "okay";
315 pinctrl-names = "default";
316 pinctrl-0 = <&mcu_fss0_hpb0_pins_default>;
317 reg = <0x0 0x47040000 0x0 0x100>,
318 <0x0 0x50000000 0x0 0x8000000>;
319 ranges = <0x0 0x0 0x0 0x50000000 0x4000000>, /* 64MB Flash on CS0 */
320 <0x1 0x0 0x0 0x54000000 0x800000>; /* 8MB flash on CS1 */
321
322 flash@0,0 {
323 compatible = "cypress,hyperflash", "cfi-flash";
324 reg = <0x0 0x0 0x4000000>;
325 };
326};
327
Vignesh Raghavendra98181972021-06-07 19:47:50 +0530328&mcu_ringacc {
329 ti,sci = <&dm_tifs>;
330};
331
332&mcu_udmap {
333 ti,sci = <&dm_tifs>;
334};
Dave Gerlachfe506932020-08-05 22:44:29 +0530335#include "k3-j7200-common-proc-board-u-boot.dtsi"