0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/bh1750.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ROHM BH1750 ambient light sensor
0008
0009 maintainers:
0010 - Tomasz Duszynski <tduszyns@gmail.com>
0011
0012 description: |
0013 Ambient light sensor with an i2c interface.
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - rohm,bh1710
0019 - rohm,bh1715
0020 - rohm,bh1721
0021 - rohm,bh1750
0022 - rohm,bh1751
0023
0024 reg:
0025 maxItems: 1
0026
0027 required:
0028 - compatible
0029 - reg
0030
0031 additionalProperties: false
0032
0033 examples:
0034 - |
0035 i2c {
0036 #address-cells = <1>;
0037 #size-cells = <0>;
0038
0039 light-sensor@23 {
0040 compatible = "rohm,bh1750";
0041 reg = <0x23>;
0042 };
0043 };
0044
0045 ...