From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Mariel Tinaco" <Mariel.Tinaco@analog.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Jonathan Cameron" <jic23@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 v2 1/2] dt-bindings: iio: dac: add docs for ad8460
Date: Tue, 30 Jul 2024 08:15:01 +0200 [thread overview]
Message-ID: <71cbe674-b232-4327-929b-351630907540@kernel.org> (raw)
In-Reply-To: <20240730030509.57834-2-Mariel.Tinaco@analog.com>
On 30/07/2024 05:05, Mariel Tinaco wrote:
> This adds the bindings documentation for the 14-bit
> High Voltage, High Current, Waveform Generator
> Digital-to-Analog converter.
>
> Signed-off-by: Mariel Tinaco <Mariel.Tinaco@analog.com>
> +
> + refio-1p2v-supply:
> + description: Drive voltage in the range of 1.2V maximum to as low as
> + low as 0.12V through the REF_IO pin to adjust full scale output span
> +
> + clocks:
maxItems: 1
and drop description (or use items: - description, but then do not
repeat redundant parts)
> + description: The clock for the DAC. This is the sync clock
> +
> + adi,rset-ohms:
> + description: Specify value of external resistor connected to FS_ADJ pin
> + to establish internal HVDAC's reference current I_REF
> + default: 2000
> + minimum: 2000
> + maximum: 20000
> +
> + adi,range-microvolt:
> + description: |
> + Voltage output range specified as <minimum, maximum>
> + oneOf:
Not an oneOf.
> + - items:
> + - const: -40000000
> + - const: 40000000
Why do you need this property if this cannot be anything else? Drop.
> +
> + adi,range-microamp:
> + description: |
Do not need '|' unless you need to preserve formatting.
> + Current output range specified as <minimum, maximum>
> + oneOf:
> + - items:
> + - const: 0
> + - const: 50000
> + - items:
> + - const: -50000
> + - const: 50000
> +
> + adi,temp-max-millicelsius:
> + description: Overtemperature threshold
> + default: 50000
> + minimum: 20000
> + maximum: 150000
> +
> + sdn-reset-gpios:
reset-gpios or shutdown-gpios or anything from gpio-consumer-common
which is not deprecated.
> + description: GPIO spec for the SHUTDOWN RESET pin. As the line is active high,
Do not repeat the obvious or redundant parts. There is no point in
saying that "GPIO spec is a GPIO spec for ...". It cannot be anything
else than GPIO spec. Instead say something useful. It's confusing to
have two reset pins, so explain what is the purpose of this pin.
> + it should be marked GPIO_ACTIVE_HIGH.
Drop last part "it should be marked", because it is clearly incorrect.
Different board designs can have it differently.
> + maxItems: 1
> +
> + reset-gpios:
> + description: GPIO spec for the RESET pin. As the line is active low, it
> + should be marked GPIO_ACTIVE_LOW.
Again, marking it always as active low is not correct. It is enough to
say that line is active low.
> + maxItems: 1
> +
> + sdn-io-gpios:
> + description: GPIO spec for the SHUTDOWN INPUT/OUTPUT pin. As the line is
> + active high, it should be marked GPIO_ACTIVE_HIGH.
What's the purpose?
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + dac@0 {
> + compatible = "adi,ad8460";
> + reg = <0>;
> + spi-max-frequency = <8000000>;
> + adi,rset-ohms = <2000>;
> + adi,range-microvolt = <(-40000000) 40000000>;
> + adi,range-microamp = <0 50000>;
> + adi,temp-max-millicelsius = <50000>;
Custom properties go to the end. See DTS coding style.
> +
> + dmas = <&tx_dma 0>;
> + dma-names = "tx";
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-07-30 6:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-30 3:05 [PATCH v2 0/2] add AD8460 DAC driver Mariel Tinaco
2024-07-30 3:05 ` [PATCH v2 1/2] dt-bindings: iio: dac: add docs for ad8460 Mariel Tinaco
2024-07-30 6:15 ` Krzysztof Kozlowski [this message]
2024-08-17 11:18 ` Tinaco, Mariel
2024-08-18 7:04 ` Krzysztof Kozlowski
2024-08-03 10:05 ` Jonathan Cameron
2024-08-17 11:19 ` Tinaco, Mariel
2024-07-30 3:05 ` [PATCH v2 2/2] iio: dac: support the ad8460 Waveform DAC Mariel Tinaco
2024-08-02 6:21 ` kernel test robot
2024-08-02 8:04 ` kernel test robot
2024-08-02 9:46 ` kernel test robot
2024-08-03 10:29 ` Jonathan Cameron
2024-08-17 11:59 ` 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=71cbe674-b232-4327-929b-351630907540@kernel.org \
--to=krzk@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=jic23@kernel.org \
--cc=krzk+dt@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