# Broadcom Combined Proximity & Ambient light sensor

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / light_

> Device-tree binding reference for Broadcom Combined Proximity & Ambient light sensor.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;iio&#47;light&#47;brcm&#44;apds9160&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Mikael Gonella&#45;Bolduc &#60;m&#46;gonella&#46;bolduc&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Datasheet: https://docs.broadcom.com/docs/APDS-9160-003-DS</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;brcm&#44;apds9160&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

<a id="dt-236855bde9eebcc9d904"></a>

### <code>vdd&#45;supply</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-f1daf12da7bdf9b0bfd6"></a>

### <code>ps&#45;cancellation&#45;duration</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e87519aafa3649b471c4">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-d07659b7cc6a409bcd33">
<p style="white-space: pre-wrap">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.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-1efa924af82dc3994bf6"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-cdcbddf8f17b41585aea"><code>63</code></span>

<a id="dt-c781b7833fc7f12156fc"></a>

### <code>ps&#45;cancellation&#45;current&#45;picoamp</code> — not listed as required here

<div id="dt-bd3e8fc645a512ecfbd6">
<p style="white-space: pre-wrap">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.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-7078b99af9b3ffefac00"><code>60000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-b567d32aa8a92c2db5e4"><code>276000</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-a5a93cb545c5a220ce38"><code>2400</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;vdd&#45;supply&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    light-sensor@53 {
        compatible = "brcm,apds9160";
        reg = &lt;0x53&gt;;
        vdd-supply = &lt;&amp;vdd_reg&gt;;
        interrupts = &lt;29 IRQ_TYPE_EDGE_FALLING&gt;;
        interrupt-parent = &lt;&amp;pinctrl&gt;;
        ps-cancellation-duration = &lt;10&gt;;
        ps-cancellation-current-picoamp = &lt;62400&gt;;
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)</span></p>

</details>
