Skip to contentSkip to conversation

iio: proximity: move LIDAR-Lite out of trivial-devices and add Garmin fallback

PATCH Superseded Rodrigo Gobbi 4 participants 10 messages Aug 10 – Aug 18

Subsystems (2)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v5 cover iio: proximity: move LIDAR-Lite out of trivial-devices and add Garmin fallback

This series moves the LIDAR-Lite v2 binding out of trivial-devices into a dedicated schema, documenting the power-enable, power-supply and status-output interrupt properties that trivial-devices.yaml has no way to express.

It then adds the Garmin LIDAR-Lite v3 as a fallback compatible in a separate patch, since it is pin-compatible with the v2 and already matched by the driver, so no driver changes are needed.
---
Changelog:
v5:
- split into two commits, one for moving lidar out of trivial and one for adding a fallback compatible for LIDAR-Lite v3;
- minor changes at yaml like: title, description, adding irq prop;
- improve commit msgs for covering the vendor acquisition and PWM mode;
v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
---
Rodrigo Gobbi (2):
dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices
dt-bindings: iio: proximity: document LIDAR-Lite v3 fallback
compatible

 .../proximity/pulsedlight,lidar-lite-v2.yaml  | 70 +++++++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  2 -
 2 files changed, 70 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml
Signature · 1 line
2.48.1
#1 lore raw

PATCH v5 1/2 dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices

The PulsedLight LIDAR-Lite v2 is currently described as a trivial device, but it is not one: besides the I2C interface it exposes a power-enable pin and a mode-control pin.

The mode-control pin can trigger acquisitions and report the measured distance through a PWM signal, entirely bypassing I2C. That usage is bidirectional and non-cyclic, so it doesn't map onto any existing binding for describing pin behaviour, and is intentionally left undocumented here. The same pin can, however, also be used as a plain status output while I2C remains the active interface, which is described through the new interrupts property.

Move the device to a dedicated binding file and document the power-enable, power-supply and interrupt properties that trivial-devices.yaml has no way to express.

---
 .../proximity/pulsedlight,lidar-lite-v2.yaml  | 64 +++++++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  2 -
 2 files changed, 64 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +64 -0
new file mode 100644
index 000000000000..e19c8d166b81
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Pulsedlight LIDAR-Lite v2 range-finding sensor
+
+maintainers:
+  - Matt Ranostay <[email protected]>
+
+description: |
+  This binding covers the I2C interface of the Pulsedlight LIDAR-Lite v2
+  laser rangefinder.
+
+  Besides I2C, the mode control pin can also trigger acquisitions and
+  report the measured distance through a PWM signal, without using I2C
+  at all. That usage is bidirectional and non-cyclic, and is not
+  described by this binding. The same pin can also be used, while I2C
+  remains the active interface, as a plain status output signalling
+  when an acquisition has completed.
+
+  Datasheet:
+    https://github.com/PulsedLight3D/LIDAR-Lite-Documentation/blob/master/Docs/LIDAR-Lite-v2-Docs.pdf
+
+properties:
+  compatible:
+    const: pulsedlight,lidar-lite-v2
+
+  reg:
+    maxItems: 1
+
+  powerdown-gpios:
+    description: GPIO that can be driven low to shut off power to the device.
+    maxItems: 1
+
+  vdd-supply: true
+
+  interrupts:
+    description:
+      Mode control pin used as a status output, driven while the device is
+      busy performing an acquisition. Can be used to signal completion
+      instead of polling over I2C.
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        lidar@62 {
+            compatible = "pulsedlight,lidar-lite-v2";
+            reg = <0x62>;
+            vdd-supply = <&vdd_5v0>;
+        };
+    };
+...
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
index 435c4baab436..74b640c48598 100644
@@ -396,8 +396,6 @@ properties:
           - onnn,adt7462
             # 48-Lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch
           - plx,pex8648
-            # Pulsedlight LIDAR range-finding sensor
-          - pulsedlight,lidar-lite-v2
             # Renesas HS3001 Temperature and Relative Humidity Sensors
           - renesas,hs3001
             # Renesas ISL29501 time-of-flight sensor
Signature · 1 line
2.48.1
Reviewed-by on v5 1/2
#2 lore raw

Re: [PATCH v5 1/2] dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices

Quoted 16 lines · Rodrigo Gobbi

The PulsedLight LIDAR-Lite v2 is currently described as a trivial device, but it is not one: besides the I2C interface it exposes a power-enable pin and a mode-control pin.

The mode-control pin can trigger acquisitions and report the measured distance through a PWM signal, entirely bypassing I2C. That usage is bidirectional and non-cyclic, so it doesn't map onto any existing binding for describing pin behaviour, and is intentionally left undocumented here. The same pin can, however, also be used as a plain status output while I2C remains the active interface, which is described through the new interrupts property.

Move the device to a dedicated binding file and document the power-enable, power-supply and interrupt properties that trivial-devices.yaml has no way to express.

Quoted 6 lines
---
 .../proximity/pulsedlight,lidar-lite-v2.yaml  | 64 +++++++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  2 -
 2 files changed, 64 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml

