mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hermes Zhang <Hermes.Zhang@axis.com>
To: <jdelvare@suse.com>, <linux@roeck-us.net>, <robh@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	Hermes Zhang <Hermes.Zhang@axis.com>
Cc: <kernel@axis.com>, <linux-hwmon@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/2] dt-bindings: hwmon: Add D3-323-AA
Date: Thu, 12 Dec 2024 12:24:09 +0800	[thread overview]
Message-ID: <20241212042412.702044-2-Hermes.Zhang@axis.com> (raw)
In-Reply-To: <20241212042412.702044-1-Hermes.Zhang@axis.com>

Add Devicetree binding documentation for Nicera D3-323-AA Pyroelectric
IR sensor.

Signed-off-by: Hermes Zhang <Hermes.Zhang@axis.com>
---
 .../bindings/hwmon/nicera,d3-323-aa.yaml      | 50 +++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/nicera,d3-323-aa.yaml

diff --git a/Documentation/devicetree/bindings/hwmon/nicera,d3-323-aa.yaml b/Documentation/devicetree/bindings/hwmon/nicera,d3-323-aa.yaml
new file mode 100644
index 000000000000..31690e630b5f
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/nicera,d3-323-aa.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/nicera,d3-323-aa.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nicera D3-323-AA Pyroelectric IR sensor
+
+maintainers:
+  - Hermes Zhang <Hermes.Zhang@axis.com>
+
+description: |
+  Nicera D3-323-AA Pyroelectric IR sensor
+
+  datasheet:
+    https://www.nicera.co.jp/wordpress/wp-content/uploads/2022/01/D3-323-AA_e.pdf
+
+properties:
+  compatible:
+    const: nicera,d3-323-aa
+
+  reset-gpios:
+    description: The GPIO pin connected to the reset pin on the sensor
+    maxItems: 1
+
+  clk-gpios:
+    description: The GPIO pin connected to the clk pin on the sensor
+    maxItems: 1
+
+  si-gpios:
+    description: The GPIO pin connected to the si pin on the sensor
+    maxItems: 1
+
+required:
+  - compatible
+  - reset-gpios
+  - clk-gpios
+  - si-gpios
+
+
+additionalProperties: false
+
+examples:
+  - |
+    sensor {
+        compatible = "nicera,d3-323-aa";
+        reset-gpios = <&gpio4 12 0>;
+        clk-gpios = <&gpio4 13 0>;
+        si-gpios = <&gpio4 14 0>;
+    };
-- 
2.45.2


       reply	other threads:[~2024-12-12  4:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20241212042412.702044-1-Hermes.Zhang@axis.com>
2024-12-12  4:24 ` Hermes Zhang [this message]
2024-12-13 11:06   ` Krzysztof Kozlowski
2024-12-12  4:24 ` [PATCH 2/2] hwmon: Add support for D3-323-AA Pyroelectric IR sensor Hermes Zhang
2024-12-12  6:17   ` Guenter Roeck
2024-12-12 16:59     ` Jonathan Cameron
2024-12-13  5:39       ` Hermes Zhang
2024-12-14 11:46         ` 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=20241212042412.702044-2-Hermes.Zhang@axis.com \
    --to=hermes.zhang@axis.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jdelvare@suse.com \
    --cc=kernel@axis.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=robh@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

all inboxes | Powered by JetHome®