Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7533680rwb; Wed, 23 Nov 2022 07:39:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hzZhHVcXcibRJ8MPa8ddkwxC/wcPnW99Pr3d0ZFhFi88oTsMVfyhcu4eCRhA+k7eXBl0U X-Received: by 2002:a17:90a:c78c:b0:213:bbb4:13ce with SMTP id gn12-20020a17090ac78c00b00213bbb413cemr30285597pjb.246.1669217971120; Wed, 23 Nov 2022 07:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669217971; cv=none; d=google.com; s=arc-20160816; b=1AOeTK098sfzjFLpHRAuaiipMjQoL1STD64ik93NGMLp2NKobj5jFpS5sWPTQPy3Ig phN220tfAIDPZIqcgBueNF26DxIwWhAjJWlukJzTPWdn4T4/1gwONScG+In9qHvwLJea UyCQ433AFsx8jiBn2wFtavlb7Usjd2RYbTNbQrYZps4ZREBzYNLF+QQB17Aoc5DGFFzH UwnWE4p9RMtV4YweQ2bl5pak3eIYdWiCPCTNSAMQVLd3qxdMHYvjdNRiXSargOVb8DpC b9dDBPc10wAQOubxUNaLfHlZXoKNpJ2oLOabGH9oJaIr5ZdoAj8QkQttMva0ysXqnFuJ Q2GA== 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=eo1RIqpq3+5pHhNWP701dHJu3bs8+yJk60MclGeBWP0=; b=Ohgm9Er069YAFPIDleJXj4OrkEnJPIGLn068bxjo8zw1B6/kf80uHVn3r77K+61Brt OUMEF4x+7UGvMz3NQLQAjXWNRRaqLFpyfE01RW3eWrWprTFHnDRQMjpOKj8kmkszW31E TARTd2pDkzge9+huws5xn8n1G8Qprsi6mnP+V1x2DR7iev3ziGCGn4c16n+eBFOYVJSt U+qztafwro9fhcPU3hrMFCvlDbzpNlW2sAhYpGMr+xP8JeHc1UJMk+5Kq4kBt/cIJP0J JNHM0ScXWozNzuEGTcCAEwUls0c0Pr1lR40VGti8RgOF0wsb+BmUpuHXH9T5+lVaPNT6 k6UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oSorEMc2; 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 17-20020a170902e9d100b00188fce355c9si14278321plk.42.2022.11.23.07.39.19; Wed, 23 Nov 2022 07:39:31 -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=oSorEMc2; 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 S237340AbiKWPZl (ORCPT + 88 others); Wed, 23 Nov 2022 10:25:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237215AbiKWPZc (ORCPT ); Wed, 23 Nov 2022 10:25:32 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D49DDEC9; Wed, 23 Nov 2022 07:25:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AA03E61D9B; Wed, 23 Nov 2022 15:25:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ED97C43147; Wed, 23 Nov 2022 15:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669217131; bh=RtxS3m8RidOG39tfzw7d4tVjWi8ImaOggtUBMDmGKOk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oSorEMc2dHiBGtYNXsHTl12w2fVInFgukQW47xG4DnuHpRzcTKx1etSLqVxA6vqSA TDUM6TIDXCPOGEYOUegUztFeCKhCJ7D5AB2WLgvgQodZZxcw43EahjgiLYwJ23PhzV HC0Yl39AFe2iVN2gziTKruIIV3fHzFv+xMkdDDtuZfXPSZFCi1nyIvlz9AgCAxDj2E XSJioyc4k1+SagJVRkJJCkI4kF7ylP/mm8UJnqeJmbiXAUQBPfHKI6Rq/2EybrwxQf ijVZsNtZnWCo3Hc+gUdfTK04/8uswxdt+DilpEgrCSLJ3OAf643WTsZu1vnKRg4xxv th7OBfjaluPoQ== Received: by mail-ot1-f49.google.com with SMTP id 46-20020a9d0631000000b00666823da25fso11444160otn.0; Wed, 23 Nov 2022 07:25:30 -0800 (PST) X-Gm-Message-State: ANoB5pnBQW9cByWanm8pIteTIuwDpPIl7MmOUjX1+hbdBR7yeTAHrNql 41r1KMXvmr9HyqM9RGQ8HgcYoyUtMIPDmqTmeQ== X-Received: by 2002:a05:6830:d87:b0:66d:8b98:683f with SMTP id bv7-20020a0568300d8700b0066d8b98683fmr15490045otb.40.1669217130091; Wed, 23 Nov 2022 07:25:30 -0800 (PST) MIME-Version: 1.0 References: <1666266353-16670-1-git-send-email-xinlei.lee@mediatek.com> <1666266353-16670-3-git-send-email-xinlei.lee@mediatek.com> In-Reply-To: <1666266353-16670-3-git-send-email-xinlei.lee@mediatek.com> From: Chun-Kuang Hu Date: Wed, 23 Nov 2022 23:25:19 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2,2/2] drm: mediatek: Add mt8188 dpi compatibles and platform data To: xinlei.lee@mediatek.com Cc: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, ck.hu@mediatek.com, jitao.shi@mediatek.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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=8820=E6=97=A5 =E9= =80=B1=E5=9B=9B =E6=99=9A=E4=B8=8A7:46=E5=AF=AB=E9=81=93=EF=BC=9A > > From: xinlei lee > > For MT8188, the vdosys0 only supports 1T1P mode, so we need to add the co= mpatible for mt8188 edp-intf. For this series, 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 > > Signed-off-by: xinlei lee > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 17 +++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > 2 files changed, 19 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediate= k/mtk_dpi.c > index 508a6d9..02c2a00 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c > @@ -929,6 +929,20 @@ static const struct mtk_dpi_conf mt8183_conf =3D { > .csc_enable_bit =3D CSC_ENABLE, > }; > > +static const struct mtk_dpi_conf mt8188_dpintf_conf =3D { > + .cal_factor =3D mt8195_dpintf_calculate_factor, > + .max_clock_khz =3D 600000, > + .output_fmts =3D mt8195_output_fmts, > + .num_output_fmts =3D ARRAY_SIZE(mt8195_output_fmts), > + .pixels_per_iter =3D 4, > + .input_2pixel =3D false, > + .dimension_mask =3D DPINTF_HPW_MASK, > + .hvsize_mask =3D DPINTF_HSIZE_MASK, > + .channel_swap_shift =3D DPINTF_CH_SWAP, > + .yuv422_en_bit =3D DPINTF_YUV422_EN, > + .csc_enable_bit =3D DPINTF_CSC_ENABLE, > +}; > + > static const struct mtk_dpi_conf mt8192_conf =3D { > .cal_factor =3D mt8183_calculate_factor, > .reg_h_fre_con =3D 0xe0, > @@ -1079,6 +1093,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = =3D { > { .compatible =3D "mediatek,mt8183-dpi", > .data =3D &mt8183_conf, > }, > + { .compatible =3D "mediatek,mt8188-dp-intf", > + .data =3D &mt8188_dpintf_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 91f58db..950bd04 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -631,6 +631,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,mt8188-dp-intf", > + .data =3D (void *)MTK_DP_INTF }, > { .compatible =3D "mediatek,mt8192-dpi", > .data =3D (void *)MTK_DPI }, > { .compatible =3D "mediatek,mt8195-dp-intf", > -- > 2.6.4 >