From: Alexandre Mergnat <amergnat@baylibre.com>
To: Yong Wu <yong.wu@mediatek.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Alexandre Mergnat <amergnat@baylibre.com>
Subject: [PATCH RESEND 4/6] arm64: dts: mediatek: add smi support for mt8365 SoC
Date: Wed, 29 Mar 2023 11:52:23 +0200 [thread overview]
Message-ID: <20230207-iommu-support-v1-4-4a902f9aa412@baylibre.com> (raw)
In-Reply-To: <20230207-iommu-support-v1-0-4a902f9aa412@baylibre.com>
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.
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
arch/arm64/boot/dts/mediatek/mt8365.dtsi | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi
index 67b375fe2020..61333800ff4a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi
@@ -324,16 +324,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 = <MT8365_POWER_DOMAIN_VDEC>;
#power-domain-cells = <0>;
+ mediatek,smi = <&smi_common>;
};
power-domain@MT8365_POWER_DOMAIN_VENC {
reg = <MT8365_POWER_DOMAIN_VENC>;
#power-domain-cells = <0>;
+ mediatek,smi = <&smi_common>;
};
power-domain@MT8365_POWER_DOMAIN_APU {
@@ -351,6 +354,7 @@ power-domain@MT8365_POWER_DOMAIN_APU {
"apu-5";
#power-domain-cells = <0>;
mediatek,infracfg = <&infracfg>;
+ mediatek,smi = <&smi_common>;
};
};
@@ -709,6 +713,18 @@ mmsys: syscon@14000000 {
#clock-cells = <1>;
};
+ smi_common: smi@14002000 {
+ compatible = "mediatek,mt8365-smi-common",
+ "mediatek,mt8186-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>;
@@ -720,7 +736,6 @@ apu: syscon@19020000 {
reg = <0 0x19020000 0 0x1000>;
#clock-cells = <1>;
};
-
};
timer {
--
2.25.1
next prev parent reply other threads:[~2023-03-29 9:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 9:52 [PATCH RESEND 0/6] Add IOMMU support to MT8365 SoC Alexandre Mergnat
2023-03-29 9:52 ` [PATCH RESEND 1/6] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 Alexandre Mergnat
2023-03-29 10:41 ` Matthias Brugger
2023-03-30 1:53 ` Yong Wu (吴勇)
2023-03-29 9:52 ` [PATCH RESEND 2/6] dt-bindings: memory-controllers: mediatek,smi-larb: " Alexandre Mergnat
2023-03-29 10:41 ` Matthias Brugger
2023-03-29 9:52 ` [PATCH RESEND 3/6] arm64: dts: mediatek: add power domain support for mt8365 SoC Alexandre Mergnat
2023-03-29 13:36 ` AngeloGioacchino Del Regno
2023-03-29 9:52 ` Alexandre Mergnat [this message]
2023-03-29 13:36 ` [PATCH RESEND 4/6] arm64: dts: mediatek: add smi " AngeloGioacchino Del Regno
2023-03-29 9:52 ` [PATCH RESEND 5/6] arm64: dts: mediatek: add larb " Alexandre Mergnat
2023-03-29 13:37 ` AngeloGioacchino Del Regno
2023-03-29 9:52 ` [PATCH RESEND 6/6] arm64: dts: mediatek: add iommu " Alexandre Mergnat
2023-03-29 13:37 ` AngeloGioacchino Del Regno
2023-03-30 1:52 ` Yong Wu (吴勇)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230207-iommu-support-v1-4-4a902f9aa412@baylibre.com \
--to=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=yong.wu@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).