On Thu, Oct 15, 2026 at 03:54:18PM +0200, Luca Ceresoli wrote:
> Hello Robert, Oliver, Frank, all,
>
> > The NWL MIPI Host controller registers specifies the horizontal front
> > porch, sync pulse, and back porch in DSI packet payload size in bytes (ie.
> > not in pixel clocks).
> >
> > The calculation for this is (mostly) described in section 13.6.3.5.1.2 of
> > the i.MX 8M Dual/8M QuadLite/8M Quad Applications Processors Reference
> > Manual (rev. 3.1). The formula shown there does not take packet header size
> > into account though.
> >
> > The formula implemented here converts the hfp, hsa, and hbp to DSI packet
> > bytes and then subtracts the number of packet header bytes.
> >
> > It is worth noting that these values only needs to match approximately,
> > according to the reference manual.
> >
> > Based on commit in NXP vendor tree
> > commit f2a61699749d ("LF-7981-4: drm/bridge: nwl-dsi: Correct MIPI DSI
> > horizontal sync timing")
> >
> > Signed-off-by: Esben Haabendal <[email protected]>
> > Cc: Robert Chiras <[email protected]>
> > Cc: Oliver F. Brown <[email protected]>
>
> It would be great to have this reviewed by someone at NXP.
>
> @Frank, do you think you can help with this?
Let me talk with oliver, I am not familar with this part.
Frank
>
> On my side I don't know the hardware and didn't check the maths
> implemented. Still LGTM:
> Reviewed-by: Luca Ceresoli <[email protected]>
>
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>