1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/light/tsl2772.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AMS/TAOS Ambient Light Sensor (ALS) and Proximity Detector
10 - Brian Masney <masneyb@onstation.org>
13 Ambient light sensing and proximity detection with an i2c interface.
14 https://ams.com/documents/20143/36005/TSL2772_DS000181_2-00.pdf
34 amstaos,proximity-diodes:
35 description: Proximity diodes to enable
37 - $ref: /schemas/types.yaml#/definitions/uint32-array
48 description: Current for the proximity LED
56 description: Regulator that provides power to the sensor
59 description: Regulator that provides power to the bus
65 additionalProperties: false
69 #include <dt-bindings/interrupt-controller/irq.h>
76 compatible = "amstaos,tsl2772";
78 interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
79 vdd-supply = <&pm8941_l17>;
80 vddio-supply = <&pm8941_lvs1>;
81 amstaos,proximity-diodes = <0>;
82 led-max-microamp = <100000>;