Re: [PATCH v1 0/5] Update APDS990x ALS to support device trees
From: David Lechner
Date: Sat Apr 18 2026 - 12:25:54 EST
On 4/18/26 9:47 AM, Svyatoslav Ryhel wrote:
> Document Avago APDS9900/9901 ALS/Proximity sensor in schema and modernize
> its driver to support OF bindings.
>
> Svyatoslav Ryhel (5):
> dt-bindings: iio: light: Document Avago APDS9900/9901 ALS/Proximity
> sensor
> misc: apds990x: Use more device managed approach in the probe
> misc: apds990x: Drop Vled supply
> misc: apds990x: Convert to use OF bindings
> misc: apds990x: Drop IRQF_TRIGGER_LOW trigger
>
> .../bindings/iio/light/avago,apds9900.yaml | 83 ++++++++
> drivers/misc/apds990x.c | 197 +++++++++---------
As mentioned in my reply to the dt-bindings patch, there is already an
IIO driver that looks like it could be compatible. I'm guessing that
this misc driver pre-dates the IIO subsystem. I would have a look at it
instead (drivers/iio/light/tsl2772.c).
> include/linux/platform_data/apds990x.h | 65 ------
> 3 files changed, 187 insertions(+), 158 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/iio/light/avago,apds9900.yaml
> delete mode 100644 include/linux/platform_data/apds990x.h
>