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,ltr501.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: LiteON LTR501 I2C Proximity and Light sensor 8 9maintainers: 10 - Nikita Travkin <nikita@trvn.ru> 11 12properties: 13 compatible: 14 enum: 15 - liteon,ltr501 16 - liteon,ltr559 17 - liteon,ltr301 18 19 reg: 20 maxItems: 1 21 22 vdd-supply: true 23 vddio-supply: true 24 25 interrupts: 26 maxItems: 1 27 28additionalProperties: false 29 30required: 31 - compatible 32 - reg 33 34examples: 35 - | 36 #include <dt-bindings/interrupt-controller/irq.h> 37 38 i2c { 39 #address-cells = <1>; 40 #size-cells = <0>; 41 42 light-sensor@23 { 43 compatible = "liteon,ltr559"; 44 reg = <0x23>; 45 vdd-supply = <&pm8916_l17>; 46 vddio-supply = <&pm8916_l6>; 47 48 interrupt-parent = <&msmgpio>; 49 interrupts = <115 IRQ_TYPE_EDGE_FALLING>; 50 }; 51 }; 52