Qualcomm FastRPC Driver
Schema identifier ($id): "http://devicetree.org/schemas/misc/qcom,fastrpc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"
The FastRPC implements an IPC (Inter-Processor Communication) mechanism that allows for clients to transparently make remote method invocations across DSP and APPS boundaries. This enables developers to offload tasks to the DSP and free up the application processor for other tasks.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,kaanapali-fastrpc", "qcom,fastrpc"
label — required here #
Allowed values (enum): "adsp", "mdsp", "sdsp", "cdsp", "cdsp1", "gdsp0", "gdsp1"
memory-region — not listed as required here #
Maximum number of items (maxItems): 1
Phandle to a node describing memory to be used for remote heap CMA.
qcom,glink-channels — not listed as required here #
A list of channels tied to this function, used for matching the function to a set of virtual channels.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Array item rules (items) #
Item 1
Exact value (
const):"fastrpcglink-apps-dsp"
qcom,non-secure-domain — not listed as required here #
Used to mark the current domain as non-secure.
Value type (type): "boolean"
qcom,smd-channels — not listed as required here #
Channel name used for the RPM communication
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Array item rules (items) #
Item 1
Exact value (
const):"fastrpcsmd-apps-dsp"
qcom,vmids — not listed as required here #
Virtual machine IDs for remote processor.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
(compute-)?cb@[0-9]*$ — name matches this regular expression #
Value type (type): "object"
Each subnode of the Fastrpc represents compute context banks available on the dsp.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "qcom,fastrpc-compute-cb"
reg — required here
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here
true — No constraints added by this property rule.
iommus — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
qcom,nsessions — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
A value indicating how many sessions can share this context bank.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "label", "#address-cells", "#size-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/arm-gic.h>
#include <dt-bindings/mailbox/qcom-ipcc.h>
glink-edge {
interrupts-extended = <&ipcc IPCC_CLIENT_LPASS
IPCC_MPROC_SIGNAL_GLINK_QMP
IRQ_TYPE_EDGE_RISING>;
mboxes = <&ipcc IPCC_CLIENT_LPASS
IPCC_MPROC_SIGNAL_GLINK_QMP>;
label = "lpass";
qcom,remote-pid = <2>;
fastrpc {
compatible = "qcom,fastrpc";
qcom,glink-channels = "fastrpcglink-apps-dsp";
label = "sdsp";
qcom,non-secure-domain;
#address-cells = <1>;
#size-cells = <0>;
compute-cb@1 {
compatible = "qcom,fastrpc-compute-cb";
reg = <1>;
iommus = <&apps_smmu 0x0541 0x0>;
};
compute-cb@2 {
compatible = "qcom,fastrpc-compute-cb";
reg = <2>;
iommus = <&apps_smmu 0x0542 0x0>;
};
compute-cb@3 {
compatible = "qcom,fastrpc-compute-cb";
reg = <3>;
iommus = <&apps_smmu 0x0543 0x0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)