arm64: dts: rockchip: Enable RTC for edgeble-neu6b
authorJagan Teki <jagan@edgeble.ai>
Thu, 13 Jul 2023 14:39:38 +0000 (20:09 +0530)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 14 Jul 2023 15:26:51 +0000 (17:26 +0200)
Add RTC support for Edgeble Neu6B NCM IO board.

Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Link: https://lore.kernel.org/r/20230713143941.1756849-5-jagan@edgeble.ai
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6b-io.dts

index d6982d4aaee6654395260b2379623715aabfe75b..0583b0d49a0decaf8f9fe102f5d6f8b4491a6122 100644 (file)
        status = "okay";
 };
 
+&i2c6 {
+       status = "okay";
+
+       hym8563: rtc@51 {
+               compatible = "haoyu,hym8563";
+               reg = <0x51>;
+               interrupt-parent = <&gpio0>;
+               interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
+               #clock-cells = <0>;
+               clock-output-names = "hym8563";
+               pinctrl-names = "default";
+               pinctrl-0 = <&hym8563_int>;
+               wakeup-source;
+       };
+};
+
+&pinctrl {
+       hym8563 {
+               hym8563_int: hym8563-int {
+                       rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+};
+
 &sata0 {
        status = "okay";
 };