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

Commit e8717506 authored by David Keitel's avatar David Keitel
Browse files

ARM: dts: add PM8004 dual phase SMPS2/SMPS4 regulator node for VDD_GFX



The dual phase SMPS2/SMPS4 regulator will be used to supply VDD_GFX
on msm8994 platforms which use PM8004.

Add the relevant rpm-regulator nodes which are referred to as smpc2.
This allows consumers to vote for the respective floor corner and
corner voltages.

Change-Id: Icdb97ffe5dd023c3ac86653964524b03f968fe9a
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 8f13915d
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -678,4 +678,20 @@
			status = "disabled";
		};
	};

	rpm-regulator-smpc2 {
		compatible = "qcom,rpm-smd-regulator-resource";
		qcom,resource-name = "smpc";
		qcom,resource-id = <2>;
		qcom,regulator-type = <1>;
		qcom,hpm-min-load = <100000>;
		status = "disabled";

		regulator-s2 {
			compatible = "qcom,rpm-smd-regulator";
			regulator-name = "pm8004_s2";
			qcom,set = <3>;
			status = "disabled";
		};
	};
};
+24 −0
Original line number Diff line number Diff line
@@ -487,6 +487,30 @@
			qcom,init-voltage = <3150000>;
		};
	};

	/* PM8004 S2 + S4 = 2 phase VDD_GFX supply */
	rpm-regulator-smpc2 {
		status = "disabled";
		pm8004_s2_corner: regulator-s2-corner {
			compatible = "qcom,rpm-smd-regulator";
			regulator-name = "pm8004_s2_corner";
			qcom,set = <3>;
			qcom,init-voltage-corner = <2>; /* SVS SOC */
			regulator-min-microvolt = <1>;
			regulator-max-microvolt = <7>;
			qcom,use-voltage-corner;
		};

		pm8004_s2_floor_corner: regulator-s2-floor-corner {
			compatible = "qcom,rpm-smd-regulator";
			regulator-name = "pm8004_s2_floor_corner";
			qcom,set = <3>;
			regulator-min-microvolt = <1>;
			regulator-max-microvolt = <7>;
			qcom,use-voltage-floor-corner;
			qcom,always-send-voltage;
		};
	};
};

/* SPM controlled regulators: */