Qualcomm MSM8916 MSS Peripheral Image Loader (and similar)

Schema identifier ($id): "http://devicetree.org/schemas/remoteproc/qcom,msm8916-mss-pil.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"

This document describes the hardware for a component that loads and boots firmware on the Qualcomm MSM8916 Modem Hexagon Core (and similar).

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,msm8226-mss-pil", "qcom,msm8909-mss-pil", "qcom,msm8916-mss-pil", "qcom,msm8926-mss-pil", "qcom,msm8953-mss-pil", "qcom,msm8974-mss-pil"

Rule 2

Exact value (const): "qcom,q6v5-pil"

Deprecated, prefer using qcom,msm8916-mss-pil

Deprecated (deprecated): true

reg — required here #

Array item rules (items) #

Item 1

MSS QDSP6 registers

Item 2

RMB registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "qdsp6"

Item 2

Exact value (const): "rmb"

interrupts — required here #

Array item rules (items) #

Item 1

Watchdog interrupt

Item 2

Fatal interrupt

Item 3

Ready interrupt

Item 4

Handover interrupt

Item 5

Stop acknowledge interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "wdog"

Item 2

Exact value (const): "fatal"

Item 3

Exact value (const): "ready"

Item 4

Exact value (const): "handover"

Item 5

Exact value (const): "stop-ack"

clocks — required here #

Array item rules (items) #

Item 1

Configuration interface (AXI) clock

Item 2

Configuration bus (AHB) clock

Item 3

Boot ROM (AHB) clock

Item 4

XO proxy clock (control handed over after startup)

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "mem"

Item 4

Exact value (const): "xo"

power-domains — not listed as required here #

Array item rules (items) #

Item 1

CX proxy power domain (control handed over after startup)

Item 2

MX proxy power domain (control handed over after startup) (not valid for qcom,msm8226-mss-pil, qcom,msm8926-mss-pil and qcom,msm8974-mss-pil)

Item 3

MSS proxy power domain (control handed over after startup) (only valid for qcom,msm8953-mss-pil)

Minimum number of items (minItems): 1

power-domain-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "cx"

Item 2

Exact value (const): "mx"

Item 3

Exact value (const): "mss"

Minimum number of items (minItems): 1

pll-supply — required here #

PLL proxy supply (control handed over after startup)

mss-supply — not listed as required here #

MSS power domain supply (only valid for qcom,msm8974-mss-pil)

resets — required here #

Array item rules (items) #

Item 1

MSS restart control

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mss_restart"

qcom,smem-states — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

States used by the AP to signal the Hexagon core

Array item rules (items) #

Item 1

Stop modem

qcom,smem-state-names — required here #

Names of the states used by the AP to signal the Hexagon core

Array item rules (items) #

Item 1

Exact value (const): "stop"

qcom,ext-bhs-reg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

External power block headswitch (BHS) register (only valid for qcom,msm8226-mss-pil)

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to external BHS syscon region

Item 2

offset to the external BHS register

qcom,halt-regs — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Halt registers are used to halt transactions of various sub-components within MSS.

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to TCSR syscon region

Item 2

offset to the Q6 halt register

Item 3

offset to the modem halt register

Item 4

offset to the nc halt register

memory-region — not listed as required here #

Array item rules (items) #

Item 1

MBA reserved region

Item 2

MPSS reserved region

firmware-name — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

Array item rules (items) #

Item 1

Name of MBA firmware

Item 2

Name of modem firmware

bam-dmux — not listed as required here #

Shared schema rule ($ref): /schemas/net/qcom,bam-dmux.yaml#

Qualcomm BAM Data Multiplexer (provides network interface to the modem)

smd-edge — required here #

Shared schema rule ($ref): qcom,smd-edge.yaml#

Qualcomm SMD subnode which represents communication edge, channels and devices related to the DSP.

Properties and child nodes (properties) #

label — not listed as required here

Allowed values (enum): "modem", "hexagon"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

