Skip to contentSkip to conversation

Add MT8186 support to MediaTek ADSP mailbox

PATCH In review Tinghan Shen 2 participants 4 messages Apr 22, 2022 – May 2, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add MT8186 support to MediaTek ADSP mailbox

Extend MediaTek ADSP mailbox driver to support MT8186 SoC.

Tinghan Shen (2):
dt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name
mailbox: mediatek: support mt8186 adsp mailbox

 .../devicetree/bindings/mailbox/mtk,adsp-mbox.yaml        | 7 ++++---
 drivers/mailbox/mtk-adsp-mailbox.c                        | 8 ++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/2 dt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name

Add compatible name for MediaTek MT8186 SoC ADSP mailbox.

---
 .../devicetree/bindings/mailbox/mtk,adsp-mbox.yaml         | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml +4 -3
index fe454a1fba17..72c1d9e82c89 100644
@@ -11,14 +11,15 @@ maintainers:
 
 description: |
   The MTK ADSP mailbox Inter-Processor Communication (IPC) enables the SoC
-  to ommunicate with ADSP by passing messages through two mailbox channels.
+  to communicate with ADSP by passing messages through two mailbox channels.
   The MTK ADSP mailbox IPC also provides the ability for one processor to
   signal the other processor using interrupts.
 
 properties:
   compatible:
-    items:
-      - const: mediatek,mt8195-adsp-mbox
+    enum:
+      - mediatek,mt8195-adsp-mbox
+      - mediatek,mt8186-adsp-mbox
 
   "#mbox-cells":
     const: 0
Signature · 1 line
2.18.0
maintainer Acked-by on v1 1/2
#2 lore raw

Re: [PATCH v1 1/2] dt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name

Quoted 7 lines · Tinghan Shen

Add compatible name for MediaTek MT8186 SoC ADSP mailbox.

---
 .../devicetree/bindings/mailbox/mtk,adsp-mbox.yaml         | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#3 lore raw

PATCH 2/2 mailbox: mediatek: support mt8186 adsp mailbox

In reply to Tinghan Shen

Add support of mt8186 adsp mailbox.

---
 drivers/mailbox/mtk-adsp-mailbox.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/mailbox/mtk-adsp-mailbox.c +8 -0
index 5e7378090c7b..14bc0057de81 100644
@@ -149,6 +149,13 @@ static int mtk_adsp_mbox_probe(struct platform_device *pdev)
 	return devm_mbox_controller_register(dev, &priv->mbox);
 }
 
+static const struct mtk_adsp_mbox_cfg mt8186_adsp_mbox_cfg = {
+	.set_in		= 0x00,
+	.set_out	= 0x04,
+	.clr_in		= 0x08,
+	.clr_out	= 0x0C,
+};
+
 static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = {
 	.set_in		= 0x00,
 	.set_out	= 0x1c,
@@ -157,6 +164,7 @@ static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = {
 };
 
 static const struct of_device_id mtk_adsp_mbox_of_match[] = {
+	{ .compatible = "mediatek,mt8186-adsp-mbox", .data = &mt8186_adsp_mbox_cfg },
 	{ .compatible = "mediatek,mt8195-adsp-mbox", .data = &mt8195_adsp_mbox_cfg },
 	{},
 };
Signature · 7 lines
2.18.0


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek