Qualcomm APR/GPR (Asynchronous/Generic Packet Router)

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

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

This binding describes the Qualcomm APR/GPR, APR/GPR is a IPC protocol for communication between Application processor and QDSP. APR/GPR is mainly used for audio/voice services on the QDSP.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,apr", "qcom,apr-v2", "qcom,gpr"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

qcom,apr-domain — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2, 3, 4, 5, 6, 7

Selects the processor domain for apr 1 = APR simulator 2 = PC Domain 3 = Modem Domain 4 = ADSP Domain 5 = Application processor Domain 6 = Modem2 Domain 7 = Application Processor2 Domain

Deprecated (deprecated): true

qcom,domain — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 7

Selects the processor domain for apr 1 = APR simulator 2 = PC Domain 3 = Modem Domain 4 = ADSP Domain 5 = Application processor Domain 6 = Modem2 Domain 7 = Application Processor2 Domain Selects the processor domain for gpr 1 = Modem Domain 2 = Audio DSP Domain 3 = Application Processor Domain

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

Channel name used for the communication

Maximum number of items (maxItems): 1

qcom,intents — not listed as required here #

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Array item rules (items) #

Array item rules (items)

Item 1

size of each intent to preallocate

Item 2

amount of intents to preallocate

Minimum value (minimum): 1

List of (size, amount) pairs describing what intents should be preallocated for this virtual channel. This can be used to tweak the default intents available for the channel to meet expectations of the remote.

qcom,smd-channels — not listed as required here #

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

Channel name used for the communication

Array item rules (items) #

Item 1

Exact value (const): "apr_audio_svc"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^service@[1-9a-d]$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/soc/qcom/qcom,apr-services.yaml

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

true

Allowed by this rule.

APR/GPR static port services.

Properties and child nodes (properties) #

compatible — not listed as required here

Allowed values (enum): "qcom,q6core", "qcom,q6asm", "qcom,q6afe", "qcom,q6adm", "qcom,q6apm", "qcom,q6prm"

Required in this object (required): "compatible", "qcom,domain"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "qcom,gpr"

When the condition matches (then) #

Properties and child nodes (properties)

qcom,glink-channels — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "adsp_apps"

power-domains — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Properties and child nodes (properties)

qcom,glink-channels — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apr_audio_svc"

Rule 2 #

Condition (if) #

Required in this object (required): "qcom,glink-channels"

When the condition matches (then) #

Properties and child nodes (properties)

qcom,smd-channels — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Required in this object (required): "qcom,smd-channels"

When the condition matches (then) #

Properties and child nodes (properties)

qcom,glink-channels — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qcom,apr.h>
apr {
    compatible = "qcom,apr-v2";
    qcom,domain = <APR_DOMAIN_ADSP>;
    qcom,glink-channels = "apr_audio_svc";
    qcom,intents = <512 20>;
    #address-cells = <1>;
    #size-cells = <0>;

    q6core: service@3 {
        compatible = "qcom,q6core";
        reg = <APR_SVC_ADSP_CORE>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
    };

    service@4 {
        compatible = "qcom,q6afe";
        reg = <APR_SVC_AFE>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        clock-controller {
            compatible = "qcom,q6afe-clocks";
            #clock-cells = <2>;
        };

        dais {
            compatible = "qcom,q6afe-dais";
            #address-cells = <1>;
            #size-cells = <0>;
            #sound-dai-cells = <1>;
            /* ... */
        };
        /* ... */
    };
};
#include <dt-bindings/soc/qcom,gpr.h>
gpr {
    compatible = "qcom,gpr";
    qcom,domain = <GPR_DOMAIN_ID_ADSP>;
    qcom,glink-channels = "adsp_apps";
    qcom,intents = <512 20>;
    #address-cells = <1>;
    #size-cells = <0>;

    service@1 {
        compatible = "qcom,q6apm";
        reg = <GPR_APM_MODULE_IID>;
        #sound-dai-cells = <0>;
        qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";

        dais {
            compatible = "qcom,q6apm-dais";
            iommus = <&apps_smmu 0x1801 0x0>;
        };

        bedais {
            compatible = "qcom,q6apm-lpass-dais";
            #sound-dai-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page