blob: 58b7c8ad050fde08f5f0f1b984eaa2062d56ca0b [file] [log] [blame]
Bryan Brattlofe1dd18c2022-11-03 19:13:52 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * AM62A7 SK dts file for R5 SPL
4 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
5 */
6
7#include "k3-am62a7-sk.dts"
8#include "k3-am62a-ddr-1866mhz-32bit.dtsi"
9#include "k3-am62a-ddr.dtsi"
10
11#include "k3-am62a7-sk-u-boot.dtsi"
12
13/ {
14 aliases {
15 remoteproc0 = &sysctrler;
16 remoteproc1 = &a53_0;
17 serial0 = &wkup_uart0;
18 serial3 = &main_uart1;
19 };
20
21 chosen {
22 stdout-path = "serial2:115200n8";
23 tick-timer = &timer1;
24 };
25
26 memory@80000000 {
27 device_type = "memory";
28 reg = <0x00000000 0x80000000 0x00000000 0x80000000>; /* 2G RAM */
29 u-boot,dm-spl;
30 };
31
32 reserved-memory {
33 #address-cells = <2>;
34 #size-cells = <2>;
35 ranges;
36
37 secure_ddr: optee@9e800000 {
38 reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
39 alignment = <0x1000>;
40 no-map;
41 };
42 };
43
44 a53_0: a53@0 {
45 compatible = "ti,am654-rproc";
46 reg = <0x00 0x00a90000 0x00 0x10>;
47 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
48 <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
49 resets = <&k3_reset 135 0>;
50 clocks = <&k3_clks 61 0>;
51 assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
52 assigned-clock-parents = <&k3_clks 61 2>;
53 assigned-clock-rates = <200000000>, <1200000000>;
54 ti,sci = <&dmsc>;
55 ti,sci-proc-id = <32>;
56 ti,sci-host-id = <10>;
57 u-boot,dm-spl;
58 };
59
60 dm_tifs: dm-tifs {
61 compatible = "ti,j721e-dm-sci";
62 ti,host-id = <36>;
63 ti,secure-host;
64 mbox-names = "rx", "tx";
65 mboxes= <&secure_proxy_main 22>,
66 <&secure_proxy_main 23>;
67 u-boot,dm-spl;
68 };
69};
70
71&dmsc {
72 mboxes= <&secure_proxy_main 0>,
73 <&secure_proxy_main 1>,
74 <&secure_proxy_main 0>;
75 mbox-names = "rx", "tx", "notify";
76 ti,host-id = <35>;
77 ti,secure-host;
78};
79
80&cbass_main {
81 sa3_secproxy: secproxy@44880000 {
82 compatible = "ti,am654-secure-proxy";
83 #mbox-cells = <1>;
84 reg = <0x00 0x44880000 0x00 0x20000>,
85 <0x0 0x44860000 0x0 0x20000>,
86 <0x0 0x43600000 0x0 0x10000>;
87 reg-names = "rt", "scfg", "target_data";
88 u-boot,dm-spl;
89 };
90
91 sysctrler: sysctrler {
92 compatible = "ti,am654-system-controller";
93 mboxes= <&secure_proxy_main 1>,
94 <&secure_proxy_main 0>,
95 <&sa3_secproxy 0>;
96 mbox-names = "tx", "rx", "boot_notify";
97 u-boot,dm-spl;
98 };
99};
100
101&mcu_pmx0 {
102 status = "okay";
103 u-boot,dm-spl;
104
105 wkup_uart0_pins_default: wkup-uart0-pins-default {
106 pinctrl-single,pins = <
107 AM62X_MCU_IOPAD(0x02c, PIN_INPUT, 0) /* (C6) WKUP_UART0_CTSn */
108 AM62X_MCU_IOPAD(0x030, PIN_OUTPUT, 0) /* (A4) WKUP_UART0_RTSn */
109 AM62X_MCU_IOPAD(0x024, PIN_INPUT, 0) /* (B4) WKUP_UART0_RXD */
110 AM62X_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (C5) WKUP_UART0_TXD */
111 >;
112 u-boot,dm-spl;
113 };
114};
115
116&main_pmx0 {
117 u-boot,dm-spl;
118 main_uart1_pins_default: main-uart1-pins-default {
119 pinctrl-single,pins = <
120 AM62X_IOPAD(0x194, PIN_INPUT, 2) /* (B19) MCASP0_AXR3.UART1_CTSn */
121 AM62X_IOPAD(0x198, PIN_OUTPUT, 2) /* (A19) MCASP0_AXR2.UART1_RTSn */
122 AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19) MCASP0_AFSR.UART1_RXD */
123 AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20) MCASP0_ACLKR.UART1_TXD */
124 >;
125 u-boot,dm-spl;
126 };
127};
128
129/* WKUP UART0 is used for DM firmware logs */
130&wkup_uart0 {
131 pinctrl-names = "default";
132 pinctrl-0 = <&wkup_uart0_pins_default>;
133 status = "okay";
134 u-boot,dm-spl;
135};
136
137/* Main UART1 is used for TIFS firmware logs */
138&main_uart1 {
139 pinctrl-names = "default";
140 pinctrl-0 = <&main_uart1_pins_default>;
141 status = "okay";
142 u-boot,dm-spl;
143};