pajenicko_picopad: request 62.5MHz for the ST7789, not 60MHz - #11291
Open
lynt-smitka wants to merge 1 commit into
Open
pajenicko_picopad: request 62.5MHz for the ST7789, not 60MHz#11291lynt-smitka wants to merge 1 commit into
lynt-smitka wants to merge 1 commit into
Conversation
The PL022 SPI block can only divide clk_peri (125MHz) by even integers, and the driver rounds DOWN: requesting 60MHz yields an actual 31.25MHz clock - half the display bandwidth for every user of this board. Requesting exactly clk_peri/2 = 62.5MHz gets full speed; the ST7789 in this wiring handles it (device-measured: a full-screen 320x240 push drops from 47.4ms to the ~20ms wire floor, matching the sibling pajenicko_picopad_game testbed config that already requests 62500000).
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.
The SPI clock can only be
clk_peri(125 MHz) divided by an even number - 62.5, 31.25, 20.8 MHz, and the SDK picks the fastest of those that does not exceed what the board asked for. Asking for 60 MHz therefore runs the display at 31.25 MHz, half the bandwidth it could have. The panel has been running reliably at 62.5 MHz on this board for a long time, and at that rate a full-screen 320x240 push drops from 47.4 ms to about 20 ms.