Path: blob/master/Documentation/devicetree/bindings/iio/light/brcm,apds9160.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/brcm,apds9160.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Broadcom Combined Proximity & Ambient light sensor78maintainers:9- Mikael Gonella-Bolduc <m.gonella.bolduc@gmail.com>1011description: |12Datasheet: https://docs.broadcom.com/docs/APDS-9160-003-DS1314properties:15compatible:16enum:17- brcm,apds91601819reg:20maxItems: 12122interrupts:23maxItems: 12425vdd-supply: true2627ps-cancellation-duration:28$ref: /schemas/types.yaml#/definitions/uint3229description:30Proximity sensor cancellation pulse duration in half clock cycles.31This parameter determines a cancellation pulse duration.32The cancellation is applied in the integration phase to cancel out33unwanted reflected light from very near objects such as tempered glass34in front of the sensor.35default: 036maximum: 633738ps-cancellation-current-picoamp:39description:40Proximity sensor crosstalk cancellation current in picoampere.41This parameter adjusts the current in steps of 2400 pA up to 276000 pA.42The provided value must be a multiple of 2400 and in one of these ranges43[60000 - 96000]44[120000 - 156000]45[180000 - 216000]46[240000 - 276000]47This parameter is used in conjunction with the cancellation duration.48minimum: 6000049maximum: 27600050multipleOf: 24005152required:53- compatible54- reg55- vdd-supply5657additionalProperties: false5859examples:60- |61#include <dt-bindings/interrupt-controller/irq.h>6263i2c {64#address-cells = <1>;65#size-cells = <0>;6667light-sensor@53 {68compatible = "brcm,apds9160";69reg = <0x53>;70vdd-supply = <&vdd_reg>;71interrupts = <29 IRQ_TYPE_EDGE_FALLING>;72interrupt-parent = <&pinctrl>;73ps-cancellation-duration = <10>;74ps-cancellation-current-picoamp = <62400>;75};76};77...787980