回复:Re: [PATCH v4 1/6] rtc: sun6i: Add sun6i RTC driver
From: <hidden>
Date: 2014-07-30 10:53:30
<p dir="ltr">4uHu<br><br></p> <p dir="ltr">发自我的小米手机</p> Varka Bhadram <varkabhadram@gmail.com>于 2014年7月30日 下午6:37写道:<br type='attribution'><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p/><p dir="ltr">On 07/30/2014 03:03 PM, Chen-Yu Tsai wrote: <br> > Hi, <br> > <br> > On Wed, Jul 30, 2014 at 4:57 PM, Maxime Ripard <br> > <<a href="mailto:maxime.ripard@free-electrons.com">maxime.ripard@free-electrons.com</a>> wrote: <br> >> Hi Chen-Yu, <br> >> <br> >> On Mon, Jul 28, 2014 at 04:20:56PM +0800, Chen-Yu Tsai wrote: <br> >>> This patch introduces the driver for the RTC in the Allwinner A31 and <br> >>> A23 SoCs. <br> >>> <br> >>> Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the <br> >>> RTC in A31/A23 are a separate hardware block, which also contain a few <br> >>> controls for the RTC block hardware (a regulator and RTC block GPIO pin <br> >>> latches), while also having separate interrupts for the alarms. <br> >>> <br> >>> The hardware is different enough to make a different driver for it. <br> >>> <br> >>> Signed-off-by: Chen-Yu Tsai <<a href="mailto:wens@csie.org">wens@csie.org</a>> <br> >>> --- <br> >>> .../devicetree/bindings/rtc/sun6i-rtc.txt | 17 + <br> >>> drivers/rtc/Kconfig | 7 + <br> >>> drivers/rtc/Makefile | 1 + <br> >>> drivers/rtc/rtc-sun6i.c | 447 +++++++++++++++++++++ <br> >>> 4 files changed, 472 insertions(+) <br> >>> create mode 100644 Documentation/devicetree/bindings/rtc/sun6i-rtc.txt <br> >>> create mode 100644 drivers/rtc/rtc-sun6i.c <br> >>> <br> >>> diff --git a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt <br> >>> new file mode 100644 <br> >>> index 0000000..b7fb7a8 <br> >>> --- /dev/null <br> >>> +++ b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt <br> >>> @@ -0,0 +1,17 @@ <br> >>> +* sun6i Real Time Clock <br> >>> + <br> >>> +RTC controller for the Allwinner A31 <br> >>> + <br> >>> +Required properties: <br> >>> +- compatible : Should be "allwinner,sun6i-a31-rtc" <br> >>> +- reg : physical base address of the controller and length of <br> >>> + memory mapped region. <br> >>> +- interrupts : IRQ line for the RTC alarm 0. <br> >> Even if we're using only one interrupt in the code, the hardware has <br> >> two, so it would be great if you could ask for these two in the <br> >> bindings. <br> > Sure. It's just a minor change here and in the example: <br> > <br> > - interrupts : IRQ lines for the RTC alarm 0 and alarm 1, in that order. <br> > <br> > Varka, may I keep your Reviewed-by with the changes? <br> <br> Reviewed-by: Varka Bhadram <<a href="mailto:varkabhadram@gmail.com">varkabhadram@gmail.com</a>> <br> <br> -- <br> Regards, <br> Varka Bhadram. <br> <br> <br> _______________________________________________ <br> linux-arm-kernel mailing list <br> <a href="mailto:linux-arm-kernel@lists.infradead.org">linux-arm-kernel@lists.infradead.org</a> <br> <a href="http://lists.infradead.org/mailman/listinfo/linux-arm-kernel">http://lists.infradead.org/mailman/listinfo/linux-arm-kernel</a> <br> </p> </blockquote></div>