| 1 |
|
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/remoteproc/qcom,msm8996-mss-pil.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Qualcomm MSM8996 MSS Peripheral Image Loader (and similar) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Bjorn Andersson <[email protected]> |
| 11 |
- Sibi Sankar <[email protected]> |
| 12 |
|
| 13 |
description: |
| 14 |
MSS Peripheral Image Loader loads and boots firmware on the |
| 15 |
Qualcomm Technology Inc. MSM8996 Modem Hexagon Core (and similar). |
| 16 |
|
| 17 |
properties: |
| 18 |
compatible: |
| 19 |
enum: |
| 20 |
- qcom,msm8996-mss-pil |
| 21 |
- qcom,msm8998-mss-pil |
| 22 |
- qcom,sdm660-mss-pil |
| 23 |
- qcom,sdm845-mss-pil |
| 24 |
|
| 25 |
reg: |
| 26 |
items: |
| 27 |
- description: MSS QDSP6 registers |
| 28 |
- description: RMB registers |
| 29 |
|
| 30 |
reg-names: |
| 31 |
items: |
| 32 |
- const: qdsp6 |
| 33 |
- const: rmb |
| 34 |
|
| 35 |
iommus: |
| 36 |
items: |
| 37 |
- description: MSA Stream 1 |
| 38 |
- description: MSA Stream 2 |
| 39 |
|
| 40 |
interrupts: |
| 41 |
items: |
| 42 |
- description: Watchdog interrupt |
| 43 |
- description: Fatal interrupt |
| 44 |
- description: Ready interrupt |
| 45 |
- description: Handover interrupt |
| 46 |
- description: Stop acknowledge interrupt |
| 47 |
- description: Shutdown acknowledge interrupt |
| 48 |
|
| 49 |
interrupt-names: |
| 50 |
items: |
| 51 |
- const: wdog |
| 52 |
- const: fatal |
| 53 |
- const: ready |
| 54 |
- const: handover |
| 55 |
- const: stop-ack |
| 56 |
- const: shutdown-ack |
| 57 |
|
| 58 |
clocks: |
| 59 |
minItems: 8 |
| 60 |
maxItems: 9 |
| 61 |
|
| 62 |
clock-names: |
| 63 |
minItems: 8 |
| 64 |
maxItems: 9 |
| 65 |
|
| 66 |
power-domains: |
| 67 |
items: |
| 68 |
- description: CX power domain |
| 69 |
- description: MX power domain |
| 70 |
- description: MSS power domain (only valid for qcom,sdm845-mss-pil) |
| 71 |
minItems: 2 |
| 72 |
|
| 73 |
power-domain-names: |
| 74 |
items: |
| 75 |
- const: cx |
| 76 |
- const: mx |
| 77 |
- const: mss |
| 78 |
minItems: 2 |
| 79 |
|
| 80 |
pll-supply: |
| 81 |
description: PLL supply |
| 82 |
|
| 83 |
resets: |
| 84 |
items: |
| 85 |
- description: AOSS restart |
| 86 |
- description: PDC reset (only valid for qcom,sdm845-mss-pil) |
| 87 |
minItems: 1 |
| 88 |
|
| 89 |
reset-names: |
| 90 |
items: |
| 91 |
- const: mss_restart |
| 92 |
- const: pdc_reset |
| 93 |
minItems: 1 |
| 94 |
|
| 95 |
qcom,qmp: |
| 96 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 97 |
description: Reference to the AOSS side-channel message RAM. |
| 98 |
|
| 99 |
qcom,smem-states: |
| 100 |
$ref: /schemas/types.yaml#/definitions/phandle-array |
| 101 |
description: States used by the AP to signal the Hexagon core |
| 102 |
items: |
| 103 |
- description: Stop modem |
| 104 |
|
| 105 |
qcom,smem-state-names: |
| 106 |
description: Names of the states used by the AP to signal the Hexagon core |
| 107 |
items: |
| 108 |
- const: stop |
| 109 |
|
| 110 |
qcom,halt-regs: |
| 111 |
$ref: /schemas/types.yaml#/definitions/phandle-array |
| 112 |
description: |
| 113 |
Halt registers are used to halt transactions of various sub-components |
| 114 |
within MSS. |
| 115 |
items: |
| 116 |
- items: |
| 117 |
- description: phandle to TCSR syscon region |
| 118 |
- description: offset to the Q6 halt register |
| 119 |
- description: offset to the modem halt register |
| 120 |
- description: offset to the nc halt register |
| 121 |
|
| 122 |
memory-region: |
| 123 |
items: |
| 124 |
- description: MBA reserved region |
| 125 |
- description: Modem reserved region |
| 126 |
- description: Metadata reserved region |
| 127 |
|
| 128 |
firmware-name: |
| 129 |
items: |
| 130 |
- description: Name of MBA firmware |
| 131 |
- description: Name of modem firmware |
| 132 |
|
| 133 |
smd-edge: |
| 134 |
$ref: /schemas/remoteproc/qcom,smd-edge.yaml# |
| 135 |
description: |
| 136 |
Qualcomm Shared Memory subnode which represents communication edge, |
| 137 |
channels and devices related to the Modem. |
| 138 |
unevaluatedProperties: false |
| 139 |
|
| 140 |
glink-edge: |
| 141 |
$ref: /schemas/remoteproc/qcom,glink-edge.yaml# |
| 142 |
description: |
| 143 |
Qualcomm G-Link subnode which represents communication edge, channels |
| 144 |
and devices related to the Modem. |
| 145 |
unevaluatedProperties: false |
| 146 |
|
| 147 |
|
| 148 |
mba: |
| 149 |
type: object |
| 150 |
description: |
| 151 |
MBA reserved region |
| 152 |
|
| 153 |
properties: |
| 154 |
memory-region: true |
| 155 |
|
| 156 |
required: |
| 157 |
- memory-region |
| 158 |
|
| 159 |
additionalProperties: false |
| 160 |
deprecated: true |
| 161 |
|
| 162 |
mpss: |
| 163 |
type: object |
| 164 |
description: |
| 165 |
MPSS reserved region |
| 166 |
|
| 167 |
properties: |
| 168 |
memory-region: true |
| 169 |
|
| 170 |
required: |
| 171 |
- memory-region |
| 172 |
|
| 173 |
additionalProperties: false |
| 174 |
deprecated: true |
| 175 |
|
| 176 |
metadata: |
| 177 |
type: object |
| 178 |
description: |
| 179 |
Metadata reserved region |
| 180 |
|
| 181 |
properties: |
| 182 |
memory-region: true |
| 183 |
|
| 184 |
required: |
| 185 |
- memory-region |
| 186 |
|
| 187 |
additionalProperties: false |
| 188 |
deprecated: true |
| 189 |
|
| 190 |
required: |
| 191 |
- compatible |
| 192 |
- reg |
| 193 |
- reg-names |
| 194 |
- interrupts |
| 195 |
- interrupt-names |
| 196 |
- clocks |
| 197 |
- clock-names |
| 198 |
- power-domains |
| 199 |
- power-domain-names |
| 200 |
- resets |
| 201 |
- reset-names |
| 202 |
- qcom,halt-regs |
| 203 |
- qcom,smem-states |
| 204 |
- qcom,smem-state-names |
| 205 |
|
| 206 |
allOf: |
| 207 |
- if: |
| 208 |
properties: |
| 209 |
compatible: |
| 210 |
const: qcom,msm8996-mss-pil |
| 211 |
then: |
| 212 |
properties: |
| 213 |
clocks: |
| 214 |
items: |
| 215 |
- description: GCC MSS IFACE clock |
| 216 |
- description: GCC MSS BUS clock |
| 217 |
- description: GCC MSS MEM clock |
| 218 |
- description: RPM XO clock |
| 219 |
- description: GCC MSS GPLL0 clock |
| 220 |
- description: GCC MSS SNOC_AXI clock |
| 221 |
- description: GCC MSS MNOC_AXI clock |
| 222 |
- description: RPM QDSS clock |
| 223 |
clock-names: |
| 224 |
items: |
| 225 |
- const: iface |
| 226 |
- const: bus |
| 227 |
- const: mem |
| 228 |
- const: xo |
| 229 |
- const: gpll0_mss |
| 230 |
- const: snoc_axi |
| 231 |
- const: mnoc_axi |
| 232 |
- const: qdss |
| 233 |
required: |
| 234 |
- pll-supply |
| 235 |
- smd-edge |
| 236 |
else: |
| 237 |
properties: |
| 238 |
pll-supply: false |
| 239 |
smd-edge: false |
| 240 |
|
| 241 |
- if: |
| 242 |
properties: |
| 243 |
compatible: |
| 244 |
enum: |
| 245 |
- qcom,msm8998-mss-pil |
| 246 |
- qcom,sdm660-mss-pil |
| 247 |
then: |
| 248 |
properties: |
| 249 |
clocks: |
| 250 |
items: |
| 251 |
- description: GCC MSS IFACE clock |
| 252 |
- description: GCC MSS BUS clock |
| 253 |
- description: GCC MSS MEM clock |
| 254 |
- description: GCC MSS GPLL0 clock |
| 255 |
- description: GCC MSS SNOC_AXI clock |
| 256 |
- description: GCC MSS MNOC_AXI clock |
| 257 |
- description: RPMH QDSS clock |
| 258 |
- description: RPMH XO clock |
| 259 |
clock-names: |
| 260 |
items: |
| 261 |
- const: iface |
| 262 |
- const: bus |
| 263 |
- const: mem |
| 264 |
- const: gpll0_mss |
| 265 |
- const: snoc_axi |
| 266 |
- const: mnoc_axi |
| 267 |
- const: qdss |
| 268 |
- const: xo |
| 269 |
required: |
| 270 |
- glink-edge |
| 271 |
|
| 272 |
- if: |
| 273 |
properties: |
| 274 |
compatible: |
| 275 |
const: qcom,sdm845-mss-pil |
| 276 |
then: |
| 277 |
properties: |
| 278 |
power-domains: |
| 279 |
minItems: 3 |
| 280 |
power-domain-names: |
| 281 |
minItems: 3 |
| 282 |
resets: |
| 283 |
minItems: 2 |
| 284 |
reset-names: |
| 285 |
minItems: 2 |
| 286 |
clocks: |
| 287 |
items: |
| 288 |
- description: GCC MSS IFACE clock |
| 289 |
- description: GCC MSS BUS clock |
| 290 |
- description: GCC MSS MEM clock |
| 291 |
- description: GCC MSS GPLL0 clock |
| 292 |
- description: GCC MSS SNOC_AXI clock |
| 293 |
- description: GCC MSS MNOC_AXI clock |
| 294 |
- description: GCC MSS PRNG clock |
| 295 |
- description: RPMH XO clock |
| 296 |
clock-names: |
| 297 |
items: |
| 298 |
- const: iface |
| 299 |
- const: bus |
| 300 |
- const: mem |
| 301 |
- const: gpll0_mss |
| 302 |
- const: snoc_axi |
| 303 |
- const: mnoc_axi |
| 304 |
- const: prng |
| 305 |
- const: xo |
| 306 |
required: |
| 307 |
- qcom,qmp |
| 308 |
- glink-edge |
| 309 |
else: |
| 310 |
properties: |
| 311 |
iommus: false |
| 312 |
power-domains: |
| 313 |
maxItems: 2 |
| 314 |
power-domain-names: |
| 315 |
maxItems: 2 |
| 316 |
resets: |
| 317 |
maxItems: 1 |
| 318 |
reset-names: |
| 319 |
maxItems: 1 |
| 320 |
qcom,qmp: false |
| 321 |
|
| 322 |
|
| 323 |
- oneOf: |
| 324 |
- required: |
| 325 |
- memory-region |
| 326 |
- required: |
| 327 |
- mba |
| 328 |
- mpss |
| 329 |
- metadata |
| 330 |
|
| 331 |
additionalProperties: false |
| 332 |
|
| 333 |
examples: |
| 334 |
- | |
| 335 |
#include <dt-bindings/clock/qcom,gcc-sdm845.h> |
| 336 |
#include <dt-bindings/clock/qcom,rpmh.h> |
| 337 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 338 |
#include <dt-bindings/power/qcom-rpmpd.h> |
| 339 |
#include <dt-bindings/reset/qcom,sdm845-aoss.h> |
| 340 |
#include <dt-bindings/reset/qcom,sdm845-pdc.h> |
| 341 |
|
| 342 |
remoteproc@4080000 { |
| 343 |
compatible = "qcom,sdm845-mss-pil"; |
| 344 |
reg = <0x04080000 0x408>, <0x04180000 0x48>; |
| 345 |
reg-names = "qdsp6", "rmb"; |
| 346 |
|
| 347 |
interrupts-extended = <&intc GIC_SPI 266 IRQ_TYPE_EDGE_RISING>, |
| 348 |
<&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, |
| 349 |
<&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, |
| 350 |
<&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, |
| 351 |
<&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, |
| 352 |
<&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; |
| 353 |
interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack", |
| 354 |
"shutdown-ack"; |
| 355 |
|
| 356 |
clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, |
| 357 |
<&gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>, |
| 358 |
<&gcc GCC_BOOT_ROM_AHB_CLK>, |
| 359 |
<&gcc GCC_MSS_GPLL0_DIV_CLK_SRC>, |
| 360 |
<&gcc GCC_MSS_SNOC_AXI_CLK>, |
| 361 |
<&gcc GCC_MSS_MFAB_AXIS_CLK>, |
| 362 |
<&gcc GCC_PRNG_AHB_CLK>, |
| 363 |
<&rpmhcc RPMH_CXO_CLK>; |
| 364 |
clock-names = "iface", "bus", "mem", "gpll0_mss", |
| 365 |
"snoc_axi", "mnoc_axi", "prng", "xo"; |
| 366 |
|
| 367 |
power-domains = <&rpmhpd SDM845_CX>, |
| 368 |
<&rpmhpd SDM845_MX>, |
| 369 |
<&rpmhpd SDM845_MSS>; |
| 370 |
power-domain-names = "cx", "mx", "mss"; |
| 371 |
|
| 372 |
memory-region = <&mba_mem>, <&mpss_mem>, <&mdata_mem>; |
| 373 |
|
| 374 |
resets = <&aoss_reset AOSS_CC_MSS_RESTART>, |
| 375 |
<&pdc_reset PDC_MODEM_SYNC_RESET>; |
| 376 |
reset-names = "mss_restart", "pdc_reset"; |
| 377 |
|
| 378 |
qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>; |
| 379 |
|
| 380 |
qcom,qmp = <&aoss_qmp>; |
| 381 |
|
| 382 |
qcom,smem-states = <&modem_smp2p_out 0>; |
| 383 |
qcom,smem-state-names = "stop"; |
| 384 |
|
| 385 |
glink-edge { |
| 386 |
interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>; |
| 387 |
label = "modem"; |
| 388 |
qcom,remote-pid = <1>; |
| 389 |
mboxes = <&apss_shared 12>; |
| 390 |
}; |
| 391 |
}; |