Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:proximity:st,vl53l0x yaml conversion

Straight forward conversion from txt to yaml.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Song Qiang <songqiang1304521@gmail.com>
Link: https://lore.kernel.org/r/20201031134110.724233-11-jic23@kernel.org

+42 -18
+42
Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 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 <songqiang1304521@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: st,vl53l0x 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + required: 23 + - compatible 24 + - reg 25 + 26 + additionalProperties: false 27 + 28 + examples: 29 + - | 30 + #include <dt-bindings/interrupt-controller/irq.h> 31 + i2c { 32 + #address-cells = <1>; 33 + #size-cells = <0>; 34 + 35 + proximity@29 { 36 + compatible = "st,vl53l0x"; 37 + reg = <0x29>; 38 + interrupt-parent = <&gpio>; 39 + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; 40 + }; 41 + }; 42 + ...
-18
Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt
··· 1 - ST VL53L0X ToF ranging sensor 2 - 3 - Required properties: 4 - - compatible: must be "st,vl53l0x" 5 - - reg: i2c address where to find the device 6 - 7 - Optional properties: 8 - - interrupts: Interrupt for notifying that new measurement is ready. 9 - If no interrupt is specified, polling is used. 10 - 11 - Example: 12 - 13 - vl53l0x@29 { 14 - compatible = "st,vl53l0x"; 15 - reg = <0x29>; 16 - interrupt-parent = <&gpio>; 17 - interrupts = <23 IRQ_TYPE_EDGE_FALLING>; 18 - };