Allwinner sunxi Message Box

Schema identifier ($id): "http://devicetree.org/schemas/mailbox/allwinner,sun6i-a31-msgbox.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"

The hardware message box on sun6i, sun8i, sun9i, and sun50i SoCs is a two-user mailbox controller containing 8 unidirectional FIFOs. An interrupt is raised for received messages, but software must poll to know when a transmitted message has been acknowledged by the remote user. Each FIFO can hold four 32-bit messages; when a FIFO is full, clients must wait before attempting more transmissions.

Refer to ./mailbox.txt for generic information about mailbox device-tree bindings.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun8i-a83t-msgbox", "allwinner,sun8i-h3-msgbox", "allwinner,sun9i-a80-msgbox", "allwinner,sun50i-a64-msgbox", "allwinner,sun50i-h6-msgbox"

Item 2

Exact value (const): "allwinner,sun6i-a31-msgbox"

Rule 2

Exact value (const): "allwinner,sun6i-a31-msgbox"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

bus clock

resets — required here #

Maximum number of items (maxItems): 1

bus reset

interrupts — required here #

Maximum number of items (maxItems): 1

#mbox-cells — required here #

Exact value (const): 1

first cell is the channel number (0-7)

Required in this object (required): "compatible", "reg", "clocks", "resets", "interrupts", "#mbox-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sun8i-h3-ccu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/sun8i-h3-ccu.h>

msgbox: mailbox@1c17000 {
    compatible = "allwinner,sun8i-h3-msgbox",
                 "allwinner,sun6i-a31-msgbox";
    reg = <0x01c17000 0x1000>;
    clocks = <&ccu CLK_BUS_MSGBOX>;
    resets = <&ccu RST_BUS_MSGBOX>;
    interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
    #mbox-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page