0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/soc/qcom/qcom,spm.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: Qualcomm Subsystem Power Manager binding
0008
0009 maintainers:
0010 - Andy Gross <agross@kernel.org>
0011 - Bjorn Andersson <bjorn.andersson@linaro.org>
0012
0013 description: |
0014 This binding describes the Qualcomm Subsystem Power Manager, used to control
0015 the peripheral logic surrounding the application cores in Qualcomm platforms.
0016
0017 properties:
0018 compatible:
0019 items:
0020 - enum:
0021 - qcom,sdm660-gold-saw2-v4.1-l2
0022 - qcom,sdm660-silver-saw2-v4.1-l2
0023 - qcom,msm8998-gold-saw2-v4.1-l2
0024 - qcom,msm8998-silver-saw2-v4.1-l2
0025 - qcom,msm8909-saw2-v3.0-cpu
0026 - qcom,msm8916-saw2-v3.0-cpu
0027 - qcom,msm8226-saw2-v2.1-cpu
0028 - qcom,msm8974-saw2-v2.1-cpu
0029 - qcom,apq8084-saw2-v2.1-cpu
0030 - qcom,apq8064-saw2-v1.1-cpu
0031 - const: qcom,saw2
0032
0033 reg:
0034 description: Base address and size of the SPM register region
0035 maxItems: 1
0036
0037 required:
0038 - compatible
0039 - reg
0040
0041 additionalProperties: false
0042
0043 examples:
0044 - |
0045
0046 /* Example 1: SoC using SAW2 and kpss-acc-v2 CPUIdle */
0047 cpus {
0048 #address-cells = <1>;
0049 #size-cells = <0>;
0050
0051 cpu@0 {
0052 compatible = "qcom,kryo";
0053 device_type = "cpu";
0054 enable-method = "qcom,kpss-acc-v2";
0055 qcom,saw = <&saw0>;
0056 reg = <0x0>;
0057 operating-points-v2 = <&cpu_opp_table>;
0058 };
0059 };
0060
0061 saw0: power-manager@f9089000 {
0062 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
0063 reg = <0xf9089000 0x1000>;
0064 };
0065
0066 - |
0067
0068 /*
0069 * Example 2: New-gen multi cluster SoC using SAW only for L2;
0070 * This does not require any cpuidle driver, nor any cpu phandle.
0071 */
0072 power-manager@17812000 {
0073 compatible = "qcom,msm8998-gold-saw2-v4.1-l2", "qcom,saw2";
0074 reg = <0x17812000 0x1000>;
0075 };
0076
0077 power-manager@17912000 {
0078 compatible = "qcom,msm8998-silver-saw2-v4.1-l2", "qcom,saw2";
0079 reg = <0x17912000 0x1000>;
0080 };
0081
0082 ...