Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp452881rwi; Thu, 20 Oct 2022 00:29:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sUgyrN1wWBMs4Mwz0Gu1a3g1AiH8d6IkiJhneFxVoGbxdvtxRVa+UR5PJrow0qPCrKr1L X-Received: by 2002:a17:907:a40d:b0:78d:9f66:e51f with SMTP id sg13-20020a170907a40d00b0078d9f66e51fmr9988936ejc.654.1666250948711; Thu, 20 Oct 2022 00:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666250948; cv=none; d=google.com; s=arc-20160816; b=ekH7N0Y+KUp9AHLJgjHpjsE3xmSf0YkRnSC2Rrrk8MOyWJVnAIRr+jmwzpBOb3mzlz 0OB/7xSCskz6c6yIHG7H1tSu4mFOwoHLDQl0eTs041paKGsVsG1PMSid2PsoU2CnZJIz 3nTtloUz9jdfpCq1uKyNdhfR05wvJjj2cSdghuidgkr9Kqnn6mZ0SJh26kJLIJQY2An2 Ki1BDvCIvXn51+nAJGJ5PbfVcqYEYcFkoq9AEAimFyKAmwI3zmNClGPnPestRSV0vqKC y8l+WxrchuJl/6XHFHnzjcVUv8mShWHTPrQ18j8TWSxMUM/OnOHH0ZuEpSq39WbOC+P+ pPrQ== 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=tLceiQ2yPMbbzASoCZppYzDfNjICYcjauyGMThNBJlY=; b=VKH5x7DGz1AmiHXlP+pg7ihHpCkavws/AS12tFGWqCLkCUXNVDdbu7VIV5UQ+e8otN 5CTPPNXONrFBrnM1n30A3NDL/beZ/WmPumwmMnX6C7/SwRBk2C+G5xc/jgUIkoFlb9jB FN1ORq5HE7pgxcWVa169IqW9+gUD+tDwckw2V/HY2t6pK/TWotS8TIgrUyM3YB6UNvzq 69dcPM9YMVWtrCD6P5gITwft+yvMH7jT3ONB1mNv1vcVAx1WdhVAIcDjaTzQSefS9gzF Q/0UHuOVxrtZuvucP0Itd2MmsSxVkTC6APspcv0Xo0zD2/JvJ3HGXfjGVP7d377yVyQL krjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KwEJquuM; 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 sh15-20020a1709076e8f00b007804f3dafbesi19352224ejc.587.2022.10.20.00.28.43; Thu, 20 Oct 2022 00:29:08 -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=KwEJquuM; 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 S229992AbiJTHG2 (ORCPT + 99 others); Thu, 20 Oct 2022 03:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbiJTHGR (ORCPT ); Thu, 20 Oct 2022 03:06:17 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E400E12790A; Thu, 20 Oct 2022 00:06:13 -0700 (PDT) X-UUID: 29987d01bf6142058e1ff86bbfce0777-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=tLceiQ2yPMbbzASoCZppYzDfNjICYcjauyGMThNBJlY=; b=KwEJquuMZXd/yOE4kGLZD57Z+23io7UyEbMZHhp+YFLCLkhwV3FANS0AVYqMFocmg97EVsNOs0eDFI+SSuRXErqYbksqIxn6GnhK2SZybbuYuwJCAiJvPLUPnCGlGTyx0/7QPgVjrI0bEidSc5vJXSnmZWyB37YE+nLeVvwTAQc=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:789a8804-92fe-49b3-8129-52fefae37191,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:c5eedfee-314c-4293-acb8-ca4299dd021f,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: 29987d01bf6142058e1ff86bbfce0777-20221020 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1500319558; Thu, 20 Oct 2022 15:06:08 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n1.mediatek.inc (172.21.101.185) 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 15:06:02 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 20 Oct 2022 15:06:01 +0800 From: To: , , , , , , , , CC: , , , , , , xinlei lee Subject: [PATCH,2/2] drm: mediatek: Add mt8188 dpi compatibles and platform data Date: Thu, 20 Oct 2022 15:05:53 +0800 Message-ID: <1666249553-15801-3-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1666249553-15801-1-git-send-email-xinlei.lee@mediatek.com> References: <1666249553-15801-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..5cefda4 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_edpintf_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-edp-intf", + .data = &mt8188_edpintf_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..5732ed8 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-edp-intf", + .data = (void *)MTK_DP_INTF }, { .compatible = "mediatek,mt8192-dpi", .data = (void *)MTK_DPI }, { .compatible = "mediatek,mt8195-dp-intf", -- 2.6.4