Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CM5's RTC to make Yellow's on-board RTC the primary one #3706

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From fc558b6a7174e2b5c37936dd8c13ca29e9273472 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= <[email protected]>
Date: Mon, 2 Dec 2024 17:22:04 +0100
Subject: [PATCH] ARM: dts: bcm2712: yellow: Disable rpi_rtc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Yellow has its own I2C RTC and there is no way to power the new peripheral on
CM5.

Signed-off-by: Jan Čermák <[email protected]>
---
arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5-ha-yellow.dts | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5-ha-yellow.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5-ha-yellow.dts
index 469d0fdc971a8..ebdeef5f89881 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5-ha-yellow.dts
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5-ha-yellow.dts
@@ -927,6 +927,11 @@ &i2c1 {
clock-frequency = <100000>;
};

+/* No way to power CM5's VBAT pin on Yellow, disable its RTC. */
+&rpi_rtc {
+ status = "disabled";
+};
+
/* Board-level I2C (RTC and I2S audio) */
&rp1_i2c3 {
pinctrl-names = "default";