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:light:st,vl6180: txt to yaml format conversion.

I'm not sure anyone would use this part primarily as an ALS,
given the time of flight laser also present, but I'll stick with the
original decision on where to put the binding.

Added interrupts property as the device has a GPIO interrupt even
if the driver is not currently using it.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Manivannan Sadhasivam <manivannanece23@gmail.com>
Cc: Manivannan Sadhasivam <manivannanece23@gmail.com>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Link: https://lore.kernel.org/r/20201031184854.745828-23-jic23@kernel.org

+45 -15
+45
Documentation/devicetree/bindings/iio/light/st,vl6180.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/light/st,vl6180.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicro VL6180 ALS, range and proximity sensor 8 + 9 + maintainers: 10 + - Manivannan Sadhasivam <manivannanece23@gmail.com> 11 + - Peter Meerwald-Stadler <pmeerw@pmeerw.net> 12 + 13 + description: | 14 + Proximity sensing module incorporating time of flight sensor 15 + Datasheet at https://www.st.com/resource/en/datasheet/vl6180x.pdf 16 + 17 + properties: 18 + compatible: 19 + const: st,vl6180 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + additionalProperties: false 28 + 29 + required: 30 + - compatible 31 + - reg 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,vl6180"; 42 + reg = <0x29>; 43 + }; 44 + }; 45 + ...
-15
Documentation/devicetree/bindings/iio/light/vl6180.txt
··· 1 - STMicro VL6180 - ALS, range and proximity sensor 2 - 3 - Link to datasheet: https://www.st.com/resource/en/datasheet/vl6180x.pdf 4 - 5 - Required properties: 6 - 7 - -compatible: should be "st,vl6180" 8 - -reg: the I2C address of the sensor 9 - 10 - Example: 11 - 12 - vl6180@29 { 13 - compatible = "st,vl6180"; 14 - reg = <0x29>; 15 - };