Path: blob/master/Documentation/devicetree/bindings/iio/light/tsl2772.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/tsl2772.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: AMS/TAOS Ambient Light Sensor (ALS) and Proximity Detector78maintainers:9- Brian Masney <masneyb@onstation.org>1011description: |12Ambient light sensing and proximity detection with an i2c interface.13https://ams.com/documents/20143/36005/TSL2772_DS000181_2-00.pdf1415properties:16compatible:17enum:18- amstaos,tsl257119- amstaos,tsl267120- amstaos,tmd267121- amstaos,tsl277122- amstaos,tmd277123- amstaos,tsl257224- amstaos,tsl267225- amstaos,tmd267226- amstaos,tsl277227- amstaos,tmd277228- avago,apds99302930reg:31maxItems: 13233amstaos,proximity-diodes:34description: Proximity diodes to enable35$ref: /schemas/types.yaml#/definitions/uint32-array36minItems: 137maxItems: 238items:39minimum: 040maximum: 14142interrupts:43maxItems: 14445led-max-microamp:46description: Current for the proximity LED47enum:48- 1300049- 2500050- 5000051- 1000005253vdd-supply:54description: Regulator that provides power to the sensor5556vddio-supply:57description: Regulator that provides power to the bus5859required:60- compatible61- reg6263additionalProperties: false6465examples:66- |67#include <dt-bindings/interrupt-controller/irq.h>6869i2c {70#address-cells = <1>;71#size-cells = <0>;7273sensor@39 {74compatible = "amstaos,tsl2772";75reg = <0x39>;76interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;77vdd-supply = <&pm8941_l17>;78vddio-supply = <&pm8941_lvs1>;79amstaos,proximity-diodes = <0>;80led-max-microamp = <100000>;81};82};83...848586