0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: Spreadtrum mailbox controller bindings
0008
0009 maintainers:
0010 - Orson Zhai <orsonzhai@gmail.com>
0011 - Baolin Wang <baolin.wang7@gmail.com>
0012 - Chunyan Zhang <zhang.lyra@gmail.com>
0013
0014 properties:
0015 compatible:
0016 enum:
0017 - sprd,sc9860-mailbox
0018 - sprd,sc9863a-mailbox
0019
0020 reg:
0021 items:
0022 - description: inbox registers' base address
0023 - description: outbox registers' base address
0024
0025 interrupts:
0026 minItems: 2
0027 maxItems: 3
0028
0029 interrupt-names:
0030 minItems: 2
0031 items:
0032 - const: inbox
0033 - const: outbox
0034 - const: supp-outbox
0035
0036 clocks:
0037 maxItems: 1
0038
0039 clock-names:
0040 items:
0041 - const: enable
0042
0043 "#mbox-cells":
0044 const: 1
0045
0046 required:
0047 - compatible
0048 - reg
0049 - interrupts
0050 - interrupt-names
0051 - "#mbox-cells"
0052 - clocks
0053 - clock-names
0054
0055 additionalProperties: false
0056
0057 examples:
0058 - |
0059 #include <dt-bindings/interrupt-controller/arm-gic.h>
0060 mailbox: mailbox@400a0000 {
0061 compatible = "sprd,sc9860-mailbox";
0062 reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>;
0063 #mbox-cells = <1>;
0064 clock-names = "enable";
0065 clocks = <&aon_gate 53>;
0066 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
0067 interrupt-names = "inbox", "outbox";
0068 };
0069 ...