xref: /freebsd/sys/contrib/device-tree/Bindings/mailbox/brcm,bcm74110-mbox.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/mailbox/brcm,bcm74110-mbox.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Broadcom BCM74110 Mailbox
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Justin Chen <justin.chen@broadcom.com>
11*833e5d42SEmmanuel Vadot  - Florian Fainelli <florian.fainelli@broadcom.com>
12*833e5d42SEmmanuel Vadot
13*833e5d42SEmmanuel Vadotdescription: Broadcom mailbox hardware first introduced with 74110
14*833e5d42SEmmanuel Vadot
15*833e5d42SEmmanuel Vadotproperties:
16*833e5d42SEmmanuel Vadot  compatible:
17*833e5d42SEmmanuel Vadot    enum:
18*833e5d42SEmmanuel Vadot      - brcm,bcm74110-mbox
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadot  reg:
21*833e5d42SEmmanuel Vadot    maxItems: 1
22*833e5d42SEmmanuel Vadot
23*833e5d42SEmmanuel Vadot  interrupts:
24*833e5d42SEmmanuel Vadot    items:
25*833e5d42SEmmanuel Vadot      - description: RX doorbell and watermark interrupts
26*833e5d42SEmmanuel Vadot      - description: TX doorbell and watermark interrupts
27*833e5d42SEmmanuel Vadot
28*833e5d42SEmmanuel Vadot  "#mbox-cells":
29*833e5d42SEmmanuel Vadot    const: 2
30*833e5d42SEmmanuel Vadot    description:
31*833e5d42SEmmanuel Vadot      The first cell is channel type and second cell is shared memory slot
32*833e5d42SEmmanuel Vadot
33*833e5d42SEmmanuel Vadot  brcm,rx:
34*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
35*833e5d42SEmmanuel Vadot    description: RX Mailbox number
36*833e5d42SEmmanuel Vadot
37*833e5d42SEmmanuel Vadot  brcm,tx:
38*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
39*833e5d42SEmmanuel Vadot    description: TX Mailbox number
40*833e5d42SEmmanuel Vadot
41*833e5d42SEmmanuel Vadotrequired:
42*833e5d42SEmmanuel Vadot  - compatible
43*833e5d42SEmmanuel Vadot  - reg
44*833e5d42SEmmanuel Vadot  - interrupts
45*833e5d42SEmmanuel Vadot  - "#mbox-cells"
46*833e5d42SEmmanuel Vadot  - brcm,rx
47*833e5d42SEmmanuel Vadot  - brcm,tx
48*833e5d42SEmmanuel Vadot
49*833e5d42SEmmanuel VadotadditionalProperties: false
50*833e5d42SEmmanuel Vadot
51*833e5d42SEmmanuel Vadotexamples:
52*833e5d42SEmmanuel Vadot  - |
53*833e5d42SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
54*833e5d42SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
55*833e5d42SEmmanuel Vadot
56*833e5d42SEmmanuel Vadot    mailbox@a552000 {
57*833e5d42SEmmanuel Vadot        compatible = "brcm,bcm74110-mbox";
58*833e5d42SEmmanuel Vadot        reg = <0xa552000 0x1104>;
59*833e5d42SEmmanuel Vadot        interrupts = <GIC_SPI 0x67 IRQ_TYPE_LEVEL_HIGH>,
60*833e5d42SEmmanuel Vadot                     <GIC_SPI 0x66 IRQ_TYPE_LEVEL_HIGH>;
61*833e5d42SEmmanuel Vadot        #mbox-cells = <0x2>;
62*833e5d42SEmmanuel Vadot        brcm,rx = <0x7>;
63*833e5d42SEmmanuel Vadot        brcm,tx = <0x6>;
64*833e5d42SEmmanuel Vadot    };
65