diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2020-11-30 14:28:14 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2020-11-30 14:30:56 +0100 |
commit | 3f4f3bdadd802dfa1cbb5b905507fdb2e940e830 (patch) | |
tree | b3c0f277d151c307838750bf00f4e44970273dde /arch/arm/boot/dts/rk3288-vmarc-som.dtsi | |
parent | 06bccda2c13c07d4ac7ebfef766a968c788cbdbf (diff) | |
download | lwn-3f4f3bdadd802dfa1cbb5b905507fdb2e940e830.tar.gz lwn-3f4f3bdadd802dfa1cbb5b905507fdb2e940e830.zip |
ARM: dts: rockchip: Add rtc node for VMARC SOM
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>
Diffstat (limited to 'arch/arm/boot/dts/rk3288-vmarc-som.dtsi')
-rw-r--r-- | arch/arm/boot/dts/rk3288-vmarc-som.dtsi | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi index 4a373f5aa600..da80bfd5f2d5 100644 --- a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi +++ b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi @@ -231,6 +231,23 @@ }; }; +&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"; }; @@ -245,6 +262,12 @@ }; &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>; }; |