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:sharp,gp2ap020a00f: txt to yaml conversion.

Simple conversion.
Jacek's email bounced, by Kyungmin's still seems good so just dropped
Jacek from maintainer list.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Link: https://lore.kernel.org/r/20201031184854.745828-17-jic23@kernel.org

+48 -21
-21
Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt
··· 1 - * Sharp GP2AP020A00F I2C Proximity/ALS sensor 2 - 3 - The proximity detector sensor requires power supply 4 - for its built-in led. It is also defined by this binding. 5 - 6 - Required properties: 7 - 8 - - compatible : should be "sharp,gp2ap020a00f" 9 - - reg : the I2C slave address of the light sensor 10 - - interrupts : interrupt specifier for the sole interrupt generated 11 - by the device 12 - - vled-supply : VLED power supply, as covered in ../regulator/regulator.txt 13 - 14 - Example: 15 - 16 - gp2ap020a00f@39 { 17 - compatible = "sharp,gp2ap020a00f"; 18 - reg = <0x39>; 19 - interrupts = <2 0>; 20 - vled-supply = <...>; 21 - };
+48
Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.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/sharp,gp2ap020a00f.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Sharp GP2AP020A00F I2C Proximity/ALS sensor 8 + 9 + maintainers: 10 + - Kyungmin Park <kyungmin.park@samsung.com> 11 + 12 + description: | 13 + The proximity detector sensor requires power supply for its built-in led. 14 + 15 + properties: 16 + compatible: 17 + const: sharp,gp2ap020a00f 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + vled-supply: true 26 + 27 + additionalProperties: false 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + - vled-supply 34 + 35 + examples: 36 + - | 37 + i2c { 38 + #address-cells = <1>; 39 + #size-cells = <0>; 40 + 41 + light-sensor@39 { 42 + compatible = "sharp,gp2ap020a00f"; 43 + reg = <0x39>; 44 + interrupts = <2 0>; 45 + vled-supply = <&als_reg>; 46 + }; 47 + }; 48 + ...