Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp830547rwi; Thu, 20 Oct 2022 05:54:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7FiYQbw1ilSRINkOQ/FRnNYXBv86jU+6xhGtAQsty7BB2gAeEDocIpyqfa/4wn9s+/8s+y X-Received: by 2002:a05:6402:2949:b0:451:fabf:d88a with SMTP id ed9-20020a056402294900b00451fabfd88amr11868877edb.324.1666270451157; Thu, 20 Oct 2022 05:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666270451; cv=none; d=google.com; s=arc-20160816; b=vtJSy9GWXGuhWYHidM1GfQsrHLhw7xXVK/jpb2/YnqilfGLpppNAHwoKadxAAPp61x NkRnH8Mtha3PfJbCY0qUimFKqiT6u0yIzmdwvI52FnqVyF2Rte8ouznG3pMf1Q+bH7i0 TkC55O7G1v+9Adu5ZegGDsMGCH7vmCPzlqh0exTbIX0LzOeoijyY1S8KpFgh85jqpVe2 X3zOCX+Pi7hTHL+7EqmfB1WXyto717pVo7FkZMUY6FvkE71ep//IznVcvtjR2u9FyODn LZmy54SR5d7IOBqcjSnXQYwUFkJ/WaqAvXsMuinY4J7A1FLG1Iu5Dp9t2KH8KzcfhO/U 1+Zw== 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:dkim-signature; bh=NV7/biiNpmvDMy3keqojWAK7SpRHqd9pBuTEI3/Uu4k=; b=Vm+csQ+niIKiUi10IKVkeRvsbdUUkB5/2XuDBcb9cFbetf3DQdwTbn+OMwcMR+2Dy/ bD8a7iiWrRw5ODv/iDB960rWzSs+NzVWfiFKdhDwf16FTlXn5olBOYbZFjhAvR9HNXpn RgvUVR+YnpmVbDanYox92oA8SyLHvz6JAv0cfv1j6x8WpSSysBE4wcyZeyXaoKtD7gKB 0XmJWT1rPL76kxHjRrmqVFmwdKA+bw8Gv3h4TfUU/kj0X6zHnHtmzq7TSd99a4n3h8q/ 7vWay1maiRhYHz/duz4aMov/XDfHPSHq73ItljQvMs1SLFnI0Y8d0nAIbD8/uOPfQcQl mJPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Wrt9Ggrp; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a508d09000000b004591f959c3bsi15275678eds.427.2022.10.20.05.53.45; Thu, 20 Oct 2022 05:54:11 -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=@mediatek.com header.s=dk header.b=Wrt9Ggrp; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231489AbiJTLqR (ORCPT + 99 others); Thu, 20 Oct 2022 07:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbiJTLqM (ORCPT ); Thu, 20 Oct 2022 07:46:12 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C436132DD8; Thu, 20 Oct 2022 04:46:08 -0700 (PDT) X-UUID: c260e7623f7d421f80a0774c8674b3af-20221020 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=NV7/biiNpmvDMy3keqojWAK7SpRHqd9pBuTEI3/Uu4k=; b=Wrt9GgrpgRDCXODU1A4ygnxXaOVWQzpLUo+DkKkUBMoMz+b7NDgQYLE5fBJP/bq+l6IvwY/806MyOIyzXUMHpcTXFFIyJRtzfT6Kze4v2Y1QbDEalxL9cahjQ8PfbUxqEdLY8IwMc43oobpOGVMfVJQ5CGeloxL47Tit/A3+eL8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:355ee3b6-b978-4897-8f56-783250f412f1,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:62cd327,CLOUDID:87556da4-ebb2-41a8-a87c-97702aaf2e20,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: c260e7623f7d421f80a0774c8674b3af-20221020 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 734755674; Thu, 20 Oct 2022 19:46:02 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 20 Oct 2022 19:46:00 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 20 Oct 2022 19:46:00 +0800 From: To: , , , , , , , , CC: , , , , , , xinlei lee Subject: [PATCH v2,2/2] drm: mediatek: Add mt8188 dpi compatibles and platform data Date: Thu, 20 Oct 2022 19:45:53 +0800 Message-ID: <1666266353-16670-3-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1666266353-16670-1-git-send-email-xinlei.lee@mediatek.com> References: <1666266353-16670-1-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 From: xinlei lee For MT8188, the vdosys0 only supports 1T1P mode, so we need to add the compatible for mt8188 edp-intf. 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/mediatek/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 = { .csc_enable_bit = CSC_ENABLE, }; +static const struct mtk_dpi_conf mt8188_dpintf_conf = { + .cal_factor = mt8195_dpintf_calculate_factor, + .max_clock_khz = 600000, + .output_fmts = mt8195_output_fmts, + .num_output_fmts = ARRAY_SIZE(mt8195_output_fmts), + .pixels_per_iter = 4, + .input_2pixel = false, + .dimension_mask = DPINTF_HPW_MASK, + .hvsize_mask = DPINTF_HSIZE_MASK, + .channel_swap_shift = DPINTF_CH_SWAP, + .yuv422_en_bit = DPINTF_YUV422_EN, + .csc_enable_bit = DPINTF_CSC_ENABLE, +}; + static const struct mtk_dpi_conf mt8192_conf = { .cal_factor = mt8183_calculate_factor, .reg_h_fre_con = 0xe0, @@ -1079,6 +1093,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = { { .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf, }, + { .compatible = "mediatek,mt8188-dp-intf", + .data = &mt8188_dpintf_conf, + }, { .compatible = "mediatek,mt8192-dpi", .data = &mt8192_conf, }, diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/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[] = { .data = (void *)MTK_DPI }, { .compatible = "mediatek,mt8183-dpi", .data = (void *)MTK_DPI }, + { .compatible = "mediatek,mt8188-dp-intf", + .data = (void *)MTK_DP_INTF }, { .compatible = "mediatek,mt8192-dpi", .data = (void *)MTK_DPI }, { .compatible = "mediatek,mt8195-dp-intf", -- 2.6.4