Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp231268rwi; Wed, 12 Oct 2022 19:15:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7tT/rlPcAGLyxGSuToQ3z+rTVQPGOXN2fdT39cV3VgUjTVmRsumvLJ6voOJ/pn7DiJLCum X-Received: by 2002:a05:6402:2402:b0:45c:a1ce:94d8 with SMTP id t2-20020a056402240200b0045ca1ce94d8mr6365612eda.50.1665627356016; Wed, 12 Oct 2022 19:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665627356; cv=none; d=google.com; s=arc-20160816; b=SoL3fvf9TN9DVHPrLKOrNZKfZI1KxL5ULSF4Ss5E9tPCClu5bIl3AZGl41ow5Yj2vy bupClXYP5qJOVb2maV7I17QcceNWTL+EKrzcFcgYO8U1npe468SDTOp3BmmExmLMkc45 GVio/rlG9CWMMJA+CmBpJJ29RyXS3zsOr2H5qyy13o3Ujkn60nNUZYEfwVDQtC9AIBwX CIAmABCwbNCEYKuwNLvBjOJvNR7SnZBbEJEbZWzqLs93Qe6dFU1Fv3FuqFESLHPge1OE Y2MdW3lermfr7VwkXJQSZmrQaLwJDZHfnh1PrXUjLyt2S5ncPxI5GVFFayA1J02MqzOe GU8A== 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=C8wm3yLrwDSBy/YD/5HZYd/rnp1fP4/PtO8SvC4ftvg=; b=fpH1eufEJuRcAEExstVMq7diU6KysWtqHHPhmkLM5emAJ7IU+eHMUxh1Shs3+5d05J exPtuqUvH+QH9WtOFlzeJvh8iVSuzWKr3Ge/nFaBzW7vdsAG6xV+z6FPRKvndgX6262q v8pSSpK6a22M10UIrtYSXVgzLpy29z9YnMxVtbiQ52GTrUwS/aYGaVs67m8uhzfMf2rM k5kjwKnCtCDRhfjV05zw8mfzDz71fjQ3WCqTcpj5+fZwxSLJ6nz0tkt2UpK715eOT9CL TZW25MfTGghJl672QqmGhxEGtTf9cpTpylgsaLRKKyjaCA1pYblI7HZIW1rwJMkTINW6 deTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hsHi3OdV; 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 q8-20020a1709060f8800b007835e4733cbsi12644366ejj.201.2022.10.12.19.15.26; Wed, 12 Oct 2022 19:15:56 -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=hsHi3OdV; 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 S229965AbiJMCDp (ORCPT + 99 others); Wed, 12 Oct 2022 22:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiJMCDn (ORCPT ); Wed, 12 Oct 2022 22:03:43 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A228212347C; Wed, 12 Oct 2022 19:03:37 -0700 (PDT) X-UUID: 2b5b41e0139b41d7a3805d4fda9d314f-20221013 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:e381452c-f63b-4cae-ad93-8fdd3a063cae,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.11,REQID:e381452c-f63b-4cae-ad93-8fdd3a063cae,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:39a5ff1,CLOUDID:d6975101-cdeb-479d-93af-53f947adce9d,B ulkID:221013100332BB4934TV,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48|823| 824,TC:nil,Content:0,EDM:-3,IP:nil,URL:1,File:nil,Bulk:nil,QS:nil,BEC:nil, COL:0 X-UUID: 2b5b41e0139b41d7a3805d4fda9d314f-20221013 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 493461172; Thu, 13 Oct 2022 10:03:31 +0800 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 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY autolearn=no 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 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(-) -- 2.18.0