18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/liteon,ltr501.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: LiteON LTR501 I2C Proximity and Light sensor 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Nikita Travkin <nikita@trvn.ru> 118cc087a1SEmmanuel Vadot 12*e67e8565SEmmanuel VadotallOf: 13*e67e8565SEmmanuel Vadot - $ref: ../common.yaml# 14*e67e8565SEmmanuel Vadot 158cc087a1SEmmanuel Vadotproperties: 168cc087a1SEmmanuel Vadot compatible: 178cc087a1SEmmanuel Vadot enum: 188cc087a1SEmmanuel Vadot - liteon,ltr501 198cc087a1SEmmanuel Vadot - liteon,ltr559 208cc087a1SEmmanuel Vadot - liteon,ltr301 218cc087a1SEmmanuel Vadot 228cc087a1SEmmanuel Vadot reg: 238cc087a1SEmmanuel Vadot maxItems: 1 248cc087a1SEmmanuel Vadot 258cc087a1SEmmanuel Vadot vdd-supply: true 268cc087a1SEmmanuel Vadot vddio-supply: true 278cc087a1SEmmanuel Vadot 288cc087a1SEmmanuel Vadot interrupts: 298cc087a1SEmmanuel Vadot maxItems: 1 308cc087a1SEmmanuel Vadot 31*e67e8565SEmmanuel Vadot proximity-near-level: true 32*e67e8565SEmmanuel Vadot 338cc087a1SEmmanuel VadotadditionalProperties: false 348cc087a1SEmmanuel Vadot 358cc087a1SEmmanuel Vadotrequired: 368cc087a1SEmmanuel Vadot - compatible 378cc087a1SEmmanuel Vadot - reg 388cc087a1SEmmanuel Vadot 398cc087a1SEmmanuel Vadotexamples: 408cc087a1SEmmanuel Vadot - | 418cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 428cc087a1SEmmanuel Vadot 438cc087a1SEmmanuel Vadot i2c { 448cc087a1SEmmanuel Vadot #address-cells = <1>; 458cc087a1SEmmanuel Vadot #size-cells = <0>; 468cc087a1SEmmanuel Vadot 478cc087a1SEmmanuel Vadot light-sensor@23 { 488cc087a1SEmmanuel Vadot compatible = "liteon,ltr559"; 498cc087a1SEmmanuel Vadot reg = <0x23>; 50*e67e8565SEmmanuel Vadot proximity-near-level = <75>; 51*e67e8565SEmmanuel Vadot 528cc087a1SEmmanuel Vadot vdd-supply = <&pm8916_l17>; 538cc087a1SEmmanuel Vadot vddio-supply = <&pm8916_l6>; 548cc087a1SEmmanuel Vadot 558cc087a1SEmmanuel Vadot interrupt-parent = <&msmgpio>; 568cc087a1SEmmanuel Vadot interrupts = <115 IRQ_TYPE_EDGE_FALLING>; 578cc087a1SEmmanuel Vadot }; 588cc087a1SEmmanuel Vadot }; 59