From patchwork Thu Oct 13 02:03:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moudy Ho X-Patchwork-Id: 13005582 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 019E5C4332F for ; Thu, 13 Oct 2022 02:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=C8wm3yLrwDSBy/YD/5HZYd/rnp1fP4/PtO8SvC4ftvg=; b=MEbRyg+NkdGYym0dCykELXWjab h1TWc1SIbMFjdhseWllr7z39uymvMXUQq97rRzPCYq9GAAe8HpREN2BrpDMVqjMpOT0zHXlGcO0S9 jrCIMd7Zm1KSCl2vnyS5JrUYfLyT2uHO/3RpI749ztfmuR0lmJPJ6nxhIX+HcZQ8U8M599K40czql I0/iJqgadFpXlAzmP8+S0Di49EgMIzemsJl1+E0CarJNDiO9k1/7tG7I+DMneFzDGbcTn8Tz48Vny gNPStGHS3rOkj7AzHP7saB5FRZLHd/fTZp8X/4ZZ8p+uvsx0rIZ/95fiNUbR7foCftJKQRHMzfkyZ lBEM5urg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oio57-00AN0M-HI; Thu, 13 Oct 2022 02:36:21 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oio53-00AMx0-P4; Thu, 13 Oct 2022 02:36:20 +0000 X-UUID: 1be8f92ce8e04938908043d5cfb933d6-20221012 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=C8wm3yLrwDSBy/YD/5HZYd/rnp1fP4/PtO8SvC4ftvg=; b=hsHi3OdVnUFBmi5QudMhFFEyk8od/3ROVuJLTL0bDafduk+h35/+EornxQk2tgcn2AAuF4rylaY6MxpT+bgOIW94gggaYb6V30hMG6CJUCF3hu2EB1/pr9AHuVY7/hAJBX1zD86lgSUCUqrjOSaBd3fxAjAUmIxPu/RG2tLHw0Y=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:7f1279d6-5cf7-4130-b910-2129da29e154,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:39a5ff1,CLOUDID:6530c4e1-2948-402a-a6e4-b5d31fe11eb7,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 1be8f92ce8e04938908043d5cfb933d6-20221012 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1917892443; Wed, 12 Oct 2022 19:34:06 -0700 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) 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, 13 Oct 2022 10:03:30 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 13 Oct 2022 10:03:30 +0800 From: Moudy Ho To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Chun-Kuang Hu CC: , , , , , Moudy Ho Subject: [PATCH v3 0/8] add support for MT8195 VPPSYS on MMSYS and MUTEX Date: Thu, 13 Oct 2022 10:03:21 +0800 Message-ID: <20221013020329.8800-1-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221012_193617_901190_1F91E03C X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Changes since v2: - Depend on : [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097 - Split dts settings into two patches based on belonging to MMSYS or MUTEX. Changes since v1: - Depend on : [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097 - Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file. - Fix VPPSYS's MMSYS and MUTEX dts to pass the dtsb_check. - Rename mtk_mmsys_merge_config() and mtk_mmsys_rsz_dcm_config() to mtk_mmsys_vpp_rsz_merge_config() and mtk_mmsys_vpp_rsz_dcm_config(). - Clean up mtk_mmsys_vpp_rsz_dcm_config(). - Add a comment to mtk_mutex_write_mod() and clean it up for use in more than 32 mods. Hi, This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem), under which there will be corresponding MMSYS and MUTEX settings that need to be configured. Moudy Ho (2): dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYS Roy-CW.Yeh (6): dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS arm64: dts: mediatek: mt8195: add MMSYS configuration for VPPSYS soc: mediatek: mmsys: add support for MT8195 VPPSYS soc: mediatek: mmsys: add config api for RSZ switching and DCM soc: mediatek: mutex: Add mtk_mutex_set_mod support to set MOD1 soc: mediatek: mutex: support MT8195 VPPSYS .../bindings/arm/mediatek/mediatek,mmsys.yaml | 5 +- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)