17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 27ef62cebSEmmanuel Vadot%YAML 1.2 37ef62cebSEmmanuel Vadot--- 47ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/liteon,ltrf216a.yaml# 57ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 67ef62cebSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: LTRF216A Ambient Light Sensor 87ef62cebSEmmanuel Vadot 97ef62cebSEmmanuel Vadotmaintainers: 107ef62cebSEmmanuel Vadot - Shreeya Patel <shreeya.patel@collabora.com> 117ef62cebSEmmanuel Vadot 127ef62cebSEmmanuel Vadotdescription: 137ef62cebSEmmanuel Vadot Ambient light sensing with an i2c interface. 147ef62cebSEmmanuel Vadot 157ef62cebSEmmanuel Vadotproperties: 167ef62cebSEmmanuel Vadot compatible: 17*b2d2a78aSEmmanuel Vadot enum: 18*b2d2a78aSEmmanuel Vadot - liteon,ltr308 19*b2d2a78aSEmmanuel Vadot - liteon,ltrf216a 207ef62cebSEmmanuel Vadot 217ef62cebSEmmanuel Vadot reg: 227ef62cebSEmmanuel Vadot maxItems: 1 237ef62cebSEmmanuel Vadot 247ef62cebSEmmanuel Vadot interrupts: 257ef62cebSEmmanuel Vadot maxItems: 1 267ef62cebSEmmanuel Vadot 277ef62cebSEmmanuel Vadot vdd-supply: 287ef62cebSEmmanuel Vadot description: Regulator that provides power to the sensor. 297ef62cebSEmmanuel Vadot 307ef62cebSEmmanuel Vadotrequired: 317ef62cebSEmmanuel Vadot - compatible 327ef62cebSEmmanuel Vadot - reg 337ef62cebSEmmanuel Vadot 347ef62cebSEmmanuel VadotadditionalProperties: false 357ef62cebSEmmanuel Vadot 367ef62cebSEmmanuel Vadotexamples: 377ef62cebSEmmanuel Vadot - | 387ef62cebSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 397ef62cebSEmmanuel Vadot 407ef62cebSEmmanuel Vadot i2c { 417ef62cebSEmmanuel Vadot #address-cells = <1>; 427ef62cebSEmmanuel Vadot #size-cells = <0>; 437ef62cebSEmmanuel Vadot 447ef62cebSEmmanuel Vadot light-sensor@53 { 457ef62cebSEmmanuel Vadot compatible = "liteon,ltrf216a"; 467ef62cebSEmmanuel Vadot reg = <0x53>; 477ef62cebSEmmanuel Vadot vdd-supply = <&vdd_regulator>; 487ef62cebSEmmanuel Vadot interrupt-parent = <&gpio0>; 497ef62cebSEmmanuel Vadot interrupts = <5 IRQ_TYPE_LEVEL_LOW>; 507ef62cebSEmmanuel Vadot }; 517ef62cebSEmmanuel Vadot }; 52