Skip to content

Commit c2b75a5

Browse files
jjian-zhouJassi Brar
authored andcommitted
dt-bindings: mailbox: mediatek,mt8196-vcp-mbox: add mtk vcp-mbox document
The MTK VCP mailbox enables the SoC to communicate with the VCP by passing messages through 64 32-bit wide registers. It has 32 interrupt vectors in either direction for signalling purposes. This adds a binding for Mediatek VCP mailbox. Signed-off-by: Jjian Zhou <jjian.zhou@mediatek.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent e84d960 commit c2b75a5

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mailbox/mediatek,mt8196-vcp-mbox.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek Video Companion Processor (VCP) mailbox
8+
9+
maintainers:
10+
- Jjian Zhou <Jjian.Zhou@mediatek.com>
11+
12+
description:
13+
The MTK VCP mailbox enables the SoC to communicate with the VCP by passing
14+
messages through 64 32-bit wide registers. It has 32 interrupt vectors in
15+
either direction for signalling purposes.
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- mediatek,mt8196-vcp-mbox
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
"#mbox-cells":
29+
const: 0
30+
31+
required:
32+
- compatible
33+
- reg
34+
- interrupts
35+
- "#mbox-cells"
36+
37+
additionalProperties: false
38+
39+
examples:
40+
- |
41+
#include <dt-bindings/interrupt-controller/arm-gic.h>
42+
#include <dt-bindings/interrupt-controller/irq.h>
43+
44+
mailbox@31b80000 {
45+
compatible = "mediatek,mt8196-vcp-mbox";
46+
reg = <0x31b80000 0x1000>;
47+
interrupts = <GIC_SPI 789 IRQ_TYPE_LEVEL_HIGH 0>;
48+
#mbox-cells = <0>;
49+
};

0 commit comments

Comments
 (0)