]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm64: dts: imx8mm-kontron: Add RTC aliases
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 9 Jan 2023 11:42:18 +0000 (12:42 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 30 Jan 2023 22:23:02 +0000 (23:23 +0100)
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>
arch/arm/dts/imx8mm-kontron-bl.dts
arch/arm/dts/imx8mm-kontron-osm-s.dtsi

index a079322a37931ec7726cd6bac4c5eb0e4c7bc64c..dcec57c20399edf6e457b5fbf4fbc2b9dd0370b1 100644 (file)
@@ -13,6 +13,8 @@
 
        aliases {
                ethernet1 = &usbnet;
+               rtc0 = &rx8900;
+               rtc1 = &snvs_rtc;
        };
 
        /* fixed crystal dedicated to mcp2515 */
        pinctrl-0 = <&pinctrl_i2c4>;
        status = "okay";
 
-       rtc@32 {
+       rx8900: rtc@32 {
                compatible = "epson,rx8900";
                reg = <0x32>;
        };
index 8d10f5b412978b017f42e63d5746b247f46667d5..695da2fa7c42ac76451580aad20c00b76c333028 100644 (file)
        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";
                /*
                };
        };
 
-       rtc@52 {
+       rv3028: rtc@52 {
                compatible = "microcrystal,rv3028";
                reg = <0x52>;
                pinctrl-names = "default";