]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: power: rpmpd: Add sc8280xp RPMh power-domains
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Apr 2022 23:35:06 +0000 (16:35 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 28 Apr 2022 19:19:57 +0000 (14:19 -0500)
The sc8280xp has 13 power-domains controlled through the RPMh, document
the compatible and provide definitions for the power-domains - and their
active-only variants where applicable.

The SA8540p differs slightly in the power domains exposed, so add a
separate compatible for this, but reuse the constants to allow sharing
the DeviceTree source.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220426233508.1762345-2-bjorn.andersson@linaro.org
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
include/dt-bindings/power/qcom-rpmpd.h

index b90c4427beece98c748d5d36ff6cdbf8f0ad0cd4..ad77a6380f38b50e13519c85184fa4ea21002ff9 100644 (file)
@@ -27,10 +27,12 @@ properties:
       - qcom,msm8998-rpmpd
       - qcom,qcm2290-rpmpd
       - qcom,qcs404-rpmpd
+      - qcom,sa8540p-rpmhpd
       - qcom,sdm660-rpmpd
       - qcom,sc7180-rpmhpd
       - qcom,sc7280-rpmhpd
       - qcom,sc8180x-rpmhpd
+      - qcom,sc8280xp-rpmhpd
       - qcom,sdm845-rpmhpd
       - qcom,sdx55-rpmhpd
       - qcom,sdx65-rpmhpd
index 0a8978d0c78cec43f5cb8b88c63d638eee29c548..6cce5b7aa940ab50248f4f80570c18518cf584b6 100644 (file)
 #define SC8180X_MX     9
 #define SC8180X_MX_AO  10
 
+/* SC8280XP Power Domain Indexes */
+#define SC8280XP_CX            0
+#define SC8280XP_CX_AO         1
+#define SC8280XP_DDR           2
+#define SC8280XP_EBI           3
+#define SC8280XP_GFX           4
+#define SC8280XP_LCX           5
+#define SC8280XP_LMX           6
+#define SC8280XP_MMCX          7
+#define SC8280XP_MMCX_AO       8
+#define SC8280XP_MSS           9
+#define SC8280XP_MX            10
+#define SC8280XP_MXC           12
+#define SC8280XP_MX_AO         11
+#define SC8280XP_NSP           13
+#define SC8280XP_QPHY          14
+#define SC8280XP_XO            15
+
 /* SDM845 Power Domain performance levels */
 #define RPMH_REGULATOR_LEVEL_RETENTION 16
 #define RPMH_REGULATOR_LEVEL_MIN_SVS   48