Add MT8186 support to MediaTek ADSP mailbox
Subsystems (3)
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
PATCH 1/2 dt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name
Add compatible name for MediaTek MT8186 SoC ADSP mailbox.
Signed-off-by Tinghan Shen <[email protected]>
--- .../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
@@ -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
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.
Signed-off-by Tinghan Shen <[email protected]>--- .../devicetree/bindings/mailbox/mtk,adsp-mbox.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Acked-by Rob Herring <[email protected]>
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH 2/2 mailbox: mediatek: support mt8186 adsp mailbox
In reply to Tinghan ShenAdd support of mt8186 adsp mailbox.
Signed-off-by Tinghan Shen <[email protected]>
--- drivers/mailbox/mtk-adsp-mailbox.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/mailbox/mtk-adsp-mailbox.c +8 -0
@@ -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