Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp198324rwb; Tue, 4 Oct 2022 02:45:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7jR/5bx28k/uYEIpYwDt0butK9o/dK8VeeD8dbL71qDlVjHLWcopMFhYQJ7tLawv6MJpW3 X-Received: by 2002:a17:907:75ea:b0:78d:1c8:9656 with SMTP id jz10-20020a17090775ea00b0078d01c89656mr3134815ejc.367.1664876736846; Tue, 04 Oct 2022 02:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664876736; cv=none; d=google.com; s=arc-20160816; b=xyTlwqXIXzY7HuC6t9BInea9NOGh9ngDBDI0QBj1/buzXVs+HPTExXm/JMPrdsyOXN O1CHucqTyE0bBnMwpWBh+V0sSoex6joFHmcI8d5qZzwj44lvYyP4+D8u419NrEp+4nV7 pUlgQs7vp0ThkpfVhWYJ24YopTkMDYVD5FUJ4TL8ikcV1wmmijHGqwjChndqJ6uKGPzg YQ2CLOgqO1plOwWlm0sBOVRB6ETcui5P8X0znRQM2bSN9eu1B70x0DevLPHe6IX0QczX U509mbjLBW7owD3t4fmobZEp8cfC1AKgDMoL7rujAJQFRAAtD0Wy3DRbL5ejae7aZ1pE 5jGA== 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=qldc0fRVCo0APH/0FzqZyTCrkn487lxLAcRBXAzA2AI=; b=ksWUtz3B0EzveQPJJttl1Mc5rPHNGYCaIdWOa535lcbC3ZWSqKzp2hYzs2UM20iT+a f3W94Nj7wGLLCa9UvmlxAyo8lWitK7n4OkckI3bRloS4EDLkF5qpKn6qZDVeF4/HUeRM j4+mCud7whO1AP3GJ2Ngnig6gKbTyAD8l00L0KoT1PMcUqRRYhqh57W1S5IWsnjTW3dh VhM/KMZjVNHSaFXbFPm4pYQj/q8Qb569n/E9KnsYhiENjmGO0JK9AcyxiLAyIVbHQM5R QiF2OoiPd3wrpbpLSAmGVQI6qh7tD47eHSvxswJr3vAMgBXsb4VR/9aeWUUBRPkrjjlt oOpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aWEEb8iV; 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 ez16-20020a056402451000b004591f95a2f7si2726514edb.163.2022.10.04.02.45.10; Tue, 04 Oct 2022 02:45:36 -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=aWEEb8iV; 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 S231283AbiJDJjN (ORCPT + 99 others); Tue, 4 Oct 2022 05:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbiJDJiK (ORCPT ); Tue, 4 Oct 2022 05:38:10 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525FF51A1A; Tue, 4 Oct 2022 02:34:08 -0700 (PDT) X-UUID: cbbd88093cd3471c9fc2fbfe83ce75ea-20221004 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=qldc0fRVCo0APH/0FzqZyTCrkn487lxLAcRBXAzA2AI=; b=aWEEb8iViN7bhrrw/P2iE/vvd8qSAOBYuD6evLeYzqdmvAvwT2lYsLtBC+6U61m72giL3y/tbeBqtgjde7GZjh3UwoiLzccVUjuiaBVAmndkmDkczdbJiz+anE5UGGZM9DJq9pOgOj4yzwADJJC5cMirUT+zgLxZOO8/25t1Jdg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:7b132cb9-333b-4050-8b0a-6de38a16f9f4,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:4013ee07-1cee-4c38-b21b-a45f9682fdc0,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: cbbd88093cd3471c9fc2fbfe83ce75ea-20221004 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1555811844; Tue, 04 Oct 2022 17:33:22 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 4 Oct 2022 17:33:20 +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; Tue, 4 Oct 2022 17:33:20 +0800 From: Moudy Ho To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Chun-Kuang Hu CC: , , , , , Moudy Ho Subject: [PATCH v1 0/6] add support for MT8195 VPPSYS on MMSYS and MUTEX Date: Tue, 4 Oct 2022 17:33:13 +0800 Message-ID: <20221004093319.5069-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.0 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,URIBL_CSS 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 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. Roy-CW.Yeh (6): dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS dts: arm64: mt8195: add MMSYS and MUTEX 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/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 22 ++- drivers/soc/mediatek/mt8195-mmsys.h | 8 ++ drivers/soc/mediatek/mtk-mmsys.c | 60 +++++++- drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 129 ++++++++++++++++-- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 36 +++++ 8 files changed, 250 insertions(+), 11 deletions(-) -- 2.18.0