1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/rohm,bh1745.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: ROHM BH1745 colour sensor 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Mudit Sharma <muditsharma.info@gmail.com> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel Vadotdescription: 13*b2d2a78aSEmmanuel Vadot BH1745 is an I2C colour sensor with red, green, blue and clear 14*b2d2a78aSEmmanuel Vadot channels. It has a programmable active low interrupt pin. 15*b2d2a78aSEmmanuel Vadot Interrupt occurs when the signal from the selected interrupt 16*b2d2a78aSEmmanuel Vadot source channel crosses set interrupt threshold high/low level. 17*b2d2a78aSEmmanuel Vadot 18*b2d2a78aSEmmanuel Vadotproperties: 19*b2d2a78aSEmmanuel Vadot compatible: 20*b2d2a78aSEmmanuel Vadot const: rohm,bh1745 21*b2d2a78aSEmmanuel Vadot 22*b2d2a78aSEmmanuel Vadot reg: 23*b2d2a78aSEmmanuel Vadot maxItems: 1 24*b2d2a78aSEmmanuel Vadot 25*b2d2a78aSEmmanuel Vadot interrupts: 26*b2d2a78aSEmmanuel Vadot maxItems: 1 27*b2d2a78aSEmmanuel Vadot 28*b2d2a78aSEmmanuel Vadot vdd-supply: true 29*b2d2a78aSEmmanuel Vadot 30*b2d2a78aSEmmanuel Vadotrequired: 31*b2d2a78aSEmmanuel Vadot - compatible 32*b2d2a78aSEmmanuel Vadot - reg 33*b2d2a78aSEmmanuel Vadot - vdd-supply 34*b2d2a78aSEmmanuel Vadot 35*b2d2a78aSEmmanuel VadotadditionalProperties: false 36*b2d2a78aSEmmanuel Vadot 37*b2d2a78aSEmmanuel Vadotexamples: 38*b2d2a78aSEmmanuel Vadot - | 39*b2d2a78aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 40*b2d2a78aSEmmanuel Vadot i2c { 41*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 42*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 43*b2d2a78aSEmmanuel Vadot 44*b2d2a78aSEmmanuel Vadot colour-sensor@38 { 45*b2d2a78aSEmmanuel Vadot compatible = "rohm,bh1745"; 46*b2d2a78aSEmmanuel Vadot reg = <0x38>; 47*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio>; 48*b2d2a78aSEmmanuel Vadot interrupts = <19 IRQ_TYPE_LEVEL_LOW>; 49*b2d2a78aSEmmanuel Vadot vdd-supply = <&vdd>; 50*b2d2a78aSEmmanuel Vadot }; 51*b2d2a78aSEmmanuel Vadot }; 52*b2d2a78aSEmmanuel Vadot 53*b2d2a78aSEmmanuel Vadot... 54