[PATCH 9/9] drm/bridge: imx: Add i.MX93 MIPI DSI support
Ying Liu
victor.liu at nxp.com
Tue Jul 18 02:58:11 UTC 2023
Hi Jagan,
On Monday, July 17, 2023 2:44 PM Jagan Teki <jagan at amarulasolutions.com> wrote:
> On Mon, Jul 17, 2023 at 11:44 AM Liu Ying <victor.liu at nxp.com> wrote:
> >
> > Freescale i.MX93 SoC embeds a Synopsys Designware MIPI DSI host
> > controller and a Synopsys Designware MIPI DPHY. Some configurations
> > and extensions to them are controlled by i.MX93 media blk-ctrl.
> >
> > Add a DRM bridge for i.MX93 MIPI DSI by using existing DW MIPI DSI
> > bridge helpers and implementing i.MX93 MIPI DSI specific extensions.
>
> I think the better way would add compatibility to be part of existing
> dw-mipi-dsi.c with specific driver data. This way it avoids all the
> platform-related helpers(extensions) and makes the driver generic to
> all SoCs which use DW DSI IP. It would be a straightforward change as
> the imx93 drm pipeline already supports bridge topology.
The platform-related stuff is handed over to dw-mipi-dsi.c via struct
dw_mipi_dsi_plat_data as an argument of dw_mipi_dsi_probe(). It looks
ok for vendor drivers to call dw_mipi_dsi_probe() to set the platform-related
information(rockchip, meson and stm do that), like pdata.phy_ops and
pdata.host_ops.
dw-mipi-dsi.c is generic w/wo this patch series.
Can you elaborate more about adding compatibility to be part of existing
dw-mipi-dsi.c with specific driver data? I don't see clear approach to do
that.
Regards,
Liu Ying
>
> Thanks,
> Jagan.
More information about the dri-devel
mailing list