Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5805273rwb; Tue, 17 Jan 2023 19:29:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXucU6rhH/9G3FEYOPOjNiLpUNRQ+v2Ez2HJ6L+PD+1hphLlRjr4aj41ANOiKsQ2YaAX2jlJ X-Received: by 2002:a17:906:60d2:b0:872:6bd0:d2b with SMTP id f18-20020a17090660d200b008726bd00d2bmr4572195ejk.45.1674012555623; Tue, 17 Jan 2023 19:29:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674012555; cv=none; d=google.com; s=arc-20160816; b=tD23TVS3hW3ZlUV84+gfSo+fdKWb+XlDLTZx5FAtI4455iaO6lMKYkjkk7uLcYLbJh 4u9+whrL3n+6DYBcIPmnj7mKQs+UX/0W0OIZgqgoNV8MlDZXtu0oxGubB6PHXaVysSPU KvKETXpuseTpk5lJU08yqGWdgIUmtvaBTrHPWwKLJLgEfxoq4HEkoT0VcZDWjHS+beg9 TtBm6u0JPkTENQugDF1V4K2aBXaHkB3tT7R6oLZIsuKZzY6BYdIpwVP+6uBLRUfORSvD 0gzDWLKxQoYlz7zhGkBKCYiS+hmKvt9+t4LyKUgB+mfPud//9XVzlcM+2aAuA1lybTO2 iKJg== 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=ycH4P5KAsAz3Rkgh22rbb/wU5u/MiEjLIddM/CcUkAc=; b=sQbT3BUEUx5k5U/cBLC66CYkYPILFp8sGeTUtA9ZclMNT4SIQ97psUGxr1dRPZ/P95 ggZTbFXK/7byi04K7diOq5LB9RnNMsEaMj4mERQiUJELN3wV/KfKSn5WkHje7Z6ke5tk wxsH4KM0QU85vO7VyYg8A0DKReynO0a4sOzzY8uoWzsBK3xkjWxSjmh+1pdMzHQL3bi/ hxV66LoRs7et7fXQXsAD9GN4v/0SyzNtOTWRcqYe+hrn9wq2jS/9uqbszvm/nZlJioWP 1sm8QVqVZZI7sfarRAtVyYYk5K897olPypT/yXNkGn4xPQP+pMiCK3Y8vAJQfGE0U4E3 KtCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lirSJf4e; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg6-20020a1709072cc600b0086e4b1b433fsi12908842ejc.802.2023.01.17.19.29.04; Tue, 17 Jan 2023 19:29:15 -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=lirSJf4e; 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 S229638AbjARDVn (ORCPT + 46 others); Tue, 17 Jan 2023 22:21:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjARDVe (ORCPT ); Tue, 17 Jan 2023 22:21:34 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41815140B; Tue, 17 Jan 2023 19:21:32 -0800 (PST) X-UUID: 2fdf57a296df11ed945fc101203acc17-20230118 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=ycH4P5KAsAz3Rkgh22rbb/wU5u/MiEjLIddM/CcUkAc=; b=lirSJf4eA8NjiOxSvtYmCAfz3Gk8vtSr4A5Sb5bprsSHpJeiF2TcyM4ktO/n3LiIQDvwYm0v5Yxm+komYtSctOpdnuMBwQlDE8aGWU58MdwU5RBzEUjSh+Ok3vc1F3vU9X1O+cfR+oiAhMfc7UkvWFDJ6ffiZ/Az5y8RdW1QzJQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.18,REQID:da17ff3a-a40b-4907-bf5e-04795fd13fa3,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.18,REQID:da17ff3a-a40b-4907-bf5e-04795fd13fa3,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:3ca2d6b,CLOUDID:cf59f654-dd49-462e-a4be-2143a3ddc739,B ulkID:230118112126YRNNTOKC,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-BVR: 0,NGT X-UUID: 2fdf57a296df11ed945fc101203acc17-20230118 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 942765737; Wed, 18 Jan 2023 11:21:24 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) 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; Wed, 18 Jan 2023 11:21:22 +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.792.15 via Frontend Transport; Wed, 18 Jan 2023 11:21:22 +0800 From: Moudy Ho To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Michael Turquette , Stephen Boyd CC: , , , , , , Moudy Ho Subject: [PATCH v6 0/6] add support for MT8195 VPPSYS on MMSYS and MUTEX Date: Wed, 18 Jan 2023 11:21:16 +0800 Message-ID: <20230118032122.29956-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: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v5: - Depend on : [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=713031 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 (1): arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYS Roy-CW.Yeh (5): dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS arm64: dts: mediatek: mt8195: add MMSYS configuration for 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/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 26 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 42 ++++++ drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 7 files changed, 245 insertions(+), 11 deletions(-) -- 2.18.0