T-head TH1520 Mailbox Controller

Schema identifier ($id): "http://devicetree.org/schemas/mailbox/thead,th1520-mbox.yaml#"

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

The T-head mailbox controller enables communication and coordination between cores within the SoC by passing messages (e.g., data, status, and control) through mailbox channels. It also allows one core to signal another processor using interrupts via the Interrupt Controller Unit (ICU).

Maintainers (maintainers): "Michal Wilczynski <m.wilczynski@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "thead,th1520-mbox"

clocks — required here #

Array item rules (items) #

Item 1

Clock for the local mailbox

Item 2

Clock for remote ICU 0

Item 3

Clock for remote ICU 1

Item 4

Clock for remote ICU 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clk-local"

Item 2

Exact value (const): "clk-remote-icu0"

Item 3

Exact value (const): "clk-remote-icu1"

Item 4

Exact value (const): "clk-remote-icu2"

reg — required here #

Array item rules (items) #

Item 1

Mailbox local base address

Item 2

Remote ICU 0 base address

Item 3

Remote ICU 1 base address

Item 4

Remote ICU 2 base address

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "local"

Item 2

Exact value (const): "remote-icu0"

Item 3

Exact value (const): "remote-icu1"

Item 4

Exact value (const): "remote-icu2"

interrupts — required here #

Maximum number of items (maxItems): 1

#mbox-cells — required here #

Exact value (const): 1

The one and only cell describes destination CPU ID.

Required in this object (required): "compatible", "clocks", "clock-names", "reg", "reg-names", "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/thead,th1520-clk-ap.h>
soc {
  #address-cells = <2>;
  #size-cells = <2>;
  mailbox@ffffc38000 {
    compatible = "thead,th1520-mbox";
    reg = <0xff 0xffc38000 0x0 0x4000>,
          <0xff 0xffc44000 0x0 0x1000>,
          <0xff 0xffc4c000 0x0 0x1000>,
          <0xff 0xffc54000 0x0 0x1000>;
    reg-names = "local", "remote-icu0", "remote-icu1", "remote-icu2";
    clocks = <&clk CLK_MBOX0>, <&clk CLK_MBOX1>, <&clk CLK_MBOX2>,
             <&clk CLK_MBOX3>;
    clock-names = "clk-local", "clk-remote-icu0", "clk-remote-icu1",
                  "clk-remote-icu2";
    interrupts = <28>;
    #mbox-cells = <1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page