From: Jonathan Cameron <jic23@kernel.org>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: "Mariel Tinaco" <Mariel.Tinaco@analog.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Conor Dooley" <conor+dt@kernel.org>,
"Marcelo Schmitt" <marcelo.schmitt1@gmail.com>,
"Dimitri Fedrau" <dima.fedrau@gmail.com>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <noname.nuno@gmail.com>
Subject: Re: [PATCH v3 1/2] dt-bindings: iio: dac: add docs for ad8460
Date: Sat, 7 Sep 2024 18:01:49 +0100 [thread overview]
Message-ID: <20240907180149.67fdc636@jic23-huawei> (raw)
In-Reply-To: <pp3r4ygrialun2x6vtghp27ianggjzs3g3436b6mi6mttfy57a@q7kcwolkkn27>
On Wed, 4 Sep 2024 08:20:53 +0200
Krzysztof Kozlowski <krzk@kernel.org> wrote:
> On Wed, Sep 04, 2024 at 10:30:39AM +0800, Mariel Tinaco wrote:
> > This adds the bindings documentation for the 14-bit
>
> Please do not use "This commit/patch/change", but imperative mood. See
> longer explanation here:
> https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95
>
> > High Voltage, High Current, Waveform Generator
> > Digital-to-Analog converter.
> >
> > Signed-off-by: Mariel Tinaco <Mariel.Tinaco@analog.com>
> > ---
> > .../bindings/iio/dac/adi,ad8460.yaml | 154 ++++++++++++++++++
> > MAINTAINERS | 7 +
> > 2 files changed, 161 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml
>
> > + adi,range-microvolt:
> > + description: Voltage output range specified as <minimum, maximum>
> > + oneOf:
>
> This oneOf does not make sense. There is only one condition. Drop.
>
> > + - items:
> > + - enum: [0, -10000000, -20000000, -30000000, -40000000, -55000000]
> > + - enum: [10000000, 20000000, 30000000, 40000000, 55000000]
>
> What's the default? It's not a required property.
>
> > +
> > + adi,range-microamp:
> > + description: Current output range specified as <minimum, maximum>
> > + oneOf:
> > + - items:
> > + - enum: [-50000, -100000, -300000, -500000, -1000000]
>
> I don't understand why 0 is not listed here.
I'm not sure why it is a list at all. Seems like the hardware
allows a continuous value so this should just specify max and min.
>
> > + - enum: [50000, 100000, 300000, 500000, 1000000]
> > + - items:
> > + - const: 0
> > + - enum: [50000, 100000, 300000, 500000, 1000000]
> > +
>
> What's the default? It's not a required property.
>
> > + adi,max-millicelsius:
> > + description: Overtemperature threshold
> > + default: 50000
> > + minimum: 20000
> > + maximum: 150000
> > +
> > + shutdown-reset-gpios:
> > + description: Corresponds to SDN_RESET pin. To exit shutdown
> > + or sleep mode, pulse SDN_RESET HIGH, then leave LOW.
> > + maxItems: 1
> > +
> > + reset-gpios:
> > + description: Manual Power On Reset (POR). Pull this GPIO pin
> > + LOW and then HIGH to reset all digital registers to default
> > + maxItems: 1
> > +
> > + shutdown-gpios:
> > + description: Corresponds to SDN_IO pin. Shutdown may be
> > + initiated by the user, by pulsing SDN_IO high. To exit shutdown,
> > + pulse SDN_IO low, then float.
> > + maxItems: 1
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - clocks
>
> Some supplies are for sure required. Devices rarely can operate without
> power provided.
>
> > +
> > +allOf:
> > + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> > +
> > +additionalProperties: false
>
> unevaluatedProperties instead.
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2024-09-07 17:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 2:30 [PATCH v3 0/2] Add support to AD8460 Waveform Generator DAC Mariel Tinaco
2024-09-04 2:30 ` [PATCH v3 1/2] dt-bindings: iio: dac: add docs for ad8460 Mariel Tinaco
2024-09-04 6:20 ` Krzysztof Kozlowski
2024-09-07 17:01 ` Jonathan Cameron [this message]
2024-09-09 6:22 ` Tinaco, Mariel
2024-09-09 6:41 ` Krzysztof Kozlowski
2024-09-04 2:30 ` [PATCH v3 2/2] iio: dac: support the ad8460 Waveform DAC Mariel Tinaco
2024-09-04 15:50 ` kernel test robot
2024-09-04 17:23 ` kernel test robot
2024-09-06 0:50 ` David Lechner
2024-09-09 9:47 ` Tinaco, Mariel
2024-09-09 14:51 ` David Lechner
2024-09-09 19:09 ` Jonathan Cameron
2024-09-10 1:44 ` Tinaco, Mariel
2024-09-14 11:45 ` Jonathan Cameron
2024-09-07 17:14 ` Jonathan Cameron
2024-09-09 8:22 ` Tinaco, Mariel
2024-09-09 14:41 ` David Lechner
2024-09-04 6:16 ` [PATCH v3 0/2] Add support to AD8460 Waveform Generator DAC Krzysztof Kozlowski
2024-09-05 1:10 ` Tinaco, Mariel
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=20240907180149.67fdc636@jic23-huawei \
--to=jic23@kernel.org \
--cc=Mariel.Tinaco@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dima.fedrau@gmail.com \
--cc=dlechner@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.com \
--cc=noname.nuno@gmail.com \
--cc=robh@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