| 1 |
|
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/iio/proximity/st,vl53l0x.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: ST VL53L0X ToF ranging sensor |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Song Qiang <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
const: st,vl53l0x |
| 15 |
|
| 16 |
reg: |
| 17 |
maxItems: 1 |
| 18 |
|
| 19 |
interrupts: |
| 20 |
maxItems: 1 |
| 21 |
|
| 22 |
reset-gpios: |
| 23 |
maxItems: 1 |
| 24 |
|
| 25 |
vdd-supply: true |
| 26 |
|
| 27 |
required: |
| 28 |
- compatible |
| 29 |
- reg |
| 30 |
|
| 31 |
additionalProperties: false |
| 32 |
|
| 33 |
examples: |
| 34 |
- | |
| 35 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 36 |
i2c { |
| 37 |
#address-cells = <1>; |
| 38 |
#size-cells = <0>; |
| 39 |
|
| 40 |
proximity@29 { |
| 41 |
compatible = "st,vl53l0x"; |
| 42 |
reg = <0x29>; |
| 43 |
interrupt-parent = <&gpio>; |
| 44 |
interrupts = <23 IRQ_TYPE_EDGE_FALLING>; |
| 45 |
}; |
| 46 |
}; |
| 47 |
... |