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 36803b038cd54a30d4ceb3a7d07701f897993d05..5a3b1142ddf4b7d31db2e6e2723e86cc089a96db 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 35ae0faa815bc5d436c2665882e7127bf5ff3bb1..d8b67e12f7d7470224efa12f73c7495de86be2a0 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 c11260c26d0b43b67c19852119eda98e3364cb9a..46d1ee0a4ee86b025d94453460770e08b5dd8d32 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 db1737bf637df13f3eb1a43a330a600705a9a20a..c0aadff4e25b180a6354eb7aa4f4d5b8c099e8f2 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 05489a31e7fd8d85efb36a75b1c341705bb95676..86a610de84fe2348554354f838e1d824a24a4322 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 0b1fa04f1d678190f3c88713fe6b7bc0c7a5e4d3..30c286b34aa535e1ac7ef5affd3b9bcb6a81b633 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 6c75a5ecf56bb1156bf679b429508e433ee2d375..10713c34ff3977474f783a3ccd3ad22c905d40d6 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 9885948952b44c2e383c47cb977258f410f57f8a..6daa2313f879008abcbcb4c382dbd41e9282ec79 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>;
        };