Best regards,
Krzysztof

maintainer
#3 lore raw

Re: [PATCH v5 1/2] dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices

In reply to Rodrigo Gobbi
Quoted 29 lines · On Mon, 10 Aug 2026 16:18:40 -0300 Rodrigo Gobbi <[email protected]>…

The PulsedLight LIDAR-Lite v2 is currently described as a trivial device, but it is not one: besides the I2C interface it exposes a power-enable pin and a mode-control pin.

The mode-control pin can trigger acquisitions and report the measured distance through a PWM signal, entirely bypassing I2C. That usage is bidirectional and non-cyclic, so it doesn't map onto any existing binding for describing pin behaviour, and is intentionally left undocumented here. The same pin can, however, also be used as a plain status output while I2C remains the active interface, which is described through the new interrupts property.

Move the device to a dedicated binding file and document the power-enable, power-supply and interrupt properties that trivial-devices.yaml has no way to express.

---
 .../proximity/pulsedlight,lidar-lite-v2.yaml  | 64 +++++++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  2 -
 2 files changed, 64 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +0 -0
new file mode 100644
index 000000000000..e19c8d166b81

Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +10 -0
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Pulsedlight LIDAR-Lite v2 range-finding sensor
+
+maintainers:
+  - Matt Ranostay <[email protected]>

I'll need an Ack or Reviewed-by from Matt for this. If Matt either doesn't reply for a while, or isn't happy to take on this much fuller binding, is it something you'd consider putting yourself down for?

Otherwise LGTM

Thanks,

Jonathan

#4 lore raw

Re: [PATCH v5 1/2] dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices

Quoted 26 lines · Jonathan Cameron
Quoted 23 lines · On Mon, 10 Aug 2026 16:18:40 -0300 Rodrigo Gobbi <[email protected]>…

The PulsedLight LIDAR-Lite v2 is currently described as a trivial device, but it is not one: besides the I2C interface it exposes a power-enable pin and a mode-control pin.

The mode-control pin can trigger acquisitions and report the measured distance through a PWM signal, entirely bypassing I2C. That usage is bidirectional and non-cyclic, so it doesn't map onto any existing binding for describing pin behaviour, and is intentionally left undocumented here. The same pin can, however, also be used as a plain status output while I2C remains the active interface, which is described through the new interrupts property.

Move the device to a dedicated binding file and document the power-enable, power-supply and interrupt properties that trivial-devices.yaml has no way to express.

---
 .../proximity/pulsedlight,lidar-lite-v2.yaml  | 64 +++++++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  2 -
 2 files changed, 64 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml
Quoted 16 lines
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +0 -0
new file mode 100644
index 000000000000..e19c8d166b81

Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +10 -0
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Pulsedlight LIDAR-Lite v2 range-finding sensor
+
+maintainers:
+  - Matt Ranostay <[email protected]>

I really don't use my gmail address anymore. Would be ideal if it was changed [email protected] Other than that don't have any issues.

Thanks,

Matt

Quoted 10 lines

I'll need an Ack or Reviewed-by from Matt for this. If Matt either doesn't reply for a while, or isn't happy to take on this much fuller binding, is it something you'd consider putting yourself down for?

Otherwise LGTM

Thanks,

Jonathan

#5 lore raw

Re: [PATCH v5 1/2] dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices

Quoted 21 lines · Matt Ranostay
Quoted 17 lines
Quoted 7 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +0 -0
new file mode 100644
index 000000000000..e19c8d166b81

Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +10 -0
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Pulsedlight LIDAR-Lite v2 range-finding sensor
+
+maintainers:
+  - Matt Ranostay <[email protected]>

I really don't use my gmail address anymore. Would be ideal if it was changed [email protected] Other than that don't have any issues.

Quoted 3 lines

Thanks,

Matt

Thanks Matt, I will send a v6 fixing the e-mail. Since you're fine with it, would you mind sending a formal Reviewed-by/Acked-by?

Quoted 11 lines
Quoted 11 lines

I'll need an Ack or Reviewed-by from Matt for this. If Matt either doesn't reply for a while, or isn't happy to take on this much fuller binding, is it something you'd consider putting yourself down for?

Otherwise LGTM

Thanks,

Jonathan

I'm happy to be added as a second maintainer for this binding, (I can add myself at v6) but I'd rather defer to Matt as the primary one for now.
Thanks!
Rodrigo.

Acked-by
#6 lore raw

Re: [PATCH v5 1/2] dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices

Quoted 23 lines · Rodrigo Gobbi
Quoted 21 lines · Matt Ranostay
Quoted 17 lines
Quoted 7 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +0 -0
new file mode 100644
index 000000000000..e19c8d166b81

Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file +10 -0
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Pulsedlight LIDAR-Lite v2 range-finding sensor
+
+maintainers:
+  - Matt Ranostay <[email protected]>

I really don't use my gmail address anymore. Would be ideal if it was changed [email protected] Other than that don't have any issues.

Quoted 6 lines
Quoted 3 lines

Thanks,

Matt

Thanks Matt, I will send a v6 fixing the e-mail. Since you're fine with it, would you mind sending a formal Reviewed-by/Acked-by?

