[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230201143431.863784-8-frieder@fris.de>
Date: Wed, 1 Feb 2023 15:34:29 +0100
From: Frieder Schrempf <frieder@...s.de>
To: devicetree@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>
Cc: Frieder Schrempf <frieder.schrempf@...tron.de>,
Fabio Estevam <festevam@...il.com>,
Heiko Thiery <heiko.thiery@...il.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Marek Vasut <marex@...x.de>,
NXP Linux Team <linux-imx@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>
Subject: [PATCH 7/7] arm64: dts: imx8mm-kontron: Enable backup switch mode for RTC on OSM-S module
From: Frieder Schrempf <frieder.schrempf@...tron.de>
The board has a battery backup supply for the RTC, but the factory
default is to have BSM disabled. Therefore the time will not be
preserved if the board is not supplied. Fix this by forcing the RTC
into BSM level mode.
Signed-off-by: Frieder Schrempf <frieder.schrempf@...tron.de>
---
arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
index 131f98cf5a04..5188b5b718a0 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
@@ -4,6 +4,7 @@
*/
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/rtc/rtc.h>
#include "imx8mm.dtsi"
/ {
@@ -206,6 +207,7 @@ rtc@52 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_rtc>;
interrupts-extended = <&gpio4 1 IRQ_TYPE_LEVEL_HIGH>;
+ backup-switch-mode = <RTC_BSM_LEVEL>;
};
};
--
2.39.1
Powered by blists - more mailing lists