All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan Brattlof <bb@ti.com>
To: Tom Rini <trini@konsulko.com>
Cc: UBoot Mailing List <u-boot@lists.denx.de>,
	Vignesh Raghavendra <vigneshr@ti.com>, Andrew Davis <afd@ti.com>,
	Nishanth Menon <nm@ti.com>,
	Neha Malcom Francis <n-francis@ti.com>,
	Manorit Chawdhry <m-chawdhry@ti.com>,
	Martyn Welch <martyn.welch@collabora.com>,
	Svyatoslav Ryhel <clamor95@gmail.com>,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>,
	Simon Glass <sjg@chromium.org>, Bryan Brattlof <bb@ti.com>
Subject: [PATCH 09/26] arm: dts: k3-am654: remove duplicate timer
Date: Thu, 21 Dec 2023 11:43:55 -0600	[thread overview]
Message-ID: <20231221174412.210807-10-bb@ti.com> (raw)
In-Reply-To: <20231221174412.210807-1-bb@ti.com>

timer1 is really just the mcu_timer0 node redefined for the WKUP SPL.
Remove the timer1 and replace it with the mcu_timer0 from the Linux
device tree we imported into U-Boot.

Signed-off-by: Bryan Brattlof <bb@ti.com>
---
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 12 ++++++++
 arch/arm/dts/k3-am654-r5-base-board.dts      | 29 ++++++++++----------
 2 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi b/arch/arm/dts/k3-am654-base-board-u-boot.dtsi
index 7ec65f8fa98aa..9cd8c353c515b 100644
--- a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi
+++ b/arch/arm/dts/k3-am654-base-board-u-boot.dtsi
@@ -5,6 +5,18 @@
 
 #include "k3-am65x-binman.dtsi"
 
+/ {
+	chosen {
+		tick-timer = &mcu_timer0;
+	};
+};
+
+&mcu_timer0 {
+	ti,timer-alwon;
+	clock-frequency = <25000000>;
+	bootph-all;
+};
+
 &vtt_supply {
 	bootph-pre-ram;
 };
diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts b/arch/arm/dts/k3-am654-r5-base-board.dts
index 3e94cfccd4321..3b27ad842532c 100644
--- a/arch/arm/dts/k3-am654-r5-base-board.dts
+++ b/arch/arm/dts/k3-am654-r5-base-board.dts
@@ -26,11 +26,6 @@
 		usb1 = &usb1;
 	};
 
-	chosen {
-		stdout-path = "serial2:115200n8";
-		tick-timer = &timer1;
-	};
-
 	a53_0: a53@0 {
 		compatible = "ti,am654-rproc";
 		reg = <0x0 0x00a90000 0x0 0x10>;
@@ -47,16 +42,6 @@
 	};
 };
 
-&cbass_main {
-	timer1: timer@40400000 {
-		compatible = "ti,omap5430-timer";
-		reg = <0x0 0x40400000 0x0 0x80>;
-		ti,timer-alwon;
-		clock-frequency = <25000000>;
-		bootph-all;
-	};
-};
-
 &cbass_mcu {
 	mcu_secproxy: secproxy@28380000 {
 		compatible = "ti,am654-secure-proxy";
@@ -108,6 +93,20 @@
 	};
 };
 
