All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
@ 2022-11-30 11:13 ` Frieder Schrempf
  0 siblings, 0 replies; 7+ messages in thread
From: Frieder Schrempf @ 2022-11-30 11:13 UTC (permalink / raw)
  To: devicetree, Krzysztof Kozlowski, linux-arm-kernel, linux-kernel,
	Rob Herring, Sascha Hauer, Shawn Guo
  Cc: Frieder Schrempf, Fabio Estevam, Heiko Thiery,
	Krzysztof Kozlowski, NXP Linux Team, Oleksij Rempel,
	Pengutronix Kernel Team

From: Frieder Schrempf <frieder.schrempf@kontron.de>

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.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
 arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts     | 4 +++-
 arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 7 ++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
index a079322a3793..dcec57c20399 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
@@ -13,6 +13,8 @@ / {
 
 	aliases {
 		ethernet1 = &usbnet;
+		rtc0 = &rx8900;
+		rtc1 = &snvs_rtc;
 	};
 
 	/* fixed crystal dedicated to mcp2515 */
@@ -136,7 +138,7 @@ &i2c4 {
 	pinctrl-0 = <&pinctrl_i2c4>;
 	status = "okay";
 
-	rtc@32 {
+	rx8900: rtc@32 {
 		compatible = "epson,rx8900";
 		reg = <0x32>;
 	};
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 8d10f5b41297..695da2fa7c42 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
@@ -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 @@ reg_nvcc_sd: LDO5 {
 		};
 	};
 
-	rtc@52 {
+	rv3028: rtc@52 {
 		compatible = "microcrystal,rv3028";
 		reg = <0x52>;
 		pinctrl-names = "default";
-- 
2.38.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
@ 2022-11-30 11:13 ` Frieder Schrempf
  0 siblings, 0 replies; 7+ messages in thread
From: Frieder Schrempf @ 2022-11-30 11:13 UTC (permalink / raw)
  To: devicetree, Krzysztof Kozlowski, linux-arm-kernel, linux-kernel,
	Rob Herring, Sascha Hauer, Shawn Guo
  Cc: Frieder Schrempf, Fabio Estevam, Heiko Thiery,
	Krzysztof Kozlowski, NXP Linux Team, Oleksij Rempel,
	Pengutronix Kernel Team

From: Frieder Schrempf <frieder.schrempf@kontron.de>

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.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
 arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts     | 4 +++-
 arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 7 ++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
