From: Rob Herring <robh@kernel.org>
To: Raviteja Narayanam <raviteja.narayanam@xilinx.com>
Cc: jic23@kernel.org, michal.simek@xilinx.com, lars@metafoo.de,
pmeerw@pmeerw.net, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
git@xilinx.com
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: Add ti,ina260.yaml
Date: Sat, 27 Mar 2021 11:01:53 -0600 [thread overview]
Message-ID: <20210327170153.GA243988@robh.at.kernel.org> (raw)
In-Reply-To: <20210322105056.30571-2-raviteja.narayanam@xilinx.com>
On Mon, Mar 22, 2021 at 04:20:55PM +0530, Raviteja Narayanam wrote:
> Add a binding for Texas Instruments INA260 power monitor device.
>
> Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com>
> ---
> .../bindings/iio/adc/ti,ina260.yaml | 57 +++++++++++++++++++
> 1 file changed, 57 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml
> new file mode 100644
> index 000000000000..97c68188e53d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/ti,ina260.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments INA260 power monitor
> +
> +maintainers:
> + - Raviteja Narayanam <raviteja.narayanam@xilinx.com>
> +
> +description: |
> + The INA260 is a digital-output, current, power and voltage monitor
> + with an I2C and SMBUS compatible interface with an integrated shunt
> + resistor. It features up to 16 programmable addresses on I2C compatible
> + interface. Datasheet - https://www.ti.com/lit/ds/symlink/ina260.pdf?ts=1608607288391
> +
> +properties:
> + compatible:
> + enum:
> + - ti,ina260
> +
> + reg:
> + description: |
> + The 7-bits long I2c address of the device
Just 'maxItems: 1'
> +
> + "#io-channel-cells":
> + const: 1
> +
> + interrupts:
> + description: |
> + IRQ line for the device
That's every 'interrupts' property. Drop.
You need to say how many: maxItems: 1
> +
> + label:
> + description: |
> + A symbolic name for the device
> +
> +required:
> + - compatible
> + - reg
> + - "#io-channel-cells"
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ina260@40 {
> + compatible = "ti,ina260";
> + reg = <0x40>;
> + #io-channel-cells = <1>;
> + };
> + };
> +...
> --
> 2.17.1
>
next prev parent reply other threads:[~2021-03-27 17:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 10:50 [PATCH 0/2] iio: adc: Add driver for INA260 Raviteja Narayanam
2021-03-22 10:50 ` [PATCH 1/2] dt-bindings: iio: adc: Add ti,ina260.yaml Raviteja Narayanam
2021-03-27 17:01 ` Rob Herring [this message]
2021-03-22 10:50 ` [PATCH 2/2] iio: adc: Add support for TI INA260 power monitors Raviteja Narayanam
2021-03-22 11:43 ` Lars-Peter Clausen
2021-03-22 11:51 ` Lars-Peter Clausen
2021-03-22 12:11 ` Raviteja Narayanam
2021-03-22 12:52 ` Lars-Peter Clausen
2021-03-22 13:38 ` Raviteja Narayanam
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=20210327170153.GA243988@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=git@xilinx.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=pmeerw@pmeerw.net \
--cc=raviteja.narayanam@xilinx.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;
as well as URLs for NNTP newsgroup(s).