Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / light / stk33xx.yaml
blobf92bf7b2b7f0d0aef181b0297c1ef322bdb2c8b1
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/light/stk33xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: |
8   Sensortek STK33xx I2C Ambient Light and Proximity sensor
10 maintainers:
11   - Jonathan Cameron <jic23@kernel.org>
13 description: |
14   Ambient light and proximity sensor over an i2c interface.
16 properties:
17   compatible:
18     enum:
19       - sensortek,stk3310
20       - sensortek,stk3311
21       - sensortek,stk3335
23   reg:
24     maxItems: 1
26   interrupts:
27     maxItems: 1
29 required:
30   - compatible
31   - reg
33 additionalProperties: false
35 examples:
36   - |
37     #include <dt-bindings/interrupt-controller/irq.h>
39     i2c {
41         #address-cells = <1>;
42         #size-cells = <0>;
44         stk3310@48 {
45                 compatible = "sensortek,stk3310";
46                 reg = <0x48>;
47                 interrupt-parent = <&gpio1>;
48                 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
49         };
50     };
51 ...