summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJoshua Clayton <stillcompiling@gmail.com>2015-02-14 01:40:29 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-14 08:21:42 +0300
commit3fc70077e6a9feec7ec080710677a507bd41322c (patch)
treeec7f8ab4ac01ecc75f8ad411cfaae37ec54087b6 /Documentation
parent69d54b916d83872a0a327778a01af2a096923f59 (diff)
downloadlinux-3fc70077e6a9feec7ec080710677a507bd41322c.tar.xz
drivers/rtc/rtc-pcf2123.c: add support for devicetree
Add compatible string "nxp,rtc-pcf2123" Document the binding Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Grant Likely <grant.likely@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt b/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt
new file mode 100644
index 000000000000..5cbc0b145a61
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt
@@ -0,0 +1,16 @@
+NXP PCF2123 SPI Real Time Clock
+
+Required properties:
+- compatible: should be: "nxp,rtc-pcf2123"
+- reg: should be the SPI slave chipselect address
+
+Optional properties:
+- spi-cs-high: PCF2123 needs chipselect high
+
+Example:
+
+rtc: nxp,rtc-pcf2123@3 {
+ compatible = "nxp,rtc-pcf2123"
+ reg = <3>
+ spi-cs-high;
+};