Commit 7a2a2231 authored by Loic Poulain's avatar Loic Poulain Committed by Bjorn Andersson

arm64: dts: apq8096-db820c: Fix VDD core voltage

APQ8096 has its VDD APC (Power for quad Kryo applications
microprocessors) powered by PM8996 PMIC S9, S10, S11 tri-phase
regulators (gang). The bootloader may have configured these
regulators with non sustainable default values, leading to sporadic
hangs under CPU stress tests (cpufreq-bench). Ideally we should enable
voltage scaling along with frequency scaling, but for now just set the
regulator gang value to a sane voltage, capable of supporting highest
frequencies (turbo).
Signed-off-by: default avatarLoic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1578401755-26211-1-git-send-email-loic.poulain@linaro.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent eac8ce86
...@@ -647,6 +647,22 @@ &pm8994_mpps { ...@@ -647,6 +647,22 @@ &pm8994_mpps {
"NC"; "NC";
}; };
&pm8994_spmi_regulators {
qcom,saw-reg = <&saw3>;
s9 {
qcom,saw-slave;
};
s10 {
qcom,saw-slave;
};
s11 {
qcom,saw-leader;
regulator-always-on;
regulator-min-microvolt = <1230000>;
regulator-max-microvolt = <1230000>;
};
};
&pmi8994_gpios { &pmi8994_gpios {
gpio-line-names = gpio-line-names =
"NC", "NC",
......
...@@ -2137,6 +2137,11 @@ frame@98c0000 { ...@@ -2137,6 +2137,11 @@ frame@98c0000 {
}; };
}; };
saw3: syscon@9a10000 {
compatible = "syscon";
reg = <0x09a10000 0x1000>;
};
intc: interrupt-controller@9bc0000 { intc: interrupt-controller@9bc0000 {
compatible = "qcom,msm8996-gic-v3", "arm,gic-v3"; compatible = "qcom,msm8996-gic-v3", "arm,gic-v3";
#interrupt-cells = <3>; #interrupt-cells = <3>;
......
...@@ -85,5 +85,9 @@ pmic@1 { ...@@ -85,5 +85,9 @@ pmic@1 {
reg = <0x1 SPMI_USID>; reg = <0x1 SPMI_USID>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pm8994_spmi_regulators: regulators {
compatible = "qcom,pm8994-regulators";
};
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment