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

Commit 12cf7e3e authored by Fenglin Wu's avatar Fenglin Wu
Browse files

ARM: dts: msm: add I2C buck regulator devices for msm8939



Add I2C controlled buck regulator devices which provide voltage for
msm8939 APC power rail. Onsemi NCP6335D and Fairchild FAN53555 are both
supported on msm8939 boards.

Change-Id: I2acc664456ceb89c62c10ff2eb01f27f939d2e5b
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 8c64821a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -365,5 +365,16 @@
				bias-pull-down;
			};
		};

		ext_buck_vsel {
			qcom,pins = <&gp 111>;
			qcom,num-grp-pins = <1>;
			qcom,pin-func = <0>;
			label = "ext-buck-vsel";

			ext_buck_vsel_default: vsel0 {
				drive-strength = <2>;
			};
		};
	};
};
+36 −0
Original line number Diff line number Diff line
@@ -10,6 +10,42 @@
 * GNU General Public License for more details.
 */

/* External I2C controlled buck regulators */

&i2c_4 {
	ncp6335d: ncp6335d-regulator@1c {
		compatible = "onnn,ncp6335d-regulator";
		reg = <0x1c>;
		onnn,vsel = <0>;
		onnn,slew-ns = <3333>;
		onnn,step-size = <6250>;
		onnn,min-slew-ns = <416>;
		onnn,max-slew-ns = <3333>;
		regulator-min-microvolt = <1050000>;
		regulator-max-microvolt = <1350000>;
		onnn,min-setpoint = <600000>;
		pintrl-names = "default";
		pinctrl-0 = <&ext_buck_vsel_default>;
		onnn,vsel-gpio = <&msm_gpio 111 1>;
		onnn,discharge-enable;
		onnn,restore-reg;
	};

	fan53555: fan53555-regulator@60 {
		compatible = "fairchild,fan53555-regulator";
		reg = <0x60>;
		fairchild,backup-vsel = <1>;
		regulator-min-microvolt = <1050000>;
		regulator-max-microvolt = <1350000>;
		regulator-ramp-delay = <1250>;
		pintrl-names = "default";
		pinctrl-0 = <&ext_buck_vsel_default>;
		fairchild,vsel-gpio = <&msm_gpio 111 1>;
		fairchild,restore-reg;
		fairchild,disable-suspend;
	};
};

/* Stub regulators */

/ {
+8 −0
Original line number Diff line number Diff line
@@ -367,3 +367,11 @@
		regulator-max-microvolt = <2700000>;
	};
};

&ncp6335d {
	status = "disabled";
};

&fan53555 {
	status = "disabled";
};
+8 −0
Original line number Diff line number Diff line
@@ -149,3 +149,11 @@
&qcom_seecom {
	status = "okay";
};

&ncp6335d {
	status = "disabled";
};

&fan53555 {
	status = "disabled";
};