From: Rob Herring <robh@kernel.org>
To: "Leonard Göhrs" <l.goehrs@pengutronix.de>
Cc: kernel@pengutronix.de, Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: iio: adc: add TI LMP92064 controller
Date: Tue, 1 Nov 2022 07:28:24 -0500 [thread overview]
Message-ID: <20221101122824.GA944982-robh@kernel.org> (raw)
In-Reply-To: <20221101064804.720050-1-l.goehrs@pengutronix.de>
On Tue, Nov 01, 2022 at 07:48:03AM +0100, Leonard Göhrs wrote:
> Add binding documentation for the TI LMP92064 dual channel SPI ADC.
>
> Changes from v1 -> v2:
>
> - Rename the "shunt-resistor" devicetree property to
> "shunt-resistor-micro-ohms".
> - Add supply regulator support for the two voltage domains of the chip
> (vdd and vdig).
> - Add reference to spi-peripheral-props.yaml
>
> Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
> ---
> .../bindings/iio/adc/ti,lmp92064.yaml | 70 +++++++++++++++++++
> 1 file changed, 70 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,lmp92064.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,lmp92064.yaml b/Documentation/devicetree/bindings/iio/adc/ti,lmp92064.yaml
> new file mode 100644
> index 000000000000..357b15ebd897
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/ti,lmp92064.yaml
> @@ -0,0 +1,70 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/ti,lmp92064.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments LMP92064 Precision Current and Voltage Sensor.
> +
> +maintainers:
> + - Leonard Göhrs <l.goehrs@pengutronix.de>
> +
> +description: |
> + The LMP92064 is a two channel ADC intended for combined voltage and current
> + measurements.
> +
> + The device contains two ADCs to allow simultaneous sampling of voltage and
> + current and thus of instantaneous power consumption.
> +
> +properties:
> + compatible:
> + enum:
> + - ti,lmp92064
> +
> + reg:
> + maxItems: 1
> +
> + vdd-supply:
> + description: Regulator that provides power to the main part of the chip
> +
> + vdig-supply:
> + description: |
> + Regulator that provides power to the digital I/O part of the chip
> +
> + shunt-resistor-micro-ohms:
> + description: |
> + Value of the shunt resistor (in µΩ) connected between INCP and INCN,
> + across which current is measured. Used to provide correct scaling of the
> + raw ADC measurement.
> +
> + reset-gpios:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - shunt-resistor-micro-ohms
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +additionalProperties: false
This should be unevaluatedProperties instead.
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + adc@0 {
> + compatible = "ti,lmp92064";
> + reg = <0>;
> + vdd-supply = <&vdd>;
> + vdig-supply = <&vdd>;
> + spi-max-frequency = <20000000>;
> + shunt-resistor-micro-ohms = <15000>;
> + reset-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
> + };
> + };
> +...
> --
> 2.30.2
>
>
next prev parent reply other threads:[~2022-11-01 12:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-01 6:48 [PATCH v2 1/2] dt-bindings: iio: adc: add TI LMP92064 controller Leonard Göhrs
2022-11-01 6:48 ` [PATCH v2 2/2] iio: adc: add ADC driver for the " Leonard Göhrs
2022-11-01 10:36 ` kernel test robot
2022-11-06 14:56 ` Jonathan Cameron
2022-11-06 15:15 ` Jonathan Cameron
2022-11-01 11:55 ` [PATCH v2 1/2] dt-bindings: iio: adc: add " Rob Herring
2022-11-01 12:28 ` Rob Herring [this message]
2022-11-06 14:52 ` 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=20221101122824.GA944982-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=l.goehrs@pengutronix.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.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