Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5725649rwd; Mon, 12 Jun 2023 08:52:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nI3Tj1XBMoQa8Rh1seMsFIHEhToSHtR4/9Ez5yrmdhaiiAhtgORoSv/EOr1aO0kisiM1n X-Received: by 2002:a17:902:d489:b0:1b0:3c2a:2b4e with SMTP id c9-20020a170902d48900b001b03c2a2b4emr8395803plg.8.1686585144094; Mon, 12 Jun 2023 08:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686585144; cv=none; d=google.com; s=arc-20160816; b=jkjSeJgyQbBdcc1q068il862a2O0+zzGWlcHt5qa+2X05WZuLKLNuJzwnJbNxf13QZ 1QQzM7f3Y7lNRgLt8a6h38M8hXGqHDBm25zVpDqLzoLVKqfrOtIUuQmP910hh9ycGHg/ bN+xFBloDspsC8oIFMaq7oRV95g8iC8KB7pdbtJhDSFsOe2wtgr7x0Z2/QxDcYu+HViH J9lEl+/0P9EIyURTadufLqUk0S+4J+3wPwl4/UL72Z6TegVBaOZwtGDxOV3Xd9juddIT 5l1JS/JfibWa1ZKUbis46GESLMJcYE6MI0HTK2vXte6sPUvnDcxbe394Cp7c4kwWELzd e1tw== 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=kKeMGeF0trCt44eKhaOR0a2Rjg8pHA6oRNnqidbvg7Q=; b=p6DOszzw28+nAiNFecBroquFY4Odjr/H1jQfz4iaAy4UjyUn6HXTe8qvOy7Qbdu8m3 Uguu9vqNKdBmLHpdik8h2CPQJAJkyNOaqwv8xBHWsPMiUIAzRRp7DVtEsDtm0DuPojUG W5OBcQ82w1XuO/rIWs8040qlf3Ysi6KoFs8POlgu+bW92zM890posiGbp/vsE9Yrv54m yGQ7XdW9HdWSpzBERmQIetENLM/0oIHZN5P0RS+yrZkevccBimMh31HJ99dfKYMrycMB hYEwx34XvxM13A3sA4a+QEMyd81h+mvKoYNdlPEeinY5P8aToPNmCdZvzIXhTs0nLsCd FhlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fqXHTN/w"; 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 f3-20020a170902ce8300b001a64e7b702fsi7077829plg.447.2023.06.12.08.52.09; Mon, 12 Jun 2023 08:52:24 -0700 (PDT) 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="fqXHTN/w"; 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 S235319AbjFLPS3 (ORCPT + 99 others); Mon, 12 Jun 2023 11:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234811AbjFLPSZ (ORCPT ); Mon, 12 Jun 2023 11:18:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424068F; Mon, 12 Jun 2023 08:18:24 -0700 (PDT) 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 D295062889; Mon, 12 Jun 2023 15:18:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D724C433AC; Mon, 12 Jun 2023 15:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686583103; bh=Xb1HsQlSrZkn1qAf6y9yA3U1APG6n0vq1EUnF8SnDe0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fqXHTN/wQrrur4issS6zsCoMz5NmQnl7VT4HbZNJkSb2A6NQJCSmVt7iUx8Q29Xrc NQiaky8PGWu3+fNiURrclPcr2WCAVXNErDnjaE/IrAXX852/8bVE6WWIUiLYd5+XRh VCcF2EeWuwloOSjUpHRvV8EjxjBGktr+8vsHBqZdHfTU+TMjBL127g16HoSD/X+kNo 1FjV+EXhWH1Col98ixaEO8Kp+UqKgcQ8T7F6YxvFtKF4tmfxOLKtJ0T2UY3gBm1qLt 8a+BSr+defk/TtY0XAvgiDFVPLaiKWVhNthAkDg/oanNftBU64k/UiapGCs9IFExoT QjklEWjQQU2qQ== Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2b1c5a6129eso51847821fa.2; Mon, 12 Jun 2023 08:18:23 -0700 (PDT) X-Gm-Message-State: AC+VfDw34q3nJn/GXnPEzsnXnMunnE+wmoR8L6f+YbjH3dgm3rLLQ7kC q438NUzdnaJhbXxzfe6W0x8gTh79E2w2ddySwA== X-Received: by 2002:a2e:9d8a:0:b0:2ad:95dd:8802 with SMTP id c10-20020a2e9d8a000000b002ad95dd8802mr2876142ljj.38.1686583101104; Mon, 12 Jun 2023 08:18:21 -0700 (PDT) MIME-Version: 1.0 References: <1681366162-4949-1-git-send-email-xinlei.lee@mediatek.com> <1681366162-4949-3-git-send-email-xinlei.lee@mediatek.com> In-Reply-To: <1681366162-4949-3-git-send-email-xinlei.lee@mediatek.com> From: Chun-Kuang Hu Date: Mon, 12 Jun 2023 23:18:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] drm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c 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, jitao.shi@mediatek.com, shuijing.li@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,T_SCC_BODY_TEXT_LINE 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: Reorder this patch after patch "[3/3] drm/mediatek: dsi: Add dsi cmdq_ctl to send panel initial code" Regards, Chun-Kuang. =E6=96=BC 2023=E5=B9=B44=E6=9C=8813=E6=97=A5 =E9= =80=B1=E5=9B=9B =E4=B8=8B=E5=8D=882:09=E5=AF=AB=E9=81=93=EF=BC=9A > > From: Xinlei Lee > > Add the compatible because there are different definitions for cmdq > register bit control in mt8188. > > Signed-off-by: Xinlei Lee > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++++++++ > 2 files changed, 10 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/med= iatek/mtk_drm_drv.c > index a13b36ac03a1..9ba05961479d 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -654,6 +654,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[= ] =3D { > .data =3D (void *)MTK_DSI }, > { .compatible =3D "mediatek,mt8186-dsi", > .data =3D (void *)MTK_DSI }, > + { .compatible =3D "mediatek,mt8188-dsi", > + .data =3D (void *)MTK_DSI }, > { } > }; > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediate= k/mtk_dsi.c > index 7d5250351193..500a3054282d 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -1208,6 +1208,12 @@ static const struct mtk_dsi_driver_data mt8186_dsi= _driver_data =3D { > .has_size_ctl =3D true, > }; > > +static const struct mtk_dsi_driver_data mt8188_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 }, > @@ -1217,6 +1223,8 @@ static const struct of_device_id mtk_dsi_of_match[]= =3D { > .data =3D &mt8183_dsi_driver_data }, > { .compatible =3D "mediatek,mt8186-dsi", > .data =3D &mt8186_dsi_driver_data }, > + { .compatible =3D "mediatek,mt8188-dsi", > + .data =3D &mt8188_dsi_driver_data }, > { }, > }; > MODULE_DEVICE_TABLE(of, mtk_dsi_of_match); > -- > 2.18.0 >