Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 1/2] dt-bindings: rtc: Add Spreadtrum SC27xx RTC documentation
@ 2017-11-09  3:34 Baolin Wang
  2017-11-09  3:34 ` [PATCH v3 2/2] rtc: sprd: Add Spreadtrum RTC driver Baolin Wang
       [not found] ` <c65b61e5e37cb43214973cb3e479ce06c4a73395.1510198341.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Baolin Wang @ 2017-11-09  3:34 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, robh+dt, mark.rutland
  Cc: devicetree, linux-kernel, linux-rtc, broonie, baolin.wang,
	baolin.wang

This patch adds the binding documentation for Spreadtrum SC27xx series
RTC device.

Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com>
---
Changes since v2:
 - No updates.

Changes since v1:
 - Use a specific chip name as compatible string.
 - Remove useless alias.
 - Add the parent MFD node.
---
 .../devicetree/bindings/rtc/sprd,sc27xx-rtc.txt    |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt

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 0000000..7c170da
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt
@@ -0,0 +1,27 @@
+Spreadtrum SC27xx Real Time Clock
+
+Required properties:
+- compatible: should be "sprd,sc2731-rtc".
+- reg: address offset of rtc register.
+- interrupt-parent: phandle for the interrupt controller.
+- interrupts: rtc alarm interrupt.
+
+Example:
+
+	sc2731_pmic: pmic@0 {
+		compatible = "sprd,sc2731";
+		reg = <0>;
+		spi-max-frequency = <26000000>;
+		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		rtc@280 {
+			compatible = "sprd,sc2731-rtc";
+			reg = <0x280>;
+			interrupt-parent = <&sc2731_pmic>;
+			interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
+		};
+	};
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-16  2:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09  3:34 [PATCH v3 1/2] dt-bindings: rtc: Add Spreadtrum SC27xx RTC documentation Baolin Wang
2017-11-09  3:34 ` [PATCH v3 2/2] rtc: sprd: Add Spreadtrum RTC driver Baolin Wang
     [not found]   ` <1e1ee941cc59375627712c0e77036ff36389bb33.1510198341.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-11-15 16:01     ` Alexandre Belloni
     [not found] ` <c65b61e5e37cb43214973cb3e479ce06c4a73395.1510198341.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-11-15 15:32   ` [PATCH v3 1/2] dt-bindings: rtc: Add Spreadtrum SC27xx RTC documentation Rob Herring
2017-11-15 16:01   ` Alexandre Belloni
     [not found]     ` <20171115160123.gn27j4ki5mxv4v4j-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
2017-11-16  2:16       ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox