From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Oleksij Rempel <linux@rempel-privat.de>
Cc: Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org, a.zummo@towertech.it,
rtc-linux@googlegroups.com
Subject: [rtc-linux] Re: [PATCH 2/2] doc: dt: add documentation for alphascale,asm9260-rtc
Date: Tue, 2 Feb 2016 11:28:04 +0100 [thread overview]
Message-ID: <20160202102804.GT20165@piout.net> (raw)
In-Reply-To: <56B06CCA.4060208@rempel-privat.de>
On 02/02/2016 at 09:46:02 +0100, Oleksij Rempel wrote :
> Am 01.02.2016 um 16:55 schrieb Alexandre Belloni:
> > On 01/02/2016 at 09:27:50 -0600, Rob Herring wrote :
> >> On Fri, Jan 29, 2016 at 09:40:02AM +0100, Oleksij Rempel wrote:
> >>> Document Alphascale asm9260 RTC bindings
> >>>
> >>> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
> >>> ---
> >>> .../bindings/rtc/alphascale,asm9260-rtc.txt | 25 ++++++++++++++++++++++
> >>> 1 file changed, 25 insertions(+)
> >>> create mode 100644 Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt
> >>>
> >>> diff --git a/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt
> >>> new file mode 100644
> >>> index 0000000..2c0ff3c
> >>> --- /dev/null
> >>> +++ b/Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt
> >>> @@ -0,0 +1,25 @@
> >>> +* Alphascale asm9260 SoC Real Time Clock
> >>> +
> >>> +Required properties:
> >>> +- compatible: Should be "alphascale,asm9260-rtc"
> >>> +- reg: Physical base address of the controller and length
> >>> + of memory mapped region.
> >>> +- interrupts: IRQ line for the RTC.
> >>> +- clocks: Reference to the clock entry.
> >>> +- clock-names: should contain:
> >>> + * "ahb" for the SoC RTC clock
> >>> +
> >>> +Optional:
> >>> +- calibration: calibration value for 1 sec period.
> >>> + Max value for forward calibration is 0x1ffff (131071),
> >>> + Min value for backward calibration is 0xfffe0001 (-131071).
> >>
> >> This should be prefixed with 'alphascale,'
> >>
> >> How is this value determined?
> >>
> >
> > I think this should stay in userspace, see that series:
> > https://groups.google.com/forum/#!topic/rtc-linux/HGQqiHnMiuw
> >
> > It quite often depends on environmental things like temperature so it may be updated at runtime.
> >
>
> I partially agree. IMO default configuration should work properly by
> 20C. My devkit provide terrible results without default offset.
>
I'm not against having a sane default. What I would do is set a default
hardcoded value from the driver at the time the RTC is reset (that is: it
has never been set yet) then let the user adjust that calibration
through sysfs.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
--
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.
next prev parent reply other threads:[~2016-02-02 10:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-29 8:40 [rtc-linux] [PATCH 0/2] add Alphascale asm9260 RTC driver Oleksij Rempel
2016-01-29 8:40 ` [rtc-linux] [PATCH 1/2] rtc: add rtc-asm9260 driver Oleksij Rempel
2016-02-01 16:05 ` [rtc-linux] " Alexandre Belloni
2016-02-02 8:24 ` Oleksij Rempel
2016-01-29 8:40 ` [rtc-linux] [PATCH 2/2] doc: dt: add documentation for alphascale,asm9260-rtc Oleksij Rempel
2016-02-01 15:27 ` [rtc-linux] " Rob Herring
2016-02-01 15:55 ` Alexandre Belloni
2016-02-02 8:46 ` Oleksij Rempel
2016-02-02 10:28 ` Alexandre Belloni [this message]
2016-02-02 19:56 ` [rtc-linux] [PATCH v2 0/2] add Alphascale asm9260 RTC driver Oleksij Rempel
2016-02-02 19:56 ` [rtc-linux] [PATCH v2 1/2] rtc: add rtc-asm9260 driver Oleksij Rempel
2016-02-02 19:56 ` [rtc-linux] [PATCH v2 2/2] doc: dt: add documentation for alphascale,asm9260-rtc Oleksij Rempel
2016-02-02 21:12 ` [rtc-linux] " Rob Herring
2016-02-20 4:38 ` [rtc-linux] Re: [PATCH v2 0/2] add Alphascale asm9260 RTC driver Alexandre Belloni
2016-02-02 8:42 ` [rtc-linux] Re: [PATCH 2/2] doc: dt: add documentation for alphascale,asm9260-rtc Oleksij Rempel
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=20160202102804.GT20165@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=a.zummo@towertech.it \
--cc=devicetree@vger.kernel.org \
--cc=linux@rempel-privat.de \
--cc=robh@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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox