0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/liteon,ltr501.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: LiteON LTR501 I2C Proximity and Light sensor
0008
0009 maintainers:
0010 - Nikita Travkin <nikita@trvn.ru>
0011
0012 allOf:
0013 - $ref: ../common.yaml#
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - liteon,ltr501
0019 - liteon,ltr559
0020 - liteon,ltr301
0021
0022 reg:
0023 maxItems: 1
0024
0025 vdd-supply: true
0026 vddio-supply: true
0027
0028 interrupts:
0029 maxItems: 1
0030
0031 proximity-near-level: true
0032
0033 additionalProperties: false
0034
0035 required:
0036 - compatible
0037 - reg
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/interrupt-controller/irq.h>
0042
0043 i2c {
0044 #address-cells = <1>;
0045 #size-cells = <0>;
0046
0047 light-sensor@23 {
0048 compatible = "liteon,ltr559";
0049 reg = <0x23>;
0050 proximity-near-level = <75>;
0051
0052 vdd-supply = <&pm8916_l17>;
0053 vddio-supply = <&pm8916_l6>;
0054
0055 interrupt-parent = <&msmgpio>;
0056 interrupts = <115 IRQ_TYPE_EDGE_FALLING>;
0057 };
0058 };