Skip to contentSkip to conversation

arm64: dts: imx8mm-kontron: Add RTC aliases

PATCH In review Frieder Schrempf 3 participants 3 messages Jan 9, 2023 – Jan 31, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: imx8mm-kontron: Add RTC aliases

From: Frieder Schrempf <[email protected]>

Add aliases for the RTCs on the board and on the SoC. This ensures that the primary RTC is always the one on the board that has a buffered supply and maximum accuracy.

This is a direct port of the pending commit from linux-next.

---
 arch/arm/dts/imx8mm-kontron-bl.dts     | 4 +++-
 arch/arm/dts/imx8mm-kontron-osm-s.dtsi | 7 ++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)
arch/arm/dts/imx8mm-kontron-bl.dts +3 -1
index a079322a379..dcec57c2039 100644
@@ -13,6 +13,8 @@
 
 	aliases {
 		ethernet1 = &usbnet;
+		rtc0 = &rx8900;
+		rtc1 = &snvs_rtc;
 	};
 
 	/* fixed crystal dedicated to mcp2515 */
@@ -136,7 +138,7 @@
 	pinctrl-0 = <&pinctrl_i2c4>;
 	status = "okay";
 
-	rtc@32 {
+	rx8900: rtc@32 {
 		compatible = "epson,rx8900";
 		reg = <0x32>;
 	};
arch/arm/dts/imx8mm-kontron-osm-s.dtsi +6 -1
index 8d10f5b4129..695da2fa7c4 100644
@@ -10,6 +10,11 @@
 	model = "Kontron OSM-S i.MX8MM (N802X SOM)";
 	compatible = "kontron,imx8mm-osm-s", "fsl,imx8mm";
 
+	aliases {
+		rtc0 = &rv3028;
+		rtc1 = &snvs_rtc;
+	};
+
 	memory@40000000 {
 		device_type = "memory";
 		/*
@@ -200,7 +205,7 @@
 		};
 	};
 
-	rtc@52 {
+	rv3028: rtc@52 {
 		compatible = "microcrystal,rv3028";
 		reg = <0x52>;
 		pinctrl-names = "default";
Signature · 1 line
2.39.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

Add aliases for the RTCs on the board and on the SoC. This ensures that the primary RTC is always the one on the board that has a buffered supply and maximum accuracy.

This is a direct port of the pending commit from linux-next.

#2 lore raw

PATCH 1/1 arm64: dts: imx8mm-kontron: Add RTC aliases

In reply to Frieder Schrempf
Quoted 8 lines

From: Frieder Schrempf <[email protected]>
Add aliases for the RTCs on the board and on the SoC. This ensures that the primary RTC is always the one on the board that has a buffered supply and maximum accuracy.
This is a direct port of the pending commit from linux-next.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================