From: Martin Fuzzey <mfuzzey@parkeon.com> To: Alessandro Zummo <a.zummo@towertech.it>, Rob Herring <robh+dt@kernel.org>, Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: devicetree@vger.kernel.org, rtc-linux@googlegroups.com Subject: [rtc-linux] [PATCH 1/3] dt-binding: rtc Add DT binding for NXP 85263 RTC Date: Mon, 01 Aug 2016 17:50:32 +0200 [thread overview] Message-ID: <20160801155032.32232.68432.stgit@localhost> (raw) In-Reply-To: <20160801155029.32232.56063.stgit@localhost> Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com> --- .../devicetree/bindings/rtc/nxp,pcf85263.txt | 41 ++++++++++++++++++++ include/dt-bindings/rtc/nxp,pcf85263.h | 14 +++++++ 2 files changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt create mode 100644 include/dt-bindings/rtc/nxp,pcf85263.h diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt b/Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt new file mode 100644 index 0000000..03b9505 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt @@ -0,0 +1,41 @@ +NXP PCF85263 I2C Real Time Clock + +Required properties: +- compatible: must be: "nxp,rtc-pcf85263" +- reg: must be the I2C address + +Optional properties: +- interrupt-names: Which interrupt signal is used must be "INTA" or "INTB" + Defaults to "INTA" + +- quartz-load-capacitance: The internal capacitor to select for the quartz: + PCF85263_QUARTZCAP_7pF [0] + PCF85263_QUARTZCAP_6pF [1] + PCF85263_QUARTZCAP_12p5pF [2] DEFAULT + +- quartz-drive-strength: Drive strength for the quartz: + PCF85263_QUARTZDRIVE_NORMAL [0] DEFAULT + PCF85263_QUARTZDRIVE_LOW [1] + PCF85263_QUARTZDRIVE_HIGH [2] + +- quartz-low-jitter: Boolean property, if present enables low jitter mode which + reduces jitter at the cost of increased power consumption. + +- wakeup-source: mark the chip as a wakeup source, independently of + the availability of an IRQ line connected to the SoC. + This is useful if the IRQ line is connected to a PMIC or other circuit + that can power up the device rather than to a normal SOC interrupt. + +Example: + +rtc@51 { + compatible = "nxp,pcf85263"; + reg = <0x51>; + + interrupt-parent = <&gpio4>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "INTB"; + + quartz-load-capacitance = <PCF85263_QUARTZCAP_12p5pF>; + quartz-drive-strength = <PCF85263_QUARTZDRIVE_LOW>; +}; diff --git a/include/dt-bindings/rtc/nxp,pcf85263.h b/include/dt-bindings/rtc/nxp,pcf85263.h new file mode 100644 index 0000000..ea87ae4 --- /dev/null +++ b/include/dt-bindings/rtc/nxp,pcf85263.h @@ -0,0 +1,14 @@ +#ifndef _DT_BINDINGS_RTC_NXP_PCF85263_H +#define _DT_BINDINGS_RTC_NXP_PCF85263_H + +/* Quartz capacitance */ +#define PCF85263_QUARTZCAP_7pF 0 +#define PCF85263_QUARTZCAP_6pF 1 +#define PCF85263_QUARTZCAP_12p5pF 2 + +/* Quartz drive strength */ +#define PCF85263_QUARTZDRIVE_NORMAL 0 +#define PCF85263_QUARTZDRIVE_LOW 1 +#define PCF85263_QUARTZDRIVE_HIGH 2 + +#endif /* _DT_BINDINGS_RTC_NXP_PCF85263_H */ -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
WARNING: multiple messages have this Message-ID (diff)
From: Martin Fuzzey <mfuzzey-mB3Nsq4MPf1BDgjK7y7TUQ@public.gmane.org> To: Alessandro Zummo <a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [PATCH 1/3] dt-binding: rtc Add DT binding for NXP 85263 RTC Date: Mon, 01 Aug 2016 17:50:32 +0200 [thread overview] Message-ID: <20160801155032.32232.68432.stgit@localhost> (raw) In-Reply-To: <20160801155029.32232.56063.stgit@localhost> Signed-off-by: Martin Fuzzey <mfuzzey-mB3Nsq4MPf1BDgjK7y7TUQ@public.gmane.org> --- .../devicetree/bindings/rtc/nxp,pcf85263.txt | 41 ++++++++++++++++++++ include/dt-bindings/rtc/nxp,pcf85263.h | 14 +++++++ 2 files changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt create mode 100644 include/dt-bindings/rtc/nxp,pcf85263.h diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt b/Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt new file mode 100644 index 0000000..03b9505 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf85263.txt @@ -0,0 +1,41 @@ +NXP PCF85263 I2C Real Time Clock + +Required properties: +- compatible: must be: "nxp,rtc-pcf85263" +- reg: must be the I2C address + +Optional properties: +- interrupt-names: Which interrupt signal is used must be "INTA" or "INTB" + Defaults to "INTA" + +- quartz-load-capacitance: The internal capacitor to select for the quartz: + PCF85263_QUARTZCAP_7pF [0] + PCF85263_QUARTZCAP_6pF [1] + PCF85263_QUARTZCAP_12p5pF [2] DEFAULT + +- quartz-drive-strength: Drive strength for the quartz: + PCF85263_QUARTZDRIVE_NORMAL [0] DEFAULT + PCF85263_QUARTZDRIVE_LOW [1] + PCF85263_QUARTZDRIVE_HIGH [2] + +- quartz-low-jitter: Boolean property, if present enables low jitter mode which + reduces jitter at the cost of increased power consumption. + +- wakeup-source: mark the chip as a wakeup source, independently of + the availability of an IRQ line connected to the SoC. + This is useful if the IRQ line is connected to a PMIC or other circuit + that can power up the device rather than to a normal SOC interrupt. + +Example: + +rtc@51 { + compatible = "nxp,pcf85263"; + reg = <0x51>; + + interrupt-parent = <&gpio4>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "INTB"; + + quartz-load-capacitance = <PCF85263_QUARTZCAP_12p5pF>; + quartz-drive-strength = <PCF85263_QUARTZDRIVE_LOW>; +}; diff --git a/include/dt-bindings/rtc/nxp,pcf85263.h b/include/dt-bindings/rtc/nxp,pcf85263.h new file mode 100644 index 0000000..ea87ae4 --- /dev/null +++ b/include/dt-bindings/rtc/nxp,pcf85263.h @@ -0,0 +1,14 @@ +#ifndef _DT_BINDINGS_RTC_NXP_PCF85263_H +#define _DT_BINDINGS_RTC_NXP_PCF85263_H + +/* Quartz capacitance */ +#define PCF85263_QUARTZCAP_7pF 0 +#define PCF85263_QUARTZCAP_6pF 1 +#define PCF85263_QUARTZCAP_12p5pF 2 + +/* Quartz drive strength */ +#define PCF85263_QUARTZDRIVE_NORMAL 0 +#define PCF85263_QUARTZDRIVE_LOW 1 +#define PCF85263_QUARTZDRIVE_HIGH 2 + +#endif /* _DT_BINDINGS_RTC_NXP_PCF85263_H */ -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2016-08-01 15:50 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-08-01 15:50 [rtc-linux] [PATCH 0/3] rtc: Add pcf85263 Martin Fuzzey 2016-08-01 15:50 ` Martin Fuzzey 2016-08-01 15:50 ` Martin Fuzzey [this message] 2016-08-01 15:50 ` [PATCH 1/3] dt-binding: rtc Add DT binding for NXP 85263 RTC Martin Fuzzey 2016-09-21 20:43 ` [rtc-linux] " Alexandre Belloni 2016-09-21 20:43 ` Alexandre Belloni 2016-08-01 15:50 ` [rtc-linux] [PATCH 2/3] rtc: pcf85263: Basic driver Martin Fuzzey 2016-08-01 15:50 ` Martin Fuzzey 2016-09-21 21:35 ` [rtc-linux] " Alexandre Belloni 2016-09-21 21:35 ` Alexandre Belloni 2017-03-15 17:28 ` [rtc-linux] " leonardo.romor 2016-08-01 15:50 ` [rtc-linux] [PATCH 3/3] rtc: pcf85263: Support multiple centuries Martin Fuzzey 2016-08-01 15:50 ` Martin Fuzzey 2016-09-21 21:33 ` [rtc-linux] " Alexandre Belloni 2016-09-21 21:33 ` Alexandre Belloni
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160801155032.32232.68432.stgit@localhost \ --to=mfuzzey@parkeon.com \ --cc=a.zummo@towertech.it \ --cc=alexandre.belloni@free-electrons.com \ --cc=devicetree@vger.kernel.org \ --cc=robh+dt@kernel.org \ --cc=rtc-linux@googlegroups.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.