Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030266AbcCQLwd (ORCPT ); Thu, 17 Mar 2016 07:52:33 -0400 Received: from mail.kernel.org ([198.145.29.136]:37663 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932879AbcCQLwb (ORCPT ); Thu, 17 Mar 2016 07:52:31 -0400 Date: Thu, 17 Mar 2016 06:52:25 -0500 From: Rob Herring To: Paul Cercueil Cc: Alexandre Belloni , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Ralf Baechle , Alessandro Zummo , Paul Burton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, rtc-linux@googlegroups.com Subject: Re: [PATCH 2/5] Documentation: dt: Add binding info for jz4740-rtc driver Message-ID: <20160317115225.GA18144@rob-hp-laptop> References: <1457217531-26064-1-git-send-email-paul@crapouillou.net> <1457217531-26064-2-git-send-email-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457217531-26064-2-git-send-email-paul@crapouillou.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1839 Lines: 58 On Sat, Mar 05, 2016 at 11:38:48PM +0100, Paul Cercueil wrote: > Signed-off-by: Paul Cercueil > --- > .../devicetree/bindings/rtc/ingenic,jz4740-rtc.txt | 38 ++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/ingenic,jz4740-rtc.txt > > diff --git a/Documentation/devicetree/bindings/rtc/ingenic,jz4740-rtc.txt b/Documentation/devicetree/bindings/rtc/ingenic,jz4740-rtc.txt > new file mode 100644 > index 0000000..71e4ad0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/ingenic,jz4740-rtc.txt > @@ -0,0 +1,38 @@ > +JZ4740 and similar SoCs real-time clock driver > + > +Required properties: > + > +- compatible: One of: > + - "ingenic,jz4740-rtc" - for use with the JZ4740 SoC > + - "ingenic,jz4780-rtc" - for use with the JZ4780 SoC > +- reg: Address range of rtc register set > +- interrupts: IRQ number for the alarm interrupt > +- interrupt-parent: phandle of the interrupt controller > +- clocks: phandle to the "rtc" clock > +- clock-names: must be "rtc" > + > +Optional properties: > +- system-power-controller: To use this component as the > + system power controller > +- reset-pin-assert-time: Reset pin low-level assertion time > + after wakeup (default 60ms; range 0-125ms if RTC clock at > + 32 kHz) > +- min-wakeup-pin-assert-time: Minimum wakeup pin assertion time > + (default 100ms; range 0-2s if RTC clock at 32 kHz) Please append units on these (-msec). > + > +Example: > + > +rtc@10003000 { > + compatible = "ingenic,jz4740-rtc"; > + reg = <0x10003000 0x3F>; > + > + interrupt-parent = <&intc>; > + interrupts = <32>; > + > + clocks = <&rtc_clock>; > + clock-names = "rtc"; > + > + system-power-controller; > + reset-pin-assert-time = <60>; > + min-wakeup-pin-assert-time = <100>; > +}; > -- > 2.7.0 >