Microchip Inter-processor communication (IPC) mailbox controller
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/microchip,sbi-ipc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Valentina Fernandez <valentina.fernandezalanis@microchip.com>"
The Microchip Inter-processor Communication (IPC) facilitates message passing between processors using an interrupt signaling mechanism.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Intended for use by software running in supervisor privileged mode (s-mode). This SBI interface is compatible with the Mi-V Inter-hart Communication (IHC) IP.
Exact value (
const):"microchip,sbi-ipc"
Rule 2
Intended for use by the SBI implementation in machine mode (m-mode), this compatible string is for the MIV_IHC Soft-IP.
Exact value (
const):"microchip,miv-ihc-rtl-v2"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
interrupt-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
Array item rules (items) #
Allowed values (
enum):"hart-0","hart-1","hart-2","hart-3","hart-4","hart-5"
#mbox-cells — required here #
For "microchip,sbi-ipc", the cell represents the global "logical" channel IDs. The meaning of channel IDs are platform firmware dependent. For "microchip,miv-ihc-rtl-v2", the cell represents the physical channel and does not vary based on the platform firmware.
Exact value (const): 1
microchip,ihc-chan-disabled-mask — not listed as required here #
Represents the enable/disable state of the bi-directional IHC channels within the MIV-IHC IP configuration. A bit set to '1' indicates that the corresponding channel is disabled, and any read or write operations to that channel will return zero. A bit set to '0' indicates that the corresponding channel is enabled and will be accessible through its dedicated address range registers. The actual enable/disable state of each channel is determined by the IP block’s configuration.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Maximum value (maximum): 32767
Default value (default): 0
Required in this object (required): "compatible", "interrupts", "interrupt-names", "#mbox-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,sbi-ipc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereThis rule must not match (
not)This rule adds no constraints.
The 'microchip,sbi-ipc' operates in a programming model that does not require memory-mapped I/O (MMIO) registers since it uses SBI ecalls provided by the m-mode/firmware SBI implementation to access hardware registers.
microchip,ihc-chan-disabled-mask— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Required in this object (
required):"reg","microchip,ihc-chan-disabled-mask"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox {
compatible = "microchip,sbi-ipc";
interrupt-parent = <&plic>;
interrupts = <180>, <179>, <178>;
interrupt-names = "hart-1", "hart-2", "hart-3";
#mbox-cells = <1>;
};
mailbox@50000000 {
compatible = "microchip,miv-ihc-rtl-v2";
microchip,ihc-chan-disabled-mask = /bits/ 16 <0>;
reg = <0x50000000 0x1c000>;
interrupt-parent = <&plic>;
interrupts = <180>, <179>, <178>;
interrupt-names = "hart-1", "hart-2", "hart-3";
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)