Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4042253pxf; Tue, 16 Mar 2021 04:28:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDBW7CWVH1p0NaWMG0xGOMh81FNpljzep6DmuNb5ZkURiJZnLnTNIeUEooxb8WJE+8aPp8 X-Received: by 2002:a05:6402:270c:: with SMTP id y12mr10860449edd.284.1615894093908; Tue, 16 Mar 2021 04:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615894093; cv=none; d=google.com; s=arc-20160816; b=bPAzGs4rbx2Vivy1nsh6x1sqh0joCe4wmapxldj0MDLbriklGkR6sbiKcIF+opE4E/ 3+7TV/WfeGUjvz83D/zbeRPiWrc6lZtCqwLRajF4hhkucBMtzgZP9/8UD9MzSrj5Z+1A CETSeux0J5M7XuGzNsp3YhhKKXf1JHUBDjrfyYCE8Ehcqo89RI60d4ED0OjIM8niejy7 NBKRUUZW9Abr7LwSgYEtfbFcJY4YylsCDPNzODWXpKZ9pfsWydytTbqnb778LS0RTPqL GlNKsM56Lp1iNWh3UGSesBlEN2SfzSDRms8KxlXYBL52zN3KNLmp9ANUM5hiUKIbrr3n 3xPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=yr3rP6ACv82rx92p6aoTYfw+WoVbtWUNW5yYxZPsdwg=; b=FnHtAENGYJRuSvd6wreQMhGW40JaiIL6cwhdw3pxe9405Zfya9SZ3OLwKyJ4o01zBQ rfNIkc67ZwhxkHfmG5O1JIkp1LLAy0Bl5O2Jr1JcusJGZVKUQAOVwp0fSf9dZvSNsf95 UczTFV0BActESpKcLW3PxY6MOaBYQa7wMIQLlOmScz+97O2T+kMiLGOyEIz84iWRjI9H pzfIkt+X/28f8fbM7J2mIEN1cxixAkuufnkgF49cs/fVINS9HK0bGN4OLSBarZf2L3i+ pnDvAmLg0PEHtiSsBDaqB1OjXa4bmLkmxpdppDan797Iqu8egPQEupmsy7pO6X1W7ydU LxuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si12988849eje.225.2021.03.16.04.27.43; Tue, 16 Mar 2021 04:28:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231614AbhCPD2H (ORCPT + 99 others); Mon, 15 Mar 2021 23:28:07 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:43742 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229705AbhCPD1f (ORCPT ); Mon, 15 Mar 2021 23:27:35 -0400 X-UUID: f48e8b9324cb4fcda6dafa4c22fc1ef6-20210316 X-UUID: f48e8b9324cb4fcda6dafa4c22fc1ef6-20210316 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 61645978; Tue, 16 Mar 2021 11:27:32 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 11:27:31 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Mar 2021 11:27:31 +0800 From: Rex-BC Chen To: , CC: , , , , Rex-BC Chen , Jitao Shi Subject: [RESEND,v4,2/2] drm/mediatek: mtk_dpi: Add dpi config for mt8192 Date: Tue, 16 Mar 2021 11:26:19 +0800 Message-ID: <1615865179-22051-3-git-send-email-rex-bc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1615865179-22051-1-git-send-email-rex-bc.chen@mediatek.com> References: <1615865179-22051-1-git-send-email-rex-bc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org add mtk_dpi config setting and compatible for MT8192 Signed-off-by: Rex-BC Chen Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index e1945d4bd7c4..f3896e2d22ca 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -698,6 +698,12 @@ static const struct mtk_dpi_conf mt8183_conf = { .max_clock_khz = 100000, }; +static const struct mtk_dpi_conf mt8192_conf = { + .cal_factor = mt8183_calculate_factor, + .reg_h_fre_con = 0xe0, + .max_clock_khz = 150000, +}; + static int mtk_dpi_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -818,6 +824,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = { { .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf, }, + { .compatible = "mediatek,mt8192-dpi", + .data = &mt8192_conf, + }, { }, }; -- 2.18.0