blob: cc48fd4cb6075e00fc9d4593905752bad46663fb [file] [log] [blame]
Dave Gerlachb6059dd2021-04-23 11:27:46 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6/dts-v1/;
7
8#include "k3-am642.dtsi"
Dave Gerlachfe0f3e32021-05-04 18:00:52 -05009#include "k3-am64-evm-ddr4-1600MTs.dtsi"
10#include "k3-am64-ddr.dtsi"
Dave Gerlachb6059dd2021-04-23 11:27:46 -050011
12/ {
13 chosen {
14 stdout-path = "serial2:115200n8";
15 tick-timer = &timer1;
16 };
17
18 aliases {
19 remoteproc0 = &sysctrler;
20 remoteproc1 = &a53_0;
21 };
22
23 memory@80000000 {
24 device_type = "memory";
25 /* 2G RAM */
26 reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
27
28 };
29
30 a53_0: a53@0 {
31 compatible = "ti,am654-rproc";
32 reg = <0x00 0x00a90000 0x00 0x10>;
33 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
34 <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
35 resets = <&k3_reset 135 0>;
36 clocks = <&k3_clks 61 0>;
37 assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
38 assigned-clock-parents = <&k3_clks 61 2>;
39 assigned-clock-rates = <200000000>, <1000000000>;
40 ti,sci = <&dmsc>;
41 ti,sci-proc-id = <32>;
42 ti,sci-host-id = <10>;
43 u-boot,dm-spl;
44 };
45
46 reserved-memory {
47 #address-cells = <2>;
48 #size-cells = <2>;
49 ranges;
50
51 secure_ddr: optee@9e800000 {
52 reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
53 alignment = <0x1000>;
54 no-map;
55 };
56 };
57
58 clk_200mhz: dummy-clock-200mhz {
59 compatible = "fixed-clock";
60 #clock-cells = <0>;
61 clock-frequency = <200000000>;
62 u-boot,dm-spl;
63 };
Nishanth Menonab4c0722021-05-04 18:00:55 -050064
65 vtt_supply: vtt-supply {
66 compatible = "regulator-gpio";
67 regulator-name = "vtt";
68 regulator-min-microvolt = <0>;
69 regulator-max-microvolt = <3300000>;
70 gpios = <&main_gpio0 12 GPIO_ACTIVE_HIGH>;
71 states = <0 0x0 3300000 0x1>;
72 u-boot,dm-spl;
73 };
Dave Gerlachb6059dd2021-04-23 11:27:46 -050074};
75
76&cbass_main {
77 sysctrler: sysctrler {
78 compatible = "ti,am654-system-controller";
79 mboxes= <&secure_proxy_main 1>, <&secure_proxy_main 0>;
80 mbox-names = "tx", "rx";
81 u-boot,dm-spl;
82 };
83};
84
85&main_pmx0 {
86 u-boot,dm-spl;
87 main_uart0_pins_default: main-uart0-pins-default {
88 u-boot,dm-spl;
89 pinctrl-single,pins = <
90 AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
91 AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */
92 AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */
93 AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */
94 >;
95 };
96
97 main_uart1_pins_default: main-uart1-pins-default {
98 u-boot,dm-spl;
99 pinctrl-single,pins = <
100 AM64X_IOPAD(0x0248, PIN_INPUT, 0) /* (D16) UART1_CTSn */
101 AM64X_IOPAD(0x024c, PIN_OUTPUT, 0) /* (E16) UART1_RTSn */
102 AM64X_IOPAD(0x0240, PIN_INPUT, 0) /* (E15) UART1_RXD */
103 AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) /* (E14) UART1_TXD */
104 >;
105 };
106
107 main_mmc0_pins_default: main-mmc0-pins-default {
108 u-boot,dm-spl;
109 pinctrl-single,pins = <
110 AM64X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
111 AM64X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
112 AM64X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
113 AM64X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
114 AM64X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
115 AM64X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
116 AM64X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
117 AM64X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
118 AM64X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
119 AM64X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
120 AM64X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
121 >;
122 };
123
124 main_mmc1_pins_default: main-mmc1-pins-default {
125 u-boot,dm-spl;
126 pinctrl-single,pins = <
127 AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */
128 AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */
129 AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */
130 AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */
131 AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */
132 AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */
133 AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */
134 AM64X_IOPAD(0x029c, PIN_INPUT_PULLUP, 0) /* (C20) MMC1_SDWP */
135 >;
136 };
Nishanth Menonab4c0722021-05-04 18:00:55 -0500137
138 ddr_vtt_pins_default: ddr-vtt-pins-default {
139 u-boot,dm-spl;
140 pinctrl-single,pins = <
141 AM64X_IOPAD(0x0030, PIN_OUTPUT_PULLUP, 7) /* (L18) OSPI0_CSN1.GPIO0_12 */
142 >;
143 };
Aswath Govindraju7803a5b2021-06-04 22:00:36 +0530144
145 main_usb0_pins_default: main-usb0-pins-default {
146 pinctrl-single,pins = <
147 AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
148 >;
149 };
Dave Gerlachb6059dd2021-04-23 11:27:46 -0500150};
151
152&dmsc {
153 mboxes= <&secure_proxy_main 0>,
154 <&secure_proxy_main 1>,
155 <&secure_proxy_main 0>;
156 mbox-names = "rx", "tx", "notify";
157 ti,host-id = <35>;
158 ti,secure-host;
159};
160
161&main_uart0 {
162 /delete-property/ power-domains;
163 /delete-property/ clocks;
164 /delete-property/ clock-names;
165 pinctrl-names = "default";
166 pinctrl-0 = <&main_uart0_pins_default>;
167 status = "okay";
168};
169
170&main_uart1 {
171 u-boot,dm-spl;
172 pinctrl-names = "default";
173 pinctrl-0 = <&main_uart1_pins_default>;
174};
175
Nishanth Menonab4c0722021-05-04 18:00:55 -0500176&memorycontroller {
177 vtt-supply = <&vtt_supply>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&ddr_vtt_pins_default>;
180};
181
Dave Gerlachb6059dd2021-04-23 11:27:46 -0500182&sdhci0 {
183 /delete-property/ power-domains;
184 clocks = <&clk_200mhz>;
185 clock-names = "clk_xin";
186 ti,driver-strength-ohm = <50>;
187 disable-wp;
188 pinctrl-0 = <&main_mmc0_pins_default>;
189};
190
191&sdhci1 {
192 /delete-property/ power-domains;
193 clocks = <&clk_200mhz>;
194 clock-names = "clk_xin";
195 ti,driver-strength-ohm = <50>;
196 disable-wp;
197 pinctrl-0 = <&main_mmc1_pins_default>;
198};
199
Nishanth Menonab4c0722021-05-04 18:00:55 -0500200&main_gpio0 {
201 u-boot,dm-spl;
202 /delete-property/ power-domains;
203};
204
Lokesh Vutlae922b5a2021-05-06 16:44:57 +0530205/* EEPROM might be read before SYSFW is available */
206&main_i2c0 {
207 /delete-property/ power-domains;
208};
209
Aswath Govindraju7803a5b2021-06-04 22:00:36 +0530210&usbss0 {
211 ti,vbus-divider;
212 ti,usb2-only;
213};
214
215&usb0 {
216 dr_mode = "otg";
217 maximum-speed = "high-speed";
218 pinctrl-names = "default";
219 pinctrl-0 = <&main_usb0_pins_default>;
220};
221
Dave Gerlachb6059dd2021-04-23 11:27:46 -0500222#include "k3-am642-evm-u-boot.dtsi"