drivers: input: chsc6x: add CHSC6540 support#104710
Open
walidbadar wants to merge 1 commit intozephyrproject-rtos:mainfrom
Open
drivers: input: chsc6x: add CHSC6540 support#104710walidbadar wants to merge 1 commit intozephyrproject-rtos:mainfrom
walidbadar wants to merge 1 commit intozephyrproject-rtos:mainfrom
Conversation
e309ed1 to
75e91d2
Compare
Add support for the Chipsemi CHSC6540 touch controller and refactor the driver to support multiple compatible variants. - Introduce a function pointer (read_data) in driver config to abstract controller-specific data parsing. - Implement chsc6x_read_data() and chsc6540_read_data() with variant-specific register layouts. - Switch to DT_FOREACH_STATUS_OKAY() for per-compatible device instantiation. - Replace instance-based macros with node-based DEVICE_DT_DEFINE(). This change allows the driver to support both chipsemi,chsc6x and chipsemi,chsc6540 via devicetree without duplicating core logic. Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
75e91d2 to
969ad5e
Compare
|
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 change allows the driver to support both chipsemi,chsc6x and chipsemi,chsc6540 via devicetree without duplicating core logic.