Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2644870rwb; Fri, 16 Dec 2022 04:57:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xXG4Vf/d0i61zAKRWpfWR/CLxamtcTZwo2M8Daz3Fgla9GR5+TxmVdxm+9XGAx4TOJAA6 X-Received: by 2002:a05:6a21:1084:b0:9d:efbf:48bf with SMTP id nl4-20020a056a21108400b0009defbf48bfmr32556743pzb.3.1671195470518; Fri, 16 Dec 2022 04:57:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671195470; cv=none; d=google.com; s=arc-20160816; b=Ids/rmHeCmYmLtRJe+4kvwr9jS8TEFRKQ6EOTgQ287670aKFBaVhAXY8E2TMpZ4y6O zt8G7IHKdxxhV2oeeGEEA1LcG0kh6f7wVGJ3aVCm1rmmzqH0nptv3/eT54qNwsnmFioA Iq63Rj1eckZEnzydr8vO2PpYgBoAtptdmBbNKBY3zErnu9tWoNh5eRGOBJ97E12BshHQ lcXIYvzDY94EPkL1f+pFHS0VD7PDh8KOHPQrvUdvdXNYdfR6B+rtVI9CC0ItQbEeXtJj n5+SmMzh14LfeJVFJo28kF/TyZYG5mzRWqHAcnAGya55kYWHDqPfKPsWddHIgEpIv9Yq wXhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Lao9rYbp3jaFrYZTl4u8VT5iiT2JXYCWdbPZpYAQt0U=; b=jQd/IIpvFBwgDdAwNTb6jcCHgVkccOW4gHYNmwpZ0cQ5a31mQqI4Iyh23GIMGUTDi4 lzIJ0l1qbyqSqYs0QHRf5+AoCcG53xOvGEUpbcVk4ctSZChhIs7PsSPYE0vrMNxg8Vh9 cl8wWpQihbaS/gHudt0p0SdsqB3EqbP2YClQ27PUMgBDlB2fVP+siMfs0gWPL6Hff0YK VPg+J2IHrSWJUYCUoOXN+gURVIujsGIcRomkR+pIFkbpA4n8tkQZZppz1+UDc8W5TBxA Oqqx5TnkLpJK7VVoSvyLaI8IXWz9bnPmNLWbhM1e7mw21SthQ8QAIQxCXsYT1VE03M7O MaAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BMepz24n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a056a00240300b00574b46d3b26si2502712pfh.334.2022.12.16.04.57.41; Fri, 16 Dec 2022 04:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BMepz24n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbiLPMic (ORCPT + 68 others); Fri, 16 Dec 2022 07:38:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiLPMia (ORCPT ); Fri, 16 Dec 2022 07:38:30 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA7931ED0; Fri, 16 Dec 2022 04:38:28 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id bi26-20020a05600c3d9a00b003d3404a89faso1338415wmb.1; Fri, 16 Dec 2022 04:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Lao9rYbp3jaFrYZTl4u8VT5iiT2JXYCWdbPZpYAQt0U=; b=BMepz24nDZZivPME5G/0rC1h5CJlQGZ54ruWBy6dX64Uk4SGIMuaySv/EHqCMmDFlm Yt9nWGzwjDylHxA/fIa2fvjPi6RXfFyVUAIQolxl5XVaWYg1gM+KXekgc8Neuxg7UImG Q1/TALmidY2sa0We5LCCnwckFy8EU3QcGgZ77y2K4z44V9M8HzAvZ56MfbmVIWN86HOr ZfQGtdlBVm0Mb1IhxMtSuqxX3apL13OZa167PAtE2JL2UdUXPcVrcjtTMTz8z1sHDyrV dsnyRfEDInrgB2XauxVK2QY8R9RSBu26Y3CKnrjUhLrJPqvcU7Yhr6de6bMR0FDNlfrP ezLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Lao9rYbp3jaFrYZTl4u8VT5iiT2JXYCWdbPZpYAQt0U=; b=0lQ+BMFUK2fPyl7nLU2wVzU4jx1iI8K7E6FoaLFhJYmihvbOUJd6fY9Co0nPCsHEPF ucSH8MCgstG8PcmCFenWqXKLYgLhECYB1/z+0gbqMxICRiTXR1Mn0M2qfEZNSZ0IYs0o MMATFDWcYHw2LngZjOj5oWP2Iv9E9pH7pdOQqssUV4TbCVHwncVG1nr6fOPRH6q3ysjD H6mSvCb1MXTMMEwiTChqv2/DU8ne2WNJ4rqpTlvp7UDiY1tCNXr57o29j9WzySzYMLOz 39gy5lizOq9v3CX1lQFyCRRPZIUORe8kg05N7oBWBiFtp56xUD04xgSP7i+CcCyJROmt fIrw== X-Gm-Message-State: ANoB5pmoY9zmDuKWX9HB3dklbRiu+gj2VmcAA3Cw00Wrx64XDB4A3h1W M8qJP/TMA4Qxi2SES+s+aBc= X-Received: by 2002:a05:600c:34cb:b0:3d1:f16d:5848 with SMTP id d11-20020a05600c34cb00b003d1f16d5848mr24918840wmq.26.1671194307387; Fri, 16 Dec 2022 04:38:27 -0800 (PST) Received: from [192.168.1.132] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id cl4-20020a5d5f04000000b00242209dd1ffsm2259107wrb.41.2022.12.16.04.38.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Dec 2022 04:38:26 -0800 (PST) Message-ID: <9a839b69-d798-0957-bb94-7d009fdcceec@gmail.com> Date: Fri, 16 Dec 2022 13:38:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v4 6/6] drm/mediatek: add mediatek-drm of vdosys0 support for mt8188 Content-Language: en-US To: "nathan.lu" , Rob Herring , Krzysztof Kozlowski , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue Cc: "jason-jh . lin" , CK Hu , AngeloGioacchino Del Regno , Rex-BC Chen , Moudy Ho , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, lancelot.wu@mediatek.com, Project_Global_Chrome_Upstream_Group@mediatek.com, amy zhang References: <20221206020046.11333-1-nathan.lu@mediatek.com> <20221206020046.11333-7-nathan.lu@mediatek.com> From: Matthias Brugger In-Reply-To: <20221206020046.11333-7-nathan.lu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/12/2022 03:00, nathan.lu wrote: > From: Nathan Lu > > add driver data of mt8188 vdosys0 to mediatek-drm and the sub driver. > > Signed-off-by: amy zhang > Signed-off-by: Nathan Lu > Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > index b12e5b977c50..8058a5ec2f1d 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -176,6 +176,18 @@ static const enum mtk_ddp_comp_id mt8186_mtk_ddp_ext[] = { > DDP_COMPONENT_DPI0, > }; > > +static const enum mtk_ddp_comp_id mt8188_mtk_ddp_main[] = { > + DDP_COMPONENT_OVL0, > + DDP_COMPONENT_RDMA0, > + DDP_COMPONENT_COLOR0, > + DDP_COMPONENT_CCORR, > + DDP_COMPONENT_AAL0, > + DDP_COMPONENT_GAMMA, > + DDP_COMPONENT_POSTMASK0, > + DDP_COMPONENT_DITHER0, > + DDP_COMPONENT_DP_INTF0, > +}; > + > static const enum mtk_ddp_comp_id mt8192_mtk_ddp_main[] = { > DDP_COMPONENT_OVL0, > DDP_COMPONENT_OVL_2L0, > @@ -259,6 +271,11 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = { > .ext_len = ARRAY_SIZE(mt8186_mtk_ddp_ext), > }; > > +static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = { > + .main_path = mt8188_mtk_ddp_main, > + .main_len = ARRAY_SIZE(mt8188_mtk_ddp_main), > +}; > + > static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = { > .main_path = mt8192_mtk_ddp_main, > .main_len = ARRAY_SIZE(mt8192_mtk_ddp_main), > @@ -516,6 +533,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { > .data = (void *)MTK_DISP_MUTEX }, > { .compatible = "mediatek,mt8186-disp-mutex", > .data = (void *)MTK_DISP_MUTEX }, > + { .compatible = "mediatek,mt8188-disp-mutex", > + .data = (void *)MTK_DISP_MUTEX }, > { .compatible = "mediatek,mt8192-disp-mutex", > .data = (void *)MTK_DISP_MUTEX }, > { .compatible = "mediatek,mt8195-disp-mutex", > @@ -600,6 +619,8 @@ static const struct of_device_id mtk_drm_of_ids[] = { > .data = &mt8183_mmsys_driver_data}, > { .compatible = "mediatek,mt8186-mmsys", > .data = &mt8186_mmsys_driver_data}, > + { .compatible = "mediatek,mt8188-vdosys0", > + .data = &mt8188_vdosys0_driver_data}, > { .compatible = "mediatek,mt8192-mmsys", > .data = &mt8192_mmsys_driver_data}, > { .compatible = "mediatek,mt8195-mmsys",