diff mbox

[v3,2/2] doc: dt: add documentation for nxp,lpc1788-rtc

Message ID 1436635730-15617-3-git-send-email-manabian@gmail.com
State Accepted, archived
Headers show

Commit Message

Joachim Eastwood July 11, 2015, 5:28 p.m. UTC
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
 .../devicetree/bindings/rtc/nxp,lpc1788-rtc.txt     | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt

Comments

Matt Porter July 27, 2015, 1:37 p.m. UTC | #1
On Sat, Jul 11, 2015 at 07:28:50PM +0200, Joachim Eastwood wrote:
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
> ---
>  .../devicetree/bindings/rtc/nxp,lpc1788-rtc.txt     | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt
> 
> diff --git a/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt
> new file mode 100644
> index 000000000000..ad41a040432c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt
> @@ -0,0 +1,21 @@
> +NXP LPC1788 real-time clock
> +
> +The LPC1788 RTC provides calendar and clock functionality
> +together with periodic tick and alarm interrupt support.
> +
> +Required properties:
> +- compatible	: must contain "nxp,lpc1788-rtc"
> +- reg		: Specifies base physical address and size of the registers.
> +- interrupts	: A single interrupt specifier.
> +- clocks	: Must contain entries for rtc and register clock

"Must contain clock specifiers for rtc and register clock" ?

-Matt

> +- clock-names	: Must contain "rtc" and "reg"
> +  See ../clocks/clock-bindings.txt for details.
> +
> +Example:
> +rtc: rtc@40046000 {
> +	compatible = "nxp,lpc1788-rtc";
> +	reg = <0x40046000 0x1000>;
> +	interrupts = <47>;
> +	clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
> +	clock-names = "rtc", "reg";
> +};
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Alexandre Belloni Aug. 5, 2015, 8:50 a.m. UTC | #2
Hi,

On 27/07/2015 at 09:37:20 -0400, Matt Porter wrote :
> > +Required properties:
> > +- compatible	: must contain "nxp,lpc1788-rtc"
> > +- reg		: Specifies base physical address and size of the registers.
> > +- interrupts	: A single interrupt specifier.
> > +- clocks	: Must contain entries for rtc and register clock
> 
> "Must contain clock specifiers for rtc and register clock" ?
> 

I fixed it up in the patch.
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt
new file mode 100644
index 000000000000..ad41a040432c
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt
@@ -0,0 +1,21 @@ 
+NXP LPC1788 real-time clock
+
+The LPC1788 RTC provides calendar and clock functionality
+together with periodic tick and alarm interrupt support.
+
+Required properties:
+- compatible	: must contain "nxp,lpc1788-rtc"
+- reg		: Specifies base physical address and size of the registers.
+- interrupts	: A single interrupt specifier.
+- clocks	: Must contain entries for rtc and register clock
+- clock-names	: Must contain "rtc" and "reg"
+  See ../clocks/clock-bindings.txt for details.
+
+Example:
+rtc: rtc@40046000 {
+	compatible = "nxp,lpc1788-rtc";
+	reg = <0x40046000 0x1000>;
+	interrupts = <47>;
+	clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
+	clock-names = "rtc", "reg";
+};