I'll have a look asap
Try with these settings:
320, 240, 320, 240, 60, 30, 8, 60, 20, 8, 2
for those who are willing to test the kernel building where did these magic numbers came from ??
thanks !!
Revisited values (I think I had them swapped before):
320, 240, 320, 240, 60, 16, 6, 20, 60, 2, 8.
The values are:
bw, bh, dw, dh, fclk, hsw, vsw, elw, blw, efw, bfw.
The screen is 320x240 and you want 60 Hz, so
bw = dw = 320,
bh = dh = 240,
fclk = 60.
You want a perfect 60 Hz from a 6 MHz pixel clock, so you want to find values that gives you:
(320 + elw + blw) * (240 + efw + bfw) * 60 == 6,000,000
One solution is 400 * 250 * 60 == 6,000,000,
which means (elw + blw == 80) and (efw + bfw == 10).
Then in the datasheet, these constraints are set:
- H back porch (blw) between 3..43 pixclocks,
- H front porch (400 - dw - blw) between 2..75 pixclocks,
- V back porch (bfw) between 2..12 lines,
- V front porch (250 - dh - bfw) between 2..37 lines,
- HSYNC (hsw) between 2..43 pixclocks and below H back porch value,
- VSYNC (vsw) between 2..12 lines and below V back porch value.
So just I pick blw == 20, which means elw == 60, and bfw == 8 which means efw == 2, in order to validate the equation. Then hsw == 16 / vsw == 6, since they just need to be smaller than blw / bfw respectively.