Commit 4bef3adb authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Jonathan Cameron
Browse files

dt-bindings: iio: light: ROHM BU27008



The ROHM BU27008 is a sensor with 5 photodiodes (red, green, blue, clear
and IR) with four configurable channels. Red and green being always
available and two out of the rest three (blue, clear, IR) can be
selected to be simultaneously measured. Typical application is adjusting
LCD backlight of TVs, mobile phones and tablet PCs.

Add BU27008 dt-bindings.

Signed-off-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/f24196e11ee73511312b629daa20c7d783d8bf6c.1683541225.git.mazziesaccount@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 7699e975
Loading
Loading
Loading
Loading
+49 −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/rohm,bu27008.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ROHM BU27008 color sensor

maintainers:
  - Matti Vaittinen <mazziesaccount@gmail.com>

description:
  The ROHM BU27008 is a sensor with 5 photodiodes (red, green, blue, clear
  and IR) with four configurable channels. Red and green being always
  available and two out of the rest three (blue, clear, IR) can be
  selected to be simultaneously measured. Typical application is adjusting
  LCD backlight of TVs, mobile phones and tablet PCs.

properties:
  compatible:
    const: rohm,bu27008

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply: true

required:
  - compatible
  - reg

additionalProperties: false

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

      light-sensor@38 {
        compatible = "rohm,bu27008";
        reg = <0x38>;
      };
    };

...