Linux-libre 5.4.48-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / iio / light / isl29018.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/light/isl29018.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: |
8   Intersil 29018/29023/29035 Ambient Light, Infrared Light, and Proximity Sensor
9
10 maintainers:
11   - Brian Masney <masneyb@onstation.org>
12
13 description: |
14   Ambient and infrared light sensing with proximity detection over an i2c
15   interface.
16
17   https://www.renesas.com/us/en/www/doc/datasheet/isl29018.pdf
18   https://www.renesas.com/us/en/www/doc/datasheet/isl29023.pdf
19   https://www.renesas.com/us/en/www/doc/datasheet/isl29035.pdf
20
21 properties:
22   compatible:
23     enum:
24       - isil,isl29018
25       - isil,isl29023
26       - isil,isl29035
27
28   reg:
29     maxItems: 1
30
31   interrupts:
32     maxItems: 1
33
34   vcc-supply:
35     description: Regulator that provides power to the sensor
36
37 required:
38   - compatible
39   - reg
40
41 examples:
42   - |
43     #include <dt-bindings/interrupt-controller/irq.h>
44
45     i2c {
46
47         #address-cells = <1>;
48         #size-cells = <0>;
49
50         sensor@44 {
51                 compatible = "isil,isl29018";
52                 reg = <0x44>;
53                 interrupts-extended = <&msmgpio 61 IRQ_TYPE_LEVEL_HIGH>;
54         };
55     };
56 ...