Skip to content

Commit

Permalink
arm64: dts: qcom: sdm845-akatsuki: Round down l22a regulator voltage
Browse files Browse the repository at this point in the history
[ Upstream commit 4148a9e ]

2700000 is not a multiple of pmic4_pldo's step size of 8000 (with base
voltage 1664000), resulting in pm8998-rpmh-regulators not probing.  Just
as we did with MSM8998's Sony Yoshino Poplar [1], round the voltages
down to err on the cautious side and leave a comment in place to
document this discrepancy wrt downstream sources.

[1]: https://lore.kernel.org/linux-arm-msm/[email protected]/

Fixes: 30a7f99 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)")
Signed-off-by: Marijn Suijten <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
MarijnS95 authored and gregkh committed Aug 17, 2022
1 parent f3edcfd commit 905ce11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
};

&vreg_l22a_2p8 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
/* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */
regulator-min-microvolt = <2696000>;
regulator-max-microvolt = <2696000>;
};

&vreg_l28a_2p8 {
Expand Down

0 comments on commit 905ce11

Please sign in to comment.