Message ID | 20230113054304.21841-1-moudy.ho@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp101693wrt; Thu, 12 Jan 2023 21:51:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdYMXc/Mz4c53o3HrQDgSG0IoehzJ/QvVW13dCXL23upzPUjDQ9QD3FgY+I0B7iJ8KmFMa X-Received: by 2002:a17:902:7401:b0:194:52ed:7a32 with SMTP id g1-20020a170902740100b0019452ed7a32mr7512527pll.29.1673589111972; Thu, 12 Jan 2023 21:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673589111; cv=none; d=google.com; s=arc-20160816; b=PjAGOA/Wu7h8/qvJDQAobYSQY3pXTw8fhwjJwWMuTufdaR8KKpemEs6DZGZLgFgtxW 2aGs7XlQAd0rszm6uevRE6Bbw7pW5i/dIxa0BhLfmPdrvck8bZGHnJL6CQ96d2J1aS/2 eaQCqKcI7WHsl2flFq3mWbgC4MKZdVIe25j4PehAX5JJSYRyrtiJiz9/o/pKZtbgoVDz Zm6zNVgmiXMDpRLz8d3zTHeZGBo6yo5YqoGCmFDexhUJSvNxgkQiOJQt6g45UN8RmW8D Oc8eqxeFWLGaS0IKkxVavJ4W7JUBjj3b5RmLRFHiTvG0hfsgyf9sgsCFyTN2q3kyLL+Q YVow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=qv+KkInTLw4al9JNASorMveEjnaJV7ozjLhA4jeinMs=; b=Q06FhRs4Jlpn0JHyA215rVwfC82KkSGkZNFrujACNDaxXaMmo0iSeOTpt56WWXswbQ j8cSD5mPBbWuuek2S4mpbnatSE48xupooTlb5+Oimzzrt/jJJ8Y8knjHnjetWblsBsZ5 9HWFjWjsdI5XwKhytWfKHg8v28iRqdv6PAS2NRM6cN+SPq3u7nVVqpSqAbaPDb/gPE2t XT9BYYyEYoS1HHsqKP+u3o9J8sQPa3nz6Za49ThlgruhEn9nojRQlkS7KOEsUU//SmKn KwP7SK572CzTY2QghOX0/1AGxHPpcT6ekdIS0pOakW7c7t8OpZ+OktNnxCHRiajW+9LW Q2NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hNqr8ttZ; 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 q16-20020a17090311d000b00188f3bd383csi20967594plh.266.2023.01.12.21.51.39; Thu, 12 Jan 2023 21:51:51 -0800 (PST) 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=hNqr8ttZ; 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 S238902AbjAMFo4 (ORCPT <rfc822;zhuangel570@gmail.com> + 99 others); Fri, 13 Jan 2023 00:44:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237640AbjAMFnQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Jan 2023 00:43:16 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A3C9687B0; Thu, 12 Jan 2023 21:43:14 -0800 (PST) X-UUID: 27a6938a930511eda06fc9ecc4dadd91-20230113 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=qv+KkInTLw4al9JNASorMveEjnaJV7ozjLhA4jeinMs=; b=hNqr8ttZCzMo0v5kzEUlsUbplwl2+JORVhsxiywWtG8Zf+ZlhjA6O14TmhQX69QC3V0MIIlzyMVNhVeRTvFvsAAGjg23MqemX+cAXjqTeeIzdG0RwqIuzs0Jb+cFciRCS2Jzn6lZi8F/Cnvgi1PpZfksdeoxut89q7EFLbG2srM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:9099235e-9b66-459e-a2bc-f2b0105d3d39,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.17,REQID:9099235e-9b66-459e-a2bc-f2b0105d3d39,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:543e81c,CLOUDID:6436b4f5-ff42-4fb0-b929-626456a83c14,B ulkID:230113134309PR28TXVK,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-APTURL: Status:success,Category:nil,Trust:0,Unknown:1,Malicious:0 X-CID-BVR: 0,NGT X-UUID: 27a6938a930511eda06fc9ecc4dadd91-20230113 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from <moudy.ho@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1160642785; Fri, 13 Jan 2023 13:43:06 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) 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; Fri, 13 Jan 2023 13:43:05 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 13 Jan 2023 13:43:05 +0800 From: Moudy Ho <moudy.ho@mediatek.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org> CC: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Moudy Ho <moudy.ho@mediatek.com> Subject: [PATCH v5 00/10] add support for MT8195 VPPSYS on MMSYS and MUTEX Date: Fri, 13 Jan 2023 13:42:54 +0800 Message-ID: <20230113054304.21841-1-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 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 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?1754885376751582029?= X-GMAIL-MSGID: =?utf-8?q?1754885376751582029?= |
Series |
add support for MT8195 VPPSYS on MMSYS and MUTEX
|
|
Message
Moudy Ho (何宗原)
Jan. 13, 2023, 5:42 a.m. UTC
Changes since v4: - Rebase on linux-next. - Remove MMSYS fallback compatible. - Migrate MT8195 VPPSYS0/1 from clock to mtk-mmsys driver. Changes since v3: - Rebase on linux-next. 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 (4): dt-bindings: arm: mediatek: migrate MT8195 vppsys0/1 to mtk-mmsys driver dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYS clk: mediatek: remove MT8195 vppsys/0/1 simple_probe 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 | 2 + .../arm/mediatek/mediatek,mt8195-clock.yaml | 16 --- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 26 +++- drivers/clk/mediatek/clk-mt8195-vpp0.c | 58 ++++++-- drivers/clk/mediatek/clk-mt8195-vpp1.c | 58 ++++++-- 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 +++++ 12 files changed, 356 insertions(+), 57 deletions(-)