aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@spreadtrum.com>2017-11-08 22:34:16 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-11-15 11:00:03 -0500
commit8f6596f4c94a155b93a809989314e5e8c01d0618 (patch)
tree8de831c46a8b10bb680dacf433f5627731e83144
parenteaa1dc7ba18db14842fbee9c57e71d28ae1c407d (diff)
dt-bindings: rtc: Add Spreadtrum SC27xx RTC documentation
This patch adds the binding documentation for Spreadtrum SC27xx series RTC device. Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt b/Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt
new file mode 100644
index 000000000000..7c170da0d4b7
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt
@@ -0,0 +1,27 @@
1Spreadtrum SC27xx Real Time Clock
2
3Required properties:
4- compatible: should be "sprd,sc2731-rtc".
5- reg: address offset of rtc register.
6- interrupt-parent: phandle for the interrupt controller.
7- interrupts: rtc alarm interrupt.
8
9Example:
10
11 sc2731_pmic: pmic@0 {
12 compatible = "sprd,sc2731";
13 reg = <0>;
14 spi-max-frequency = <26000000>;
15 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
16 interrupt-controller;
17 #interrupt-cells = <2>;
18 #address-cells = <1>;
19 #size-cells = <0>;
20
21 rtc@280 {
22 compatible = "sprd,sc2731-rtc";
23 reg = <0x280>;
24 interrupt-parent = <&sc2731_pmic>;
25 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
26 };
27 };