From patchwork Wed Jan 18 03:21:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TW91ZHkgSG8gKOS9leWul+WOnyk=?= X-Patchwork-Id: 44951 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2120598wrn; Tue, 17 Jan 2023 19:29:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXsp7SDW8DeGEgn8pvGb5B2tkWDb9WWsKZ7+5SEp7xOxZUjLEyJyse0tw/E3aTxqpjd6q6wL X-Received: by 2002:aa7:cc17:0:b0:49e:2109:6f57 with SMTP id q23-20020aa7cc17000000b0049e21096f57mr5068152edt.19.1674012545184; Tue, 17 Jan 2023 19:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674012545; cv=none; d=google.com; s=arc-20160816; b=n/F/Jco/UPb6rVauP1LF1/ByEZ23bCrRZpcpDwuf7LX1iRUtluJWkcefWxBaivFQ1V ZpFziOUHam8iVUPaRJd9b6yX5yC2lL/jqiJvmW2dKHxtDw+OPydG9PivLapQUDx5ofSz 8G0SCHM05DKDWz4vTbkQDWiZRULO9S2Qs1IlBgv5THNTIjqm8Cb6W34qUHHwSYN4Ee4L 6gNFkn5SDS6l1haKo0m6y1Jy5jQkYxNdsp3DxYH5B9BZwjkWeqJivk18TluN4u5bQyQw 220/2isXVEhyswiZhRsjM/pYnkOjtIorGvC+/k7rEGKjEKb2fJk0AMFCFleRsLc86rVn aIeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xQVMUD7okQLHVM5bRj5IZzkMbKVUxbpiSB0vJMJlbZA=; b=I7tmwfv9pOuMnrsARiOSiOX4Lx+NOFYuqpfR/vxaUw2xtVjQXq2CsXcLNtjsnpRGAK tSIe6cBlT4I4QICxUMQ0/UZbgid+Ifn7IHQPp01KyrnjTrplDxT28rygb5nQUDAq6gGs qO6fyfIHKz2Si8xW/jx58GyeXk9Lr9v3iOpeOIJMiLUjLXvHWAd+frOfFSXmO8xF7Pr8 Iyb2e1BMRfgTbufh/rHkdGLiwNx7pesmWaGimuqmpnRMwEYPj22zrDrLPv7bxRJvHzc6 I92tOu8B1heRGZsm8I+gueinvBwEeJfIwntktDidIxshIA3eUaSeHqEO+utMwXBy3cax ahkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="e4d54YS/"; 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 y15-20020a056402358f00b0049df78b34efsi12723207edc.57.2023.01.17.19.28.41; Tue, 17 Jan 2023 19:29:05 -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="e4d54YS/"; 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 S229663AbjARDVh (ORCPT + 99 others); Tue, 17 Jan 2023 22:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjARDVd (ORCPT ); Tue, 17 Jan 2023 22:21:33 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F7F4FCFD; Tue, 17 Jan 2023 19:21:29 -0800 (PST) X-UUID: 2f9834a896df11eda06fc9ecc4dadd91-20230118 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=xQVMUD7okQLHVM5bRj5IZzkMbKVUxbpiSB0vJMJlbZA=; b=e4d54YS/YkTw+L2mPsyWR5AxgBR917aUOPB3wtVEYxpswgUFbopPCrpX9okBQ3TqpT9fwafO0Y1/iEsOVF+wA3JPtLrVsZnvkakMp13LL0XqDcIt0lPZxAJRFYY+kpnMlcIOc/iBOjo+JCQcfPyDKQ/efohoFKhe2TJvX0MgfWM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.18,REQID:c020b425-29ec-4bf1-80dd-a8e1c69949d9,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.18,REQID:c020b425-29ec-4bf1-80dd-a8e1c69949d9,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:3ca2d6b,CLOUDID:032820f6-ff42-4fb0-b929-626456a83c14,B ulkID:2301181121245EBAODC3,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0 X-UUID: 2f9834a896df11eda06fc9ecc4dadd91-20230118 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1404739570; Wed, 18 Jan 2023 11:21:23 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) 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:23 +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:23 +0800 From: Moudy Ho To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Michael Turquette , Stephen Boyd CC: , , , , , , Moudy Ho Subject: [PATCH v6 3/6] arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYS Date: Wed, 18 Jan 2023 11:21:19 +0800 Message-ID: <20230118032122.29956-4-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230118032122.29956-1-moudy.ho@mediatek.com> References: <20230118032122.29956-1-moudy.ho@mediatek.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755329378832959800?= X-GMAIL-MSGID: =?utf-8?q?1755329378832959800?= In MT8195, the MMSYS has two Video Processor Pipepline Subsystems named VPPSYS0 and VPPSYS1, each with specific MUTEX to control Start of Frame(SOF) and End of Frame (EOF) signals. Before working with them, the addresses, interrupts, clocks and power domains need to be set up in dts. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 8bc38700b945..206dd534c3f6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -1706,6 +1706,15 @@ #clock-cells = <1>; }; + mutex@1400f000 { + compatible = "mediatek,mt8195-vpp-mutex"; + reg = <0 0x1400f000 0 0x1000>; + interrupts = ; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xf000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MUTEX>; + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; + }; + smi_sub_common_vpp0_vpp1_2x1: smi@14010000 { compatible = "mediatek,mt8195-smi-sub-common"; reg = <0 0x14010000 0 0x1000>; @@ -1811,6 +1820,15 @@ #clock-cells = <1>; }; + mutex@14f01000 { + compatible = "mediatek,mt8195-vpp-mutex"; + reg = <0 0x14f01000 0 0x1000>; + interrupts = ; + mediatek,gce-client-reg = <&gce1 SUBSYS_14f0XXXX 0x1000 0x1000>; + clocks = <&vppsys1 CLK_VPP1_DISP_MUTEX>; + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS1>; + }; + larb5: larb@14f02000 { compatible = "mediatek,mt8195-smi-larb"; reg = <0 0x14f02000 0 0x1000>;