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

Commit b2ddc4c9 authored by Wu Fenglin's avatar Wu Fenglin Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: add a VDD_APC cpr-regulator device for msm8916



Replace the regulator-apc-corner qcom,stub-regulator device node with a
qcom,cpr-regulator device node. This allows for the PM8916 SMPS 2
regulator voltage to set based upon voltage corners requested from the
cpr-regulator device as well as CPR hardware recommendations.

Change-Id: Ibda3086b79486bb476e17e087c9fd0f4af361783
Signed-off-by: default avatarWu Fenglin <fenglinw@codeaurora.org>
parent 1721e37c
Loading
Loading
Loading
Loading
+47 −8
Original line number Diff line number Diff line
@@ -20,13 +20,6 @@
		regulator-max-microvolt = <7>;
	};

	apc_vreg_corner: regulator-apc-corner {
		compatible = "qcom,stub-regulator";
		regulator-name = "apc_corner";
		regulator-min-microvolt = <1>;
		regulator-max-microvolt = <3>;
	};

	pm8916_s1_corner_ao: regulator-s1-corner_ao {
		compatible = "qcom,stub-regulator";
		regulator-name = "8916_s1_corner_ao";
@@ -44,6 +37,52 @@
	};
};

/* CPR controlled regulator */

&soc {
	apc_vreg_corner: regulator@b018000 {
		compatible = "qcom,cpr-regulator";
		reg = <0xb018000 0x1000>, <0xb011064 4>, <0x58000 0x1000>;
		reg-names = "rbcpr", "rbcpr_clk", "efuse_addr";
		interrupts = <0 15 0>;
		regulator-name = "apc_corner";
		regulator-min-microvolt = <1>;
		regulator-max-microvolt = <3>;

		qcom,cpr-voltage-ceiling = <1050000 1150000 1350000>;
		qcom,cpr-voltage-floor = <1050000 1050000 1162500>;
		vdd-apc-supply = <&pm8916_s2>;

		qcom,vdd-mx-corner-map = <1050000 1150000 1287500>;
		qcom,vdd-mx-vmin-method = <4>;
		qcom,vdd-mx-supply = <&pm8916_l3>;

		qcom,cpr-ref-clk = <19200>;
		qcom,cpr-timer-delay = <5000>;
		qcom,cpr-timer-cons-up = <0>;
		qcom,cpr-timer-cons-down = <2>;
		qcom,cpr-irq-line = <0>;
		qcom,cpr-step-quotient = <26>;
		qcom,cpr-up-threshold = <0>;
		qcom,cpr-down-threshold = <2>;
		qcom,cpr-idle-clocks = <15>;
		qcom,cpr-gcnt-time = <1>;
		qcom,vdd-apc-step-up-limit = <1>;
		qcom,vdd-apc-step-down-limit = <1>;
		qcom,cpr-apc-volt-step = <12500>;

		qcom,cpr-fuse-row = <27 0>;
		qcom,cpr-fuse-target-quot = <42 24 6>;
		qcom,cpr-fuse-ro-sel = <54 54 54>;
		qcom,cpr-fuse-bp-cpr-disable = <57>;
		qcom,cpr-fuse-init-voltage =
					<27 36 6 0>,
					<27 18 6 0>,
					<27 0 6 0>;
		qcom,cpr-init-voltage-step = <10000>;
	};
};

/* QPNP controlled regulators */
&spmi_bus {
	qcom,pm8916@1 {
@@ -61,7 +100,7 @@
			status = "okay";
			qcom,enable-time = <500>;
			regulator-min-microvolt = <900000>;
			regulator-max-microvolt = <1280000>;
			regulator-max-microvolt = <1350000>;
			qcom,system-load = <100000>;
			regulator-always-on;
		};