From: Raviteja Narayanam <raviteja.narayanam@xilinx.com>
To: <robh+dt@kernel.org>, <jic23@kernel.org>
Cc: <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>,
Raviteja Narayanam <raviteja.narayanam@xilinx.com>
Subject: [PATCH 1/2] dt-bindings: iio: adc: Add ti,ina260.yaml
Date: Mon, 22 Mar 2021 16:20:55 +0530 [thread overview]
Message-ID: <20210322105056.30571-2-raviteja.narayanam@xilinx.com> (raw)
In-Reply-To: <20210322105056.30571-1-raviteja.narayanam@xilinx.com>
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
+
+ "#io-channel-cells":
+ const: 1
+
+ interrupts:
+ description: |
+ IRQ line for the device
+
+ 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-22 10:52 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 ` Raviteja Narayanam [this message]
2021-03-27 17:01 ` [PATCH 1/2] dt-bindings: iio: adc: Add ti,ina260.yaml Rob Herring
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=20210322105056.30571-2-raviteja.narayanam@xilinx.com \
--to=raviteja.narayanam@xilinx.com \
--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=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).