QCOM Secure Channel Manager (SCM)

Schema identifier ($id): "http://devicetree.org/schemas/firmware/qcom,scm.yaml#"

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

Qualcomm processors include an interface to communicate to the secure firmware. This interface allows for clients to request different types of actions. These can include CPU power up/down, HDCP requests, loading of firmware, and other assorted actions.

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>", "Robert Marko <robimarko@gmail.com>", "Guru Das Srinagesh <quic_gurus@quicinc.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,scm-apq8064", "qcom,scm-apq8084", "qcom,scm-glymur", "qcom,scm-ipq4019", "qcom,scm-ipq5018", "qcom,scm-ipq5332", "qcom,scm-ipq5424", "qcom,scm-ipq6018", "qcom,scm-ipq806x", "qcom,scm-ipq8074", "qcom,scm-ipq9574", "qcom,scm-kaanapali", "qcom,scm-mdm9607", "qcom,scm-milos", "qcom,scm-msm8226", "qcom,scm-msm8660", "qcom,scm-msm8916", "qcom,scm-msm8937", "qcom,scm-msm8953", "qcom,scm-msm8960", "qcom,scm-msm8974", "qcom,scm-msm8976", "qcom,scm-msm8994", "qcom,scm-msm8996", "qcom,scm-msm8998", "qcom,scm-qcm2290", "qcom,scm-qcs615", "qcom,scm-qcs8300", "qcom,scm-qdu1000", "qcom,scm-sa8255p", "qcom,scm-sa8775p", "qcom,scm-sar2130p", "qcom,scm-sc7180", "qcom,scm-sc7280", "qcom,scm-sc8180x", "qcom,scm-sc8280xp", "qcom,scm-sdm670", "qcom,scm-sdm845", "qcom,scm-sdx55", "qcom,scm-sdx65", "qcom,scm-sdx75", "qcom,scm-sm6115", "qcom,scm-sm6125", "qcom,scm-sm6350", "qcom,scm-sm6375", "qcom,scm-sm7150", "qcom,scm-sm8150", "qcom,scm-sm8250", "qcom,scm-sm8350", "qcom,scm-sm8450", "qcom,scm-sm8550", "qcom,scm-sm8650", "qcom,scm-sm8750", "qcom,scm-qcs404", "qcom,scm-x1e80100"

Item 2

Exact value (const): "qcom,scm"

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Maximum number of items (maxItems): 1

interconnect-names — not listed as required here #

Maximum number of items (maxItems): 1

#reset-cells — not listed as required here #

Exact value (const): 1

interrupts — not listed as required here #

The wait-queue interrupt that firmware raises as part of handshake protocol to handle sleeping SCM calls.

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

Phandle to the memory region reserved for the shared memory bridge to TZ.

Maximum number of items (maxItems): 1

qcom,sdi-enabled — not listed as required here #

Indicates that the SDI (Secure Debug Image) has been enabled by TZ by default and it needs to be disabled. If not disabled WDT assertion or reboot will cause the board to hang in the debug mode.

Value type (type): "boolean"

qcom,dload-mode — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to TCSR hardware block

Item 2

offset of the download mode control register

TCSR hardware block

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-apq8064", "qcom,scm-apq8084", "qcom,scm-mdm9607", "qcom,scm-msm8226", "qcom,scm-msm8660", "qcom,scm-msm8916", "qcom,scm-msm8937", "qcom,scm-msm8953", "qcom,scm-msm8960", "qcom,scm-msm8974", "qcom,scm-msm8976", "qcom,scm-qcm2290", "qcom,scm-sm6375"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clock-names — not listed as required here

false — Not permitted by this property rule.

clocks — not listed as required here

false — Not permitted by this property rule.

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,scm-apq8064", "qcom,scm-msm8660", "qcom,scm-msm8960", "qcom,scm-qcm2290", "qcom,scm-sm6375"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

clocks — not listed as required here

Maximum number of items (maxItems): 1

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,scm-apq8084", "qcom,scm-mdm9607", "qcom,scm-msm8226", "qcom,scm-msm8916", "qcom,scm-msm8937", "qcom,scm-msm8953", "qcom,scm-msm8974", "qcom,scm-msm8976"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "iface"

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Rule 4 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-kaanapali", "qcom,scm-milos", "qcom,scm-sm8450", "qcom,scm-sm8550", "qcom,scm-sm8650", "qcom,scm-sm8750"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-sa8255p", "qcom,scm-sa8775p"

When the condition matches (then) #

Properties and child nodes (properties)

memory-region — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible"

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>

firmware {
    scm {
        compatible = "qcom,scm-msm8916", "qcom,scm";
        clocks = <&gcc GCC_CRYPTO_CLK>,
                 <&gcc GCC_CRYPTO_AXI_CLK>,
                 <&gcc GCC_CRYPTO_AHB_CLK>;
        clock-names = "core", "bus", "iface";
    };
};

Source notes #

Annotations retained from the schema source

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

Line 128: Clocks

Line 200: Interrupts

Edit this page