cx-supply — not listed as required here #

CX power domain regulator supply (prefer using power-domains)

Deprecated (deprecated): true

mx-supply — not listed as required here #

MX power domain regulator supply (prefer using power-domains)

Deprecated (deprecated): true

mba — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

MBA reserved region (prefer using memory-region with two items)

Properties and child nodes (properties) #

memory-region — required here

true — No constraints added by this property rule.

Required in this object (required): "memory-region"

Deprecated (deprecated): true

mpss — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

MPSS reserved region (prefer using memory-region with two items)

Properties and child nodes (properties) #

memory-region — required here

true — No constraints added by this property rule.

Required in this object (required): "memory-region"

Deprecated (deprecated): true

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "clock-names", "pll-supply", "resets", "reset-names", "qcom,halt-regs", "qcom,smem-states", "qcom,smem-state-names", "smd-edge"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "qcom,msm8953-mss-pil"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — required here

Minimum number of items (minItems): 3

power-domain-names — required here

Minimum number of items (minItems): 3

Required in this object (required): "power-domains", "power-domain-names"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8909-mss-pil", "qcom,msm8916-mss-pil"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

power-domain-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8226-mss-pil", "qcom,msm8926-mss-pil", "qcom,msm8974-mss-pil"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Maximum number of items (maxItems): 1

power-domain-names — not listed as required here

Maximum number of items (maxItems): 1

Required in this object (required): "mx-supply"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "qcom,msm8226-mss-pil"

When the condition matches (then) #

Required in this object (required): "qcom,ext-bhs-reg"

When the condition does not match (else) #

Properties and child nodes (properties)

qcom,ext-bhs-reg — not listed as required here

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8926-mss-pil", "qcom,msm8974-mss-pil"

When the condition matches (then) #

Required in this object (required): "mss-supply"

When the condition does not match (else) #

Properties and child nodes (properties)

mss-supply — not listed as required here

false — Not permitted by this property rule.

Rule 6 #

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "memory-region"

Rule 2

Required in this object (required): "mba", "mpss"

Rule 7 #

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "power-domains", "power-domain-names"

Rule 2

Required in this object (required): "cx-supply", "mx-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-msm8916.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>

remoteproc_mpss: remoteproc@4080000 {
    compatible = "qcom,msm8916-mss-pil";
    reg = <0x04080000 0x100>, <0x04020000 0x40>;
    reg-names = "qdsp6", "rmb";

    interrupts-extended = <&intc GIC_SPI 24 IRQ_TYPE_EDGE_RISING>,
                          <&hexagon_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
                          <&hexagon_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
                          <&hexagon_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
                          <&hexagon_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";

    qcom,smem-states = <&hexagon_smp2p_out 0>;
    qcom,smem-state-names = "stop";
    qcom,halt-regs = <&tcsr 0x18000 0x19000 0x1a000>;

    clocks = <&gcc GCC_MSS_CFG_AHB_CLK>,
             <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>,
             <&gcc GCC_BOOT_ROM_AHB_CLK>,
             <&xo_board>;
    clock-names = "iface", "bus", "mem", "xo";

    power-domains = <&rpmpd MSM8916_VDDCX>, <&rpmpd MSM8916_VDDMX>;
    power-domain-names = "cx", "mx";
    pll-supply = <&pm8916_l7>;

    resets = <&scm 0>;
    reset-names = "mss_restart";

    memory-region = <&mba_mem>, <&mpss_mem>;

    smd-edge {
        interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>;

        qcom,smd-edge = <0>;
        qcom,ipc = <&apcs 8 12>;
        qcom,remote-pid = <1>;

        label = "hexagon";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 84: not valid for qcom,msm8226-mss-pil, qcom-msm8926-mss-pil and qcom,msm8974-mss-pil

Line 85: only valid for qcom,msm8953-mss-pil

Line 162: Deprecated properties

Line 282: Fallbacks for deprecated properties

Edit this page