blob: ab5195eb15c58fe060c5593101dc836923a14172 [file] [log] [blame]
Lokesh Vutlab50abe22018-11-02 19:51:09 +05301// SPDX-License-Identifier: GPL-2.0
2/*
Nishanth Menoneaa39c62023-11-01 15:56:03 -05003 * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
Lokesh Vutlab50abe22018-11-02 19:51:09 +05304 */
5
6/dts-v1/;
7
Bryan Brattlof33d4ea32023-12-29 11:47:03 -06008#include "k3-am654-base-board.dts"
9#include "k3-am654-base-board-u-boot.dtsi"
James Doublesine88e4722019-10-07 14:04:25 +053010#include "k3-am654-base-board-ddr4-1600MTs.dtsi"
Lokesh Vutlab50abe22018-11-02 19:51:09 +053011#include "k3-am654-ddr.dtsi"
12
13/ {
Lokesh Vutlab50abe22018-11-02 19:51:09 +053014 aliases {
Bryan Brattlofd08cada2023-12-29 11:47:00 -060015 remoteproc0 = &sysctrler;
16 remoteproc1 = &a53_0;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053017 };
18
Lokesh Vutlab50abe22018-11-02 19:51:09 +053019 a53_0: a53@0 {
20 compatible = "ti,am654-rproc";
21 reg = <0x0 0x00a90000 0x0 0x10>;
Lokesh Vutla61ff6a32019-06-07 19:24:47 +053022 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
23 <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053024 resets = <&k3_reset 202 0>;
Manorit Chawdhryf23728b2024-10-15 16:22:19 +053025 clocks = <&k3_clks 61 0>, <&k3_clks 202 0>;
26 clock-names = "gtc", "core";
Lokesh Vutlab50abe22018-11-02 19:51:09 +053027 assigned-clocks = <&k3_clks 202 0>;
28 assigned-clock-rates = <800000000>;
29 ti,sci = <&dmsc>;
30 ti,sci-proc-id = <32>;
31 ti,sci-host-id = <10>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-pre-ram;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053033 };
Bryan Brattlofeec923e2023-12-29 11:47:21 -060034
35 clk_200mhz: dummy_clock {
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <200000000>;
39 bootph-pre-ram;
40 };
Lokesh Vutlab50abe22018-11-02 19:51:09 +053041};
42
Bryan Brattlof93897612023-12-29 11:47:22 -060043&secure_proxy_mcu {
44 status = "okay";
45 bootph-pre-ram;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053046};
47
48&cbass_wakeup {
49 sysctrler: sysctrler {
50 compatible = "ti,am654-system-controller";
Bryan Brattlof93897612023-12-29 11:47:22 -060051 mboxes= <&secure_proxy_mcu 4>, <&secure_proxy_mcu 5>;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053052 mbox-names = "tx", "rx";
Simon Glassd3a98cb2023-02-13 08:56:33 -070053 bootph-pre-ram;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053054 };
Lokesh Vutlab50abe22018-11-02 19:51:09 +053055};
56
Bryan Brattloff0593102023-12-29 11:47:06 -060057/*
58 * timer init is called as part of rproc_start() while
59 * starting System Firmware, so any clock/power-domain
60 * operations will fail as SYSFW is not yet up and running.
61 * Delete all clock/power-domain properties to avoid
62 * timer init failure.
63 * This is an always on timer at 20MHz.
64 */
65&mcu_timer0 {
66 /delete-property/ clocks;
67 /delete-property/ assigned-clocks;
68 /delete-property/ assigned-clock-parents;
69 /delete-property/ power-domains;
70};
71
Lokesh Vutlab50abe22018-11-02 19:51:09 +053072&dmsc {
Bryan Brattlof93897612023-12-29 11:47:22 -060073 mboxes = <&secure_proxy_mcu 8>,
74 <&secure_proxy_mcu 6>,
75 <&secure_proxy_mcu 5>;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053076 mbox-names = "tx", "rx", "notify";
77 ti,host-id = <4>;
78 ti,secure-host;
79};
80
81&wkup_uart0 {
Lokesh Vutlab50abe22018-11-02 19:51:09 +053082 status = "okay";
Bryan Brattlof62e59b22023-12-29 11:47:02 -060083 bootph-pre-ram;
Lokesh Vutlab50abe22018-11-02 19:51:09 +053084};
85
Andreas Dannenberg70734362019-08-15 15:55:30 -050086&mcu_uart0 {
Andreas Dannenberg70734362019-08-15 15:55:30 -050087 clock-frequency = <48000000>;
Lokesh Vutla462275c2021-02-01 11:26:39 +053088 /delete-property/ power-domains;
Andreas Dannenberg70734362019-08-15 15:55:30 -050089 status = "okay";
Bryan Brattlof62e59b22023-12-29 11:47:02 -060090 bootph-pre-ram;
Andreas Dannenberg70734362019-08-15 15:55:30 -050091};
92
Tero Kristo22193902019-10-24 15:00:57 +053093&wkup_vtm0 {
Lokesh Vutla462275c2021-02-01 11:26:39 +053094 compatible = "ti,am654-vtm", "ti,am654-avs";
Tero Kristo22193902019-10-24 15:00:57 +053095 vdd-supply-3 = <&vdd_mpu>;
96 vdd-supply-4 = <&vdd_mpu>;
Tero Kristo22193902019-10-24 15:00:57 +053097};
98
Lokesh Vutlab50abe22018-11-02 19:51:09 +053099&memorycontroller {
100 vtt-supply = <&vtt_supply>;
Lokesh Vutlab50abe22018-11-02 19:51:09 +0530101};
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530102
Bryan Brattlof5cd50642023-12-29 11:47:12 -0600103/*
104 * MMC is probed to pull in firmware, so any clock
105 * or power-domain operation will fail as we do not
106 * have the firmware running at this point. Delete the
107 * power-domain properties to avoid making calls to
108 * SYSFW before it is loaded. Public ROM has already
109 * set it up for us anyway.
110 */
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530111&sdhci0 {
112 clock-names = "clk_xin";
113 clocks = <&clk_200mhz>;
114 /delete-property/ power-domains;
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530115};
116
Bryan Brattlof86741b42023-12-29 11:47:13 -0600117/*
118 * MMC is probed to pull in firmware, so any clock
119 * or power-domain operation will fail as we do not
120 * have the firmware running at this point. Delete the
121 * power-domain properties to avoid making calls to
122 * SYSFW before it is loaded. Public ROM has already
123 * set it up for us anyway.
124 */
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530125&sdhci1 {
126 clock-names = "clk_xin";
127 clocks = <&clk_200mhz>;
128 /delete-property/ power-domains;
129};
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500130
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530131&ospi0 {
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530132 reg = <0x0 0x47040000 0x0 0x100>,
133 <0x0 0x50000000 0x0 0x8000000>;
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530134};
Faiz Abbas60a7ab22020-08-03 11:35:11 +0530135
Faiz Abbas60a7ab22020-08-03 11:35:11 +0530136&dwc3_0 {
137 status = "okay";
Aswath Govindraju57c687b2022-05-18 16:49:12 +0530138 /delete-property/ clocks;
Faiz Abbas60a7ab22020-08-03 11:35:11 +0530139 /delete-property/ power-domains;
140 /delete-property/ assigned-clocks;
141 /delete-property/ assigned-clock-parents;
142};
143
Bryan Brattlofd08cada2023-12-29 11:47:00 -0600144&mcu_cpsw {
145 reg = <0x0 0x46000000 0x0 0x200000>,
146 <0x0 0x40f00200 0x0 0x2>;
147 reg-names = "cpsw_nuss", "mac_efuse";
148 /delete-property/ ranges;
149
150 cpsw-phy-sel@40f04040 {
151 compatible = "ti,am654-cpsw-phy-sel";
152 reg= <0x0 0x40f04040 0x0 0x4>;
153 reg-names = "gmii-sel";
154 };
155};
156
157&usb1 {
158 dr_mode = "peripheral";
159};