Re: [PATCH v2 0/3] iio: proximity: Add Benewake TF-Luna LiDAR driver

From: Krzysztof Kozlowski

Date: Mon Nov 02 2026 - 05:54:18 EST


On Sat, Oct 31, 2026 at 12:23:27AM +0530, Vidhu Sarwal wrote:
> This series adds support for the Benewake TF-Luna, a single point ToF
> LiDAR distance sensor with a range of 0.2 m to 8 m. The
> sensor uses either UART or I2C, selected by a strap pin at power-up.
> This series covers the I2C interface only.
>
> Patch 1 adds the vendor prefix, patch 2 adds the binding and patch 3 adds the
> driver, which reports distance using an IIO_DISTANCE channel.
>
> The driver keeps the sensor in trigger mode and starts a measurement
> per read. The manual warns that reads in continuous mode can race with
> the sensor updating its result registers unless they are synchronised
> to the data ready output, which the driver does not use yet.
>
> Two issues I faced with the hardware that the manual does not mention:
> - The sensor silently drops a register write that arrives right after
> another one, so probe reads the mode back after setting it.
> - The boot time is not documented. I was able to measure 350ms after a
> reboot before the registers read back correctly, so probe waits
> 500 ms after enabling the supply, keeping some buffer.
>
> Later on I plan to add buffered caputure using data ready interrupt and
> runtime PM in a follow up series.
>
> This was tested on hardware using Raspberry Pi 4 and with firmware v3.6.0
> built out of tree on the 6.18 RPi kernel both via new_device as well as a
> DT Overlay.
>
> ---
> Changes in v2:
> - dt-bindings: describe the UART interface as well per Krzysztof

What changed exactly? b4 diff fails, the patchset cannot be applied on
any known upstream revision I tried.

Best regards,
Krzysztof