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

dt-bindings:iio:light:capella,cm36651: txt to yaml conversion.

Straight forward conversion with no changes beyond the node
name in the example

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Beomho Seo <beomho.seo@samsung.com>
Link: https://lore.kernel.org/r/20201031184854.745828-16-jic23@kernel.org

+48 -26
+48
Documentation/devicetree/bindings/iio/light/capella,cm36651.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/capella,cm36651.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Capella CM36651 I2C Proximity and Color Light sensor 8 + 9 + maintainers: 10 + - Beomho Seo <beomho.seo@samsung.com> 11 + 12 + properties: 13 + compatible: 14 + const: capella,cm36651 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + vled-supply: 23 + description: | 24 + Supply for the IR_LED which is part of the cm36651 for proximity detection. 25 + 26 + additionalProperties: false 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - vled-supply 33 + 34 + examples: 35 + - | 36 + i2c { 37 + #address-cells = <1>; 38 + #size-cells = <0>; 39 + 40 + light-sensor@18 { 41 + compatible = "capella,cm36651"; 42 + reg = <0x18>; 43 + interrupt-parent = <&gpx0>; 44 + interrupts = <2 0>; 45 + vled-supply = <&ps_als_reg>; 46 + }; 47 + }; 48 + ...
-26
Documentation/devicetree/bindings/iio/light/cm36651.txt
··· 1 - * Capella CM36651 I2C Proximity and Color Light sensor 2 - 3 - Required properties: 4 - - compatible: must be "capella,cm36651" 5 - - reg: the I2C address of the device 6 - - interrupts: interrupt-specifier for the sole interrupt 7 - generated by the device 8 - - vled-supply: regulator for the IR LED. IR_LED is a part 9 - of the cm36651 for proximity detection. 10 - As covered in ../../regulator/regulator.txt 11 - 12 - Example: 13 - 14 - i2c_cm36651: i2c-gpio { 15 - /* ... */ 16 - 17 - cm36651@18 { 18 - compatible = "capella,cm36651"; 19 - reg = <0x18>; 20 - interrupt-parent = <&gpx0>; 21 - interrupts = <2 0>; 22 - vled-supply = <&ps_als_reg>; 23 - }; 24 - 25 - /* ... */ 26 - };