1f178ca935
The driver utilizes ST Microelectronics library (which exists in modules\hal\st\sensor\vl53l1x. Platform specific headers and source files used by the library are included and adapted for Zephyr. The driver can be configured in proj.conf to use a interrupt/polling methods and the use of the XSHUT pin on the VL53L1X. All uses were tested successfully. Signed-off-by: Mark Watson <mwatson@prosaris.ca>
26 lines
831 B
YAML
26 lines
831 B
YAML
# Copyright (c) 2023 Prosaris Solutions Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: STMicroelectronics VL53L1X Time of Flight sensor
|
|
|
|
compatible: "st,vl53l1x"
|
|
|
|
include: [sensor-device.yaml, i2c-device.yaml]
|
|
|
|
properties:
|
|
xshut-gpios:
|
|
type: phandle-array
|
|
description: |
|
|
Driving the XSHUT pin low puts the VL53L1X into hardware
|
|
standby (if VDD is present) or complete power off (if
|
|
VDD is not present). Additionally, if XSHUT is connected
|
|
directly to VDD, the sensor will go into boot mode on a
|
|
transition from LOW to HIGH.
|
|
|
|
int-gpios:
|
|
type: phandle-array
|
|
description: |
|
|
An interrupt is raised when a distance measurement is ready.
|
|
GPIO1 is the interrupt pin on the VL53L1X (active low). This
|
|
can be disabled if the user prefers to use polling instead.
|