Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml
26309 views
1
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2
%YAML 1.2
3
---
4
$id: http://devicetree.org/schemas/iio/light/liteon,ltrf216a.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: LTRF216A Ambient Light Sensor
8
9
maintainers:
10
- Shreeya Patel <shreeya.patel@collabora.com>
11
12
description:
13
Ambient light sensing with an i2c interface.
14
15
properties:
16
compatible:
17
enum:
18
- liteon,ltr308
19
- liteon,ltrf216a
20
21
reg:
22
maxItems: 1
23
24
interrupts:
25
maxItems: 1
26
27
vdd-supply:
28
description: Regulator that provides power to the sensor.
29
30
required:
31
- compatible
32
- reg
33
34
additionalProperties: false
35
36
examples:
37
- |
38
#include <dt-bindings/interrupt-controller/irq.h>
39
40
i2c {
41
#address-cells = <1>;
42
#size-cells = <0>;
43
44
light-sensor@53 {
45
compatible = "liteon,ltrf216a";
46
reg = <0x53>;
47
vdd-supply = <&vdd_regulator>;
48
interrupt-parent = <&gpio0>;
49
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
50
};
51
};
52
53