Debian Codegraph @

Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Spreadtrum mailbox controller
8
9 maintainers:
10 - Orson Zhai <[email protected]>
11 - Baolin Wang <[email protected]>
12 - Chunyan Zhang <[email protected]>
13
14 properties:
15 compatible:
16 enum:
17 - sprd,sc9860-mailbox
18 - sprd,sc9863a-mailbox
19 - sprd,ums9230-mailbox
20
21 reg:
22 items:
23 - description: inbox registers' base address
24 - description: outbox registers' base address
25
26 interrupts:
27 minItems: 2
28 maxItems: 3
29
30 interrupt-names:
31 minItems: 2
32 items:
33 - const: inbox
34 - const: outbox
35 - const: supp-outbox
36
37 clocks:
38 maxItems: 1
39
40 clock-names:
41 items:
42 - const: enable
43
44 "#mbox-cells":
45 const: 1
46
47 required:
48 - compatible
49 - reg
50 - interrupts
51 - interrupt-names
52 - "#mbox-cells"
53 - clocks
54 - clock-names
55
56 additionalProperties: false
57
58 examples:
59 - |
60 #include <dt-bindings/interrupt-controller/arm-gic.h>
61 mailbox: mailbox@400a0000 {
62 compatible = "sprd,sc9860-mailbox";
63 reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>;
64 #mbox-cells = <1>;
65 clock-names = "enable";
66 clocks = <&aon_gate 53>;
67 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
68 interrupt-names = "inbox", "outbox";
69 };
70 ...