Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/light/bh1750.yaml
26309 views
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
7
title: ROHM BH1750 ambient light sensor
8
9
maintainers:
10
- Tomasz Duszynski <tduszyns@gmail.com>
11
12
description: |
13
Ambient light sensor with an i2c interface.
14
15
properties:
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
27
reset-gpios:
28
description: GPIO connected to the DVI reset pin (active low)
29
maxItems: 1
30
31
required:
32
- compatible
33
- reg
34
35
additionalProperties: false
36
37
examples:
38
- |
39
#include <dt-bindings/gpio/gpio.h>
40
i2c {
41
#address-cells = <1>;
42
#size-cells = <0>;
43
44
light-sensor@23 {
45
compatible = "rohm,bh1750";
46
reg = <0x23>;
47
reset-gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
48
};
49
};
50
51
...
52
53