From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Conor Dooley <conor@kernel.org>
Cc: Marco Felsch <m.felsch@pengutronix.de>, <jic23@kernel.org>,
<lars@metafoo.de>, <robh+dt@kernel.org>,
<krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>,
<alazar@startmail.com>, <daniel.baluta@nxp.com>,
<linux-iio@vger.kernel.org>, <devicetree@vger.kernel.org>,
<kernel@pengutronix.de>
Subject: Re: [PATCH] dt-bindings: iio: adc: ti,ads1015: fix datarate max value and meaning
Date: Sun, 2 Jul 2023 17:41:48 +0800 [thread overview]
Message-ID: <20230702174148.00004260@Huawei.com> (raw)
In-Reply-To: <20230621-unsavory-ransack-f0a3af93325c@spud>
On Wed, 21 Jun 2023 21:41:05 +0100
Conor Dooley <conor@kernel.org> wrote:
> On Wed, Jun 21, 2023 at 06:08:57PM +0200, Marco Felsch wrote:
> > Datarate (dr) is a 3-bit wide register field. Values from 0 to 7 are
> > allowed for all devices but only for the ADS1115 devices a value of 7
> > does make a difference.
> >
> > While on it fix the description of the datarate for ADS1115 devices as
> > well.
> >
> > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > ---
> > .../devicetree/bindings/iio/adc/ti,ads1015.yaml | 15 +++++++++++++--
> > 1 file changed, 13 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
> > index 2127d639a7683..e004659099c19 100644
> > --- a/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
> > +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
> > @@ -78,9 +78,9 @@ patternProperties:
> > ti,datarate:
> > $ref: /schemas/types.yaml#/definitions/uint32
> > minimum: 0
> > - maximum: 6
> > + maximum: 7
> > description: |
> > - Data acquisition rate in samples per second
> > + Data acquisition rate in samples per second for ADS1015, TLA2024
> > 0: 128
> > 1: 250
> > 2: 490
> > @@ -88,6 +88,17 @@ patternProperties:
> > 4: 1600 (default)
> > 5: 2400
> > 6: 3300
> > + 7: 3300
> > +
> > + Data acquisition rate in samples per second for ADS1115
> > + 0: 8
> > + 1: 16
> > + 2: 32
> > + 3: 64
> > + 4: 128 (default)
> > + 5: 250
> > + 6: 475
> > + 7: 860
>
> I'll leave this one to Rob or Krzysztof to ack/review, but this does
> seem like as good an opportunity as any to migrate to a property that
> allows you to put the actual data acquisition rate in & not have to add
> new key-value mappings to the binding to support devices with differing
> schemes.
I agree a value would have been better, but now we are where we are,
I'm not sure it's worth the churn of changing it - particularly as the
driver will need to support the old binding for every anyway.
Jonathan
>
> >
> > required:
> > - reg
> > --
> > 2.39.2
> >
>
next prev parent reply other threads:[~2023-07-02 9:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-21 16:08 [PATCH] dt-bindings: iio: adc: ti,ads1015: fix datarate max value and meaning Marco Felsch
2023-06-21 20:41 ` Conor Dooley
2023-07-02 9:41 ` Jonathan Cameron [this message]
2023-07-03 6:46 ` Marco Felsch
2023-07-03 16:14 ` Conor Dooley
2023-07-03 16:21 ` Krzysztof Kozlowski
2023-06-22 2:04 ` Rob Herring
2023-07-03 16:18 ` Krzysztof Kozlowski
2023-07-08 14:24 ` Jonathan Cameron
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=20230702174148.00004260@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=alazar@startmail.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=robh+dt@kernel.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