lkdtm/heap: Hide allocation size from -Warray-bounds
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / light / stk33xx.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/stk33xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: |
8   Sensortek STK33xx I2C Ambient Light and Proximity sensor
9
10 maintainers:
11   - Jonathan Cameron <jic23@kernel.org>
12
13 description: |
14   Ambient light and proximity sensor over an i2c interface.
15
16 properties:
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
29 required:
30   - compatible
31   - reg
32
33 additionalProperties: false
34
35 examples:
36   - |
37     #include <dt-bindings/interrupt-controller/irq.h>
38
39     i2c {
40
41         #address-cells = <1>;
42         #size-cells = <0>;
43
44         stk3310@48 {
45                 compatible = "sensortek,stk3310";
46                 reg = <0x48>;
47                 interrupt-parent = <&gpio1>;
48                 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
49         };
50     };
51 ...