From: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Mike Turquette <mturquette@linaro.org>,
Rob Herring <rob.herring@calxeda.com>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Rob Landley <rob@landley.net>,
Grant Likely <grant.likely@linaro.org>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
<devicetree@vger.kernel.org>, <linux-doc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Hyun Kwon <hyunk@xilinx.com>
Subject: Re: [PATCH v2] clk: si570: Add a driver for SI570 oscillators
Date: Thu, 19 Sep 2013 14:57:22 -0700 [thread overview]
Message-ID: <f59f4232-0f1a-4ebc-ada2-0edb9faabc53@CO9EHSMHS002.ehs.local> (raw)
In-Reply-To: <20130919211535.GB11537@roeck-us.net>
On Thu, Sep 19, 2013 at 02:15:35PM -0700, Guenter Roeck wrote:
> On Thu, Sep 19, 2013 at 11:05:12AM -0700, Mike Turquette wrote:
> > Quoting Soren Brinkmann (2013-09-18 15:43:38)
> > > diff --git a/Documentation/devicetree/bindings/clock/silabs,si570.txt b/Documentation/devicetree/bindings/clock/silabs,si570.txt
> > > new file mode 100644
> > > index 0000000..7ab5c8b
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/clock/silabs,si570.txt
> > > @@ -0,0 +1,38 @@
> > > +Binding for Silicon Labs 570, 571, 598 and 599 programmable
> > > +I2C clock generators.
> > > +
> > > +Reference
> > > +This binding uses the common clock binding[1]. Details about the devices can be
> > > +found in the data sheets[2][3].
> > > +
> > > +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
> > > +[2] Si570/571 Data Sheet
> > > + http://www.silabs.com/Support%20Documents/TechnicalDocs/si570.pdf
> > > +[3] Si598/599 Data Sheet
> > > + http://www.silabs.com/Support%20Documents/TechnicalDocs/si598-99.pdf
> > > +
> > > +Required properties:
> > > + - compatible: Shall be one of "silabs,si570", "silabs,si571",
> > > + "silabs,si598", "silabs,si599"
> > > + - reg: I2C device address.
> > > + - #clock-cells: From common clock bindings: Shall be 0.
> > > + - factory-fout: Factory set default frequency. This frequency is part specific.
> > > + The correct frequency for the part used has to be provided in
> > > + order to generate the correct output frequencies. For more
> > > + details, please refer to the data sheet.
> > > +
> > > +Optional properties:
> > > + - clock-output-names: From common clock bindings. Recommended to be "si570".
> > > + - clock-frequency: Output frequency to generate. This defines the output
> > > + frequency set during boot. It can be reprogrammed during
> > > + runtime using the common clock framework.
> > > + - temperature-stability-7ppm: Indicate a device with a temperature stability
> > > + of 7ppm
> >
> > Some DT binding bike-shedding:
> >
> > Should this be "temperature-stability-ppm = <7>;" ? Do you think that
> > this value might change in the future?
> >
> Valid values are 7, 20, and 50 as far as I know. Problem is that the value is
> not used directly, but only to hint that a specific set of registers shall be
> used.
>
> Given that, it may in fact be better to use an explicit number. Even though the
> two register sets are specified by <7> in one case and <20,50> in the other
> today, there may at some point be yet another value which might use the 7 ppm
> register set or the 20/50 ppm register set ... or yet another register set.
> An explicit number would cover all future accuracy ranges, not just the
> existing ones.
Okay, I'm convinced. Changing that, I'd also make it a mandatory
property.
Sören
prev parent reply other threads:[~2013-09-19 21:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-18 22:43 Soren Brinkmann
2013-09-18 22:43 ` Soren Brinkmann
2013-09-18 22:47 ` Sören Brinkmann
2013-09-18 23:02 ` Joe Perches
2013-09-18 23:09 ` Sören Brinkmann
2013-09-18 23:18 ` Joe Perches
2013-09-18 23:32 ` Sören Brinkmann
2013-09-19 0:23 ` Guenter Roeck
2013-09-19 14:48 ` Sören Brinkmann
2013-09-19 13:17 ` Guenter Roeck
2013-09-19 16:01 ` Sören Brinkmann
2013-09-19 16:44 ` Guenter Roeck
2013-09-19 20:59 ` Sören Brinkmann
2013-09-19 21:11 ` Guenter Roeck
2013-09-19 18:05 ` Mike Turquette
2013-09-19 18:40 ` Sören Brinkmann
2013-09-19 21:15 ` Guenter Roeck
2013-09-19 21:57 ` Sören Brinkmann [this message]
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=f59f4232-0f1a-4ebc-ada2-0edb9faabc53@CO9EHSMHS002.ehs.local \
--to=soren.brinkmann@xilinx.com \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=hyunk@xilinx.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mark.rutland@arm.com \
--cc=mturquette@linaro.org \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=sebastian.hesselbarth@gmail.com \
--cc=swarren@wwwdotorg.org \
/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
all inboxes | Powered by JetHome®