blob: 877e955d4ebd1fabaf269c0e460ee84a86b14a4c [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
7title: LTRF216A Ambient Light Sensor
8
9maintainers:
10 - Shreeya Patel <shreeya.patel@collabora.com>
11
12description:
13 Ambient light sensing with an i2c interface.
14
15properties:
16 compatible:
Tom Rini9c8af152024-12-24 12:03:04 -060017 enum:
18 - liteon,ltr308
19 - liteon,ltrf216a
Tom Rini53633a82024-02-29 12:33:36 -050020
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
30required:
31 - compatible
32 - reg
33
34additionalProperties: false
35
36examples:
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 };