[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260201-cm36686-v1-0-4949a2a9ba63@gmail.com>
Date: Sun, 01 Feb 2026 19:03:47 +0200
From: Erikas Bitovtas <xerikasxx@...il.com>
To: Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Kevin Tsai <ktsai@...ellamicro.com>
Cc: linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, ~postmarketos/upstreaming@...ts.sr.ht,
phone-devel@...r.kernel.org, Erikas Bitovtas <xerikasxx@...il.com>
Subject: [PATCH 0/2] iio: light: Add support for Capella cm36686 and
cm36672p sensors
This patch series adds support for Capella cm36686 and cm36672p ambient
light and proximity sensors.
Capella cm36686 is a combined ambient light and proximity sensor with
adjustable integration time, interrupt and hysteresis support. It has
the slave address of 0x60. cm36672p is fully compatible with cm36686,
except that it is a proximity-only sensor.
Unfortunately, datasheets for these sensors are not publicly
available. This code is based on Android downstream kernels for devices
which did use these sensors and a previous submission for cm36672p to
mailing lists:
https://github.com/LineageOS/android_kernel_xiaomi_msm8992/blob/cm-14.1/drivers/iio/light/cm36686.c
https://github.com/shakalaca/ASUS_ZenFone_ZD551KL/blob/android-6.0/kernel/drivers/input/misc/cm36283.c
https://lore.kernel.org/linux-iio/1465462845-1571-1-git-send-email-capellamicro@gmail.com/
The following code has been tested on Asus ZenFone 2 Laser/Selfie, which
uses cm36686 as its ambient light and proximity sensor.
Signed-off-by: Erikas Bitovtas <xerikasxx@...il.com>
---
Erikas Bitovtas (2):
dt-bindings: Add binding document for cm36686
iio: light: Add support for Capella cm36686 and cm36672p sensors
.../bindings/iio/light/capella,cm36686.yaml | 74 ++
drivers/iio/light/Kconfig | 11 +
drivers/iio/light/Makefile | 1 +
drivers/iio/light/cm36686.c | 810 +++++++++++++++++++++
4 files changed, 896 insertions(+)
---
base-commit: 4c87cdd0328495759f6e9f9f4e1e53ef8032a76f
change-id: 20260201-cm36686-fc7a8385f1cd
Best regards,
--
Erikas Bitovtas <xerikasxx@...il.com>
Powered by blists - more mailing lists