Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2452972rwl; Mon, 26 Dec 2022 15:29:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXttOuxvZ26SjoXbxZm756hpsL+cvSqWwInNiRlAhuDovHLBKlGBrZUqFAyTp5VWG/yvNR0A X-Received: by 2002:aa7:9008:0:b0:576:1a09:8b8e with SMTP id m8-20020aa79008000000b005761a098b8emr24101920pfo.30.1672097379267; Mon, 26 Dec 2022 15:29:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672097379; cv=none; d=google.com; s=arc-20160816; b=XDfB7yHQTeBiehIq4H4EMSRCJJ3F9OFTiEBPUgfI+OipuUIG5SHjRsn4W5zHn9ttIT 41mRX9SNPCkfzuWgtD8SVOxU8OlLAutujeYr3Lw+U5XqjlUgvCgoyJL4pyfv2DNNbN3v 6VEgwbnoy7pt/OX+s8K8WQoRsC+y6cuCbHNZ/Ko64ZKYK8DTnwm/P4qfU21cVXdGWgwW LhtsB43WJQbW7yqTS3+HOjMUAzlOHEZWrJ4Y6XYsg15UVJ4NUEWqHXn2oL1lbmC7hpns qgh7b7PfVc10zMtDbImlHGNc2w8diYP6iqhf3uvXAKNbK0RFP5CwCmNgByuq4eM6cxZj 9Kew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cEYS3+SeMpcBY4O/Wjc+N2LOG79qPTE7AugfR9b27QU=; b=d36Go98rIymGg8gpfO2pZUpfzcN+3wlQwcHOtpaYaIbcK94fCLV4X+PknN8Ykllhf1 /DDOO+rkpRBnGxz5ztXMqqWndqTcMFHV8d6zg9Zwvp7X3k0BjkZw8F9V7Awl+iB4AteX rlM7S5f1JvWHthdlxQdrtGsALlB8wNwh2rUQ1kerWyeoJodB+1ddw0yAX0zibaGMiAM8 RdPfpgUESueF4l8BjWoAXB7YpBrn+f3z/fZppgZl308PTnMkIcv4Lp9o3neA9WhhH75v sQX5NRvkJx+hDYx2T4SI9AK6QAwUuraD6+Rcl3UKiodteKd2FPaSCjtIRrYaNRTFxhrg Y4VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GK0epgS1; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k30-20020aa79d1e000000b00572899f993fsi12435710pfp.306.2022.12.26.15.29.30; Mon, 26 Dec 2022 15:29:39 -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=@kernel.org header.s=k20201202 header.b=GK0epgS1; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232359AbiLZXYT (ORCPT + 66 others); Mon, 26 Dec 2022 18:24:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiLZXYR (ORCPT ); Mon, 26 Dec 2022 18:24:17 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81471101E for ; Mon, 26 Dec 2022 15:24:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3C919B80DFE for ; Mon, 26 Dec 2022 23:24:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E00A0C43398 for ; Mon, 26 Dec 2022 23:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672097053; bh=v6viXWqJLtgdVCsT8WioCv141t0R7HSm3K+PSsKwpaw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GK0epgS1Ers4zbwL57238/q9L+oyQtrMSw/KZJ4fA4lQKommEoZqUDp1Rpbbh75JM PU2TLmkJD8UYwSkE4L8zRqdS5a6wHj8LVu/0C8WFEwX8lJxqltylq6mUUGr1sisbii L2cEJVpHfeO6a9G2U4S80eUU5LJMld3+pk4oq2VFEi8YALgn2AJo+Cnv+gSbqHzhRB TrROC6oGiaBRBAL0pvzLHBJjo2LAS1BxDizT6JaCc7b64/4mC7mI2Xive3jQfhtjcb uJUpjJJ+Sd47SaXvE4fmc/ZB840wc4AITArd39mjFwfb7Ui8YDdxE4dTH1Q0V2A2rG 0SspRME1BPi3w== Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-14455716674so13901990fac.7 for ; Mon, 26 Dec 2022 15:24:13 -0800 (PST) X-Gm-Message-State: AFqh2kqUINWdP7MAwZJ0rssBBerqky7JfuSxHKvwYxwnUsSr8PO10OaG EHrR1FdCAEh+5K1bjG0dfuc7TT3waq7of10Gng== X-Received: by 2002:a05:6870:5312:b0:14f:97f2:1717 with SMTP id j18-20020a056870531200b0014f97f21717mr666516oan.69.1672097052981; Mon, 26 Dec 2022 15:24:12 -0800 (PST) MIME-Version: 1.0 References: <1666577099-3859-1-git-send-email-xinlei.lee@mediatek.com> <1666577099-3859-4-git-send-email-xinlei.lee@mediatek.com> In-Reply-To: <1666577099-3859-4-git-send-email-xinlei.lee@mediatek.com> From: Chun-Kuang Hu Date: Tue, 27 Dec 2022 07:24:02 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v13,3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data To: xinlei.lee@mediatek.com Cc: matthias.bgg@gmail.com, rex-bc.chen@mediatek.com, angelogioacchino.delregno@collabora.com, jason-jh.lin@mediatek.com, nfraprado@collabora.com, chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hi, Xinlei: =E6=96=BC 2022=E5=B9=B410=E6=9C=8824=E6=97=A5 =E9= =80=B1=E4=B8=80 =E4=B8=8A=E5=8D=8810:05=E5=AF=AB=E9=81=93=EF=BC=9A > > From: Xinlei Lee > > Add the compatible because use edge_cfg_in_mmsys in mt8186. Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-next Regards, Chun-Kuang. > > Signed-off-by: Xinlei Lee > Reviewed-by: CK Hu > Reviewed-by: AngeloGioacchino Del Regno > Reviewed-by: N=C3=ADcolas F. R. A. Prado > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 21 +++++++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > 2 files changed, 23 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediate= k/mtk_dpi.c > index ad87ecddf58d..325032fd5343 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c > @@ -941,6 +941,24 @@ static const struct mtk_dpi_conf mt8183_conf =3D { > .csc_enable_bit =3D CSC_ENABLE, > }; > > +static const struct mtk_dpi_conf mt8186_conf =3D { > + .cal_factor =3D mt8183_calculate_factor, > + .reg_h_fre_con =3D 0xe0, > + .max_clock_khz =3D 150000, > + .output_fmts =3D mt8183_output_fmts, > + .num_output_fmts =3D ARRAY_SIZE(mt8183_output_fmts), > + .edge_cfg_in_mmsys =3D true, > + .pixels_per_iter =3D 1, > + .is_ck_de_pol =3D true, > + .swap_input_support =3D true, > + .support_direct_pin =3D true, > + .dimension_mask =3D HPW_MASK, > + .hvsize_mask =3D HSIZE_MASK, > + .channel_swap_shift =3D CH_SWAP, > + .yuv422_en_bit =3D YUV422_EN, > + .csc_enable_bit =3D CSC_ENABLE, > +}; > + > static const struct mtk_dpi_conf mt8192_conf =3D { > .cal_factor =3D mt8183_calculate_factor, > .reg_h_fre_con =3D 0xe0, > @@ -1091,6 +1109,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = =3D { > { .compatible =3D "mediatek,mt8183-dpi", > .data =3D &mt8183_conf, > }, > + { .compatible =3D "mediatek,mt8186-dpi", > + .data =3D &mt8186_conf, > + }, > { .compatible =3D "mediatek,mt8192-dpi", > .data =3D &mt8192_conf, > }, > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/med= iatek/mtk_drm_drv.c > index 546b79412815..3d32fbc66ac1 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -646,6 +646,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[= ] =3D { > .data =3D (void *)MTK_DPI }, > { .compatible =3D "mediatek,mt8183-dpi", > .data =3D (void *)MTK_DPI }, > + { .compatible =3D "mediatek,mt8186-dpi", > + .data =3D (void *)MTK_DPI }, > { .compatible =3D "mediatek,mt8192-dpi", > .data =3D (void *)MTK_DPI }, > { .compatible =3D "mediatek,mt8195-dp-intf", > -- > 2.18.0 >