52 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---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 Sensor8 9maintainers:10 - Shreeya Patel <shreeya.patel@collabora.com>11 12description:13 Ambient light sensing with an i2c interface.14 15properties:16 compatible:17 enum:18 - liteon,ltr30819 - liteon,ltrf216a20 21 reg:22 maxItems: 123 24 interrupts:25 maxItems: 126 27 vdd-supply:28 description: Regulator that provides power to the sensor.29 30required:31 - compatible32 - reg33 34additionalProperties: false35 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 };52