From ae82f7fdcf1794ddb3481bae0a7b1d033eeb6023 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 1 Nov 2024 12:47:45 +0100 Subject: [PATCH] board/aarch64: disable rtc on styx, all revs The RTC in the CN913x series does not have any "valid" bit, and this board (all revs) does not have any backup power connected, so it will return garbage values after every vold boot. It was therefore decided to disable the RTC completely and set system time manually, or using an NTP client. This way any time skips would only ever be forward, never backwards. Signed-off-by: Joachim Wiberg --- board/aarch64/dts/styx/dcp-sc-28p.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/aarch64/dts/styx/dcp-sc-28p.dtsi b/board/aarch64/dts/styx/dcp-sc-28p.dtsi index c7402b3a..ae5ff48b 100644 --- a/board/aarch64/dts/styx/dcp-sc-28p.dtsi +++ b/board/aarch64/dts/styx/dcp-sc-28p.dtsi @@ -33,6 +33,14 @@ }; }; +/* + * RTC has no valid bit, and this board does not connect any + * backup power (e.g. supercap) to it, so it returns garbage + * after every cold reset. + */ +&cp0_rtc { + status = "disabled"; +}; /* UART0 (Console) */