Skip to content

Commit 6184869

Browse files
affenull2345Ulf Hansson
authored andcommitted
dt-bindings: power: rpmpd: Add MSM8917, MSM8937 and QM215
The MSM8917, MSM8937 and QM215 SoCs have VDDCX and VDDMX power domains controlled in voltage level mode. Define the MSM8937 and QM215 power domains as aliases because these SoCs are similar to MSM8917 and may share some parts of the device tree. Also add the compatibles for these SoCs to the documentation, with qcom,msm8937-rpmpd using qcom,msm8917-rpmpd as a fallback compatible because there are no known differences. QM215 is not compatible with these because it uses different regulators. Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231014133823.14088-2-otto.pflueger@abscue.de Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent a1571f1 commit 6184869

2 files changed

Lines changed: 65 additions & 37 deletions

File tree

Documentation/devicetree/bindings/power/qcom,rpmpd.yaml

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,50 @@ description:
1515

1616
properties:
1717
compatible:
18-
enum:
19-
- qcom,mdm9607-rpmpd
20-
- qcom,msm8226-rpmpd
21-
- qcom,msm8909-rpmpd
22-
- qcom,msm8916-rpmpd
23-
- qcom,msm8939-rpmpd
24-
- qcom,msm8953-rpmpd
25-
- qcom,msm8976-rpmpd
26-
- qcom,msm8994-rpmpd
27-
- qcom,msm8996-rpmpd
28-
- qcom,msm8998-rpmpd
29-
- qcom,qcm2290-rpmpd
30-
- qcom,qcs404-rpmpd
31-
- qcom,qdu1000-rpmhpd
32-
- qcom,sa8155p-rpmhpd
33-
- qcom,sa8540p-rpmhpd
34-
- qcom,sa8775p-rpmhpd
35-
- qcom,sdm660-rpmpd
36-
- qcom,sc7180-rpmhpd
37-
- qcom,sc7280-rpmhpd
38-
- qcom,sc8180x-rpmhpd
39-
- qcom,sc8280xp-rpmhpd
40-
- qcom,sdm670-rpmhpd
41-
- qcom,sdm845-rpmhpd
42-
- qcom,sdx55-rpmhpd
43-
- qcom,sdx65-rpmhpd
44-
- qcom,sdx75-rpmhpd
45-
- qcom,sm6115-rpmpd
46-
- qcom,sm6125-rpmpd
47-
- qcom,sm6350-rpmhpd
48-
- qcom,sm6375-rpmpd
49-
- qcom,sm7150-rpmhpd
50-
- qcom,sm8150-rpmhpd
51-
- qcom,sm8250-rpmhpd
52-
- qcom,sm8350-rpmhpd
53-
- qcom,sm8450-rpmhpd
54-
- qcom,sm8550-rpmhpd
18+
oneOf:
19+
- enum:
20+
- qcom,mdm9607-rpmpd
21+
- qcom,msm8226-rpmpd
22+
- qcom,msm8909-rpmpd
23+
- qcom,msm8916-rpmpd
24+
- qcom,msm8917-rpmpd
25+
- qcom,msm8939-rpmpd
26+
- qcom,msm8953-rpmpd
27+
- qcom,msm8976-rpmpd
28+
- qcom,msm8994-rpmpd
29+
- qcom,msm8996-rpmpd
30+
- qcom,msm8998-rpmpd
31+
- qcom,qcm2290-rpmpd
32+
- qcom,qcs404-rpmpd
33+
- qcom,qdu1000-rpmhpd
34+
- qcom,qm215-rpmpd
35+
- qcom,sa8155p-rpmhpd
36+
- qcom,sa8540p-rpmhpd
37+
- qcom,sa8775p-rpmhpd
38+
- qcom,sc7180-rpmhpd
39+
- qcom,sc7280-rpmhpd
40+
- qcom,sc8180x-rpmhpd
41+
- qcom,sc8280xp-rpmhpd
42+
- qcom,sdm660-rpmpd
43+
- qcom,sdm670-rpmhpd
44+
- qcom,sdm845-rpmhpd
45+
- qcom,sdx55-rpmhpd
46+
- qcom,sdx65-rpmhpd
47+
- qcom,sdx75-rpmhpd
48+
- qcom,sm6115-rpmpd
49+
- qcom,sm6125-rpmpd
50+
- qcom,sm6350-rpmhpd
51+
- qcom,sm6375-rpmpd
52+
- qcom,sm7150-rpmhpd
53+
- qcom,sm8150-rpmhpd
54+
- qcom,sm8250-rpmhpd
55+
- qcom,sm8350-rpmhpd
56+
- qcom,sm8450-rpmhpd
57+
- qcom,sm8550-rpmhpd
58+
- items:
59+
- enum:
60+
- qcom,msm8937-rpmpd
61+
- const: qcom,msm8917-rpmpd
5562

5663
'#power-domain-cells':
5764
const: 1

include/dt-bindings/power/qcom-rpmpd.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,27 @@
278278
#define MSM8909_VDDMX MSM8916_VDDMX
279279
#define MSM8909_VDDMX_AO MSM8916_VDDMX_AO
280280

281+
/* MSM8917 Power Domain Indexes */
282+
#define MSM8917_VDDCX 0
283+
#define MSM8917_VDDCX_AO 1
284+
#define MSM8917_VDDCX_VFL 2
285+
#define MSM8917_VDDMX 3
286+
#define MSM8917_VDDMX_AO 4
287+
288+
/* MSM8937 Power Domain Indexes */
289+
#define MSM8937_VDDCX MSM8917_VDDCX
290+
#define MSM8937_VDDCX_AO MSM8917_VDDCX_AO
291+
#define MSM8937_VDDCX_VFL MSM8917_VDDCX_VFL
292+
#define MSM8937_VDDMX MSM8917_VDDMX
293+
#define MSM8937_VDDMX_AO MSM8917_VDDMX_AO
294+
295+
/* QM215 Power Domain Indexes */
296+
#define QM215_VDDCX MSM8917_VDDCX
297+
#define QM215_VDDCX_AO MSM8917_VDDCX_AO
298+
#define QM215_VDDCX_VFL MSM8917_VDDCX_VFL
299+
#define QM215_VDDMX MSM8917_VDDMX
300+
#define QM215_VDDMX_AO MSM8917_VDDMX_AO
301+
281302
/* MSM8953 Power Domain Indexes */
282303
#define MSM8953_VDDMD 0
283304
#define MSM8953_VDDMD_AO 1

0 commit comments

Comments
 (0)