Thread (2 messages) flat view 2 messages, 2 authors, 2014-07-30

Re: [PATCH v4 1/6] rtc: sun6i: Add sun6i RTC driver

From: Chen-Yu Tsai <hidden>
Date: 2014-07-30 09:33:49
Also in: linux-arm-kernel

Hi,

On Wed, Jul 30, 2014 at 4:57 PM, Maxime Ripard
[off-list ref] wrote:
Hi Chen-Yu,

On Mon, Jul 28, 2014 at 04:20:56PM +0800, Chen-Yu Tsai wrote:
quoted
This patch introduces the driver for the RTC in the Allwinner A31 and
A23 SoCs.

Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the
RTC in A31/A23 are a separate hardware block, which also contain a few
controls for the RTC block hardware (a regulator and RTC block GPIO pin
latches), while also having separate interrupts for the alarms.

The hardware is different enough to make a different driver for it.

Signed-off-by: Chen-Yu Tsai <redacted>
---
 .../devicetree/bindings/rtc/sun6i-rtc.txt          |  17 +
 drivers/rtc/Kconfig                                |   7 +
 drivers/rtc/Makefile                               |   1 +
 drivers/rtc/rtc-sun6i.c                            | 447 +++++++++++++++++++++
 4 files changed, 472 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
 create mode 100644 drivers/rtc/rtc-sun6i.c
diff --git a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
new file mode 100644
index 0000000..b7fb7a8
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
@@ -0,0 +1,17 @@
+* sun6i Real Time Clock
+
+RTC controller for the Allwinner A31
+
+Required properties:
+- compatible : Should be "allwinner,sun6i-a31-rtc"
+- reg                : physical base address of the controller and length of
+               memory mapped region.
+- interrupts : IRQ line for the RTC alarm 0.
Even if we're using only one interrupt in the code, the hardware has
two, so it would be great if you could ask for these two in the
bindings.
Sure. It's just a minor change here and in the example:

- interrupts : IRQ lines for the RTC alarm 0 and alarm 1, in that order.

Varka, may I keep your Reviewed-by with the changes?
Since it also impacts the DT patches I just merged, I dropped them,
and will merge them as soon as they have the two interrupts listed.
I will send a new version later.
quoted
+
+Example:
+
+rtc: rtc@01f00000 {
+     compatible = "allwinner,sun6i-a31-rtc";
+     reg = <0x01f00000 0x54>;
+     interrupts = <0 40 4>;
Change:

        interrupts = <0 40 4>, <0 41 4>;
quoted
+};
[...]
It looks nice otherwise.

Acked-by: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Thanks.

ChenYu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help