Sure. Provide email change then LGTM.

Quoted 19 lines
Quoted 7 lines
Quoted 7 lines

I'll need an Ack or Reviewed-by from Matt for this. If Matt either doesn't reply for a while, or isn't happy to take on this much fuller binding, is it something you'd consider putting yourself down for?

Quoted 5 lines
Quoted 5 lines

Otherwise LGTM

Thanks,

Jonathan

I'm happy to be added as a second maintainer for this binding, (I can add myself at v6) but I'd rather defer to Matt as the primary one for now.
Thanks!
Rodrigo.

#7 lore raw

PATCH v5 2/2 dt-bindings: iio: proximity: document LIDAR-Lite v3 fallback compatible

In reply to Rodrigo Gobbi

PulsedLight was acquired by Garmin, who now sells the LIDAR-Lite v3. It is pin-compatible with the v2, and the driver already matches it
directly: commit b257c1a45e99 ("iio: pulsedlight-lidar-lite-v2: add lidar-lite-v3 property") added a "grmn,lidar-lite-v3" of_device_id entry, so no driver changes are needed here.

Document it with "pulsedlight,lidar-lite-v2" as a fallback compatible.

---
 .../proximity/pulsedlight,lidar-lite-v2.yaml   | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml +12 -6
index e19c8d166b81..baae9bf20a30 100644
@@ -4,14 +4,14 @@
 $id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Pulsedlight LIDAR-Lite v2 range-finding sensor
+title: Pulsedlight/Garmin LIDAR-Lite range-finding sensors
 
 maintainers:
   - Matt Ranostay <[email protected]>
 
 description: |
-  This binding covers the I2C interface of the Pulsedlight LIDAR-Lite v2
-  laser rangefinder.
+  This binding covers the I2C interface of the Pulsedlight/Garmin
+  LIDAR-Lite v2 and v3 laser rangefinders.
 
   Besides I2C, the mode control pin can also trigger acquisitions and
   report the measured distance through a PWM signal, without using I2C
@@ -20,12 +20,18 @@ description: |
   remains the active interface, as a plain status output signalling
   when an acquisition has completed.
 
-  Datasheet:
+  Datasheets:
+    https://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf
     https://github.com/PulsedLight3D/LIDAR-Lite-Documentation/blob/master/Docs/LIDAR-Lite-v2-Docs.pdf
 
 properties:
   compatible:
-    const: pulsedlight,lidar-lite-v2
+    oneOf:
+      - items:
+          - enum:
+              - grmn,lidar-lite-v3
+          - const: pulsedlight,lidar-lite-v2
+      - const: pulsedlight,lidar-lite-v2
 
   reg:
     maxItems: 1
@@ -56,7 +62,7 @@ examples:
         #address-cells = <1>;
         #size-cells = <0>;
         lidar@62 {
-            compatible = "pulsedlight,lidar-lite-v2";
+            compatible = "grmn,lidar-lite-v3", "pulsedlight,lidar-lite-v2";
             reg = <0x62>;
             vdd-supply = <&vdd_5v0>;
         };
Signature · 1 line
2.48.1
Acked-by on v5 2/2
#8 lore raw

Re: [PATCH v5 2/2] dt-bindings: iio: proximity: document LIDAR-Lite v3 fallback compatible

Quoted 5 lines · Rodrigo Gobbi

PulsedLight was acquired by Garmin, who now sells the LIDAR-Lite v3. It is pin-compatible with the v2, and the driver already matches it
directly: commit b257c1a45e99 ("iio: pulsedlight-lidar-lite-v2: add lidar-lite-v3 property") added a "grmn,lidar-lite-v3" of_device_id entry, so no driver changes are needed here.

Drop ", so no driver..." - that is not really relevant.

Best regards,
Krzysztof

maintainer
#9 lore raw
In reply to Rodrigo Gobbi
Quoted 9 lines · On Mon, 10 Aug 2026 16:18:39 -0300 Rodrigo Gobbi <[email protected]>…

This series moves the LIDAR-Lite v2 binding out of trivial-devices into a dedicated schema, documenting the power-enable, power-supply and status-output interrupt properties that trivial-devices.yaml has no way to express.

It then adds the Garmin LIDAR-Lite v3 as a fallback compatible in a separate patch, since it is pin-compatible with the v2 and already matched by the driver, so no driver changes are needed.
---

Just enough stuff in here that I think a v6 tidying up (and hopefully getting a tag from Matt) would be better than me trying to do it as part of applying.

As such I've marked it changes requested in patchwork.

Jonathan

Quoted 21 lines

Changelog:
v5:
- split into two commits, one for moving lidar out of trivial and one for adding a fallback compatible for LIDAR-Lite v3;
- minor changes at yaml like: title, description, adding irq prop;
- improve commit msgs for covering the vendor acquisition and PWM mode;
v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
---
Rodrigo Gobbi (2):
dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices
dt-bindings: iio: proximity: document LIDAR-Lite v3 fallback
compatible

 .../proximity/pulsedlight,lidar-lite-v2.yaml  | 70 +++++++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  2 -
 2 files changed, 70 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml