On Fri, Nov 20, 2026 at 03:01:50PM +0100, Maxime Ripard wrote: > I think the real solution in this case is to fix the panel to report its > polarity properly.
Agreed. The panel datasheet specifies negative HSYNC and VSYNC, and the timings in this board's DT didn't say so. U-Boot programs both as active low (IHS and IVS set in RASTER_TIMING_2). Adding vsync-active = <0> works as expected. hsync-active = <0> doesn't, though: tilcdc_crtc_mode_fixup() flips the HSYNC polarity of the adjusted mode, so DRM_MODE_FLAG_NHSYNC ends up with IHS cleared, i.e. an active high HSYNC pin according to the AM335x TRM (SPRUH73L, table 13-26). With no HSYNC flag at all the pin is active low, matching both the panel and U-Boot, and the readout matches the DT mode. The fixup comment says the LCDC aligns VS on the second edge of HS, but I couldn't find anything about it in the TRM. Do you know if it's still needed? If it is, I guess the readout should keep undoing it; if not, a fix there would let the DT describe the panel as it is. Thanks, Màxim
