The mt8167 DSI controller is fully compatible with the one found in
mt2701. Unfortunately the device tree has a dedicated compatible for
mt8167 since 2022 and it cannot be changed with a fallback nor removed at
this point. The only way to get the device to work is to add the
compatible to the driver.

Signed-off-by: Luca Leonardo Scorcia <[email protected]>
---
 drivers/gpu/drm/mediatek/mtk_dsi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c 
b/drivers/gpu/drm/mediatek/mtk_dsi.c
index 5aa71fcdcfab..167e33fef025 100644
--- a/drivers/gpu/drm/mediatek/mtk_dsi.c
+++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
@@ -1305,6 +1305,7 @@ static const struct mtk_dsi_driver_data 
mt8188_dsi_driver_data = {
 
 static const struct of_device_id mtk_dsi_of_match[] = {
        { .compatible = "mediatek,mt2701-dsi", .data = &mt2701_dsi_driver_data 
},
+       { .compatible = "mediatek,mt8167-dsi", .data = &mt2701_dsi_driver_data 
},
        { .compatible = "mediatek,mt8173-dsi", .data = &mt8173_dsi_driver_data 
},
        { .compatible = "mediatek,mt8183-dsi", .data = &mt8183_dsi_driver_data 
},
        { .compatible = "mediatek,mt8186-dsi", .data = &mt8186_dsi_driver_data 
},
-- 
2.43.0

Reply via email to