Commit 40e64432 authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron
Browse files

dt-bindings: iio: tsl2583: convert bindings to YAML format



Convert the tsl2583 device tree bindings to the new YAML format.

Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ed61b308
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
* TAOS TSL 2580/2581/2583 ALS sensor

Required properties:

  - compatible: Should be one of
		"amstaos,tsl2580"
		"amstaos,tsl2581"
		"amstaos,tsl2583"
  - reg: the I2C address of the device

Optional properties:

  - interrupts: the sole interrupt generated by the device

  Refer to interrupt-controller/interrupts.txt for generic interrupt client
  node bindings.

  - vcc-supply: phandle to the regulator that provides power to the sensor.

Example:

tsl2581@29 {
	compatible = "amstaos,tsl2581";
	reg = <0x29>;
};
+46 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/light/tsl2583.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: AMS/TAOS Ambient Light Sensor (ALS)

maintainers:
  - Brian Masney <masneyb@onstation.org>

description: |
  Ambient light sensing with an i2c interface.

properties:
  compatible:
    enum:
      - amstaos,tsl2580
      - amstaos,tsl2581
      - amstaos,tsl2583

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vcc-supply:
    description: Regulator that provides power to the sensor

required:
  - compatible
  - reg

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        light-sensor@29 {
                compatible = "amstaos,tsl2581";
                reg = <0x29>;
        };
    };
...