@@ -58,6 +58,16 @@ properties:
reg:
maxItems: 1
+ power-domains:
+ maxItems: 1
+
+ power-domain-names:
+ items:
+ - const: mmcx
+
+ required-opps:
+ maxItems: 1
+
required:
- compatible
- reg
@@ -73,6 +83,7 @@ examples:
- |
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/clock/qcom,rpmh.h>
+ #include <dt-bindings/power/qcom-rpmpd.h>
clock-controller@af00000 {
compatible = "qcom,sdm845-dispcc";
reg = <0x0af00000 0x10000>;
@@ -97,5 +108,22 @@ examples:
#clock-cells = <1>;
#reset-cells = <1>;
#power-domain-cells = <1>;
+ /* this is a part of sm8250 setup the power domain example */
+ power-domains = <&rpmhpd SDM845_CX>;
+ power-domain-names = "mmcx";
+ required-opps = <&rpmhpd_opp_low_svs>;
+ };
+ rpmhpd: power-controller {
+ compatible = "qcom,sdm845-rpmhpd";
+ #power-domain-cells = <1>;
+ operating-points-v2 = <&rpmhpd_opp_table>;
+
+ rpmhpd_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ rpmhpd_opp_low_svs: opp3 {
+ opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
+ };
+ };
};
...