From patchwork Thu Aug 3 09:40:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13339605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED02AC00528 for ; Thu, 3 Aug 2023 09:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Qqq71BmglqPdWoPEtToCLWEFpVEun8ESIoG7WuZgwYc=; b=DZiR+3addnQoMN2kz9irZtoLVF KOE0uH1sA2UwP+Sn/UkxOlWhZ78+Bl8PeKkZvrdTnx7g7X+b1s+azU5/wmPAfgw2z/nK8yWuX7VRJ cKoj1rDHq+HKxKFUIs4oKdUVpU7u/chCl2+KVC4BDvxXEvMjxQjhCRe87zUHqfdjiQ6Ccr9jO03us djHQT/Vzx5oBB8YaM9zQjepegqv+6hUg/J2kdYV4xUZQrYeq1a0dpe6zaATKxi4jtXFnQ4xdiq1jH naJ9665Af9OFmlp94HFzB8OKmM1bam5HLaQXXiJ9OGCluw4nQ8J13YOO3NacYLIXpsiSp2DaKZSXY t6aAHvXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRUpc-007EVB-0F; Thu, 03 Aug 2023 09:41:20 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRUpT-007ENc-2B for linux-mediatek@lists.infradead.org; Thu, 03 Aug 2023 09:41:13 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fbef8ad9bbso7903575e9.0 for ; Thu, 03 Aug 2023 02:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691055670; x=1691660470; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Qqq71BmglqPdWoPEtToCLWEFpVEun8ESIoG7WuZgwYc=; b=WnhUHoeTUptr5l4v/vwdEeIp0W2YCBwoMwYLNFhtvsJrji73kXfUshz8FQDgZihQoo Kp/wuue2SecUj17IQHm3gjVjn2ALZalxmLldUxJLX0dbc/ObcWTMsEInHC4Eg8+xffAG EDjl3LHCZPES5+Fpnpt7aq80jNlxfeh8hHFB9+4Cf2epIbOugmCsTfllqtRrGuTfoHfO G5jctLGJRzJNuYy/3wz5wR0B0gNubQUfGHtMfBCaelVfuyFiP+OUBAyrSqgDtVGkX8SS qvjCZznWazW6b5p0uKGeuGOXg71VZEwsZmmMDMJ21AVRiLfuaC9NHvpV7YrJs7ZBK7gy 52wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691055670; x=1691660470; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qqq71BmglqPdWoPEtToCLWEFpVEun8ESIoG7WuZgwYc=; b=KH7gMkpS9vVJtpyd9aapLvC/pt6i5FdYlGShBZNcRi2FVjg6j6Wyab2UZp+N+wx9q+ FJcCgjDBh7td0UjAM0cl7qdX4jFNdL20MLwDGhBK0ITF7yolg4RGIdt67U0OykmtF1Ng 8KNkzG0Ho4LA6Vlqo6avUngetZWQK/uZTHo9dpPtJf/6QZFj9JRYs+uKtGkRYFnSanRt wspt15X573i7zaYtlAhz4hcIgsHIpKYFtyzwpp7Y54x1zRUsgl2M9oYZKdNtDDyY3dgp 1FygDLxMnnFiHcitfZe64cboZXmlOmq7L8jkBzIgm/DOTVDjq65nr/fXjr2/YF1kHy7N /FTQ== X-Gm-Message-State: ABy/qLZQsmM0asm8r8hg3kRVu2nWI/kPpU9wkf/GbTKFbhatwi2rD8Ao lhQoM2zG2hIR164telsovsM39w== X-Google-Smtp-Source: APBJJlFjYPT4M218ADNSnzkr3IWgI8sSPk0J+nYARdhmfuCH1saGPdRYT0ZqdGtrtzHHcgQGmMNDOg== X-Received: by 2002:a05:600c:b52:b0:3fa:71db:56ff with SMTP id k18-20020a05600c0b5200b003fa71db56ffmr6590901wmr.40.1691055670541; Thu, 03 Aug 2023 02:41:10 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id n1-20020a05600c4f8100b003fe15ac0934sm13294994wmq.1.2023.08.03.02.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 02:41:09 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 03 Aug 2023 11:40:57 +0200 Subject: [PATCH v4 5/7] arm64: dts: mediatek: add smi support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v4-5-84798657c410@baylibre.com> References: <20230207-iommu-support-v4-0-84798657c410@baylibre.com> In-Reply-To: <20230207-iommu-support-v4-0-84798657c410@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Conor Dooley Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2121; i=amergnat@baylibre.com; h=from:subject:message-id; bh=lJi09wmfuA1CnXJrdr2+qCC0CVBcfrZwevdWJeNOAo0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBky3Yu3yeqBTweXTt4cjB1hcjTBIfzC12xsT49Nncx PSlXDyOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZMt2LgAKCRArRkmdfjHURYI2EA CCouYESfKP1onbfZhLrWVjFgWLu6PqRRHJ63+175fKOdum61IMImElsCVOkQRk4lVT8166SgtXvRKk so5hZRBIqgRJWEKDjyPaFDgg8SsXWw41ZOLuqCH4Expc9tkYflCBo6WfSTMNgvXL01+VHi+5TwhffY AyIZu1CGtkY/NQhi/hi98lgFAB9O+FSxkxqbJHpS2bKo9IEyuez1FxqQXllawa196TQyEQg35RLzUw cRbQAWF476YQ0DN1QZf2bs2msBOV/n9aAqDcEYOLbTlKWB5Cm/lsC8ZrL9P8ibUZIN4qZmLiqhcQ+9 KBVaVuNCI47Y0sqI0Dr9gL0qQ2s9n2lyYoI4lmyIJk5ObJMJVuDSb1NRi10lGJZfYfcnIl/yhvWWJk cwa3pE2yJRCib6ZF014i5tH6kjuWgQTiVkdXx23WTCldhjUroQf/wKP4O0pd0l+6ovu9B09Mi7PtVE 1EVIktUj/teOcf/PZZGW0y6Sa/iuYbjmhROyEXVNkKgN1fYuNgBHvpmKjCRyGMYbl+tK4NGun3Mawz FzWMbySbdTecoiwuRAdMV30/TLi8P2P7Bk5FnwHUBQIYm820jhAWVlC8R+8kVDEjLTotZ+3tdY5qi+ Z2mHMQ6S++b9Rsns53ghYOz8JIodTVyLN2wx6MGSsJCI/81ZcS1uP5rIgu8w== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230803_024111_781693_1F770E80 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Smart Multimedia Interface (SMI) local arbiter does the arbitration for memory requests from multi-media engines. Add SMI in the MT8365 DTS will allow to add local ARBiter (LARB), use by IOMMU. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index c2f88d153dee..a03b8c0da68b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -340,16 +340,19 @@ power-domain@MT8365_POWER_DOMAIN_CAM { "cam-4", "cam-5"; #power-domain-cells = <0>; mediatek,infracfg = <&infracfg>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_VDEC { reg = ; #power-domain-cells = <0>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_VENC { reg = ; #power-domain-cells = <0>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_APU { @@ -367,6 +370,7 @@ power-domain@MT8365_POWER_DOMAIN_APU { "apu-5"; #power-domain-cells = <0>; mediatek,infracfg = <&infracfg>; + mediatek,smi = <&smi_common>; }; }; @@ -720,6 +724,17 @@ mmsys: syscon@14000000 { #clock-cells = <1>; }; + smi_common: smi@14002000 { + compatible = "mediatek,mt8365-smi-common"; + reg = <0 0x14002000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMM0>, + <&mmsys CLK_MM_MM_SMI_COMM1>; + clock-names = "apb", "smi", "gals0", "gals1"; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + camsys: syscon@15000000 { compatible = "mediatek,mt8365-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>;