On Thu, 5 Nov 2026 at 01:01, Cristian Ciocaltea <[email protected]> wrote: > Rockchip DW HDMI QP encoder supports YUV 4:2:2 output through > ROCKCHIP_OUT_MODE_YUV422, but was limited to 8-bit depth via > MEDIA_BUS_FMT_UYVY8_1X16. Add support for its 10-bit counterpart > MEDIA_BUS_FMT_UYVY10_1X20, which carries two 10-bit components per clock > cycle on a 20-bit wide bus. > > The HDMI PHY scales its PLL output by 8/bpc to undo the deep color > packing, such that it matches the DCLK rate expected by VOP2. However, > YUV 4:2:2 is never deep color packed, as it always transmits two 12-bit > components per pixel, regardless of the color depth. From a clock-rate > perspective this is equivalent to three 8-bit RGB components, so > configure the HDMI PHY with 8 bpc when YUV 4:2:2 is in use to keep its > output clock aligned with the TMDS character rate.
Reviewed-by: Daniel Stone <[email protected]>
