From: Christoph Fritz <chf.fritz@googlemail.com>
To: Jonathan Cameron <jic23@kernel.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Rob Herring <robh+dt@kernel.org>
Cc: linux-iio@vger.kernel.org
Subject: [PATCH 2/2] dt-bindings: iio: light: add isl76683 light bindings
Date: Wed, 2 Jun 2021 15:45:12 +0200 [thread overview]
Message-ID: <20210602134512.193186-3-chf.fritz@googlemail.com> (raw)
In-Reply-To: <20210602134512.193186-1-chf.fritz@googlemail.com>
This patch adds documentation of device tree bindings for Intersil
isl76683 light sensor.
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
.../bindings/iio/light/isil,isl76683.yaml | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/light/isil,isl76683.yaml
diff --git a/Documentation/devicetree/bindings/iio/light/isil,isl76683.yaml b/Documentation/devicetree/bindings/iio/light/isil,isl76683.yaml
new file mode 100644
index 000000000000..3e802a29892b
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/isil,isl76683.yaml
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/isil,isil76683.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Intersil isl76683 ambient light sensor
+
+maintainers:
+ - Christoph Fritz <chf.fritz@googlemail.com>
+
+description: |
+ https://www.intersil.com/content/dam/Intersil/documents/isl7/isl76683.pdf
+
+properties:
+ compatible:
+ enum:
+ - isil,isl76683
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ isl76683@74 {
+ compatible = "isil,isl76683";
+ reg = <0x74>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <20 IRQ_TYPE_FALLING>;
+ };
+ };
+...
--
2.29.2
next prev parent reply other threads:[~2021-06-02 13:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-02 13:45 [PATCH 0/2] Support for isl76683 ambient light sensor Christoph Fritz
2021-06-02 13:45 ` [PATCH 1/2] iio: light: Add support for Intersil isl76683 sensor Christoph Fritz
2021-06-02 14:28 ` Peter Meerwald-Stadler
2021-06-03 10:23 ` Jonathan Cameron
2021-06-02 15:01 ` Andy Shevchenko
2021-06-02 13:45 ` Christoph Fritz [this message]
2021-06-03 10:25 ` [PATCH 2/2] dt-bindings: iio: light: add isl76683 light bindings 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=20210602134512.193186-3-chf.fritz@googlemail.com \
--to=chf.fritz@googlemail.com \
--cc=andy.shevchenko@gmail.com \
--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