Re: [PATCH v6 07/11] drm/mediatek: mtk_dsi: Add support for MT8189
From: CK Hu (胡俊光)
Date: Wed Aug 26 2026 - 21:52:58 EST
On Wed, 2026-07-15 at 15:56 +0200, AngeloGioacchino Del Regno wrote:
> Add support for the DSI IP found in the MT8189 SoC: this one is
> similar to the IPs found in the most recent already supported SoCs
> with the only difference being that it supports a higher link rate
> of 2.5Gbps instead of 1.5Gbps.
>
> To support the higher rate, add a new "max_link_rate_mbps" member
> to the mtk_dsi_driver_data, assign the correct one to all of the
> supported SoCs, other than to the newly introduced MT8189, and
> use it in the .mode_valid() callback in place of the hardcoded
> 1.5Gbps value.
>
> Since .mode_valid() is supposed to run just for resolution changes
> the link rate was expressed in Mbps and gets multiplied on the fly
> to save some bits.
>
> As a note, starting with MT8189, higher maximum pixel clock rates
> are achievable: while at it, also make sure that calculations are
> not overflowing by casting to u64 where needed.
I would like to separate this patch into two patches.
One is to add max_link_rate_mbps to support different max link rate.
Another one is to support mt8189 dsi.
Regards,
CK
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
> ---