drm/mediatek: dpi: Use mt8183 output formats for mt8192
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Fri, 8 Apr 2022 01:39:50 +0000 (21:39 -0400)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 21 Apr 2022 22:20:56 +0000 (06:20 +0800)
The configuration for mt8192 was incorrectly using the output formats
from mt8173. Since the output formats for mt8192 are instead the same
ones as for mt8183, which require two bus samples per pixel, the
pixelclock and DDR edge setting were misconfigured. This made external
displays unable to show the image.

Fix the issue by correcting the output format for mt8192 to be the same
as for mt8183, fixing the usage of external displays for mt8192.

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220408013950.674477-1-nfraprado@collabora.com/
Fixes: be63f6e8601f ("drm/mediatek: dpi: Add output bus formats to driver data")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c

index 4554e2de14309dde4c4eee9a9e38ac432eceb6f6..e61cd67b978ff9cc044c0ac55b131c6ad1da70b6 100644 (file)
@@ -819,8 +819,8 @@ static const struct mtk_dpi_conf mt8192_conf = {
        .cal_factor = mt8183_calculate_factor,
        .reg_h_fre_con = 0xe0,
        .max_clock_khz = 150000,
-       .output_fmts = mt8173_output_fmts,
-       .num_output_fmts = ARRAY_SIZE(mt8173_output_fmts),
+       .output_fmts = mt8183_output_fmts,
+       .num_output_fmts = ARRAY_SIZE(mt8183_output_fmts),
 };
 
 static int mtk_dpi_probe(struct platform_device *pdev)