Skip to content

Conversation

@faxe1008
Copy link
Contributor

Having the need to add a pseudo input device for LVGL in every board that has a touch controller onboard is unfortunate.
Instead create a pointer input device for boards where the zephyr,touch node is present. Move any modifications to the pointer with invert-x,y etc. into the touch controller itsself, so other non LVGL samples also benefit from the corrected coordinate reporting behaviour.

JarmouniA
JarmouniA previously approved these changes Nov 23, 2025
@faxe1008 faxe1008 added the DNM This PR should not be merged (Do Not Merge) label Nov 25, 2025
Adds a Kconfig option LV_Z_POINTER_FROM_CHOSEN_TOUCH which automatically
creates a lvgl input pointer device from the chosen zephyr,touch node.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
With the new LV_Z_POINTER_FROM_CHOSEN_TOUCH most boards do not need to
specify a dedicated pseudo device anymore.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
After removing the `zephyr,lvgl-pointer-input` device the init level
entries have shifted by one entry. Update them accordingly.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
Add explanation of the `CONFIG_LV_Z_POINTER_FROM_CHOSEN_TOUCH` interaction
with the `zephyr,touch` chosen node.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
@faxe1008 faxe1008 removed the DNM This PR should not be merged (Do Not Merge) label Nov 28, 2025
@sonarqubecloud
Copy link

@faxe1008
Copy link
Contributor Author

Mmh maybe need to rebase after
#100102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants