From: <andrei.drimbarean@analog.com>
To: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <devicetree@vger.kernel.org>, <fazilyildiran@gmail.com>,
<andrei.drimbarean@analog.com>, <robh+dt@kernel.org>,
<jic23@kernel.org>, <Michael.Hennerich@analog.com>,
<lars@metafoo.de>
Subject: [PATCH 1/2] dt-bindings: add adpd188 schema
Date: Fri, 8 Oct 2021 14:27:46 +0300 [thread overview]
Message-ID: <20211008112747.79969-2-andrei.drimbarean@analog.com> (raw)
In-Reply-To: <20211008112747.79969-1-andrei.drimbarean@analog.com>
From: Andrei Drimbarean <andrei.drimbarean@analog.com>
Signed-off-by: Andrei Drimbarean <andrei.drimbarean@analog.com>
---
.../bindings/iio/light/adi,adpd188.yaml | 72 +++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml
diff --git a/Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml b/Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml
new file mode 100644
index 000000000000..3c08b0904803
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+# Copyright 2019 Analog Devices Inc.
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/adi,adpd188.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADPD188 device driver
+
+maintainers:
+ - Andrei Drimbarean <andrei.drimbarean@analog.com>
+
+description: |
+ Bindings for the Analog Devices ADPD188 device. The device support both SPI and I2C
+ interfaces. Datasheet can be found here:
+ https://www.analog.com/media/en/technical-documentation/data-sheets/adpd188bi.pdf
+properties:
+ compatible:
+ enum:
+ - adi,adpd188
+
+ reg:
+ description: SPI chip select number or I2C slave address
+ maxItems: 1
+
+ interrupts:
+ description: IRQ line for the device or device chain
+ maxItems: 1
+
+ spi-cpol: true
+
+ spi-cpha: true
+
+ spi-max-frequency:
+ maximum: 10000000
+
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
+ status:
+ const: 'okay'
+
+ adi,no-of-devices:
+ description: Number of daisy-chained devices on an I2C bus
+ string
+ $ref: "http://devicetree.org/schemas/types.yaml#/definitions/uint8"
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ adpd188@64 {
+ compatible = "adi,adpd188";
+ reg = <0x64>;
+ interrupts = <9 1>;
+ interrupt-parent = <&gpio>;
+ adi,no-of-devices = <8>;
+ };
+ };
+
+additionalProperties: false
--
2.25.1
next prev parent reply other threads:[~2021-10-08 11:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-08 11:27 [PATCH 0/2] ADPD188 linux driver andrei.drimbarean
2021-10-08 11:27 ` andrei.drimbarean [this message]
2021-10-08 16:34 ` [PATCH 1/2] dt-bindings: add adpd188 schema Jonathan Cameron
2021-10-08 19:48 ` Rob Herring
2021-10-08 11:27 ` [PATCH 2/2] drivers:iio:light: add ADPD188 driver support andrei.drimbarean
2021-10-08 17:55 ` Jonathan Cameron
2021-10-09 20:30 ` kernel test robot
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=20211008112747.79969-2-andrei.drimbarean@analog.com \
--to=andrei.drimbarean@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=devicetree@vger.kernel.org \
--cc=fazilyildiran@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@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).