Re: [RFC PATCH 3/4] drm/tilcdc: Implement state readout support
From: Tomi Valkeinen
Date: Tue Nov 24 2026 - 09:38:56 EST
Hi,
On 24/11/2026 16:11, Màxim Pedraza Padilla wrote:
On Wed, Nov 18, 2026 at 10:21:14PM +0100, Màxim Pedraza Padilla wrote:
Makes sense, I'll use the same approach in tilcdc, and see if it can be
turned into a common helper along the way.
A follow-up on this one, now that I've rebased on v9. I ended up doing
it differently, so I'd rather explain why before sending the next
version.
The tidss approach rounds the clock to the closest standard refresh rate.
Panels driven by tilcdc often don't use one: with the timings from its
datasheet, the panel on this board runs at 56.8 Hz (33.3 MHz), which would
be read back as 60 Hz and 35.19 MHz. The adopted mode would then never
match the panel mode, even with U-Boot programming exactly the same one.
I felt that approach was a bit odd (and if I recall right, failed with my OLDI panel), and in my tidss version I just used the clock rate directly from the clk_get_rate() (see dispc_vp_readout_mode):
https://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git/commit/?h=ti/boot-splash-v8.5&id=b08e04d7ff284234aebd048982c98cc5368affa8
Tomi