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:vishay,vcnl4035: txt to yaml conversion

Only significant change in here was dropping the statement that the
i2c address should be 60. The datasheet suggests there are variants
available with several different addresses.

Parthiban's email address is bouncing, so I've listed myself as
maintainer for this one until someone else steps up.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201031184854.745828-22-jic23@kernel.org

+45 -18
-18
Documentation/devicetree/bindings/iio/light/vcnl4035.txt
··· 1 - VISHAY VCNL4035 - Ambient Light and proximity sensor 2 - 3 - Link to datasheet: https://www.vishay.com/docs/84251/vcnl4035x01.pdf 4 - 5 - Required properties: 6 - 7 - -compatible: should be "vishay,vcnl4035" 8 - -reg: I2C address of the sensor, should be 0x60 9 - -interrupts: interrupt mapping for GPIO IRQ (level active low) 10 - 11 - Example: 12 - 13 - light-sensor@60 { 14 - compatible = "vishay,vcnl4035"; 15 - reg = <0x60>; 16 - interrupt-parent = <&gpio4>; 17 - interrupts = <11 IRQ_TYPE_LEVEL_LOW>; 18 - };
+45
Documentation/devicetree/bindings/iio/light/vishay,vcnl4035.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/vishay,vcnl4035.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: VISHAY VCNL4035 ambient Light and proximity sensor 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + Datasheet at https://www.vishay.com/docs/84251/vcnl4035x01.pdf 14 + 15 + properties: 16 + compatible: 17 + const: vishay,vcnl4035 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + additionalProperties: false 26 + 27 + required: 28 + - compatible 29 + - reg 30 + 31 + examples: 32 + - | 33 + #include <dt-bindings/interrupt-controller/irq.h> 34 + i2c { 35 + #address-cells = <1>; 36 + #size-cells = <0>; 37 + 38 + light-sensor@60 { 39 + compatible = "vishay,vcnl4035"; 40 + reg = <0x60>; 41 + interrupt-parent = <&gpio4>; 42 + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; 43 + }; 44 + }; 45 + ...