Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fdd8b26 authored by David Collins's avatar David Collins
Browse files

ARM: dts: msm: add PM8998 LDO 1 active-only regulator device for sdm845



Add an active-only rpmh-regulator device for the PM8998 LDO 1
RPMh resource so that consumers can issue LDO 1 requests which
only apply when the application processor is awake.  Also add
a sleep-only rpmh-regulator device for LDO 1 in order to capture
the default sleep request: off in low power mode.  This ensures
that the LDO is disabled during sleep in the case that no
consumers utilize the active + sleep regulator device.

Change-Id: I172923c469d9d46e734cbbd858fac88ee7861eab
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 5f2e44ff
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -854,6 +854,25 @@
			qcom,init-voltage = <880000>;
			qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
		};

		pm8998_l1_ao: regulator-l1-ao {
			regulator-name = "pm8998_l1_ao";
			qcom,set = <RPMH_REGULATOR_SET_ACTIVE>;
			regulator-min-microvolt = <880000>;
			regulator-max-microvolt = <880000>;
			qcom,init-voltage = <880000>;
			qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
		};

		regulator-l1-so {
			regulator-name = "pm8998_l1_so";
			qcom,set = <RPMH_REGULATOR_SET_SLEEP>;
			regulator-min-microvolt = <880000>;
			regulator-max-microvolt = <880000>;
			qcom,init-voltage = <880000>;
			qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
			qcom,init-enable = <0>;
		};
	};

	rpmh-regulator-ldoa2 {