xref: /openbmc/linux/Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1f8881c5dSAngeloGioacchino Del Regno# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2f8881c5dSAngeloGioacchino Del Regno%YAML 1.2
3f8881c5dSAngeloGioacchino Del Regno---
4*2961ab05SRob Herring$id: http://devicetree.org/schemas/soc/qcom/qcom,spm.yaml#
5*2961ab05SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
6f8881c5dSAngeloGioacchino Del Regno
784e85359SKrzysztof Kozlowskititle: Qualcomm Subsystem Power Manager
8f8881c5dSAngeloGioacchino Del Regno
9f8881c5dSAngeloGioacchino Del Regnomaintainers:
10f8881c5dSAngeloGioacchino Del Regno  - Andy Gross <agross@kernel.org>
11f8881c5dSAngeloGioacchino Del Regno  - Bjorn Andersson <bjorn.andersson@linaro.org>
12f8881c5dSAngeloGioacchino Del Regno
13f8881c5dSAngeloGioacchino Del Regnodescription: |
14f8881c5dSAngeloGioacchino Del Regno  This binding describes the Qualcomm Subsystem Power Manager, used to control
15f8881c5dSAngeloGioacchino Del Regno  the peripheral logic surrounding the application cores in Qualcomm platforms.
16f8881c5dSAngeloGioacchino Del Regno
17f8881c5dSAngeloGioacchino Del Regnoproperties:
18f8881c5dSAngeloGioacchino Del Regno  compatible:
19f8881c5dSAngeloGioacchino Del Regno    items:
20f8881c5dSAngeloGioacchino Del Regno      - enum:
2192657617SAngeloGioacchino Del Regno          - qcom,sdm660-gold-saw2-v4.1-l2
2292657617SAngeloGioacchino Del Regno          - qcom,sdm660-silver-saw2-v4.1-l2
2392657617SAngeloGioacchino Del Regno          - qcom,msm8998-gold-saw2-v4.1-l2
2492657617SAngeloGioacchino Del Regno          - qcom,msm8998-silver-saw2-v4.1-l2
256447cd8dSStephan Gerhold          - qcom,msm8909-saw2-v3.0-cpu
2693fcf45bSStephan Gerhold          - qcom,msm8916-saw2-v3.0-cpu
277334ac8bSVincent Knecht          - qcom,msm8939-saw2-v3.0-cpu
28f8881c5dSAngeloGioacchino Del Regno          - qcom,msm8226-saw2-v2.1-cpu
29f8881c5dSAngeloGioacchino Del Regno          - qcom,msm8974-saw2-v2.1-cpu
307a21fddbSAngeloGioacchino Del Regno          - qcom,msm8976-gold-saw2-v2.3-l2
317a21fddbSAngeloGioacchino Del Regno          - qcom,msm8976-silver-saw2-v2.3-l2
32f8881c5dSAngeloGioacchino Del Regno          - qcom,apq8084-saw2-v2.1-cpu
33f8881c5dSAngeloGioacchino Del Regno          - qcom,apq8064-saw2-v1.1-cpu
34f8881c5dSAngeloGioacchino Del Regno      - const: qcom,saw2
35f8881c5dSAngeloGioacchino Del Regno
36f8881c5dSAngeloGioacchino Del Regno  reg:
37f8881c5dSAngeloGioacchino Del Regno    description: Base address and size of the SPM register region
38f8881c5dSAngeloGioacchino Del Regno    maxItems: 1
39f8881c5dSAngeloGioacchino Del Regno
40f8881c5dSAngeloGioacchino Del Regnorequired:
41f8881c5dSAngeloGioacchino Del Regno  - compatible
42f8881c5dSAngeloGioacchino Del Regno  - reg
43f8881c5dSAngeloGioacchino Del Regno
44f8881c5dSAngeloGioacchino Del RegnoadditionalProperties: false
45f8881c5dSAngeloGioacchino Del Regno
46f8881c5dSAngeloGioacchino Del Regnoexamples:
47f8881c5dSAngeloGioacchino Del Regno  - |
4892657617SAngeloGioacchino Del Regno
4992657617SAngeloGioacchino Del Regno    /* Example 1: SoC using SAW2 and kpss-acc-v2 CPUIdle */
50f8881c5dSAngeloGioacchino Del Regno    cpus {
51f8881c5dSAngeloGioacchino Del Regno        #address-cells = <1>;
52f8881c5dSAngeloGioacchino Del Regno        #size-cells = <0>;
53f8881c5dSAngeloGioacchino Del Regno
54f8881c5dSAngeloGioacchino Del Regno        cpu@0 {
55f8881c5dSAngeloGioacchino Del Regno            compatible = "qcom,kryo";
56f8881c5dSAngeloGioacchino Del Regno            device_type = "cpu";
57f8881c5dSAngeloGioacchino Del Regno            enable-method = "qcom,kpss-acc-v2";
58f8881c5dSAngeloGioacchino Del Regno            qcom,saw = <&saw0>;
59f8881c5dSAngeloGioacchino Del Regno            reg = <0x0>;
60f8881c5dSAngeloGioacchino Del Regno            operating-points-v2 = <&cpu_opp_table>;
61f8881c5dSAngeloGioacchino Del Regno        };
62f8881c5dSAngeloGioacchino Del Regno    };
63f8881c5dSAngeloGioacchino Del Regno
64f8881c5dSAngeloGioacchino Del Regno    saw0: power-manager@f9089000 {
65f8881c5dSAngeloGioacchino Del Regno        compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
66f8881c5dSAngeloGioacchino Del Regno        reg = <0xf9089000 0x1000>;
67f8881c5dSAngeloGioacchino Del Regno    };
68f8881c5dSAngeloGioacchino Del Regno
6992657617SAngeloGioacchino Del Regno  - |
7092657617SAngeloGioacchino Del Regno
7192657617SAngeloGioacchino Del Regno    /*
7292657617SAngeloGioacchino Del Regno     * Example 2: New-gen multi cluster SoC using SAW only for L2;
7392657617SAngeloGioacchino Del Regno     * This does not require any cpuidle driver, nor any cpu phandle.
7492657617SAngeloGioacchino Del Regno     */
7592657617SAngeloGioacchino Del Regno    power-manager@17812000 {
7692657617SAngeloGioacchino Del Regno        compatible = "qcom,msm8998-gold-saw2-v4.1-l2", "qcom,saw2";
7792657617SAngeloGioacchino Del Regno        reg = <0x17812000 0x1000>;
7892657617SAngeloGioacchino Del Regno    };
7992657617SAngeloGioacchino Del Regno
8092657617SAngeloGioacchino Del Regno    power-manager@17912000 {
8192657617SAngeloGioacchino Del Regno        compatible = "qcom,msm8998-silver-saw2-v4.1-l2", "qcom,saw2";
8292657617SAngeloGioacchino Del Regno        reg = <0x17912000 0x1000>;
8392657617SAngeloGioacchino Del Regno    };
8492657617SAngeloGioacchino Del Regno
85f8881c5dSAngeloGioacchino Del Regno...
86