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#
6
7title: |
8  Sensortek STK33xx I2C Ambient Light and Proximity sensor
9
10maintainers:
11  - Jonathan Cameron <jic23@kernel.org>
12
13description: |
14  Ambient light and proximity sensor over an i2c interface.
15
16properties:
17  compatible:
18    enum:
19      - sensortek,stk3310
20      - sensortek,stk3311
21      - sensortek,stk3335
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29required:
30  - compatible
31  - reg
32
33examples:
34  - |
35    #include <dt-bindings/interrupt-controller/irq.h>
36
37    i2c {
38
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        stk3310@48 {
43                compatible = "sensortek,stk3310";
44                reg = <0x48>;
45                interrupt-parent = <&gpio1>;
46                interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
47        };
48    };
49...
50