Re: [PATCH v2 3/3] iio: proximity: Add Benewake TF-Luna LiDAR driver
From: Jonathan Cameron
Date: Sat Oct 31 2026 - 19:22:51 EST
On Sat, 31 Oct 2026 00:23:30 +0530
Vidhu Sarwal via B4 Relay <devnull+vidhu.linux.gmail.com@xxxxxxxxxx> wrote:
> From: Vidhu Sarwal <vidhu.linux@xxxxxxxxx>
>
> Add a driver for the Benewake TF-Luna, a single-point time-of-flight
> LiDAR distance sensor with a range of 0.2 m to 8 m, connected over I2C.
>
> The sensor is run in trigger mode. Each read starts one measurement and
> waits for the timestamp register to change before reading the result.
> In continuous mode a read can catch the sensor in the middle of updating
> its result registers unless it is synchronised to the data ready output,
> which this driver does not use yet.
>
> When the signal strength is too low the sensor reports a dummy distance
> of 0, so such readings, as well as overexposed ones, return -ENODATA
> instead of a distance.
>
> Datasheet: https://en.benewake.com/uploadfiles/2025/04/20250430174501874.pdf
> Signed-off-by: Vidhu Sarwal <vidhu.linux@xxxxxxxxx>
Nice driver. I'll pick it up once the DT folk have had a look
at the additional serial binding if nothing else comes up.
Thanks,
Jonathan