From: Matt Ranostay <matt.ranostay@konsulko.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@vger.kernel.org>,
Rob Herring <robh+dt@kernel.org>,
devicetree@vger.kernel.org,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH 10/10] dt-bindings:iio:potentiostat:ti,lmp91000: txt to yaml conversion.
Date: Sat, 31 Oct 2020 14:41:10 -0700 [thread overview]
Message-ID: <CAJCx=gmWRa4Q_zZZG=f37ZeuifCjmJZ5gnuuc1ZBFGa6bdmGrQ@mail.gmail.com> (raw)
In-Reply-To: <20201031181242.742301-11-jic23@kernel.org>
On Sat, Oct 31, 2020 at 11:15 AM Jonathan Cameron <jic23@kernel.org> wrote:
>
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> There were a few parts of the example that did not conform to the
> binding description and would not have worked with the Linux driver
> as a result. Fixed them whilst doing this conversion.
>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
> ---
> .../bindings/iio/potentiostat/lmp91000.txt | 33 ---------
> .../iio/potentiostat/ti,lmp91000.yaml | 68 +++++++++++++++++++
> 2 files changed, 68 insertions(+), 33 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
> deleted file mode 100644
> index f3ab02b0dd41..000000000000
> --- a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
> +++ /dev/null
> @@ -1,33 +0,0 @@
> -* Texas Instruments LMP91000 series of potentiostats
> -
> -LMP91000: https://www.ti.com/lit/ds/symlink/lmp91000.pdf
> -LMP91002: https://www.ti.com/lit/ds/symlink/lmp91002.pdf
> -
> -Required properties:
> -
> - - compatible: should be one of the following:
> - "ti,lmp91000"
> - "ti,lmp91002"
> - - reg: the I2C address of the device
> - - io-channels: the phandle of the iio provider
> -
> - - ti,external-tia-resistor: if the property ti,tia-gain-ohm is not defined this
> - needs to be set to signal that an external resistor value is being used.
> -
> -Optional properties:
> -
> - - ti,tia-gain-ohm: ohm value of the internal resistor for the transimpedance
> - amplifier. Must be 2750, 3500, 7000, 14000, 35000, 120000, or 350000 ohms.
> -
> - - ti,rload-ohm: ohm value of the internal resistor load applied to the gas
> - sensor. Must be 10, 33, 50, or 100 (default) ohms.
> -
> -Example:
> -
> -lmp91000@48 {
> - compatible = "ti,lmp91000";
> - reg = <0x48>;
> - ti,tia-gain-ohm = <7500>;
> - ti,rload = <100>;
> - io-channels = <&adc>;
> -};
> diff --git a/Documentation/devicetree/bindings/iio/potentiostat/ti,lmp91000.yaml b/Documentation/devicetree/bindings/iio/potentiostat/ti,lmp91000.yaml
> new file mode 100644
> index 000000000000..e4b5d890e8d5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/potentiostat/ti,lmp91000.yaml
> @@ -0,0 +1,68 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/potentiostat/ti,lmp91000.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments LMP91000 series of potentiostats with I2C control
> +
> +maintainers:
> + - Matt Ranostay <matt.ranostay@konsulko.com>
> +
> +description: |
> + Typically used as a signal conditioner for chemical sensors.
> + LMP91000: https://www.ti.com/lit/ds/symlink/lmp91000.pdf
> + LMP91002: https://www.ti.com/lit/ds/symlink/lmp91002.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - ti,lmp91000
> + - ti,lmp91002
> +
> + reg:
> + maxItems: 1
> +
> + io-channels:
> + maxItems: 1
> +
> + ti,external-tia-resistor:
> + $ref: /schemas/types.yaml#/definitions/flag
> + description:
> + If the property ti,tia-gain-ohm is not defined this needs to be set to
> + signal that an external resistor value is being used.
> +
> + ti,tia-gain-ohm:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [2750, 3500, 7000, 14000, 35000, 120000, 350000]
> + description:
> + Internal resistor for the transimpedance amplifier.
> +
> + ti,rload-ohm:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [10, 33, 50, 100]
> + description:
> + Internal resistor load applied to the gas sensor.
> + Default 100 Ohms.
> +
> +required:
> + - compatible
> + - reg
> + - io-channels
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + lmp91000@48 {
> + compatible = "ti,lmp91000";
> + reg = <0x48>;
> + ti,tia-gain-ohm = <7000>;
> + ti,rload-ohm = <100>;
> + io-channels = <&adc>;
> + };
> + };
> +...
> --
> 2.28.0
>
next prev parent reply other threads:[~2020-10-31 21:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-31 18:12 [PATCH 00/10] dt-bindings: iio: conversion of consumer drivers Jonathan Cameron
2020-10-31 18:12 ` [PATCH 01/10] dt-bindings:iio:iio-binding.txt Drop file as content now in dt-schema Jonathan Cameron
2020-10-31 18:12 ` [PATCH 02/10] dt-bindings:iio:dac:dpot-dac: yaml conversion Jonathan Cameron
2020-10-31 18:12 ` [PATCH 03/10] dt-bindings:iio:potentiometer: give microchip,mcp4531 its own binding Jonathan Cameron
2020-10-31 18:12 ` [PATCH 04/10] dt-bindings:iio:adc:envelope-detector: txt to yaml conversion Jonathan Cameron
2020-10-31 18:12 ` [PATCH 05/10] dt-bindings:iio:afe:current-sense-amplifier: " Jonathan Cameron
2020-11-03 15:55 ` Rob Herring
2020-10-31 18:12 ` [PATCH 06/10] dt-bindings:iio:afe:current-sense-shunt: " Jonathan Cameron
2020-10-31 18:12 ` [PATCH 07/10] dt-bindings:iio:adc:maxim,max1027: Pull out to separate binding doc Jonathan Cameron
2020-11-01 13:25 ` Miquel Raynal
2020-11-01 20:33 ` Jonathan Cameron
2020-11-28 17:47 ` Jonathan Cameron
2020-10-31 18:12 ` [PATCH 08/10] dt-bindings:iio:afe:voltage-divider: txt to yaml conversion Jonathan Cameron
2020-10-31 18:12 ` [PATCH 09/10] dt-bindings:iio:light:capella,cm3605: " Jonathan Cameron
2020-11-04 14:46 ` Linus Walleij
2020-11-08 16:00 ` Jonathan Cameron
2020-10-31 18:12 ` [PATCH 10/10] dt-bindings:iio:potentiostat:ti,lmp91000: " Jonathan Cameron
2020-10-31 21:41 ` Matt Ranostay [this message]
2020-11-28 17:56 ` Jonathan Cameron
2020-11-03 16:07 ` [PATCH 00/10] dt-bindings: iio: conversion of consumer drivers Rob Herring
2020-11-28 17:57 ` 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='CAJCx=gmWRa4Q_zZZG=f37ZeuifCjmJZ5gnuuc1ZBFGa6bdmGrQ@mail.gmail.com' \
--to=matt.ranostay@konsulko.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).