arm64: dts: imx8mp-phyboard-pollux: Add and update rtc devicetree node
authorYashwanth Varakala <y.varakala@phytec.de>
Thu, 22 Feb 2024 12:28:50 +0000 (13:28 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 25 Feb 2024 13:10:08 +0000 (21:10 +0800)
The interrupt of the RTC is connected on the carrier board
phyBOARD-i.MX8MP-Pollux.

RTC trickle-charger devicetree property is dependent on the
phyboard-pollux design.

Signed-off-by: Yashwanth Varakala <y.varakala@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi

index 9e8afce..7df8faf 100644 (file)
        pinctrl-0 = <&pinctrl_pwm3>;
 };
 
+&rv3028 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_rtc>;
+       interrupt-parent = <&gpio4>;
+       interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
+       wakeup-source;
+       trickle-resistor-ohms = <3000>;
+};
+
 /* debug console */
 &uart1 {
        pinctrl-names = "default";
                >;
        };
 
+       pinctrl_rtc: rtcgrp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19      0x1C0
+               >;
+       };
+
        pinctrl_uart1: uart1grp {
                fsl,pins = <
                        MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX    0x40
index c976c3b..e6ffa6a 100644 (file)
        rv3028: rtc@52 {
                compatible = "microcrystal,rv3028";
                reg = <0x52>;
-               trickle-resistor-ohms = <3000>;
        };
 };