Skip to content

iio: light: vcnl4000: add Capella CM36686 and CM36672P#432

Open
erikas9987 wants to merge 4 commits intomsm8916-mainline:wip/msm8916/6.19from
erikas9987:vcnl4000
Open

iio: light: vcnl4000: add Capella CM36686 and CM36672P#432
erikas9987 wants to merge 4 commits intomsm8916-mainline:wip/msm8916/6.19from
erikas9987:vcnl4000

Conversation

@erikas9987
Copy link

This PR adds support for Capella CM36686 and CM36672P sensors, used in several MSM8916 devices. More information can be found in the mailing list submission for this driver
This PR also enables the VCNL4000 module so it can be loaded by the kernel.
This PR superseeds #424.

@erikas9987
Copy link
Author

@TravMurav https://lore.kernel.org/linux-iio/20260217-cm36686-v5-0-63c2de9709d8@gmail.com/T/#t
(heads up, also includes changes for arch/arm64/configs/msm8916_defconfig)

…CM36672P

Capella CM36686 is an ambient light and proximity sensor developed by
Capella Microsystems, now a subsidiary of Vishay Intertechnology Inc. It
has an I2C address of 0x60 and is fully compatible with an existing
driver for VCNL4040. Capella CM36672P is a proximity-only sensor that
is partially compatible with CM36686 - they share the same register
fields for proximity sensing, but ambient light sensor register fields
in CM36672P are reserved. Add compatibles for cm36672p and cm36686,
with a fallback for cm36686 of vcnl4040.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
…M36672P

Add support for Capella's CM36686 and CM36672P sensors. Capella
CM36686 is an ambient light and proximity sensor that is fully
compatible with VCNL4040 and can be used as is.
CM36672P is partially compatible with VCNL4040 - it uses the same
register fields for proximity sensing, but the ambient light registers
are reserved. For CM36672P, we reuse vcnl4040_channels, but remove the
IIO_LIGHT channel and ambient light integration time.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
…proximity sensor

This device uses Capella CM36686 as its ambient light and proximity
sensor. It is fully compatible with Vishay VCNL4040. Downstream device
tree reports Capella CM36283, but upon probe, a device ID for CM36686 is
actually found. This commit adds support for Capella CM36686 ambient
light and proximity sensor.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
v87: CONFIG_VCNL4000=m

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant