brintos

brintos / linux-shallow public Read only

0
0
Text · 1.1 KiB · 4489679 Raw
54 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/light/rohm,bh1745.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ROHM BH1745 colour sensor8 9maintainers:10  - Mudit Sharma <muditsharma.info@gmail.com>11 12description:13  BH1745 is an I2C colour sensor with red, green, blue and clear14  channels. It has a programmable active low interrupt pin.15  Interrupt occurs when the signal from the selected interrupt16  source channel crosses set interrupt threshold high/low level.17 18properties:19  compatible:20    const: rohm,bh174521 22  reg:23    maxItems: 124 25  interrupts:26    maxItems: 127 28  vdd-supply: true29 30required:31  - compatible32  - reg33  - vdd-supply34 35additionalProperties: false36 37examples:38  - |39    #include <dt-bindings/interrupt-controller/irq.h>40    i2c {41        #address-cells = <1>;42        #size-cells = <0>;43 44        colour-sensor@38 {45            compatible = "rohm,bh1745";46            reg = <0x38>;47            interrupt-parent = <&gpio>;48            interrupts = <19 IRQ_TYPE_LEVEL_LOW>;49            vdd-supply = <&vdd>;50        };51    };52 53...54