ROHM BH1750 ambient light sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/bh1750.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tduszyns@gmail.com>"
Ambient light sensor with an i2c interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rohm,bh1710", "rohm,bh1715", "rohm,bh1721", "rohm,bh1750", "rohm,bh1751"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO connected to the DVI reset pin (active low)
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@23 {
compatible = "rohm,bh1750";
reg = <0x23>;
reset-gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0