From: Vidhu Sarwal via B4 Relay <devnull+vidhu.linux.gmail.com@kernel.org>
To: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Vidhu Sarwal" <vidhu.linux@gmail.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-iio@vger.kernel.org,
Shuah Khan <skhan@linuxfoundation.org>
Subject: [PATCH 2/3] dt-bindings: iio: proximity: Add Benewake TF-Luna
Date: Tue, 20 Oct 2026 00:03:42 +0530 [thread overview]
Message-ID: <20261020-tf-luna-v1-2-53a88f93db24@gmail.com> (raw)
In-Reply-To: <20261020-tf-luna-v1-0-53a88f93db24@gmail.com>
From: Vidhu Sarwal <vidhu.linux@gmail.com>
Add binding for the Benewake TF-Luna, a single point ToF
LiDAR distance sensor with a range of 0.2 m to 8 m.
The sensor talks either UART or I2C, selected by the level of pin 5 at
power-up. This binding covers the I2C interface. Pin 6 is a data ready
output and is described as an interrupt.
Signed-off-by: Vidhu Sarwal <vidhu.linux@gmail.com>
---
.../bindings/iio/proximity/benewake,tf-luna.yaml | 58 ++++++++++++++++++++++
MAINTAINERS | 6 +++
2 files changed, 64 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/proximity/benewake,tf-luna.yaml b/Documentation/devicetree/bindings/iio/proximity/benewake,tf-luna.yaml
new file mode 100644
index 000000000000..cfc3dff58013
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/proximity/benewake,tf-luna.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/benewake,tf-luna.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Benewake TF-Luna LiDAR distance sensor
+
+maintainers:
+ - Vidhu Sarwal <vidhu.linux@gmail.com>
+
+description: |
+ Single-point time-of-flight LiDAR ranging sensor with a range of 0.2 m to
+ 8 m. The sensor talks either UART or I2C, selected at power-up by the level
+ of pin 5. Pin 5 must be tied to ground for the I2C interface described here.
+
+ Datasheet: https://en.benewake.com/uploadfiles/2025/04/20250430174501874.pdf
+
+properties:
+ compatible:
+ const: benewake,tf-luna
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ description:
+ Data ready output on pin 6. Goes high when a new measurement is
+ available and goes low again once any register has been read.
+ maxItems: 1
+
+ vcc-supply:
+ description: Power supply, 3.7 V to 5.2 V.
+
+required:
+ - compatible
+ - reg
+ - vcc-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ proximity@10 {
+ compatible = "benewake,tf-luna";
+ reg = <0x10>;
+ vcc-supply = <®_5v>;
+ interrupt-parent = <&gpio>;
+ interrupts = <17 IRQ_TYPE_EDGE_RISING>;
+ };
+ };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 52024397dc78..24fa7cdf6a57 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4662,6 +4662,12 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/luisbg/linux-befs.git
F: Documentation/filesystems/befs.rst
F: fs/befs/
+BENEWAKE TF-LUNA LIDAR IIO DRIVER
+M: Vidhu Sarwal <vidhu.linux@gmail.com>
+L: linux-iio@vger.kernel.org
+S: Maintained
+F: Documentation/devicetree/bindings/iio/proximity/benewake,tf-luna.yaml
+
BFQ I/O SCHEDULER
M: Yu Kuai <yukuai@fygo.io>
L: linux-block@vger.kernel.org
--
2.53.0
next prev parent reply other threads:[~2026-10-19 23:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 18:33 [PATCH 0/3] iio: proximity: Add Benewake TF-Luna LiDAR driver Vidhu Sarwal via B4 Relay
2026-10-19 18:33 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Benewake Vidhu Sarwal via B4 Relay
2026-10-20 8:35 ` Krzysztof Kozlowski
2026-10-19 18:33 ` Vidhu Sarwal via B4 Relay [this message]
2026-10-20 8:38 ` [PATCH 2/3] dt-bindings: iio: proximity: Add Benewake TF-Luna Krzysztof Kozlowski
2026-10-19 18:33 ` [PATCH 3/3] iio: proximity: Add Benewake TF-Luna LiDAR driver Vidhu Sarwal via B4 Relay
2026-10-20 7:23 ` Joshua Crofts
2026-10-20 7:42 ` Andy Shevchenko
2026-10-20 8:10 ` Andy Shevchenko
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=20261020-tf-luna-v1-2-53a88f93db24@gmail.com \
--to=devnull+vidhu.linux.gmail.com@kernel.org \
--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 \
--cc=skhan@linuxfoundation.org \
--cc=vidhu.linux@gmail.com \
/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