Message ID | 20230614073125.17958-14-shawn.sung@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1075521vqr; Wed, 14 Jun 2023 01:11:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5PTUOAcfdH6DnDb0DLdmiTuqwYe+bfgyvq+d9z/MUqfDUkJSjG5f7Qr+5JVlVzZizYucEO X-Received: by 2002:a17:907:7fa3:b0:978:a555:9bce with SMTP id qk35-20020a1709077fa300b00978a5559bcemr15003499ejc.74.1686730291850; Wed, 14 Jun 2023 01:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686730291; cv=none; d=google.com; s=arc-20160816; b=f0Na4M4Wh6vC2lm4Vkux47JzesUXpxYr5eWVNlQC2NRHpZqBNototwJpMHUKRmqsIj YHmceU4o3OogqbvRmDfdBHGPFM+/6deWr7jNNR3zoYnJyeuXxyiITL2vJg90oXuS4NSV GbBoPK6Ex7W21oRmPfasv7+r9eDDklWJ2WgNZATxiU15GERyiwcMR8xWdw9LF3WVFxLu 3FFcqAViIQXtO8qEPWbew1CIBxFdi9l9u8HGAsjwm9J118tZLfAfyyviDBPPwRi8Go3l aYH/PdyIts5VNveCZEbAtJ650H03st1rij5mjdOL7rhZBjhE2iEJdyIeDvSqng4r27KA qqYw== 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=i9jj0vUqT26774bVi3zs8Yawe1psaWVvLBuHIIfHyzU=; b=PiqjiN2PmKJW4rHVsVLlT4tVW42tk2MK7MTX/Ehk+Lfp9SE0hU50QUOsH3LRwZQVfT +LsKZWGgRdIrBcR+oWQvSN2veSdSKGmoOwYV5ajSUiCbb3B2Xd2hcC8V+d36/FbS5EXt VSDr9YugrYX1izvXxG3IvSWovqdmt0bbBlcoDEId3iKxpevdqqO2/FiqHaXPkNJsnhOx Yx2UqSuDzeFXhx3iLQWZedrFPr8BCnVXm/+8UY9Klx0x+uZdudDK0fscpbKltc6vaGt6 5pYpB0CJNrlet9eTn3NPjLiDIlH2BcxU1eg+J1Sep0Ff+qxSHjVvmBdPttuj7MHg7IE+ omLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=i9QFnTmD; 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 u4-20020a05640207c400b00516333867fcsi8573572edy.593.2023.06.14.01.11.07; Wed, 14 Jun 2023 01:11:31 -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=i9QFnTmD; 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 S243543AbjFNIGY (ORCPT <rfc822;jesperjuhl76@gmail.com> + 99 others); Wed, 14 Jun 2023 04:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242814AbjFNIGJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Jun 2023 04:06:09 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 579FA187; Wed, 14 Jun 2023 01:06:08 -0700 (PDT) X-UUID: 846fdc6e0a8511eeb20a276fd37b9834-20230614 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=i9jj0vUqT26774bVi3zs8Yawe1psaWVvLBuHIIfHyzU=; b=i9QFnTmDdSO6V6uid09kJlYK2midhgySUIV14wD1lbmEaFwsuH9tjviuQjjN3QN4tp3RsrResMTHwkFJGDdiC+x/IUamQCGQFZfVXjof3nrbJeP4AlKnjYkx1KB3Jo5p4vI9iwddBwdjee3NrP8bqnTkGSJWpO9NLCHL72W7eCY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:4cf6f060-8677-4e2c-899d-55ac6f2159fa,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.26,REQID:4cf6f060-8677-4e2c-899d-55ac6f2159fa,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:cb9a4e1,CLOUDID:0b49933e-7aa7-41f3-a6bd-0433bee822f3,B ulkID:230614153148UFGB8BYI,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD, TF_CID_SPAM_SNR X-UUID: 846fdc6e0a8511eeb20a276fd37b9834-20230614 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from <shawn.sung@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 30577067; Wed, 14 Jun 2023 15:31:46 +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.1118.26; Wed, 14 Jun 2023 15:31:45 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 14 Jun 2023 15:31:45 +0800 From: Hsiao Chien Sung <shawn.sung@mediatek.com> To: Chun-Kuang Hu <chunkuang.hu@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Philipp Zabel <p.zabel@pengutronix.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <devicetree@vger.kernel.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Singo Chang <singo.chang@mediatek.com>, Nancy Lin <nancy.lin@mediatek.com>, Jason-JH Lin <jason-jh.lin@mediatek.com>, Shawn Sung <shawn.sung@mediatek.com> Subject: [PATCH v2 13/15] drm/mediatek: Support MT8188 VDOSYS1 in display driver Date: Wed, 14 Jun 2023 15:31:23 +0800 Message-ID: <20230614073125.17958-14-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230614073125.17958-1-shawn.sung@mediatek.com> References: <20230614073125.17958-1-shawn.sung@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,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768664902540375684?= X-GMAIL-MSGID: =?utf-8?q?1768664902540375684?= |
Series |
Add display driver for MT8188 VDOSYS1
|
|
Commit Message
Shawn Sung (宋孝謙)
June 14, 2023, 7:31 a.m. UTC
- The mmsys_dev_num in MT8188 VDOSYS0 was set to 1 since
VDOSYS1 was not available before. Increase it to support
VDOSYS1 in display driver.
- Add compatible name for MT8188 VDOSYS1
(shares the same driver data with MT8195 VDOSYS1)
Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 +++
1 file changed, 3 insertions(+)
--
2.18.0
Comments
Il 14/06/23 09:31, Hsiao Chien Sung ha scritto: > - The mmsys_dev_num in MT8188 VDOSYS0 was set to 1 since > VDOSYS1 was not available before. Increase it to support > VDOSYS1 in display driver. > - Add compatible name for MT8188 VDOSYS1 > (shares the same driver data with MT8195 VDOSYS1) > > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> Reusing data/code. Just great. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 6dcb4ba2466c..613093068bb4 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -287,6 +287,7 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = { static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = { .main_path = mt8188_mtk_ddp_main, .main_len = ARRAY_SIZE(mt8188_mtk_ddp_main), + .mmsys_dev_num = 2, }; static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = { @@ -327,6 +328,8 @@ static const struct of_device_id mtk_drm_of_ids[] = { .data = &mt8186_mmsys_driver_data}, { .compatible = "mediatek,mt8188-vdosys0", .data = &mt8188_vdosys0_driver_data}, + { .compatible = "mediatek,mt8188-vdosys1", + .data = &mt8195_vdosys1_driver_data}, { .compatible = "mediatek,mt8192-mmsys", .data = &mt8192_mmsys_driver_data}, { .compatible = "mediatek,mt8195-mmsys",