From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: werneazc@gmail.com, jic23@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
lars@metafoo.de
Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org,
Andre Werner <andre.werner@systec-electronic.com>
Subject: Re: [PATCH v3 1/2] dt-bindings: iio: adc: ti,ads7038: Add description for ADS7038
Date: Mon, 16 Oct 2023 09:18:46 +0200 [thread overview]
Message-ID: <2ae8c910-3fa5-4835-9d2a-fbab64d3aabf@linaro.org> (raw)
In-Reply-To: <20231016070318.28355-1-andre.werner@systec-electronic.com>
On 16/10/2023 09:02, werneazc@gmail.com wrote:
> From: Andre Werner <andre.werner@systec-electronic.com>
>
> Add basic description for ADS7038 ADC devices.
> The devicetree adds the following device specific options:
>
> - average-samples: Program device's programmable average filter.
> - crc-enabled: Enable the CRC check for SPI transfers. Sadly, this
> option has currently no effect in the driver.
> - status-enabled: Enable the appending of the device's status on the
> measure value transmission.
> - gpio-controller: Sadly function not implemented yet in the driver.
>
> Signed-off-by: Andre Werner <andre.werner@systec-electronic.com>
> ---
> v3
> - Delete ADS7138 compatible and comments.
> - Add options for CRC, status and average samples as well as
> gpio-controller.
> - Update example.
> - add regulator for digital IO voltage.
You received several build errors before. Did you really test it now,
because looks like not.
> ---
> .../bindings/iio/adc/ti,ads7038.yaml | 83 +++++++++++++++++++
> 1 file changed, 83 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml
> new file mode 100644
> index 000000000000..fc1054ca93f7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml
> @@ -0,0 +1,83 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/ti,ads7038.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments ADS7038 and similar ADCs
> +
> +maintainers:
> + - Andre Werner <andre.werner@systec-electronic.com>
> +
> +description: |
> + Family of 7 channel, 12 bit ADCs with SPI interface.
> +
> + Datasheet: https://www.ti.com/lit/gpn/ads7038
> +
> +properties:
> + compatible:
> + enum:
> + - ti,ads7038
> +
> + reg:
> + maxItems: 1
> +
> + spi-max-frequency:
> + maximum: 60000000
> +
> + avdd-supply:
> + description: Analog supply voltage, also used as the reference voltage to the ADC.
> +
> + dvdd-supply:
> + description: Digital I/O supply voltage.
> +
> + average-samples:
> + description: |
> + If specified ADC is configured for avaraging measurements (OSR_CFG Register).
> + This effects output format for measurement and sampling time.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1, 2, 3, 4, 5, 6, 7]
> +
> + status-enabled:
> + description: |
Do not need '|' unless you need to preserve formatting.
> + If specified ADC transmits chip status (DATA_CFG Register).
Missing type.
You described the desired Linux feature or behavior, not the actual
hardware. The bindings are about the latter, so instead you need to
rephrase the property and its description to match actual hardware
capabilities/features/configuration etc. Why this is a property of a board?
> +
> + crc-enabled:
> + description: |
> + Checking the integrity of the data bits exchanged over
> + SPI interface (GENERAL_CFG Register).
Same comment.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-10-16 7:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-16 7:02 [PATCH v3 1/2] dt-bindings: iio: adc: ti,ads7038: Add description for ADS7038 werneazc
2023-10-16 7:18 ` Krzysztof Kozlowski [this message]
2023-10-16 7:38 ` Jonathan Cameron
2023-10-16 7:40 ` Rob Herring
-- strict thread matches above, loose matches on Subject: below --
2023-10-15 18:32 werneazc
2023-10-15 19:17 ` Rob Herring
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=2ae8c910-3fa5-4835-9d2a-fbab64d3aabf@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=andre.werner@systec-electronic.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=werneazc@gmail.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