From patchwork Thu Oct 20 07:05:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WGlubGVpIExlZSAo5p2O5piV56OKKQ==?= X-Patchwork-Id: 5984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp106304wrs; Thu, 20 Oct 2022 00:08:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UkqNgWg1AJUCr6KV6b4PANpleEUNAZcuz1W48EVPxdL9yASHCcUDBqgmcxTafFS/Q/6jE X-Received: by 2002:a05:6402:2552:b0:45d:ecf:b23 with SMTP id l18-20020a056402255200b0045d0ecf0b23mr10878283edb.255.1666249698245; Thu, 20 Oct 2022 00:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666249698; cv=none; d=google.com; s=arc-20160816; b=ScUHlFqPaggHdoaHac8/FB+M/mBb0BJ+bOPwkvxFREvkMbstDIuD7wje41YcZCfbJw 5etPl0psd5JTjyw5kBvlMyqXeGm+gT6OMh+oiXXFilGL8T9AQ8G8eWnrcfN2J+D9f4Mk 4veJuhatWi25nEnS4RY0je0FTL4/ufJRsxF/hUTr123oCfMO29QW0KUVG/chYMqC+iPp uJeJf3NL3CzNrUEmRpxW4TdB+TMweMiM5GtblbXFjHw079CCFyQo4A0gEVjMHfOEgV0T A4jh35dktYHH4x2pad1SJ7MCUO8mawLNPfhhp3SfwL8kN6BLCsNEAIoRRuzOMn6KiQdJ AKQg== 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=r9WeO21nD8/RBB+ni37nuqxV3+S0pvP1ptA35lbhxHs=; b=vK00kuYSxanC2eiRgJN1EuK8mmVnwimPIHsCBim0y5rXs4aKmj746vw3EgrRRdyz4U fzL3C1l8h/Y5tLelA2QLnTM94I5KLb0i+GDi1YzUwe60W22Tw9QCZK6Iv+xbluAs3gZh skFer1xAecfngxtGoIyHvv0CNgLhOXdI4qi2rsWgM0/RtYAqGsgw3mVZ0ZQ5hsxFy2PG CLtfjXHLf+mFI3ZFWC2uf1XSpLl7Bk34G83FHPemxk4OcSGA+Iv3zgDn9rkTv4hQ5lcD ICIOgKtoLQuVuzP/fdoxkcewPhVNoqpAuZrcdDr0V8PwN0XasbiDZrzCg4Q/h8AN6gVL QOEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=vHY1SAYF; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020aa7c404000000b0045832636efesi14166922edq.239.2022.10.20.00.07.41; Thu, 20 Oct 2022 00:08:18 -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=vHY1SAYF; 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 S229934AbiJTHGW (ORCPT + 99 others); Thu, 20 Oct 2022 03:06:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiJTHGR (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 D6C5413ECD8; Thu, 20 Oct 2022 00:06:08 -0700 (PDT) X-UUID: c413206ecfc343eeae46ad0a94cb80e9-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=r9WeO21nD8/RBB+ni37nuqxV3+S0pvP1ptA35lbhxHs=; b=vHY1SAYFueVip00KvMKIJegaqThQbSK9eCws4xHub4PHe2QHBxWg1mQbn0nbwWJyyDgPMmB2Uo3SHXCUA+MdcfLwd42AwuM86SEWzM/aY9gnIaO1FdITgdowLAX5WBfnb3uKEmHV8gXFumXMakhkiwWUeVXgemMPTSpANxXDvP0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:112f1730-c660-4f86-a32b-c2a0544f943b,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.12,REQID:112f1730-c660-4f86-a32b-c2a0544f943b,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:62cd327,CLOUDID:446c64a3-73e4-48dd-a911-57b5d5484f14,B ulkID:221020150604TUJFT73E,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: c413206ecfc343eeae46ad0a94cb80e9-20221020 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1735121377; Thu, 20 Oct 2022 15:06:01 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 20 Oct 2022 15:06:00 +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:05:59 +0800 From: To: , , , , , , , , CC: , , , , , , xinlei lee Subject: [PATCH,1/2] dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8188 Date: Thu, 20 Oct 2022 15:05:52 +0800 Message-ID: <1666249553-15801-2-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 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, T_SPF_TEMPERROR,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747189443124213586?= X-GMAIL-MSGID: =?utf-8?q?1747189443124213586?= From: xinlei lee For MT8188, the vdosys0 only supports 1T1P mode while the vdosys0 supports 2T1P mode in MT8195. So we need to add dt-binding documentation of dpi for MediaTek MT8188 SoC. Signed-off-by: xinlei lee --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index 5bb23e9..963f82b 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -23,6 +23,7 @@ properties: - mediatek,mt8173-dpi - mediatek,mt8183-dpi - mediatek,mt8186-dpi + - mediatek,mt8188-edp-intf - mediatek,mt8192-dpi - mediatek,mt8195-dp-intf From patchwork Thu Oct 20 07:05:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WGlubGVpIExlZSAo5p2O5piV56OKKQ==?= X-Patchwork-Id: 5985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp106308wrs; Thu, 20 Oct 2022 00:08:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eHnfRct8aFXpo39VfxOX78x1XCXNt/l2BLc/RW4ZhLLbNa+AOhN9AW5Vl5ZAYJIfwIMwv X-Received: by 2002:a17:907:270f:b0:78d:728b:ff4 with SMTP id w15-20020a170907270f00b0078d728b0ff4mr9948492ejk.501.1666249698815; Thu, 20 Oct 2022 00:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666249698; cv=none; d=google.com; s=arc-20160816; b=OVnxpjyuN006mjugQiXSG0aYwoqiqB6lcRXHKFqgENF21+DvYlyx8EM5bac7c6nMeB 2qKtAWzpUgjrV7jKurd7ppaqE/eEsU0FUNeAqgWUlJ610VLIbHdNEgSpRCR43ACQJ7ZN xL/G/F+9NUBZc097TjFdOT6Pr2l0rZlUCye5UFI48rnSZW4izw6EYTXdaBQ6i6gJfix7 KIluicdNPxSIdaD33mph50m2OPren2Tkc/UWNtoL1OFTMpifwA8GKGEwXtkRW6hOWIp7 YKv8/5DlsLhOqiQC97SUvl9yzH1qIKhHsLTHIxa3C0A/bUVVG68qRnvBMNnFUar2/aGV xqkw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a170906b28c00b0077d562462f5si13380288ejz.381.2022.10.20.00.07.43; Thu, 20 Oct 2022 00:08:18 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747189444085312674?= X-GMAIL-MSGID: =?utf-8?q?1747189444085312674?= 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",