From nobody Sun Sep 22 07:33:25 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26102C433FE for ; Fri, 18 Feb 2022 10:08:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233879AbiBRKIh (ORCPT ); Fri, 18 Feb 2022 05:08:37 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233874AbiBRKId (ORCPT ); Fri, 18 Feb 2022 05:08:33 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAFE61CFE2 for ; Fri, 18 Feb 2022 02:08:16 -0800 (PST) X-UUID: a7452fd66f514c769cccefc581fbd0e7-20220218 X-UUID: a7452fd66f514c769cccefc581fbd0e7-20220218 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1954846244; Fri, 18 Feb 2022 18:08:13 +0800 Received: from MTKMBS34N1.mediatek.inc (172.27.4.172) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Fri, 18 Feb 2022 18:08:13 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS34N1.mediatek.inc (172.27.4.172) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 18 Feb 2022 18:08:12 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 18 Feb 2022 18:08:10 +0800 From: To: , , , , CC: , , , , , , , , Xinlei Lee Subject: [PATCH v2,3/3] drm/mediatek: Add mt8186 dsi compatible to mtk_dsi.c Date: Fri, 18 Feb 2022 18:07:49 +0800 Message-ID: <1645178869-18048-4-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1645178869-18048-1-git-send-email-xinlei.lee@mediatek.com> References: <1645178869-18048-1-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Xinlei Lee Add the compatible because use different cmdq addresses in mt8186. Signed-off-by: Xinlei Lee Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/= mtk_dsi.c index bced4c7d668e..8c61c4f412bc 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1140,6 +1140,12 @@ static const struct mtk_dsi_driver_data mt8183_dsi_d= river_data =3D { .has_size_ctl =3D true, }; =20 +static const struct mtk_dsi_driver_data mt8186_dsi_driver_data =3D { + .reg_cmdq_off =3D 0xd00, + .has_shadow_ctl =3D true, + .has_size_ctl =3D true, +}; + static const struct of_device_id mtk_dsi_of_match[] =3D { { .compatible =3D "mediatek,mt2701-dsi", .data =3D &mt2701_dsi_driver_data }, @@ -1147,6 +1153,8 @@ static const struct of_device_id mtk_dsi_of_match[] = =3D { .data =3D &mt8173_dsi_driver_data }, { .compatible =3D "mediatek,mt8183-dsi", .data =3D &mt8183_dsi_driver_data }, + { .compatible =3D "mediatek,mt8186-dsi", + .data =3D &mt8186_dsi_driver_data }, { }, }; MODULE_DEVICE_TABLE(of, mtk_dsi_of_match); --=20 2.18.0