brintos

brintos / linux-shallow public Read only

0
0
Text · 1.8 KiB · d812298 Raw
85 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/light/tsl2772.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: AMS/TAOS Ambient Light Sensor (ALS) and Proximity Detector8 9maintainers:10  - Brian Masney <masneyb@onstation.org>11 12description: |13  Ambient light sensing and proximity detection with an i2c interface.14  https://ams.com/documents/20143/36005/TSL2772_DS000181_2-00.pdf15 16properties:17  compatible:18    enum:19      - amstaos,tsl257120      - amstaos,tsl267121      - amstaos,tmd267122      - amstaos,tsl277123      - amstaos,tmd277124      - amstaos,tsl257225      - amstaos,tsl267226      - amstaos,tmd267227      - amstaos,tsl277228      - amstaos,tmd277229      - avago,apds993030 31  reg:32    maxItems: 133 34  amstaos,proximity-diodes:35    description: Proximity diodes to enable36    $ref: /schemas/types.yaml#/definitions/uint32-array37    minItems: 138    maxItems: 239    items:40      minimum: 041      maximum: 142 43  interrupts:44    maxItems: 145 46  led-max-microamp:47    description: Current for the proximity LED48    enum:49      - 1300050      - 2500051      - 5000052      - 10000053 54  vdd-supply:55    description: Regulator that provides power to the sensor56 57  vddio-supply:58    description: Regulator that provides power to the bus59 60required:61  - compatible62  - reg63 64additionalProperties: false65 66examples:67  - |68    #include <dt-bindings/interrupt-controller/irq.h>69 70    i2c {71        #address-cells = <1>;72        #size-cells = <0>;73 74        sensor@39 {75                compatible = "amstaos,tsl2772";76                reg = <0x39>;77                interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;78                vdd-supply = <&pm8941_l17>;79                vddio-supply = <&pm8941_lvs1>;80                amstaos,proximity-diodes = <0>;81                led-max-microamp = <100000>;82        };83    };84...85