ARM: dts: rockchip: Add rtc node for VMARC SOM
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 30 Nov 2020 13:28:14 +0000 (14:28 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 30 Nov 2020 13:30:56 +0000 (14:30 +0100)
Add the hym8563 rtc found on the rk3288 variant of the VMARC SOM.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Link: https://lore.kernel.org/r/20201023181814.220974-2-jagan@amarulasolutions.com
[split out of the original patch, as it was a change unrelated
 to the commit description]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3288-vmarc-som.dtsi

index 4a373f5..da80bfd 100644 (file)
        };
 };
 
+&i2c1 {
+       clock-frequency = <400000>;
+       status = "okay";
+
+       hym8563: rtc@51 {
+               compatible = "haoyu,hym8563";
+               reg = <0x51>;
+               interrupt-parent = <&gpio5>;
+               interrupts = <RK_PC3 IRQ_TYPE_LEVEL_LOW>;
+               #clock-cells = <0>;
+               clock-frequency = <32768>;
+               clock-output-names = "hym8563";
+               pinctrl-names = "default";
+               pinctrl-0 = <&hym8563_int>;
+       };
+};
+
 &i2c5 {
        status = "okay";
 };
 };
 
 &pinctrl {
+       hym8563 {
+               hym8563_int: hym8563-int {
+                       rockchip,pins = <5 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+
        pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
                drive-strength = <8>;
        };