treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / light / stk33xx.yaml
blobaae8a6d627c9f869bd0099839ab1d77879cc4055
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 examples:
34   - |
35     #include <dt-bindings/interrupt-controller/irq.h>
37     i2c {
39         #address-cells = <1>;
40         #size-cells = <0>;
42         stk3310@48 {
43                 compatible = "sensortek,stk3310";
44                 reg = <0x48>;
45                 interrupt-parent = <&gpio1>;
46                 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
47         };
48     };
49 ...