Qualcomm Shared Memory Point 2 Point
Schema identifier ($id): "http://devicetree.org/schemas/soc/qcom/qcom,smp2p.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>", "Krzysztof Kozlowski <krzk@kernel.org>"
The Shared Memory Point to Point (SMP2P) protocol facilitates communication of a single 32-bit value between two processors. Each value has a single writer (the local side) and a single reader (the remote side). Values are uniquely identified in the system by the directed edge (local processor ID to remote processor ID) and a string identifier.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,smp2p"
interrupts — required here #
Maximum number of items (maxItems): 1
mboxes — not listed as required here #
Maximum number of items (maxItems): 1
Reference to the mailbox representing the outgoing doorbell in APCS for this client.
qcom,ipc — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to a syscon node representing the APCS registers
Item 2
u32 representing offset to the register within the syscon
Item 3
u32 representing the ipc bit within the register
Three entries specifying the outgoing ipc bit used for signaling the remote end of the smp2p edge.
Deprecated (deprecated): true
qcom,local-pid — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The identifier of the local endpoint of this edge.
qcom,remote-pid — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The identifier of the remote endpoint of this edge.
qcom,smem — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 2
Two identifiers of the inbound and outbound smem items used for this edge.
Properties matching a name pattern (patternProperties) #
^master-kernel|slave-kernel|ipa-ap-to-modem|ipa-modem-to-ap|wlan-ap-to-wpss|wlan-wpss-to-ap$ — name matches this regular expression #
Value type (type): "object"
Each SMP2P pair contain a set of inbound and outbound entries, these are described in subnodes of the smp2p device node. The node names are not important.
Properties and child nodes (properties) #
interrupt-controller — not listed as required here
Marks the entry as inbound; the node should be specified as a two cell interrupt-controller. If not specified this node will denote the outgoing entry.
#interrupt-cells — not listed as required here
Exact value (const): 2
qcom,entry-name — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
The name of this entry, for inbound entries this will be used to match against the remotely allocated entry and for outbound entries this name is used for allocating entries.
#qcom,smem-state-cells — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Exact value (const): 1
Required for outgoing entries.
Required in this object (required): "qcom,entry-name"
Exactly one of these rules must match (oneOf) #
Rule 1
Required in this object (
required):"interrupt-controller","#interrupt-cells"
Rule 2
Required in this object (
required):"#qcom,smem-state-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "interrupts", "qcom,local-pid", "qcom,remote-pid", "qcom,smem"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
shared-memory {
compatible = "qcom,smp2p";
qcom,smem = <431>, <451>;
interrupts = <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>;
mboxes = <&apcs 18>;
qcom,local-pid = <0>;
qcom,remote-pid = <4>;
wcnss_smp2p_out: master-kernel {
qcom,entry-name = "master-kernel";
#qcom,smem-state-cells = <1>;
};
wcnss_smp2p_in: slave-kernel {
qcom,entry-name = "slave-kernel";
interrupt-controller;
#interrupt-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 121: The following example shows the SMP2P setup with the wireless processor,
Line 122: defined from the 8974 apps processor's point-of-view. It encompasses one
Line 123: inbound and one outbound entry.