Qualcomm APCS global block

Schema identifier ($id): "http://devicetree.org/schemas/mailbox/qcom,apcs-kpss-global.yaml#"

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

This binding describes the APCS "global" block found in various Qualcomm platforms.

Maintainers (maintainers): "Jassi Brar <jassisinghbrar@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,ipq5018-apcs-apps-global", "qcom,ipq5332-apcs-apps-global", "qcom,ipq5424-apcs-apps-global", "qcom,ipq8074-apcs-apps-global", "qcom,ipq9574-apcs-apps-global"

Item 2

Exact value (const): "qcom,ipq6018-apcs-apps-global"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8226-apcs-kpss-global", "qcom,qcs404-apcs-apps-global"

Item 2

Exact value (const): "qcom,msm8916-apcs-kpss-global"

Item 3

Exact value (const): "syscon"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8974-apcs-kpss-global", "qcom,msm8976-apcs-kpss-global"

Item 2

Exact value (const): "qcom,msm8994-apcs-kpss-global"

Item 3

Exact value (const): "syscon"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8998-apcs-hmss-global", "qcom,sdm660-apcs-hmss-global", "qcom,sm4250-apcs-hmss-global", "qcom,sm6115-apcs-hmss-global", "qcom,sm6125-apcs-hmss-global"

Item 2

Exact value (const): "qcom,msm8994-apcs-kpss-global"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "qcom,qcs615-apss-shared", "qcom,sc7180-apss-shared", "qcom,sc8180x-apss-shared", "qcom,sm7150-apss-shared", "qcom,sm8150-apss-shared"

Item 2

Exact value (const): "qcom,sdm845-apss-shared"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8916-apcs-kpss-global", "qcom,msm8939-apcs-kpss-global", "qcom,msm8953-apcs-kpss-global", "qcom,msm8994-apcs-kpss-global", "qcom,sdx55-apcs-gcc"

Item 2

Exact value (const): "syscon"

Rule 7

Allowed values (enum): "qcom,ipq6018-apcs-apps-global", "qcom,msm8996-apcs-hmss-global", "qcom,qcm2290-apcs-hmss-global", "qcom,sdm845-apss-shared"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

phandles to the parent clocks of the clock driver

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Deprecated (deprecated): true

#mbox-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Allowed values (enum): 0, 1

clock-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Deprecated (deprecated): true

clock-controller — 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.

Properties and child nodes (properties) #

clocks — not listed as required here

phandles to the parent clocks of the clock driver

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

#clock-cells — not listed as required here

Allowed values (enum): 0, 1

clock-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Required in this object (required): "compatible", "reg", "#mbox-cells"

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

false

Not allowed by this rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "clock-controller"

Properties and child nodes (properties) #

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

#clock-cells — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Properties and child nodes (properties) #

clock-controller — not listed as required here

false — Not permitted by this property rule.

Reusable definitions ($defs) #

msm8916-apcs-clock-controller #

Properties and child nodes (properties) #

clocks — not listed as required here

Array item rules (items)

Item 1

primary pll parent of the clock driver

Item 2

auxiliary parent

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pll"

Item 2

Exact value (const): "aux"

#clock-cells — not listed as required here

Exact value (const): 0

msm8939-apcs-clock-controller #

Properties and child nodes (properties) #

clocks — not listed as required here

Array item rules (items)

Item 1

primary pll parent of the clock driver

Item 2

auxiliary parent

Item 3

reference clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pll"

Item 2

Exact value (const): "aux"

Item 3

Exact value (const): "ref"

#clock-cells — not listed as required here

Exact value (const): 0

sdx55-apcs-clock-controller #

Properties and child nodes (properties) #

clocks — not listed as required here

Array item rules (items)

Item 1

reference clock

Item 2

primary pll parent of the clock driver

Item 3

auxiliary parent

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "pll"

Item 3

Exact value (const): "aux"

#clock-cells — not listed as required here

Exact value (const): 0

ipq6018-apcs-clock-controller #

Properties and child nodes (properties) #

clocks — not listed as required here

Array item rules (items)

Item 1

primary pll parent of the clock driver

Item 2

XO clock

Item 3

GCC GPLL0 clock source

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pll"

Item 2

Exact value (const): "xo"

Item 3

Exact value (const): "gpll0"

#clock-cells — not listed as required here

Exact value (const): 1

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,msm8916-apcs-kpss-global"

When the condition matches (then) #

Shared schema rule ($ref): #/$defs/msm8916-apcs-clock-controller

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): #/$defs/msm8916-apcs-clock-controller

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,msm8939-apcs-kpss-global"

When the condition matches (then) #

Shared schema rule ($ref): #/$defs/msm8939-apcs-clock-controller

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): #/$defs/msm8939-apcs-clock-controller

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,sdx55-apcs-gcc"

When the condition matches (then) #

Shared schema rule ($ref): #/$defs/sdx55-apcs-clock-controller

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): #/$defs/sdx55-apcs-clock-controller

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,ipq6018-apcs-apps-global"

When the condition matches (then) #

Shared schema rule ($ref): #/$defs/ipq6018-apcs-clock-controller

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): #/$defs/ipq6018-apcs-clock-controller

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,msm8953-apcs-kpss-global", "qcom,msm8994-apcs-kpss-global", "qcom,msm8996-apcs-hmss-global", "qcom,qcm2290-apcs-hmss-global", "qcom,sdm845-apss-shared"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

clock-controller — not listed as required here

false — Not permitted by this property rule.

#clock-cells — not listed as required here

Exact value (const): 0

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
mailbox@9820000 {
    compatible = "qcom,msm8996-apcs-hmss-global";
    reg = <0x9820000 0x1000>;

    #mbox-cells = <1>;
    #clock-cells = <0>;
};
#define GCC_APSS_AHB_CLK_SRC  1
#define GCC_GPLL0_AO_OUT_MAIN 123
mailbox@b011000 {
    compatible = "qcom,qcs404-apcs-apps-global",
                 "qcom,msm8916-apcs-kpss-global", "syscon";
    reg = <0x0b011000 0x1000>;
    #mbox-cells = <1>;

    apcs_clk: clock-controller {
      clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
      clock-names = "pll", "aux";
      #clock-cells = <0>;
    };
};
#define GCC_APSS_AHB_CLK_SRC  1
#define GCC_GPLL0_AO_OUT_MAIN 123
apcs: mailbox@b011000 {
    compatible = "qcom,qcs404-apcs-apps-global",
                 "qcom,msm8916-apcs-kpss-global", "syscon";
    reg = <0x0b011000 0x1000>;
    #mbox-cells = <1>;
    clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
    clock-names = "pll", "aux";
    #clock-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Line 112: Clocks should be specified either on the parent node or on the child node

Line 251: Example apcs with msm8996

Line 262: Example apcs with qcs404

Line 279: Example apcs with qcs404 (deprecated: use clock-controller subnode)

Edit this page