2020-03-05 22:28:16 -06:00
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
%YAML 1.2
---
$id : http://devicetree.org/schemas/net/qcom,ipa.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
title : Qualcomm IP Accelerator (IPA)
maintainers :
- Alex Elder <elder@kernel.org>
description :
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.
2020-05-04 12:58:56 -05:00
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.
2020-03-05 22:28:16 -06:00
- |
-------- ---------
| | | |
| AP +<---. .----+ Modem |
| +--. | | .->+ |
| | | | | | | |
-------- | | | | ---------
v | v |
--+-+---+-+--
| GSI |
|-----------|
| |
| IPA |
| |
-------------
properties :
compatible :
2021-04-13 11:38:25 -05:00
enum :
2021-06-21 12:56:22 -05:00
- qcom,msm8998-ipa
2021-04-13 11:38:25 -05:00
- qcom,sc7180-ipa
- qcom,sc7280-ipa
- qcom,sdm845-ipa
- qcom,sdx55-ipa
2023-03-15 14:43:05 -05:00
- qcom,sdx65-ipa
2022-12-08 15:15:28 -06:00
- qcom,sm6350-ipa
2021-04-13 11:38:25 -05:00
- qcom,sm8350-ipa
2020-03-05 22:28:16 -06:00
reg :
items :
- description : IPA registers
- description : IPA shared memory
- description : GSI registers
reg-names :
items :
- const : ipa-reg
- const : ipa-shared
- const : gsi
2020-05-04 12:58:56 -05:00
iommus :
2021-10-26 18:32:40 +02:00
minItems : 1
maxItems : 2
2020-05-04 12:58:56 -05:00
2020-03-05 22:28:16 -06:00
clocks :
maxItems : 1
clock-names :
2020-04-20 21:24:47 -05:00
const : core
2020-03-05 22:28:16 -06:00
interrupts :
items :
- description : IPA interrupt (hardware IRQ)
- description : GSI interrupt (hardware IRQ)
- description : Modem clock query interrupt (smp2p interrupt)
- description : Modem setup ready interrupt (smp2p interrupt)
interrupt-names :
items :
- const : ipa
- const : gsi
- const : ipa-clock-query
- const : ipa-setup-ready
interconnects :
2021-08-11 09:18:02 -05:00
oneOf :
- items :
- description : Path leading to system memory
- description : Path between the AP and IPA config space
- items :
- description : Path leading to system memory
- description : Path leading to internal memory
- description : Path between the AP and IPA config space
2020-03-05 22:28:16 -06:00
interconnect-names :
2021-08-11 09:18:02 -05:00
oneOf :
- items :
- const : memory
- const : config
- items :
- const : memory
- const : imem
- const : config
2020-03-05 22:28:16 -06:00
2022-02-01 09:02:04 -06:00
qcom,qmp :
$ref : /schemas/types.yaml#/definitions/phandle
description : phandle to the AOSS side-channel message RAM
2020-03-05 22:28:16 -06:00
qcom,smem-states :
2020-04-15 19:55:49 -05:00
$ref : /schemas/types.yaml#/definitions/phandle-array
2020-03-05 22:28:16 -06:00
description : State bits used in by the AP to signal the modem.
items :
2020-04-20 21:24:47 -05:00
- description : Whether the "ipa-clock-enabled" state bit is valid
- description : Whether the IPA clock is enabled (if valid)
2020-03-05 22:28:16 -06:00
qcom,smem-state-names :
description : The names of the state bits used for SMP2P output
items :
- const : ipa-clock-enabled-valid
- const : ipa-clock-enabled
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
qcom,gsi-loader :
enum :
- self
- modem
2022-11-16 01:32:55 -06:00
- skip
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
description :
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".
2022-11-16 01:32:55 -06:00
Otherwise, "skip" means GSI firmware loading is not required.
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
2020-03-05 22:28:16 -06:00
modem-init :
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
deprecated : true
2020-03-05 22:28:16 -06:00
type : boolean
description :
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
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.
2020-03-05 22:28:16 -06:00
memory-region :
maxItems : 1
description :
If present, a phandle for a reserved memory area that holds
the firmware passed to Trust Zone for authentication. Required
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
when the AP (not the modem) performs early initialization.
2020-03-05 22:28:16 -06:00
2021-04-16 08:08:49 -05:00
firmware-name :
$ref : /schemas/types.yaml#/definitions/string
description :
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.
2020-03-05 22:28:16 -06:00
required :
- compatible
2020-05-04 12:58:56 -05:00
- iommus
2020-03-05 22:28:16 -06:00
- reg
- clocks
- interrupts
- interconnects
- qcom,smem-states
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
allOf :
# If qcom,gsi-loader is present, modem-init must not be present
- if :
required :
- qcom,gsi-loader
then :
properties :
modem-init : false
# If qcom,gsi-loader is "self", the AP loads GSI firmware, and
# memory-region must be specified
if :
properties :
qcom,gsi-loader :
contains :
const : self
then :
required :
- memory-region
else :
# If qcom,gsi-loader is not present, we use deprecated behavior.
# If modem-init is not present, the AP loads GSI firmware, and
# memory-region must be specified.
if :
not :
required :
- modem-init
then :
required :
- memory-region
2020-03-05 22:28:16 -06:00
2020-10-02 18:41:43 -05:00
additionalProperties : false
2020-03-05 22:28:16 -06:00
examples :
- |
2021-01-20 15:26:04 -06:00
#include <dt-bindings/interrupt-controller/arm-gic.h>
2020-03-11 16:47:00 -05:00
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interconnect/qcom,sdm845.h>
2020-03-05 22:28:16 -06:00
smp2p-mpss {
compatible = "qcom,smp2p";
2022-04-02 17:55:51 +02:00
interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>;
mboxes = <&apss_shared 6>;
qcom,smem = <94>, <432>;
qcom,local-pid = <0>;
qcom,remote-pid = <5>;
2020-03-05 22:28:16 -06:00
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>;
};
};
2022-04-02 17:55:51 +02:00
2020-03-05 22:28:16 -06:00
ipa@1e40000 {
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
compatible = "qcom,sc7180-ipa";
2020-03-05 22:28:16 -06:00
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
qcom,gsi-loader = "self";
memory-region = <&ipa_fw_mem>;
firmware-name = "qcom/sc7180-trogdor/modem/modem.mdt";
2020-03-05 22:28:16 -06:00
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
iommus = <&apps_smmu 0x440 0x0>,
<&apps_smmu 0x442 0x0>;
2020-05-12 15:45:43 -05:00
reg = <0x1e40000 0x7000>,
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
<0x1e47000 0x2000>,
<0x1e04000 0x2c000>;
2020-03-05 22:28:16 -06:00
reg-names = "ipa-reg",
2020-03-11 16:47:00 -05:00
"ipa-shared" ,
"gsi" ;
2020-03-05 22:28:16 -06:00
2021-01-20 15:26:04 -06:00
interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>,
2020-03-11 16:47:00 -05:00
<&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
<&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
2020-03-05 22:28:16 -06:00
interrupt-names = "ipa",
2020-03-11 16:47:00 -05:00
"gsi" ,
"ipa-clock-query" ,
"ipa-setup-ready" ;
2020-03-05 22:28:16 -06:00
clocks = <&rpmhcc RPMH_IPA_CLK>;
clock-names = "core";
interconnects =
dt-bindings: net: qcom,ipa: deprecate modem-init
GSI firmware for IPA must be loaded during initialization, either by
the AP or by the modem. The loader is currently specified based on
whether the Boolean modem-init property is present.
Instead, use a new property with an enumerated value to indicate
explicitly how GSI firmware gets loaded. With this in place, a
third approach can be added in an upcoming patch.
The new qcom,gsi-loader property has two defined values:
- self: The AP loads GSI firmware
- modem: The modem loads GSI firmware
The modem-init property must still be supported, but is now marked
deprecated.
Update the example so it represents the SC7180 SoC, and provide
examples for the qcom,gsi-loader, memory-region, and firmware-name
properties.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-16 01:32:52 -06:00
<&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>;
2020-03-05 22:28:16 -06:00
interconnect-names = "memory",
2021-08-02 18:30:19 -05:00
"imem" ,
"config" ;
2020-03-05 22:28:16 -06:00
2022-02-01 09:02:04 -06:00
qcom,qmp = <&aoss_qmp>;
2020-03-05 22:28:16 -06:00
qcom,smem-states = <&ipa_smp2p_out 0>,
2020-03-11 16:47:00 -05:00
<&ipa_smp2p_out 1>;
2020-03-05 22:28:16 -06:00
qcom,smem-state-names = "ipa-clock-enabled-valid",
"ipa-clock-enabled" ;
};