Path: blob/master/Documentation/devicetree/bindings/iio/light/bh1750.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/bh1750.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ROHM BH1750 ambient light sensor78maintainers:9- Tomasz Duszynski <tduszyns@gmail.com>1011description: |12Ambient light sensor with an i2c interface.1314properties:15compatible:16enum:17- rohm,bh171018- rohm,bh171519- rohm,bh172120- rohm,bh175021- rohm,bh17512223reg:24maxItems: 12526reset-gpios:27description: GPIO connected to the DVI reset pin (active low)28maxItems: 12930required:31- compatible32- reg3334additionalProperties: false3536examples:37- |38#include <dt-bindings/gpio/gpio.h>39i2c {40#address-cells = <1>;41#size-cells = <0>;4243light-sensor@23 {44compatible = "rohm,bh1750";45reg = <0x23>;46reset-gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;47};48};4950...515253