* [PATCH v1 1/2] dt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name
2022-04-22 2:39 [PATCH v1 0/2] Add MT8186 support to MediaTek ADSP mailbox Tinghan Shen
@ 2022-04-22 2:39 ` Tinghan Shen
2022-05-02 20:51 ` Rob Herring
2022-04-22 2:39 ` [PATCH v1 2/2] mailbox: mediatek: support mt8186 adsp mailbox Tinghan Shen
1 sibling, 1 reply; 4+ messages in thread
From: Tinghan Shen @ 2022-04-22 2:39 UTC (permalink / raw)
To: Jassi Brar, Rob Herring, Krzysztof Kozlowski, Matthias Brugger,
Allen-KH Cheng
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group, Tinghan Shen
Add compatible name for MediaTek MT8186 SoC ADSP mailbox.
Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
---
.../devicetree/bindings/mailbox/mtk,adsp-mbox.yaml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml b/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml
index fe454a1fba17..72c1d9e82c89 100644
--- a/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml
+++ b/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml
@@ -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
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v1 2/2] mailbox: mediatek: support mt8186 adsp mailbox
2022-04-22 2:39 [PATCH v1 0/2] Add MT8186 support to MediaTek ADSP mailbox Tinghan Shen
2022-04-22 2:39 ` [PATCH v1 1/2] dt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name Tinghan Shen
@ 2022-04-22 2:39 ` Tinghan Shen
1 sibling, 0 replies; 4+ messages in thread
From: Tinghan Shen @ 2022-04-22 2:39 UTC (permalink / raw)
To: Jassi Brar, Rob Herring, Krzysztof Kozlowski, Matthias Brugger,
Allen-KH Cheng
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group, Tinghan Shen
Add support of mt8186 adsp mailbox.
Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
---
drivers/mailbox/mtk-adsp-mailbox.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/mailbox/mtk-adsp-mailbox.c b/drivers/mailbox/mtk-adsp-mailbox.c
index 5e7378090c7b..14bc0057de81 100644
--- a/drivers/mailbox/mtk-adsp-mailbox.c
+++ b/drivers/mailbox/mtk-adsp-mailbox.c
@@ -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 },
{},
};
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread