xref: /linux/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1fa753865SBaolin Wang# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2fa753865SBaolin Wang%YAML 1.2
3fa753865SBaolin Wang---
4*68b8960aSRob Herring$id: http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#
5*68b8960aSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
6fa753865SBaolin Wang
784e85359SKrzysztof Kozlowskititle: Spreadtrum mailbox controller
8fa753865SBaolin Wang
9fa753865SBaolin Wangmaintainers:
10fa753865SBaolin Wang  - Orson Zhai <orsonzhai@gmail.com>
11fa753865SBaolin Wang  - Baolin Wang <baolin.wang7@gmail.com>
12fa753865SBaolin Wang  - Chunyan Zhang <zhang.lyra@gmail.com>
13fa753865SBaolin Wang
14fa753865SBaolin Wangproperties:
15fa753865SBaolin Wang  compatible:
16fa753865SBaolin Wang    enum:
17fa753865SBaolin Wang      - sprd,sc9860-mailbox
186203b954SOrson Zhai      - sprd,sc9863a-mailbox
19fa753865SBaolin Wang
20fa753865SBaolin Wang  reg:
21fa753865SBaolin Wang    items:
22fa753865SBaolin Wang      - description: inbox registers' base address
23fa753865SBaolin Wang      - description: outbox registers' base address
24fa753865SBaolin Wang
25fa753865SBaolin Wang  interrupts:
266203b954SOrson Zhai    minItems: 2
276203b954SOrson Zhai    maxItems: 3
286203b954SOrson Zhai
296203b954SOrson Zhai  interrupt-names:
306203b954SOrson Zhai    minItems: 2
31fa753865SBaolin Wang    items:
326203b954SOrson Zhai      - const: inbox
336203b954SOrson Zhai      - const: outbox
346203b954SOrson Zhai      - const: supp-outbox
35fa753865SBaolin Wang
36fa753865SBaolin Wang  clocks:
37fa753865SBaolin Wang    maxItems: 1
38fa753865SBaolin Wang
39fa753865SBaolin Wang  clock-names:
40fa753865SBaolin Wang    items:
41fa753865SBaolin Wang      - const: enable
42fa753865SBaolin Wang
43fa753865SBaolin Wang  "#mbox-cells":
44fa753865SBaolin Wang    const: 1
45fa753865SBaolin Wang
46fa753865SBaolin Wangrequired:
47fa753865SBaolin Wang  - compatible
48fa753865SBaolin Wang  - reg
49fa753865SBaolin Wang  - interrupts
506203b954SOrson Zhai  - interrupt-names
51fa753865SBaolin Wang  - "#mbox-cells"
52fa753865SBaolin Wang  - clocks
53fa753865SBaolin Wang  - clock-names
54fa753865SBaolin Wang
55fa753865SBaolin WangadditionalProperties: false
56fa753865SBaolin Wang
57fa753865SBaolin Wangexamples:
58fa753865SBaolin Wang  - |
59fa753865SBaolin Wang    #include <dt-bindings/interrupt-controller/arm-gic.h>
60fa753865SBaolin Wang    mailbox: mailbox@400a0000 {
61fa753865SBaolin Wang      compatible = "sprd,sc9860-mailbox";
620db958b6SRob Herring      reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>;
63fa753865SBaolin Wang      #mbox-cells = <1>;
64fa753865SBaolin Wang      clock-names = "enable";
65fa753865SBaolin Wang      clocks = <&aon_gate 53>;
66fa753865SBaolin Wang      interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
676203b954SOrson Zhai      interrupt-names = "inbox", "outbox";
68fa753865SBaolin Wang    };
69fa753865SBaolin Wang...
70