Sophgo CV1800/SG2000 mailbox controller

Schema identifier ($id): "http://devicetree.org/schemas/mailbox/sophgo,cv1800b-mailbox.yaml#"

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

Maintainers (maintainers): "Yuntao Dai <d1581209858@live.com>", "Junhui Liu <junhui.liu@pigmoral.tech>"

Mailboxes integrated in Sophgo CV1800/SG2000 SoCs have 8 channels, each shipping an 8-byte FIFO. Any processor can write to an arbitrary channel and raise interrupts to receivers. Sending messages to itself is also supported.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sophgo,cv1800b-mailbox"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#mbox-cells — required here #

Exact value (const): 2

<&phandle channel target> phandle : Label name of mailbox controller channel : 0-7, Channel index target : 0-3, Target processor ID

Sophgo CV1800/SG2000 SoCs include the following processors, numbered as: <0> Cortex-A53 (Only available on CV181X/SG200X) <1> C906B <2> C906L <3> 8051

Required in this object (required): "compatible", "reg", "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/interrupt-controller/irq.h>

mailbox@1900000 {
    compatible = "sophgo,cv1800b-mailbox";
    reg = <0x01900000 0x1000>;
    interrupts = <101 IRQ_TYPE_LEVEL_HIGH>;
    #mbox-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page