arm64: dts: imx8mm-venice-*: add RTC aliases
authorTim Harvey <tharvey@gateworks.com>
Mon, 9 Sep 2024 22:15:01 +0000 (15:15 -0700)
committerShawn Guo <shawnguo@kernel.org>
Wed, 16 Oct 2024 07:30:14 +0000 (15:30 +0800)
Add aliases for the RTCs on the Gateworks Venice boards and on the imx8m
SoC. This ensures that the primary RTC is always the one on-board
provided by the Gateworks System Controller (GSC) which is battery
backed as opposed to the one in the IMX8M.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7903.dts
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts
arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts
arch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi
arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts

index 36803b0..5a3b114 100644 (file)
@@ -9,6 +9,11 @@
 #include <dt-bindings/net/ti-dp83867.h>
 
 / {
+       aliases {
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
+       };
+
        memory@40000000 {
                device_type = "memory";
                reg = <0x0 0x40000000 0 0x80000000>;
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index 35ae0fa..d8b67e1 100644 (file)
@@ -22,6 +22,8 @@
                ethernet2 = &lan2;
                ethernet3 = &lan3;
                ethernet4 = &lan4;
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
                usb0 = &usbotg1;
                usb1 = &usbotg2;
        };
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index c11260c..46d1ee0 100644 (file)
@@ -19,6 +19,8 @@
 
        aliases {
                ethernet1 = &eth1;
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
                usb0 = &usbotg1;
                usb1 = &usbotg2;
        };
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index db1737b..c0aadff 100644 (file)
@@ -18,6 +18,8 @@
 
        aliases {
                ethernet0 = &fec1;
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
                usb0 = &usbotg1;
        };
 
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index 05489a3..86a610d 100644 (file)
        model = "Gateworks Venice GW7904 i.MX8MM board";
        compatible = "gateworks,imx8mm-gw7904", "fsl,imx8mm";
 
+       aliases {
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
+       };
+
        chosen {
                stdout-path = &uart2;
        };
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index 0b1fa04..30c286b 100644 (file)
@@ -17,6 +17,8 @@
        compatible = "gw,imx8mn-gw7902", "fsl,imx8mn";
 
        aliases {
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
                usb0 = &usbotg1;
        };
 
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index 6c75a5e..10713c3 100644 (file)
@@ -11,6 +11,8 @@
 / {
        aliases {
                ethernet0 = &eqos;
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
        };
 
        memory@40000000 {
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };
index 9885948..6daa231 100644 (file)
@@ -25,6 +25,8 @@
                ethernet4 = &lan3;
                ethernet5 = &lan4;
                ethernet6 = &lan5;
+               rtc0 = &gsc_rtc;
+               rtc1 = &snvs_rtc;
        };
 
        chosen {
                pagesize = <16>;
        };
 
-       rtc@68 {
+       gsc_rtc: rtc@68 {
                compatible = "dallas,ds1672";
                reg = <0x68>;
        };