Qualcomm IP Accelerator (IPA)
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,ipa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alex Elder <elder@kernel.org>"
This binding describes the Qualcomm IPA. The IPA is capable of offloading certain network processing tasks (e.g. filtering, routing, and NAT) from the main processor. The IPA sits between multiple independent "execution environments," including the Application Processor (AP) and the modem. The IPA presents a Generic Software Interface (GSI) to each execution environment. The GSI is an integral part of the IPA, but it is logically isolated and has a distinct interrupt and a separately-defined address space. See also soc/qcom/qcom,smp2p.txt and interconnect/interconnect.txt. See iommu/iommu.txt and iommu/arm,smmu.yaml for more information about SMMU bindings. - | -------- --------- | | | | | AP +<---. .----+ Modem | | +--. | | .->+ | | | | | | | | | -------- | | | | --------- v | v | --+-+---+-+-- | GSI | |-----------| | | | IPA | | | -------------
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,msm8998-ipa","qcom,sc7180-ipa","qcom,sc7280-ipa","qcom,sdm845-ipa","qcom,sdx55-ipa","qcom,sdx65-ipa","qcom,sm6350-ipa","qcom,sm8350-ipa","qcom,sm8550-ipa"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,sm8550-ipa"
reg — required here #
Array item rules (items) #
Item 1
IPA registers
Item 2
IPA shared memory
Item 3
GSI registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipa-reg"
Item 2
Exact value (
const):"ipa-shared"
Item 3
Exact value (
const):"gsi"
iommus — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "core"
interrupts — required here #
Array item rules (items) #
Item 1
IPA interrupt (hardware IRQ)
Item 2
GSI interrupt (hardware IRQ)
Item 3
Modem clock query interrupt (smp2p interrupt)
Item 4
Modem setup ready interrupt (smp2p interrupt)
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipa"
Item 2
Exact value (
const):"gsi"
Item 3
Exact value (
const):"ipa-clock-query"
Item 4
Exact value (
const):"ipa-setup-ready"
interconnects — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Path leading to system memory
Item 2
Path between the AP and IPA config space
Rule 2
Array item rules (
items)Item 1
Path leading to system memory
Item 2
Path leading to internal memory
Item 3
Path between the AP and IPA config space
interconnect-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"memory"Item 2
Exact value (
const):"config"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"memory"Item 2
Exact value (
const):"imem"Item 3
Exact value (
const):"config"
qcom,qmp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the AOSS side-channel message RAM
qcom,smem-states — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
State bits used in by the AP to signal the modem.
Array item rules (items) #
Item 1
Whether the "ipa-clock-enabled" state bit is valid
Item 2
Whether the IPA clock is enabled (if valid)
qcom,smem-state-names — not listed as required here #
The names of the state bits used for SMP2P output
Array item rules (items) #
Item 1
Exact value (
const):"ipa-clock-enabled-valid"
Item 2
Exact value (
const):"ipa-clock-enabled"
qcom,gsi-loader — not listed as required here #
Allowed values (enum): "self", "modem", "skip"
Indicates how GSI firmware should be loaded. If the AP loads and validates GSI firmware, this property has value "self". If the modem does this, this property has value "modem". Otherwise, "skip" means GSI firmware loading is not required.
modem-init — not listed as required here #
Deprecated (deprecated): true
Value type (type): "boolean"
This is the older (deprecated) way of indicating how GSI firmware should be loaded. If present, the modem loads GSI firmware; if absent, the AP loads GSI firmware.
memory-region — not listed as required here #
Maximum number of items (maxItems): 1
If present, a phandle for a reserved memory area that holds the firmware passed to Trust Zone for authentication. Required when the AP (not the modem) performs early initialization.
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
If present, name (or relative path) of the file within the firmware search path containing the firmware image used when initializing IPA hardware. Optional, and only used when Trust Zone performs early initialization.
Required in this object (required): "compatible", "iommus", "reg", "clocks", "interrupts", "interconnects", "qcom,smem-states"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
modem-init— not listed as required here
false— Not permitted by this property rule.Condition (
if)Properties and child nodes (
properties)
qcom,gsi-loader— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"self"When the condition matches (
then)When the condition does not match (
else) #Condition (
if)This rule must not match (
not)When the condition matches (
then)
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/clock/qcom,rpmh.h>
#include <dt-bindings/interconnect/qcom,sdm845.h>
smp2p-mpss {
compatible = "qcom,smp2p";
interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>;
mboxes = <&apss_shared 6>;
qcom,smem = <94>, <432>;
qcom,local-pid = <0>;
qcom,remote-pid = <5>;
ipa_smp2p_out: ipa-ap-to-modem {
qcom,entry-name = "ipa";
#qcom,smem-state-cells = <1>;
};
ipa_smp2p_in: ipa-modem-to-ap {
qcom,entry-name = "ipa";
interrupt-controller;
#interrupt-cells = <2>;
};
};
ipa@1e40000 {
compatible = "qcom,sc7180-ipa";
qcom,gsi-loader = "self";
memory-region = <&ipa_fw_mem>;
firmware-name = "qcom/sc7180-trogdor/modem/modem.mbn";
iommus = <&apps_smmu 0x440 0x0>,
<&apps_smmu 0x442 0x0>;
reg = <0x1e40000 0x7000>,
<0x1e47000 0x2000>,
<0x1e04000 0x2c000>;
reg-names = "ipa-reg",
"ipa-shared",
"gsi";
interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>,
<&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
<&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ipa",
"gsi",
"ipa-clock-query",
"ipa-setup-ready";
clocks = <&rpmhcc RPMH_IPA_CLK>;
clock-names = "core";
interconnects =
<&aggre2_noc MASTER_IPA 0 &mc_virt SLAVE_EBI1 0>,
<&aggre2_noc MASTER_IPA 0 &system_noc SLAVE_IMEM 0>,
<&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_IPA_CFG 0>;
interconnect-names = "memory",
"imem",
"config";
qcom,qmp = <&aoss_qmp>;
qcom,smem-states = <&ipa_smp2p_out 0>,
<&ipa_smp2p_out 1>;
qcom,smem-state-names = "ipa-clock-enabled-valid",
"ipa-clock-enabled";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Line 178: If qcom,gsi-loader is present, modem-init must not be present
Line 186: If qcom,gsi-loader is "self", the AP loads GSI firmware, and
Line 187: memory-region must be specified
Line 197: If qcom,gsi-loader is not present, we use deprecated behavior.
Line 198: If modem-init is not present, the AP loads GSI firmware, and
Line 199: memory-region must be specified.