Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1434133

[PATCH 2/2 v3] arm64: dts: hi6220: Add pl031 RTC support

From John Stultz <john.stultz@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 2/2 v3] arm64: dts: hi6220: Add pl031 RTC support
Date 2016-06-30 03:00 +0200
Message-ID <rPyuJ-2Kq-9@gated-at.bofh.it> (permalink)
References <rPyuJ-2Kq-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Zhangfei Gao <zhangfei.gao@linaro.org>

Add pl031 rtc0 and rtc1 support to hi6220 dtsi

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: Guodong Xu <guodong.xu@linaro.org>
Acked-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
[jstultz: Forward ported and tweaked commit description,
 added rtc1 entry as suggested by Guodong]
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
v2: Add rtc1 entry as suggested by Guodong
v3: Whitespace fixup requested by Wei

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

diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
index 189d215..758fd22 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
@@ -336,6 +336,22 @@
 			clock-names = "timer1", "timer2", "apb_pclk";
 		};
 
+		rtc0: rtc@f8003000 {
+			compatible = "arm,pl031", "arm,primecell";
+			reg = <0x0 0xf8003000 0x0 0x1000>;
+			interrupts = <0 12 4>;
+			clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
+			clock-names = "apb_pclk";
+		};
+
+		rtc1: rtc@f8004000 {
+			compatible = "arm,pl031", "arm,primecell";
+			reg = <0x0 0xf8004000 0x0 0x1000>;
+			interrupts = <0 8 4>;
+			clocks = <&ao_ctrl HI6220_RTC1_PCLK>;
+			clock-names = "apb_pclk";
+		};
+
 		pmx0: pinmux@f7010000 {
 			compatible = "pinctrl-single";
 			reg = <0x0 0xf7010000  0x0 0x27c>;
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2 v3] Add pl031 RTC support for Hi6220 John Stultz <john.stultz@linaro.org> - 2016-06-30 03:00 +0200
  [PATCH 2/2 v3] arm64: dts: hi6220: Add pl031 RTC support John Stultz <john.stultz@linaro.org> - 2016-06-30 03:00 +0200
  Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Wei Xu <xuwei5@hisilicon.com> - 2016-06-30 17:20 +0200
  Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Olof Johansson <olof@lixom.net> - 2016-07-06 08:10 +0200
    Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 John Stultz <john.stultz@linaro.org> - 2016-07-06 09:00 +0200
      Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Olof Johansson <olof@lixom.net> - 2016-07-06 09:10 +0200
        Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 John Stultz <john.stultz@linaro.org> - 2016-07-06 09:30 +0200
          Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Arnd Bergmann <arnd@arndb.de> - 2016-07-06 09:40 +0200
            Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Wei Xu <xuwei5@hisilicon.com> - 2016-07-06 10:20 +0200
            Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Michael Turquette <mturquette@baylibre.com> - 2016-07-07 02:30 +0200
              Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Arnd Bergmann <arnd@arndb.de> - 2016-07-07 10:20 +0200
            Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 John Stultz <john.stultz@linaro.org> - 2016-07-07 03:00 +0200
              Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Arnd Bergmann <arnd@arndb.de> - 2016-07-07 10:20 +0200
                Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220 Michael Turquette <mturquette@baylibre.com> - 2016-07-08 04:30 +0200

csiph-web