diff mbox

[2/2] dts: hikey: Add pl031 RTC support to hi6220 dtsi

Message ID 1454464937-17622-2-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz Feb. 3, 2016, 2:02 a.m. UTC
Add support for pl031 rtc device to hi6220 dtsi

(Swiped from the 4.1 tree)

Signed-off-by: John Stultz <john.stultz@linaro.org>

---
 arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
1.9.1
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
index 432820e..3a394af 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
@@ -271,6 +271,14 @@ 
 			status = "disabled";
 		};
 
+		rtc0: rtc@170000 {
+			compatible = "arm,pl031", "arm,primecell";
+			reg = <0x0 0xf8003000 0x0 0x1000>;
+			interrupts = <0 12 4>;
+			clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
+			clock-names = "apb_pclk";
+		};
+
 		pmx0: pinmux@f7010000 {
 			compatible = "pinctrl-single";
 			reg = <0x0 0xf7010000  0x0 0x27c>;