1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/net/qcom,ipa.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm IP Accelerator (IPA)
10 - Alex Elder <elder@kernel.org>
13 This binding describes the Qualcomm IPA. The IPA is capable of offloading
14 certain network processing tasks (e.g. filtering, routing, and NAT) from
17 The IPA sits between multiple independent "execution environments,"
18 including the Application Processor (AP) and the modem. The IPA presents
19 a Generic Software Interface (GSI) to each execution environment.
20 The GSI is an integral part of the IPA, but it is logically isolated
21 and has a distinct interrupt and a separately-defined address space.
23 See also soc/qcom/qcom,smp2p.txt and interconnect/interconnect.txt. See
24 iommu/iommu.txt and iommu/arm,smmu.yaml for more information about SMMU
31 | AP +<---. .----+ Modem |
34 -------- | | | | ---------
57 - description: IPA registers
58 - description: IPA shared memory
59 - description: GSI registers
79 - description: IPA interrupt (hardware IRQ)
80 - description: GSI interrupt (hardware IRQ)
81 - description: Modem clock query interrupt (smp2p interrupt)
82 - description: Modem setup ready interrupt (smp2p interrupt)
88 - const: ipa-clock-query
89 - const: ipa-setup-ready
94 - description: Path leading to system memory
95 - description: Path between the AP and IPA config space
97 - description: Path leading to system memory
98 - description: Path leading to internal memory
99 - description: Path between the AP and IPA config space
112 $ref: /schemas/types.yaml#/definitions/phandle
113 description: phandle to the AOSS side-channel message RAM
116 $ref: /schemas/types.yaml#/definitions/phandle-array
117 description: State bits used in by the AP to signal the modem.
119 - description: Whether the "ipa-clock-enabled" state bit is valid
120 - description: Whether the IPA clock is enabled (if valid)
122 qcom,smem-state-names:
123 description: The names of the state bits used for SMP2P output
125 - const: ipa-clock-enabled-valid
126 - const: ipa-clock-enabled
134 Indicates how GSI firmware should be loaded. If the AP loads
135 and validates GSI firmware, this property has value "self".
136 If the modem does this, this property has value "modem".
137 Otherwise, "skip" means GSI firmware loading is not required.
143 This is the older (deprecated) way of indicating how GSI firmware
144 should be loaded. If present, the modem loads GSI firmware; if
145 absent, the AP loads GSI firmware.
150 If present, a phandle for a reserved memory area that holds
151 the firmware passed to Trust Zone for authentication. Required
152 when the AP (not the modem) performs early initialization.
155 $ref: /schemas/types.yaml#/definitions/string
157 If present, name (or relative path) of the file within the
158 firmware search path containing the firmware image used when
159 initializing IPA hardware. Optional, and only used when
160 Trust Zone performs early initialization.
172 # If qcom,gsi-loader is present, modem-init must not be present
180 # If qcom,gsi-loader is "self", the AP loads GSI firmware, and
181 # memory-region must be specified
191 # If qcom,gsi-loader is not present, we use deprecated behavior.
192 # If modem-init is not present, the AP loads GSI firmware, and
193 # memory-region must be specified.
202 additionalProperties: false
206 #include <dt-bindings/interrupt-controller/arm-gic.h>
207 #include <dt-bindings/clock/qcom,rpmh.h>
208 #include <dt-bindings/interconnect/qcom,sdm845.h>
211 compatible = "qcom,smp2p";
212 interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>;
213 mboxes = <&apss_shared 6>;
214 qcom,smem = <94>, <432>;
215 qcom,local-pid = <0>;
216 qcom,remote-pid = <5>;
218 ipa_smp2p_out: ipa-ap-to-modem {
219 qcom,entry-name = "ipa";
220 #qcom,smem-state-cells = <1>;
223 ipa_smp2p_in: ipa-modem-to-ap {
224 qcom,entry-name = "ipa";
225 interrupt-controller;
226 #interrupt-cells = <2>;
231 compatible = "qcom,sc7180-ipa";
233 qcom,gsi-loader = "self";
234 memory-region = <&ipa_fw_mem>;
235 firmware-name = "qcom/sc7180-trogdor/modem/modem.mdt";
237 iommus = <&apps_smmu 0x440 0x0>,
238 <&apps_smmu 0x442 0x0>;
239 reg = <0x1e40000 0x7000>,
242 reg-names = "ipa-reg",
246 interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
247 <&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>,
248 <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
249 <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
250 interrupt-names = "ipa",
255 clocks = <&rpmhcc RPMH_IPA_CLK>;
256 clock-names = "core";
259 <&aggre2_noc MASTER_IPA 0 &mc_virt SLAVE_EBI1 0>,
260 <&aggre2_noc MASTER_IPA 0 &system_noc SLAVE_IMEM 0>,
261 <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_IPA_CFG 0>;
262 interconnect-names = "memory",
266 qcom,qmp = <&aoss_qmp>;
268 qcom,smem-states = <&ipa_smp2p_out 0>,
270 qcom,smem-state-names = "ipa-clock-enabled-valid",