Broadcom Combined Proximity & Ambient light sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/brcm,apds9160.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mikael Gonella-Bolduc <m.gonella.bolduc@gmail.com>"
Datasheet: https://docs.broadcom.com/docs/APDS-9160-003-DS
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "brcm,apds9160"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
ps-cancellation-duration — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Proximity sensor cancellation pulse duration in half clock cycles. This parameter determines a cancellation pulse duration. The cancellation is applied in the integration phase to cancel out unwanted reflected light from very near objects such as tempered glass in front of the sensor.
Default value (default): 0
Maximum value (maximum): 63
ps-cancellation-current-picoamp — not listed as required here #
Proximity sensor crosstalk cancellation current in picoampere. This parameter adjusts the current in steps of 2400 pA up to 276000 pA. The provided value must be a multiple of 2400 and in one of these ranges [60000 - 96000] [120000 - 156000] [180000 - 216000] [240000 - 276000] This parameter is used in conjunction with the cancellation duration.
Minimum value (minimum): 60000
Maximum value (maximum): 276000
Multiple of (multipleOf): 2400
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@53 {
compatible = "brcm,apds9160";
reg = <0x53>;
vdd-supply = <&vdd_reg>;
interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&pinctrl>;
ps-cancellation-duration = <10>;
ps-cancellation-current-picoamp = <62400>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)