Skip to contentSkip to conversation

Add RTC support to i.MX8QM

PATCH In review Abel Vesa 3 participants 7 messages Dec 21, 2021 – Jan 3, 2022

Subsystems (3)
lore
Share & tools
lore

Abel Vesa

author
#0 lore raw

cover Add RTC support to i.MX8QM

This adds rtc devicetree node to i.MX8QM, adds the compatible to the rtc-imx-sc driver and documents it.

Abel Vesa (3):
dt-bindings: fsl: scu: Add i.MX8QM rtc binding
rtc: imx-sc: Add i.MX8QM RTC support
arm64: dts: imx8qm: Add SCU RTC node

 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 arch/arm64/boot/dts/freescale/imx8qm.dtsi                   | 3 +++
 drivers/rtc/rtc-imx-sc.c                                    | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/3 dt-bindings: fsl: scu: Add i.MX8QM rtc binding

Add i.MX8QM rtc compatible to the SCU bindings documentation.

---
 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +3 -1
index f1470d562156..4633be2182dd 100644
@@ -134,7 +134,9 @@ RTC bindings based on SCU Message Protocol
 ------------------------------------------------------------
 
 Required properties:
-- compatible: should be "fsl,imx8qxp-sc-rtc";
+- compatible:		Should be one of:
+			"fsl,imx8qm-sc-rtc",
+			"fsl,imx8qxp-sc-rtc".
 
 OCOTP bindings based on SCU Message Protocol
 ------------------------------------------------------------
Signature · 1 line
2.31.1
maintainer Acked-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] dt-bindings: fsl: scu: Add i.MX8QM rtc binding

Quoted 7 lines · Abel Vesa

Add i.MX8QM rtc compatible to the SCU bindings documentation.

---
 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
#3 lore raw

Re: [PATCH 1/3] dt-bindings: fsl: scu: Add i.MX8QM rtc binding

In reply to Abel Vesa
Quoted 12 lines · Abel Vesa

Add i.MX8QM rtc compatible to the SCU bindings documentation.

---
 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +0 -0
index f1470d562156..4633be2182dd 100644

Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt RTC bindings based on SCU Message Protocol · line 139

Quoted 7 lines
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +3 -1
@@ -134,7 +134,9 @@ RTC bindings based on SCU Message Protocol
 ------------------------------------------------------------
 
 Required properties:
-- compatible: should be "fsl,imx8qxp-sc-rtc";
+- compatible:		Should be one of:
+			"fsl,imx8qm-sc-rtc",
+			"fsl,imx8qxp-sc-rtc".

Are the imx8qm and imx8qxp SCU actually different? I would hope you won't had a third messaging protocol for the RTC...

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#4 lore raw

Re: [PATCH 1/3] dt-bindings: fsl: scu: Add i.MX8QM rtc binding

Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · Abel Vesa

Add i.MX8QM rtc compatible to the SCU bindings documentation.

---
 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +0 -0
index f1470d562156..4633be2182dd 100644
@@ -134,7 +134,9 @@ RTC bindings based on SCU Message Protocol
 ------------------------------------------------------------
 
Quoted 9 lines

Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt RTC bindings based on SCU Message Protocol · line 139

Quoted 5 lines
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +3 -1
 Required properties:
-- compatible: should be "fsl,imx8qxp-sc-rtc";
+- compatible:		Should be one of:
+			"fsl,imx8qm-sc-rtc",
+			"fsl,imx8qxp-sc-rtc".

Are the imx8qm and imx8qxp SCU actually different? I would hope you won't had a third messaging protocol for the RTC...

Sorry, my bad.

No, there is no difference between imx8mq and imx8qxp.

I'll replace the compatible in the imx8qm.dtsi with fsl,imx8qxp-sc-rtc, drop this patch and the one that adds the compatible to the rtc driver.

Quoted 5 lines
Signature · 4 lines
-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com/
author
#5 lore raw

PATCH 2/3 rtc: imx-sc: Add i.MX8QM RTC support

In reply to Abel Vesa

Add i.MX8QM RTC support.

---
 drivers/rtc/rtc-imx-sc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/rtc/rtc-imx-sc.c +1 -0
index 814d516645e2..6828f894e15e 100644
@@ -166,6 +166,7 @@ static int imx_sc_rtc_probe(struct platform_device *pdev)
 
 static const struct of_device_id imx_sc_dt_ids[] = {
 	{ .compatible = "fsl,imx8qxp-sc-rtc", },
+	{ .compatible = "fsl,imx8qm-sc-rtc", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, imx_sc_dt_ids);
Signature · 1 line
2.31.1
author
#6 lore raw

PATCH 3/3 arm64: dts: imx8qm: Add SCU RTC node

In reply to Abel Vesa

Add SCU RTC node to support SC RTC driver.

---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm.dtsi +3 -0
index 4a7c017b5f31..9e5de26b01a0 100644
@@ -201,6 +201,9 @@ iomuxc: pinctrl {
 			compatible = "fsl,imx8qm-iomuxc";
 		};
 
+		rtc: rtc {
+			compatible = "fsl,imx8qm-sc-rtc";
+		};
 	};
 
 	/* sorted in register address */
Signature · 1 line
2.31.1