diff options
author | Heiko Stübner <heiko@sntech.de> | 2014-08-20 15:07:22 -0400 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2014-08-27 17:40:52 -0400 |
commit | 4721ab855d1a1d3e472ff38d1cae06e23e0520cf (patch) | |
tree | d0e80eb2ada5f4ba4f8dd4192e123dc6cb6f97d4 | |
parent | 0541f94fdff89fb7bc14bf5fe0da21d9d19a0c6d (diff) |
ARM: dts: rockchip: add hym8563 rtc to Radxa Rock board
The Radxa Rock uses a hym8563 as rtc. Add the i2c device and necessary
pinconfig for the interrupt pin - labeled rtc_int in the schematics.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r-- | arch/arm/boot/dts/rk3188-radxarock.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm/boot/dts/rk3188-radxarock.dts index ef72faf9059a..ff35acfa8ae7 100644 --- a/arch/arm/boot/dts/rk3188-radxarock.dts +++ b/arch/arm/boot/dts/rk3188-radxarock.dts | |||
@@ -80,6 +80,17 @@ | |||
80 | status = "okay"; | 80 | status = "okay"; |
81 | clock-frequency = <400000>; | 81 | clock-frequency = <400000>; |
82 | 82 | ||
83 | rtc@51 { | ||
84 | compatible = "haoyu,hym8563"; | ||
85 | reg = <0x51>; | ||
86 | interrupt-parent = <&gpio0>; | ||
87 | interrupts = <13 IRQ_TYPE_EDGE_FALLING>; | ||
88 | pinctrl-names = "default"; | ||
89 | pinctrl-0 = <&rtc_int>; | ||
90 | #clock-cells = <0>; | ||
91 | clock-output-names = "xin32k"; | ||
92 | }; | ||
93 | |||
83 | act8846: act8846@5a { | 94 | act8846: act8846@5a { |
84 | compatible = "active-semi,act8846"; | 95 | compatible = "active-semi,act8846"; |
85 | reg = <0x5a>; | 96 | reg = <0x5a>; |
@@ -196,6 +207,12 @@ | |||
196 | }; | 207 | }; |
197 | }; | 208 | }; |
198 | 209 | ||
210 | hym8563 { | ||
211 | rtc_int: rtc-int { | ||
212 | rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>; | ||
213 | }; | ||
214 | }; | ||
215 | |||
199 | ir-receiver { | 216 | ir-receiver { |
200 | ir_recv_pin: ir-recv-pin { | 217 | ir_recv_pin: ir-recv-pin { |
201 | rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>; | 218 | rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>; |