Files
bfe-core1106-sdk/tests
BFE EngineeringandClaude Haiku 5.5 feb66fd863 Linux VOP pixel clock: CPLL 900 MHz pins the 30 MHz mode [skip ci]
dclk_vop_src is a composite with a 5-bit divider, so from the 1000 MHz
Linux CPLL the nearest reachable rate to 30 MHz is 31.25 MHz. The panel
then refreshed at 50.9 Hz, not the 48.87 Hz of the mode. U-Boot retunes
CPLL to 960 MHz, which gives an exact 30 MHz but breaks the 50 MHz GMAC
RMII reference (no exact divider at 960).

At CPLL 900 MHz, /30 gives exactly 30 MHz, /18 exactly 50 MHz (GMAC)
and /9 exactly 100 MHz (APB, PWM, watchdog). The cru node sets PLL_CPLL
to 900 MHz and pins CLK_50M_SRC, CLK_100M_SRC and DCLK_VOP_SRC right
after it. aclk_ddr_root falls from 500 to 450 MHz and clk_250m_src from
250 to 225 MHz; no driver change.

tests/vop-dclk/check-vop-dclk.py reads the clock plan from the patch
series (list order, PLL table, IDs, exact dividers, hunk line counts);
run-check-vop-dclk-tests.sh breaks one thing per case.

Fixes #43
Refs flare-edge#3204

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdKQBPu4qHGnopkHjchmwz
2026-11-10 00:36:43 -06:00
..