Skip to content

Commit afa092e

Browse files
kuanhsunchengJassiBrar
authored andcommitted
dt-bindings: mailbox: mtk,adsp-mbox: add mtk adsp-mbox document
This patch adds document for mediatek adsp mbox Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 5c0fab3 commit afa092e

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mailbox/mtk,adsp-mbox.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Mediatek ADSP mailbox
8+
9+
maintainers:
10+
- Allen-KH Cheng <Allen-KH.Cheng@mediatek.com>
11+
12+
description: |
13+
The MTK ADSP mailbox Inter-Processor Communication (IPC) enables the SoC
14+
to ommunicate with ADSP by passing messages through two mailbox channels.
15+
The MTK ADSP mailbox IPC also provides the ability for one processor to
16+
signal the other processor using interrupts.
17+
18+
properties:
19+
compatible:
20+
items:
21+
- const: mediatek,mt8195-adsp-mbox
22+
23+
"#mbox-cells":
24+
const: 0
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
required:
33+
- compatible
34+
- "#mbox-cells"
35+
- reg
36+
- interrupts
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/interrupt-controller/arm-gic.h>
43+
#include <dt-bindings/interrupt-controller/irq.h>
44+
45+
adsp_mailbox0:mailbox@10816000 {
46+
compatible = "mediatek,mt8195-adsp-mbox";
47+
#mbox-cells = <0>;
48+
reg = <0x10816000 0x1000>;
49+
interrupts = <GIC_SPI 702 IRQ_TYPE_LEVEL_HIGH 0>;
50+
};

0 commit comments

Comments
 (0)