From: Flora Fu <flora.fu@mediatek.com>
To: Matthias Brugger <matthias.bgg@gmail.com>,
Pi-Cheng Chen <pi-cheng.chen@mediatek.com>,
Yong Wu <yong.wu@mediatek.com>
Cc: <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
Flora Fu <flora.fu@mediatek.com>,
"JB Tsai" <jb.tsai@mediatek.com>
Subject: [PATCH 01/12] dt-bindings: memory: mediatek: Add MT8195 apu iommu bindings
Date: Sat, 11 Dec 2021 01:52:12 +0800 [thread overview]
Message-ID: <20211210175223.31131-2-flora.fu@mediatek.com> (raw)
In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com>
There are two apu iommu hardwares in MT8195.
Add MT8195 apu iommu bindings.
Signed-off-by: Flora Fu <flora.fu@mediatek.com>
---
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 3 +++
include/dt-bindings/memory/mt8195-memory-port.h | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
index 14fae9642ec9..ba1b3ce6cf99 100644
--- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
+++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
@@ -81,6 +81,7 @@ properties:
- mediatek,mt8195-iommu-vdo # generation two
- mediatek,mt8195-iommu-vpp # generation two
- mediatek,mt8195-iommu-infra # generation two
+ - mediatek,mt8195-iommu-apu # generation two
- description: mt7623 generation one
items:
@@ -158,6 +159,7 @@ allOf:
- mediatek,mt8192-iommu-apu
- mediatek,mt8195-iommu-vdo
- mediatek,mt8195-iommu-vpp
+ - mediatek,mt8195-iommu-apu
then:
required:
@@ -170,6 +172,7 @@ allOf:
enum:
- mediatek,mt8192-iommu-apu
- mediatek,mt8195-iommu-infra
+ - mediatek,mt8195-iommu-apu
then:
required:
diff --git a/include/dt-bindings/memory/mt8195-memory-port.h b/include/dt-bindings/memory/mt8195-memory-port.h
index 9882877cda9d..438e75140717 100644
--- a/include/dt-bindings/memory/mt8195-memory-port.h
+++ b/include/dt-bindings/memory/mt8195-memory-port.h
@@ -405,4 +405,8 @@
#define IOMMU_PORT_INFRA_SSUSB_R MTK_IFAIOMMU_PERI_ID(30)
#define IOMMU_PORT_INFRA_SSUSB_W MTK_IFAIOMMU_PERI_ID(31)
+#define IOMMU_PORT_APU_DATA MTK_M4U_ID(0, 0)
+#define IOMMU_PORT_APU_VLM MTK_M4U_ID(0, 1)
+#define IOMMU_PORT_APU_VPU MTK_M4U_ID(0, 2)
+
#endif
--
2.18.0
next prev parent reply other threads:[~2021-12-10 17:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 17:52 [PATCH 00/12] MediaTek MT8195 APU Flora Fu
2021-12-10 17:52 ` Flora Fu [this message]
2021-12-10 17:52 ` [PATCH 02/12] dt-bindings: remoteproc: mediatek: Add MT8195 in apu rproc Flora Fu
2021-12-10 17:52 ` [PATCH 03/12] dt-bindings: soc: mediatek: apu: Add MT8195 APU power bindings Flora Fu
2021-12-10 17:52 ` [PATCH 04/12] iommu/mediatek: Add APU iommu data for mt8195 Flora Fu
2021-12-10 17:52 ` [PATCH 05/12] remoteproc: mediatek: Add MT8195 APU remoteproc support Flora Fu
2021-12-10 17:52 ` [PATCH 06/12] soc: mediatek: apu: Add MT8195 APU power driver Flora Fu
2021-12-10 17:52 ` [PATCH 07/12] arm64: dts: mt8195: Add APU mtk-apu-mailbox node Flora Fu
2021-12-10 17:52 ` [PATCH 08/12] arm64: dts: mt8195: Add APU-IOMMU nodes Flora Fu
2021-12-10 17:52 ` [PATCH 09/12] arm64: dts: mt8195: Add apu tinysys node Flora Fu
2021-12-10 17:52 ` [PATCH 10/12] arm64: dts: mt8195: Add APU power nodes Flora Fu
2021-12-10 17:52 ` [PATCH 11/12] arm64: dts: mt8195: Add apu-sw-logger node Flora Fu
2021-12-10 17:52 ` [PATCH 12/12] arm64: dts: mt8195: Set up regulators for APU subsys Flora Fu
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=20211210175223.31131-2-flora.fu@mediatek.com \
--to=flora.fu@mediatek.com \
--cc=jb.tsai@mediatek.com \
--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=pi-cheng.chen@mediatek.com \
--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