Add RTC support to i.MX8QM
Subsystems (3)
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
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
@@ -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
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.
Signed-off-by Abel Vesa <[email protected]>--- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Alexandre Belloni
maintainerRe: [PATCH 1/3] dt-bindings: fsl: scu: Add i.MX8QM rtc binding
In reply to Abel VesaQuoted 12 lines · Abel Vesa
Add i.MX8QM rtc compatible to the SCU bindings documentation.
Signed-off-by Abel Vesa <[email protected]>--- 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
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
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.
Signed-off-by Abel Vesa <[email protected]>--- 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@@ -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
-1Required 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/
PATCH 2/3 rtc: imx-sc: Add i.MX8QM RTC support
In reply to Abel VesaAdd i.MX8QM RTC support.
--- drivers/rtc/rtc-imx-sc.c | 1 + 1 file changed, 1 insertion(+)
drivers/rtc/rtc-imx-sc.c +1 -0
@@ -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
PATCH 3/3 arm64: dts: imx8qm: Add SCU RTC node
In reply to Abel VesaAdd 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
@@ -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