Skip to content

Commit 46968e0

Browse files
Onebit5jic23
authored andcommitted
dt-bindings: iio: light: add Broadcom APDS9999
Add Device Tree binding for the Broadcom APDS9999 ambient light and proximity sensor. A separate binding file is used rather than merging with avago,apds9300.yaml because the APDS9999 has an additional vcsel-supply for the VCSEL. The APDS9999 features individual R, G, B, and IR channels with a green channel that uses optical coating to approximate the human eye spectral response for ALS/lux measurements. Calibrated RGB color sensing is not yet implemented in the driver. Signed-off-by: Jose A. Perez de Azpillaga <azpijr@gmail.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent f6ae81a commit 46968e0

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/light/brcm,apds9999.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
title: Broadcom APDS-9999 Digital Proximity and RGB Sensor
7+
8+
maintainers:
9+
- Jose A. Perez de Azpillaga <azpijr@gmail.com>
10+
11+
description: |
12+
Broadcom APDS-9999 is a digital proximity and RGB sensor with
13+
ambient light sensing (ALS) capability. The device uses individual
14+
R, G, B, and IR channels plus a Vertical Cavity Surface Emitting
15+
Laser (VCSEL) for proximity detection.
16+
17+
Datasheet: https://docs.broadcom.com/docs/APDS-9999-DS
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- brcm,apds9999
23+
24+
reg:
25+
maxItems: 1
26+
27+
vdd-supply: true
28+
29+
vcsel-supply:
30+
description: VCSEL power supply (VVCSEL pin)
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
additionalProperties: false
36+
37+
required:
38+
- compatible
39+
- reg
40+
- vdd-supply
41+
42+
examples:
43+
- |
44+
i2c {
45+
#address-cells = <1>;
46+
#size-cells = <0>;
47+
48+
light-sensor@52 {
49+
compatible = "brcm,apds9999";
50+
reg = <0x52>;
51+
vdd-supply = <&vdd_reg>;
52+
vcsel-supply = <&vcsel_reg>;
53+
};
54+
};

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4992,6 +4992,12 @@ S: Maintained
49924992
F: Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml
49934993
F: drivers/iio/light/apds9160.c
49944994

4995+
BROADCOM APDS9999 AMBIENT LIGHT SENSOR DRIVER
4996+
M: Jose A. Perez de Azpillaga <azpijr@gmail.com>
4997+
L: linux-iio@vger.kernel.org
4998+
S: Maintained
4999+
F: Documentation/devicetree/bindings/iio/light/brcm,apds9999.yaml
5000+
49955001
BROADCOM ASP 2.0 ETHERNET DRIVER
49965002
M: Justin Chen <justin.chen@broadcom.com>
49975003
M: Florian Fainelli <florian.fainelli@broadcom.com>

0 commit comments

Comments
 (0)