Hello all, This series provides some crucial fixes and improvements for the Cadence's DSI TX (cdns-dsi) controller found commonly in Texas Instruments' J7 family of SoCs as well as in AM62P. The cdns-dsi bridge consumes the crtc_* timing parameters for programming the timing parameters. A patch has been added in tidss to make sure the crtc_* timings get populated. It further adds support for "early_enable" and "late_disable" DRM bridge hooks. These hooks are same as the existing "(pre_)enable" and "(post_)disable" hooks, except that the early_enable hook gets called before the CRTC is even enabled in the display pipeline and the late_disable hook gets called after the CRTC is disabled. The cdns-dsi controller requires to be enabled before the previous entity enables its stream[0]. It's a strict requirement which, if not followed, causes the colors to "shift" on the display. Since the previous entity is TIDSS in this case, which gets enabled via the tidss_crtc hooks, early_enable/late_disable API in the cdns-dsi bridge is the way to solve the issue. The early_enable/late_disable APIs also help with the OLDI TXes available on the AM62/AM62P SoCs, which will be a part of separate series. This spec also requires the Clock and Data Lanes be ready before the DSI TX enables its stream[0]. A patch has been added to make the code wait for that to happen. Going ahead with further DSI (and DSS configuration), while the lanes are not ready, has been found as another reason for shift in colors. All these patches have been tested on TI's vendor tree kernel with more devices, but for the mainline, these patches have been tested with J721E based BeagleboneAI64 along with a RaspberryPi 7" DSI panel. The extra patches can be found in the "next_dsi_finals-v1-test_rpi" branch of my github fork[1] for anyone who would like to test them. Thanks, Aradhya [0]: Section 12.6.5.7.3: Start-up Procesure [For DSI TX controller] in TDA4VM Technical Reference Manual https://www.ti.com/lit/zip/spruil1 [1]: https://github.com/aradhya07/linux-ab/tree/next_dsi_finals-v1-test_rpi Aradhya Bhatia (7): drm/tidss: Add CRTC mode_fixup drm/bridge: cdns-dsi: Fix minor bugs drm/bridge: cdns-dsi: Wait for Clk and Data Lanes to be ready drm/bridge: cdns-dsi: Reset the DCS write FIFO drm/bridge: cdns-dsi: Support atomic bridge APIs drm/bridge: Introduce early_enable and late disable drm/bridge: cdns-dsi: Implement early_enable and late_disable .../gpu/drm/bridge/cadence/cdns-dsi-core.c | 91 ++++++++++++++----- drivers/gpu/drm/drm_atomic_helper.c | 67 ++++++++++++++ drivers/gpu/drm/drm_bridge.c | 84 +++++++++++++++++ drivers/gpu/drm/tidss/tidss_crtc.c | 11 +++ include/drm/drm_bridge.h | 73 +++++++++++++++ 5 files changed, 303 insertions(+), 23 deletions(-) base-commit: 75fa778d74b786a1608d55d655d42b480a6fa8bd -- 2.34.1