Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp212250rdb; Fri, 6 Oct 2023 00:40:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVtm+4SUCssPSsV9Iop7iJNl4MQfVZKOW7CY6hJAhrWu1sau7A3LGb3JoGiWj45T9jq5OH X-Received: by 2002:a17:902:ac96:b0:1c7:66e2:e481 with SMTP id h22-20020a170902ac9600b001c766e2e481mr7574681plr.64.1696578039896; Fri, 06 Oct 2023 00:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696578039; cv=none; d=google.com; s=arc-20160816; b=OpghpcXdKLVjQ4hCrc5VuYyEEg7uJKrAvJeAXgFNGR9ynCLwIiqkWqQg5v7KzT9kiC vP9WkhVrCaIeyGB0tlnGk742sjzprpCFLimMujjEPYLVwpbtErtD07YjrrkIFLgTM0kv hPT2D3vYe1Uo4l+QbKXC6a/kEtDNa/zAo4M836c/oCS495tEQHE0nhcECiXvJqCuNTaD 1sSQu/elORUBKRVuQSrtYr8iICcjkpH/+LXyXDu1ErosZCPjbhJEESSVBtPfobpH7ZHT 3MBbpKjnVN83MHfXMOrg6MLcGf9Xk5NKbS0BX993npgKtd+DXT2PPrgCbG8nt+V9K78q ylcA== 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=xuYB8jdgmzU1QH0j3GSOoWIQlfm7CLnlDGenylU6HlE=; fh=SdaOB8wyhjb8jZGt+kwBIYyXxl3p6ymFmN2Dlnz7JCc=; b=x66PDz2wTPv+bQvKaWLoiL697SANRWlj7z2o9EesKKWPegwX7yaZ/YFD4wZpQxQJJ1 rRXVIY6Jkt/IbSGADybRwlRJ12hbqeqNVtVSGBDE8dzupZSItEaGL4U/6SOuU3chc38j TVKAbSG3b0zMyZjL/Ry4M+PzAzrURQ+uUERvHDvZR7lT3Epmh1JOhcbY49Bgsyoa7Mx3 fgJ1n570suNa0Vx3SQP4fSnK6vNxRfJuEfYhMgUb6rhd+t8MbzG9iljBUqak0DRC96ug IicrIovgXGvD3Ssqaxw9Nakeepghu6ShiLAEt4dwQn6vDq92OKiIGCA84I4ZN9e/hsxF QpTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MGshxL75; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id le14-20020a170902fb0e00b001c43fce9c7asi2983646plb.444.2023.10.06.00.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 00:40:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MGshxL75; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9101D806598E; Fri, 6 Oct 2023 00:40:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbjJFHj5 (ORCPT + 99 others); Fri, 6 Oct 2023 03:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230437AbjJFHjA (ORCPT ); Fri, 6 Oct 2023 03:39:00 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC93101; Fri, 6 Oct 2023 00:38:47 -0700 (PDT) X-UUID: 602903b8641b11ee8051498923ad61e6-20231006 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=xuYB8jdgmzU1QH0j3GSOoWIQlfm7CLnlDGenylU6HlE=; b=MGshxL75sOr20iCwfSKDeETXMSYacaiF7nqDid6bh4+G+mNEY0a2lm14Z0RkhDQNURSy5RxmK6XupWQgpNvis8XhidBrUspGHysLwJNLfiL8i9URiKUsuXSK40xyTno6bJQ2R9SGQvnhKAobLyQeWd+EDS9KebAa8Q+QDQL0wp4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:19e43d3b-9890-4743-915b-5868a797294d,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:5f78ec9,CLOUDID:f3adc014-4929-4845-9571-38c601e9c3c9,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 602903b8641b11ee8051498923ad61e6-20231006 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 721719642; Fri, 06 Oct 2023 15:38:43 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 6 Oct 2023 15:38:42 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 6 Oct 2023 15:38:42 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , CK Hu , Krzysztof Kozlowski , Matthias Brugger , Rob Herring CC: Conor Dooley , Philipp Zabel , David Airlie , Daniel Vetter , Chun-Kuang Hu , Mauro Carvalho Chehab , , , , , , Singo Chang , "Nancy . Lin" , "Jason-JH . Lin" , Hsiao Chien Sung Subject: [PATCH v7 23/23] drm/mediatek: Support MT8188 VDOSYS1 in display driver Date: Fri, 6 Oct 2023 15:38:31 +0800 Message-ID: <20231006073831.10402-24-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231006073831.10402-1-shawn.sung@mediatek.com> References: <20231006073831.10402-1-shawn.sung@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 06 Oct 2023 00:40:37 -0700 (PDT) - 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) Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: CK Hu Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index cde69f39a066..212475436f47 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -288,6 +288,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 = { @@ -328,6 +329,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", -- 2.18.0