+/* timer init is called as part of rproc_start() while
+ * starting System Firmware, so any clock/power-domain
+ * operations will fail as SYSFW is not yet up and running.
+ * Delete all clock/power-domain properties to avoid
+ * timer init failure.
+ * This is an always on timer at 20MHz.
+ */
+&mcu_timer0 {
+	/delete-property/ clocks;
+	/delete-property/ assigned-clocks;
+	/delete-property/ assigned-clock-parents;
+	/delete-property/ power-domains;
+};
+
 &dmsc {
 	mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
 	mbox-names = "tx", "rx", "notify";
-- 
2.43.0


  parent reply	other threads:[~2023-12-21 17:48 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-21 17:43 [PATCH 00/26] sync am65x device tree with Linux v6.7-rc1 Bryan Brattlof
2023-12-21 17:43 ` [PATCH 01/26] configs: am65x_evm_r5: enable driver for fixed regulators Bryan Brattlof
2023-12-21 17:43 ` [PATCH 02/26] configs: am65x_evm_a53: disable CONSOLE_MUX Bryan Brattlof
2023-12-21 17:43 ` [PATCH 03/26] arm: dts: k3-am654-r5: Merge board file and U-Boot overlay Bryan Brattlof
2023-12-21 17:43 ` [PATCH 04/26] arm: dts: k3-am654: pull in dtb update from Linux Bryan Brattlof
2023-12-21 17:43 ` [PATCH 05/26] arm: dts: k3-am654: copy bootph properties to a53 dts Bryan Brattlof
2023-12-21 17:43 ` [PATCH 06/26] arm: dts: k3-am654: include a53 board dtb for r5 build Bryan Brattlof
2023-12-21 17:43 ` [PATCH 07/26] arm: dts: k3-am654: remove duplicate vtt_supply Bryan Brattlof
2023-12-21 17:43 ` [PATCH 08/26] arm: dts: k3-am654: remove duplicate wkup_uart0 Bryan Brattlof
2023-12-21 17:43 ` Bryan Brattlof [this message]
2023-12-21 17:43 ` [PATCH 10/26] arm: dts: k3-am654: remove duplicate mcu_ringacc Bryan Brattlof
2023-12-21 17:43 ` [PATCH 11/26] arm: dts: k3-am654: remove duplicate mcu_udmap Bryan Brattlof
2023-12-21 17:43 ` [PATCH 12/26] arm: dts: k3-am654: add needed regs to udmap nodes Bryan Brattlof
2023-12-27 12:25   ` Nishanth Menon
2023-12-28 17:18     ` Bryan Brattlof
2023-12-21 17:43 ` [PATCH 13/26] arm: dts: k3-am654: remove duplicate mcu_uart0 node Bryan Brattlof
2023-12-21 17:44 ` [PATCH 14/26] arm: dts: k3-am654: remove duplicate main_uart0 Bryan Brattlof
2023-12-21 17:44 ` [PATCH 15/26] arm: dts: k3-am654: remove duplicate sdhci0 pinmux node Bryan Brattlof
2023-12-27 12:30   ` Nishanth Menon
2023-12-21 17:44 ` [PATCH 16/26] arm: dts: k3-am654: remove duplicate sdhci1 " Bryan Brattlof
2023-12-27 12:31   ` Nishanth Menon
2023-12-21 17:44 ` [PATCH 17/26] arm: dts: k3-am654: remove duplicate wkup_i2c0 Bryan Brattlof
2023-12-21 17:44 ` [PATCH 18/26] arm: dts: k3-am654: remove duplicate ospi0 node Bryan Brattlof
2023-12-21 17:44 ` [PATCH 19/26] arm: dts: k3-am654: remove usb0 Bryan Brattlof
2023-12-21 17:44 ` [PATCH 20/26] arm: dts: k3-am654: remove duplicate mdio Bryan Brattlof
2023-12-21 17:44 ` [PATCH 21/26] arm: dts: k3-am654: remove duplicate vtt pinmux Bryan Brattlof
2023-12-21 17:44 ` [PATCH 22/26] arm: dts: k3-am654: remove duplicate root properties Bryan Brattlof
2023-12-21 17:44 ` [PATCH 23/26] arm: dts: k3-am654: remove un-needed aliases Bryan Brattlof
2023-12-21 17:44 ` [PATCH 24/26] arm: dts: k3-am654: move dummy_clock to root node Bryan Brattlof
2023-12-21 17:44 ` [PATCH 25/26] arm: dts: k3-am65: remove duplicate mcu secure proxy node Bryan Brattlof
2023-12-21 17:44 ` [PATCH 26/26] arm: dts: k3-am654: convert bootph-pre-ram to bootph-all Bryan Brattlof
2023-12-27 12:29   ` Nishanth Menon
2023-12-28 17:30     ` Bryan Brattlof
2023-12-21 20:00 ` [PATCH 00/26] sync am65x device tree with Linux v6.7-rc1 Tom Rini
2023-12-27 12:39   ` Nishanth Menon
2023-12-27 13:32     ` Tom Rini
2024-01-02  7:27     ` Jan Kiszka
2024-01-02 17:42       ` Tom Rini
2024-01-03  5:10         ` Jan Kiszka
2024-01-03 15:50           ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231221174412.210807-10-bb@ti.com \
    --to=bb@ti.com \
    --cc=afd@ti.com \
    --cc=clamor95@gmail.com \
    --cc=m-chawdhry@ti.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=martyn.welch@collabora.com \
    --cc=n-francis@ti.com \
    --cc=nm@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.