arm64: dts: rockchip: Add RTC to Khadas Edge 2
authorMuhammed Efe Cetin <efectn@protonmail.com>
Mon, 19 Feb 2024 22:34:25 +0000 (01:34 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 11 Apr 2024 18:22:11 +0000 (20:22 +0200)
Khadas Edge 2 has PT7C4363 RTC that compatible with HYM8563.
The RTC pinctrl is also connected to MCU.

Signed-off-by: Muhammed Efe Cetin <efectn@protonmail.com>
Link: https://lore.kernel.org/r/4c4c9140ff36f290ba64ecc8b3e218df6a5ab273.1708381247.git.efectn@protonmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts

index 4173afb78f9b33f1507e535137a8d6a43d2755b0..ea085abb98ec49f53ccdec4fb934428430d497b6 100644 (file)
        };
 };
 
+&i2c2 {
+       status = "okay";
+
+       hym8563: rtc@51 {
+               compatible = "haoyu,hym8563";
+               reg = <0x51>;
+               #clock-cells = <0>;
+               clock-output-names = "hym8563";
+               wakeup-source;
+       };
+};
+
 &pinctrl {
        vdd_sd {
                vdd_sd_en: vdd-sd-en {