xref: /freebsd/sys/contrib/device-tree/Bindings/iio/light/avago,apds9300.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Avago APDS9300 ambient light sensor
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11
12description: |
13  Datasheet at https://www.avagotech.com/docs/AV02-1077EN
14
15properties:
16  compatible:
17    const: avago,apds9300
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25additionalProperties: false
26
27required:
28  - compatible
29  - reg
30
31examples:
32  - |
33    i2c {
34        #address-cells = <1>;
35        #size-cells = <0>;
36
37        light-sensor@39 {
38            compatible = "avago,apds9300";
39            reg = <0x39>;
40            interrupt-parent = <&gpio2>;
41            interrupts = <29 8>;
42        };
43    };
44...
45