Path: blob/master/Documentation/devicetree/bindings/iio/light/rohm,bh1745.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/rohm,bh1745.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ROHM BH1745 colour sensor78maintainers:9- Mudit Sharma <muditsharma.info@gmail.com>1011description:12BH1745 is an I2C colour sensor with red, green, blue and clear13channels. It has a programmable active low interrupt pin.14Interrupt occurs when the signal from the selected interrupt15source channel crosses set interrupt threshold high/low level.1617properties:18compatible:19const: rohm,bh17452021reg:22maxItems: 12324interrupts:25maxItems: 12627vdd-supply: true2829required:30- compatible31- reg32- vdd-supply3334additionalProperties: false3536examples:37- |38#include <dt-bindings/interrupt-controller/irq.h>39i2c {40#address-cells = <1>;41#size-cells = <0>;4243colour-sensor@38 {44compatible = "rohm,bh1745";45reg = <0x38>;46interrupt-parent = <&gpio>;47interrupts = <19 IRQ_TYPE_LEVEL_LOW>;48vdd-supply = <&vdd>;49};50};5152...535455