iio: light: vcnl4000: add Capella CM36686 and CM36672P#432
Open
erikas9987 wants to merge 4 commits intomsm8916-mainline:wip/msm8916/6.19from
Open
iio: light: vcnl4000: add Capella CM36686 and CM36672P#432erikas9987 wants to merge 4 commits intomsm8916-mainline:wip/msm8916/6.19from
erikas9987 wants to merge 4 commits intomsm8916-mainline:wip/msm8916/6.19from
Conversation
f408d9a to
3bd8355
Compare
Author
|
@TravMurav https://lore.kernel.org/linux-iio/20260217-cm36686-v5-0-63c2de9709d8@gmail.com/T/#t |
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.