From: Vidhu Sarwal Date: Tue, 20 Oct 2026 00:03:42 +0530 Subject: [PATCH 2/3] dt-bindings: iio: proximity: Add Benewake TF-Luna MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261020-tf-luna-v1-2-53a88f93db24@gmail.com> References: <20261020-tf-luna-v1-0-53a88f93db24@gmail.com> In-Reply-To: <20261020-tf-luna-v1-0-53a88f93db24@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vidhu Sarwal , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Shuah Khan X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792434836; l=2973; i=vidhu.linux@gmail.com; s=20260713; h=from:subject:message-id; bh=0UBEPrfvmA3ptYlQPCqBd+fp3dX9vJ8y5I7yTq7Hq1s=; b=RZQf02ROujFEc4ayDljTkgirbR0+KERzramPjlK8nLFoB7Ma5i/5YJpaQIB7qpDyiK+te7XnN 4JHqEHmxu41ATWBz7bPws7I87rWh9ZUkeAQivk1bLUXsClSUCUrFVo8 X-Developer-Key: i=vidhu.linux@gmail.com; a=ed25519; pk=xDu3Cbesz76CQXwY8lteI74n3ELVIV7wCsuYAvcX1Q4= X-Endpoint-Received: by B4 Relay for vidhu.linux@gmail.com/20260713 with auth_id=869 List-Id: B4 Relay Submissions 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 --- .../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 + +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 + + 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 +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 L: linux-block@vger.kernel.org -- 2.53.0