[Backport v4.4-branch] drivers: display: co5300: Fix address alignment issue#107652
Open
github-actions[bot] wants to merge 1 commit intov4.4-branchfrom
Open
[Backport v4.4-branch] drivers: display: co5300: Fix address alignment issue#107652github-actions[bot] wants to merge 1 commit intov4.4-branchfrom
github-actions[bot] wants to merge 1 commit intov4.4-branchfrom
Conversation
Improve the coordinate and address alignment logic in the CO5300 display driver. The driver now properly aligns the framebuffer address according to the addr_align property from device tree, in addition to ensuring coordinates are even values. Signed-off-by: Kate Wang <yumeng.wang@nxp.com> (cherry picked from commit 4626c0e)
|
JarmouniA
approved these changes
Apr 22, 2026
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.



Backport 4626c0e from #105901.
Original PR description:
The CO5300 display controller of zc143ac72mipi shield requires the start coordinate and the size(width/height) of the updated area to be even for each frame update. Also the DCNano DBI controller on MIMXRT700 EVK which performs the frame update requires the frame buffer address to be 64-byte aligned. So the CO5300 driver maintains an internal buffer, for each write, the update area are copied to the internal buffer first, then the descriptor shall be adjusted to the even value AND make sure the the address of the actual updated area are aligned properly.
Fixes #104000