All of lore.kernel.org
 help / color / mirror / Atom feed
From: Donggeun Yoo <donggeunyoo.kernel@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Donggeun Yoo" <donggeunyoo.kernel@gmail.com>
Subject: [PATCH 1/2] dt-bindings: iio: proximity: Add ST STHS34PF80 infrared sensor
Date: Thu,  3 Dec 2026 09:50:54 +0900	[thread overview]
Message-ID: <20261203005055.26666-2-donggeunyoo.kernel@gmail.com> (raw)
In-Reply-To: <20261203005055.26666-1-donggeunyoo.kernel@gmail.com>

The STHS34PF80 is an infrared sensor for presence and motion detection.
It has an I2C and a 3-wire SPI interface, an optional interrupt output
and a single supply, vdd.

Datasheet: https://www.st.com/resource/en/datasheet/sths34pf80.pdf
Assisted-by: LLM
Signed-off-by: Donggeun Yoo <donggeunyoo.kernel@gmail.com>
---
 .../bindings/iio/proximity/st,sths34pf80.yaml | 86 +++++++++++++++++++
 MAINTAINERS                                   |  6 ++
 2 files changed, 92 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/st,sths34pf80.yaml

diff --git a/Documentation/devicetree/bindings/iio/proximity/st,sths34pf80.yaml b/Documentation/devicetree/bindings/iio/proximity/st,sths34pf80.yaml
new file mode 100644
index 0000000000000..a46bc65960421
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/proximity/st,sths34pf80.yaml
@@ -0,0 +1,86 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/st,sths34pf80.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics STHS34PF80 infrared presence and motion sensor
+
+maintainers:
+  - Donggeun Yoo <donggeunyoo.kernel@gmail.com>
+
+description: |
+  The STHS34PF80 is an infrared sensor that measures the IR radiation
+  emitted by objects in its field of view. Embedded algorithms detect
+  presence, motion and ambient temperature shock and can signal them on
+  an interrupt pin. The device has an I2C interface and a 3-wire SPI
+  interface.
+
+  Datasheet: https://www.st.com/resource/en/datasheet/sths34pf80.pdf
+
+properties:
+  compatible:
+    const: st,sths34pf80
+
+  reg:
+    maxItems: 1
+
+  drive-open-drain:
+    type: boolean
+    description:
+      The interrupt line will be configured as open drain, which is useful if
+      several sensors share the same interrupt line.
+
+  interrupts:
+    maxItems: 1
+
+  spi-3wire: true
+
+  spi-max-frequency:
+    maximum: 10000000
+
+  vdd-supply: true
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        proximity@5a {
+            compatible = "st,sths34pf80";
+            reg = <0x5a>;
+            interrupt-parent = <&gpio0>;
+            interrupts = <0 IRQ_TYPE_EDGE_RISING>;
+            vdd-supply = <&vdd>;
+        };
+    };
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        proximity@0 {
+            compatible = "st,sths34pf80";
+            reg = <0>;
+            interrupt-parent = <&gpio0>;
+            interrupts = <0 IRQ_TYPE_EDGE_RISING>;
+            spi-3wire;
+            spi-max-frequency = <10000000>;
+            vdd-supply = <&vdd>;
+        };
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 02015eaec312d..09318d3f9670e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -26594,6 +26594,12 @@ S:	Maintained
 F:	Documentation/hwmon/stef48h28.rst
 F:	drivers/hwmon/pmbus/stef48h28.c
 
+ST STHS34PF80 IIO DRIVER
+M:	Donggeun Yoo <donggeunyoo.kernel@gmail.com>
+L:	linux-iio@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/proximity/st,sths34pf80.yaml
+
 ST STM32 FIREWALL
 M:	Gatien Chevallier <gatien.chevallier@foss.st.com>
 S:	Maintained
-- 
2.53.0


  reply	other threads:[~2026-12-03  0:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  0:50 [PATCH 0/2] iio: proximity: Add ST STHS34PF80 driver Donggeun Yoo
2026-12-03  0:50 ` Donggeun Yoo [this message]
2026-12-03  0:50 ` [PATCH 2/2] iio: proximity: Add driver for ST STHS34PF80 Donggeun Yoo

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=20261203005055.26666-2-donggeunyoo.kernel@gmail.com \
    --to=donggeunyoo.kernel@gmail.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.