0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/tsl2772.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: AMS/TAOS Ambient Light Sensor (ALS) and Proximity Detector
0008
0009 maintainers:
0010 - Brian Masney <masneyb@onstation.org>
0011
0012 description: |
0013 Ambient light sensing and proximity detection with an i2c interface.
0014 https://ams.com/documents/20143/36005/TSL2772_DS000181_2-00.pdf
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - amstaos,tsl2571
0020 - amstaos,tsl2671
0021 - amstaos,tmd2671
0022 - amstaos,tsl2771
0023 - amstaos,tmd2771
0024 - amstaos,tsl2572
0025 - amstaos,tsl2672
0026 - amstaos,tmd2672
0027 - amstaos,tsl2772
0028 - amstaos,tmd2772
0029 - avago,apds9930
0030
0031 reg:
0032 maxItems: 1
0033
0034 amstaos,proximity-diodes:
0035 description: Proximity diodes to enable
0036 $ref: /schemas/types.yaml#/definitions/uint32-array
0037 minItems: 1
0038 maxItems: 2
0039 items:
0040 minimum: 0
0041 maximum: 1
0042
0043 interrupts:
0044 maxItems: 1
0045
0046 led-max-microamp:
0047 description: Current for the proximity LED
0048 enum:
0049 - 13000
0050 - 25000
0051 - 50000
0052 - 100000
0053
0054 vdd-supply:
0055 description: Regulator that provides power to the sensor
0056
0057 vddio-supply:
0058 description: Regulator that provides power to the bus
0059
0060 required:
0061 - compatible
0062 - reg
0063
0064 additionalProperties: false
0065
0066 examples:
0067 - |
0068 #include <dt-bindings/interrupt-controller/irq.h>
0069
0070 i2c {
0071 #address-cells = <1>;
0072 #size-cells = <0>;
0073
0074 sensor@39 {
0075 compatible = "amstaos,tsl2772";
0076 reg = <0x39>;
0077 interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
0078 vdd-supply = <&pm8941_l17>;
0079 vddio-supply = <&pm8941_lvs1>;
0080 amstaos,proximity-diodes = <0>;
0081 led-max-microamp = <100000>;
0082 };
0083 };
0084 ...