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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14FCDC433EF for ; Fri, 18 Mar 2022 13:06:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4355710E32D; Fri, 18 Mar 2022 13:06:32 +0000 (UTC) Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5369810E32D for ; Fri, 18 Mar 2022 13:06:31 +0000 (UTC) X-UUID: 6a2c2ed1b07e41ecbfb8c9cd24931e0b-20220318 X-UUID: 6a2c2ed1b07e41ecbfb8c9cd24931e0b-20220318 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 949797902; Fri, 18 Mar 2022 21:06:23 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) 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 Mar 2022 21:06:17 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 18 Mar 2022 21:06:16 +0800 Message-ID: <1ae841a059f8de6bb9366b2f776cf48721aded41.camel@mediatek.com> Subject: Re: [PATCH v15 21/22] drm/mediatek: add mediatek-drm of vdosys1 support for MT8195 From: Nancy.Lin To: CK Hu , Rob Herring , "Matthias Brugger" , Chun-Kuang Hu , Philipp Zabel , , AngeloGioacchino Del Regno , Date: Fri, 18 Mar 2022 21:06:16 +0800 In-Reply-To: <9832dacd50a744afebe9db7fcfda2b4ced572936.camel@mediatek.com> References: <20220311015506.11232-1-nancy.lin@mediatek.com> <20220311015506.11232-22-nancy.lin@mediatek.com> <9832dacd50a744afebe9db7fcfda2b4ced572936.camel@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, srv_heupstream@mediatek.com, David Airlie , "jason-jh . lin" , singo.chang@mediatek.com, llvm@lists.linux.dev, Nick Desaulniers , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Project_Global_Chrome_Upstream_Group@mediatek.com, linux-mediatek@lists.infradead.org, Yongqiang Niu , Nathan Chancellor , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi CK, Thanks for the review. On Tue, 2022-03-15 at 13:10 +0800, CK Hu wrote: > Hi, Nancy: > > On Fri, 2022-03-11 at 09:55 +0800, Nancy.Lin wrote: > > Add driver data of mt8195 vdosys1 to mediatek-drm. > > > > Signed-off-by: Nancy.Lin > > Reviewed-by: AngeloGioacchino Del Regno < > > angelogioacchino.delregno@collabora.com> > > --- > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 15 +++++++++++++++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > index 99f37f8f6639..2a32e5d24f19 100644 > > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > @@ -190,6 +190,12 @@ static const enum mtk_ddp_comp_id > > mt8195_mtk_ddp_main[] = { > > DDP_COMPONENT_DP_INTF0, > > }; > > > > +static const enum mtk_ddp_comp_id mt8195_mtk_ddp_ext[] = { > > + DDP_COMPONENT_OVL_ADAPTOR, > > + DDP_COMPONENT_MERGE5, > > + DDP_COMPONENT_DP_INTF1, > > +}; > > + > > static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data > > = > > { > > .main_path = mt2701_mtk_ddp_main, > > .main_len = ARRAY_SIZE(mt2701_mtk_ddp_main), > > @@ -254,6 +260,13 @@ static const struct mtk_mmsys_driver_data > > mt8195_vdosys0_driver_data = { > > .mmsys_dev_num = 2, > > With this modification, > > Reviewed-by: CK Hu > > OK Regards, Nancy > > }; > > > > +static const struct mtk_mmsys_driver_data > > mt8195_vdosys1_driver_data > > = { > > + .ext_path = mt8195_mtk_ddp_ext, > > + .ext_len = ARRAY_SIZE(mt8195_mtk_ddp_ext), > > + .mmsys_id = 1, > > + .mmsys_dev_num = 2, > > +}; > > + > > static const struct of_device_id mtk_drm_of_ids[] = { > > { .compatible = "mediatek,mt2701-mmsys", > > .data = &mt2701_mmsys_driver_data}, > > @@ -271,6 +284,8 @@ static const struct of_device_id > > mtk_drm_of_ids[] > > = { > > .data = &mt8192_mmsys_driver_data}, > > { .compatible = "mediatek,mt8195-vdosys0", > > .data = &mt8195_vdosys0_driver_data}, > > + { .compatible = "mediatek,mt8195-vdosys1", > > + .data = &mt8195_vdosys1_driver_data}, > > { } > > }; > > MODULE_DEVICE_TABLE(of, mtk_drm_of_ids); > >