index a079322a3793..dcec57c20399 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
@@ -13,6 +13,8 @@ / {
 
 	aliases {
 		ethernet1 = &usbnet;
+		rtc0 = &rx8900;
+		rtc1 = &snvs_rtc;
 	};
 
 	/* fixed crystal dedicated to mcp2515 */
@@ -136,7 +138,7 @@ &i2c4 {
 	pinctrl-0 = <&pinctrl_i2c4>;
 	status = "okay";
 
-	rtc@32 {
+	rx8900: rtc@32 {
 		compatible = "epson,rx8900";
 		reg = <0x32>;
 	};
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 8d10f5b41297..695da2fa7c42 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi
@@ -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 @@ reg_nvcc_sd: LDO5 {
 		};
 	};
 
-	rtc@52 {
+	rv3028: rtc@52 {
 		compatible = "microcrystal,rv3028";
 		reg = <0x52>;
 		pinctrl-names = "default";
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
  2022-11-30 11:13 ` Frieder Schrempf
@ 2022-12-31 11:59   ` Shawn Guo
  -1 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2022-12-31 11:59 UTC (permalink / raw)
  To: Frieder Schrempf
  Cc: devicetree, Krzysztof Kozlowski, linux-arm-kernel, linux-kernel,
	Rob Herring, Sascha Hauer, Frieder Schrempf, Fabio Estevam,
	Heiko Thiery, Krzysztof Kozlowski, NXP Linux Team, Oleksij Rempel,
	Pengutronix Kernel Team

On Wed, Nov 30, 2022 at 12:13:49PM +0100, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
> 
> 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.
> 
> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>

Applied, thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
@ 2022-12-31 11:59   ` Shawn Guo
  0 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2022-12-31 11:59 UTC (permalink / raw)
  To: Frieder Schrempf
  Cc: devicetree, Krzysztof Kozlowski, linux-arm-kernel, linux-kernel,
	Rob Herring, Sascha Hauer, Frieder Schrempf, Fabio Estevam,
	Heiko Thiery, Krzysztof Kozlowski, NXP Linux Team, Oleksij Rempel,
	Pengutronix Kernel Team

On Wed, Nov 30, 2022 at 12:13:49PM +0100, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
> 
> 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.
> 
> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>

Applied, thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
@ 2023-01-09 11:42 Frieder Schrempf
  2023-01-09 13:32 ` Fabio Estevam
  2023-01-31  9:50 ` sbabic
  0 siblings, 2 replies; 7+ messages in thread
From: Frieder Schrempf @ 2023-01-09 11:42 UTC (permalink / raw)
  To: Fabio Estevam, Frieder Schrempf, Stefano Babic, u-boot
  Cc: Shawn Guo, Fabio Estevam, Heiko Thiery, NXP i.MX U-Boot Team

From: Frieder Schrempf <frieder.schrempf@kontron.de>

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.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
---
 arch/arm/dts/imx8mm-kontron-bl.dts     | 4 +++-
 arch/arm/dts/imx8mm-kontron-osm-s.dtsi | 7 ++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/imx8mm-kontron-bl.dts b/arch/arm/dts/imx8mm-kontron-bl.dts
index a079322a379..dcec57c2039 100644
--- a/arch/arm/dts/imx8mm-kontron-bl.dts
+++ b/arch/arm/dts/imx8mm-kontron-bl.dts
@@ -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>;
 	};
diff --git a/arch/arm/dts/imx8mm-kontron-osm-s.dtsi b/arch/arm/dts/imx8mm-kontron-osm-s.dtsi
index 8d10f5b4129..695da2fa7c4 100644
--- a/arch/arm/dts/imx8mm-kontron-osm-s.dtsi
+++ b/arch/arm/dts/imx8mm-kontron-osm-s.dtsi
@@ -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";
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
  2023-01-09 11:42 Frieder Schrempf
@ 2023-01-09 13:32 ` Fabio Estevam
  2023-01-31  9:50 ` sbabic
  1 sibling, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2023-01-09 13:32 UTC (permalink / raw)
  To: Frieder Schrempf
  Cc: Fabio Estevam, Frieder Schrempf, Stefano Babic, u-boot, Shawn Guo,
	Heiko Thiery, NXP i.MX U-Boot Team

On 09/01/2023 08:42, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
> 
> 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.
> 
> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
> Signed-off-by: Shawn Guo <shawnguo@kernel.org>

Reviewed-by: Fabio Estevam <festevam@denx.de>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases
  2023-01-09 11:42 Frieder Schrempf
  2023-01-09 13:32 ` Fabio Estevam
@ 2023-01-31  9:50 ` sbabic
  1 sibling, 0 replies; 7+ messages in thread
From: sbabic @ 2023-01-31  9:50 UTC (permalink / raw)
  To: Frieder Schrempf, u-boot

> From: Frieder Schrempf <frieder.schrempf@kontron.de>
> 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.
> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
> Reviewed-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-31  9:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 11:13 [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases Frieder Schrempf
2022-11-30 11:13 ` Frieder Schrempf
2022-12-31 11:59 ` Shawn Guo
2022-12-31 11:59   ` Shawn Guo
  -- strict thread matches above, loose matches on Subject: below --
2023-01-09 11:42 Frieder Schrempf
2023-01-09 13:32 ` Fabio Estevam
2023-01-31  9:50 ` sbabic

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.