[PATCH 0/8] arm64: dts: qcom: msm8939: Rework regulator constraints

From: Stephan Gerhold
Date: Wed Jun 14 2023 - 03:17:39 EST


Rework the regulator constraints for the MSM8939 device trees to be
closer to reality. There are several mistakes in there, some of them
taken over directly from Qualcomm's vendor kernel. Fortunately, none of
the mistakes is absolutely critical because it turns out that the RPM
firmware also validates the voltages and silently clamps the requests
to a proper range. Still, this behavior should be clearly represented
in the device tree rather than pretending to apply the wrong voltages.

Apply the same changes as previously for MSM8916 [1] and move the
voltages for the standard components in the SoC to the shared
msm8916-pm8939.dtsi. With this only the actual board-specific
regulators are described in the board DT.

[1]: https://lore.kernel.org/linux-arm-msm/20230510-msm8916-regulators-v1-0-54d4960a05fc@xxxxxxxxxxx/

Signed-off-by: Stephan Gerhold <stephan@xxxxxxxxxxx>
---
Stephan Gerhold (8):
arm64: dts: qcom: msm8939-pm8916: Add missing pm8916_codec supplies
arm64: dts: qcom: msm8939: Disable lpass_codec by default
arm64: dts: qcom: msm8939-sony-tulip: Fix l10-l12 regulator voltages
arm64: dts: qcom: msm8939-sony-tulip: Allow disabling pm8916_l6
arm64: dts: qcom: msm8939: Fix regulator constraints
arm64: dts: qcom: msm8939-pm8916: Clarify purpose
arm64: dts: qcom: msm8939: Define regulator constraints next to usage
arm64: dts: qcom: msm8939-pm8916: Mark always-on regulators

arch/arm64/boot/dts/qcom/apq8039-t2.dts | 102 +-----------------
arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 119 +++++++++++++++++----
.../dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts | 99 -----------------
arch/arm64/boot/dts/qcom/msm8939.dtsi | 1 +
4 files changed, 104 insertions(+), 217 deletions(-)
---
base-commit: 818e1fca81bfd773144d42f4fbe52b287235e8b4
change-id: 20230530-msm8939-regulators-dd631887ff4c

Best regards,
--
Stephan Gerhold <stephan@xxxxxxxxxxx>