From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796259070; b=v82Dl5GPaZHFaz5eT+6Dn7i2OgQ69cjf465rgJtUBd0X3karRs1+ak6H2CxXnHjN7k1P vd2/6C/7vS6NKfD0D2ftmTADtLvlXo2E2CU5wM8hj+JMYqN7YkHOJCxKgAQZlWkEy+ntg u8k6M1sM08UjscN3nCai3fTmmVHey0YoWxzeQNL7DBgjl3wctrqehyouJ7h7/svvr85aP 0KcL94iHLLoEASn4SG2SjZ0jBagf7shqTHQwVH4WZYXz1I33WsO0UrWb/vec1Y3N+iBOu QwPC9nqtVRy3SNnPCH3X95wD/5o4qh3n2LBp8KL11f902vDVQaGrWZM2LeIEryvnnVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796259070; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=PeUJN1ZzqDqu2hvkvEeAR1Hb1sDu7PauMiwfe4aLH1w=; b=e7Gcvu9t/BgktniRAl34e6FuB4l/jRjpmjZs7BN8mbHeWaAan/elZH9fybHRGiQTSc3R CejNMUTPXk3lo5FGKMdjomPoIVb5YcJnszq3G73Ak59He2d8n6VHVwQACs6iwJocRk4nf kn7mGnofR372Mt5/I+FdxvUvIaoZw5w1+TUHjJuh9zpv//g1EVDk8qTlrDGzixBbmnRAS zvNHQ9OqE/PXIYNeTDttLpfARTzJvtxEC3JoDVATGcE3Wvz/xKCO4iTuaM1ouLAu+z9g0 SDYWkeDAU0Txc2kz4sImyvKMltEGG7Q5wesT0F7XsoHJR0yqITF3wIPViz7jvKojzkg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=a+3F4cCG; arc=none smtp.remote-ip=74.125.82.48 Received: from mail-dl1-f48.google.com (mail-dl1-f48.google.com [74.125.82.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B73FA606A322 for ; Thu, 3 Dec 2026 00:51:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B73FA606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=a+3F4cCG Received: by mail-dl1-f48.google.com with SMTP id a92af1059eb24-18818daa3e7so246190c88.0 for ; Wed, 02 Dec 2026 16:51:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796259069; x=1796863869; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PeUJN1ZzqDqu2hvkvEeAR1Hb1sDu7PauMiwfe4aLH1w=; b=a+3F4cCG0EekjujOwrecNIz7nfmh9WU1howyZaRNBtyI1qc5eH8wCqFkxLgyZLz3Xe d1w4Zc+vP7/nACplAnVZX8Vf2cxvBs158mTaE2yZFMTYwjPYlDifc1qZavew10tXdhmb 3m5zhLwDSU9CJgAfiqDCgpv+iilkhuwpG9DFLwSZ2d/MGSjC2KoDHBxNRDaGYoOkvhdU K9SSONCabrH/xY0PRyvCL9jZYvR2M3q3ORgkZxDu4mlH4PePudETYEJ2T/ypkFy7YWP2 WR2jNTPIYr5WIudKh5dZu4ZjwFS4IZvr2euFGN4Kzj0A0gjJ2GziUrHwU+JO2jos4oLe Ir3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796259069; x=1796863869; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=PeUJN1ZzqDqu2hvkvEeAR1Hb1sDu7PauMiwfe4aLH1w=; b=NxTcmLma93SerfauXudh2blDP6PQwczwmBPhU+nxtYdOWsYdlHHPcwTJ/UsjJ1N7Jf Jszc1+CgiVYkGK3qR31ex0DV/BC2EBt7vZxATY8NDgsxcGIey7MDPKbdXD7GQxFZzD/J vo3jgkLialg7wOeIpYhD4pP2c8A2i1VeePAKe0kp40k9YWuKFUW6+EO6NM+eALqTl2Yf 4YvUmt7N8eQyZJbAUYHFUzYyshbqenczMqiMKo9bzGgebCShX8AJK1NUdiMYRn3DbnRx TNxsLDKbOVqCiRu4M78jOS+qgg5fwXgpUAWnX2XGWr1WfsIlVPJ/euhj/CKb0sU0Cad5 oySg== X-Forwarded-Encrypted: i=1; AL+hErHfaXsrVrYdSDaPKSQWWkUnUEVnPayLFrCDDy1DpU0LgVwabtSoYkgCBcpocUm5qeyWMsLvJUBvWg8=@vger.kernel.org X-Gm-Message-State: APuU4Z97mgVP7bhVfp3XAGdAkZmEUgKyEggEo8sYEKWYfBMGaTYO0htk nyGcXJlsYB+BnYkrQnJPOF137wQ6pTx2sYdiobJcWtRmtLWb5IDOuKo= X-Gm-Gg: AZFdTZeC3SrTv4YGVuPzTKYsAThIjoxfBvpVnvQyEeHfJaAQICkpeOPprWiuyGYb2kh fbubatgoCKV8r0lpkaqbtL8DoR2gGdOdwAiAyfxVOIDmK7SgmDltUBjDGlnKg4Ux4IxI68Z5lRT lRI71joxAAzb622hGNjncRiIYgAZQX9mdwVJQbZ8rvaMZgTF9l1LdXpZImEw0ZIrmSybms0ZDt7 hkksvVp44lv72ur5MVYdXAJcVE/w4ZFlvrogGDXnXn4NfErHyMJawaa2N90OnPSFYavxuB1Tvui ybwhLVH/zeZ+zbaE8P/JZTJzGB65QqduoFie+amXvemGCLW0lO/7ib57O4hm1PCTuALAGq9CsYJ 60bpjpHF2/UMXpq/5qZR3ElfVh+3bHHHiNgIoQstPUNRyUCH2hs4Ms6hBTKI4kJBllMWG7Uu4dr iH7usjAjtXxnXSFw1sy6ZsLNTRJ+xFUMCNhM3/bvw5DFBVRStEYcn29grBZQGWdg1LZKvaH+qpm Y47KruIFMqJdWOgSq70lDS7yXr+fz/z7zJYnH2Dm4YsVU7uk3+cxTVNvv7YImCdDgXy0tsGrNNK eCuGqcxihcckg+ARwZ1dNaR3zSzpPLf5gWHbT0ETlVjUKxj/OFIwlbwSk06zQMCKb53iaAjAvS/ y+kU= X-Received: by 2002:a05:701b:2089:10b0:181:6b8:31f1 with SMTP id a92af1059eb24-1b5ced83aadmr452745c88.10.1796259068689; Wed, 02 Dec 2026 16:51:08 -0800 (PST) Received: from ydg-Zenbook-14-UM3406GA ([2001:2d8:822f:1401:ab9f:7461:de8f:c16c]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b56ef9fd16sm93787266c88.4.2026.12.02.16.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 16:51:08 -0800 (PST) From: Donggeun Yoo To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Donggeun Yoo Subject: [PATCH 1/2] dt-bindings: iio: proximity: Add ST STHS34PF80 infrared sensor Date: Thu, 3 Dec 2026 09:50:54 +0900 Message-ID: <20261203005055.26666-2-donggeunyoo.kernel@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261203005055.26666-1-donggeunyoo.kernel@gmail.com> References: <20261203005055.26666-1-donggeunyoo.kernel@gmail.com> X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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 + +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 + + 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 + + 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 +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/proximity/st,sths34pf80.yaml + ST STM32 FIREWALL M: Gatien Chevallier S: Maintained -- 2.53.0