1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/bh1750.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ROHM BH1750 ambient light sensor
8
9maintainers:
10  - Tomasz Duszynski <tduszyns@gmail.com>
11
12description: |
13  Ambient light sensor with an i2c interface.
14
15properties:
16  compatible:
17    enum:
18      - rohm,bh1710
19      - rohm,bh1715
20      - rohm,bh1721
21      - rohm,bh1750
22      - rohm,bh1751
23
24  reg:
25    maxItems: 1
26
27required:
28  - compatible
29  - reg
30
31examples:
32  - |
33    i2c {
34      #address-cells = <1>;
35      #size-cells = <0>;
36
37      light-sensor@23 {
38        compatible = "rohm,bh1750";
39        reg = <0x23>;
40      };
41    };
42
43...
44