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

Commit bf88b906 authored by Rajeev Nandan's avatar Rajeev Nandan Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: use dummy regulator for 3V eLDO supply of touch on Holi

The 3V eLDO controlled by gpio#53 is always ON, to avoid any conflict
with the ALS sensor that is also using the same GPIO.

Make use of a dummy regulator for the touch 3V supply.

Change-Id: Ie40ab4c27a9f10222ce4fbc77f51e65acefeff8b
parent 61d92f15
Loading
Loading
Loading
Loading
+10 −26
Original line number Diff line number Diff line
@@ -221,33 +221,17 @@
	qcom,cl-feedback-on;
};

&tlmm {
	touch_avdd_default: touch_avdd_default {
		mux {
			pins = "gpio53";
			function = "gpio";
		};

		config {
			pins = "gpio53";
			drive-strength = <8>;
			bias-disable = <0>;
			output-high;
		};
	};
};

&soc {
	touch_avdd: touch_avdd {
		compatible = "regulator-fixed";
		regulator-name = "touch_avdd";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-enable-ramp-delay = <233>;
		gpio = <&tlmm 53 0>;
		enable-active-high;
		pinctrl-names = "default";
		pinctrl-0 = <&touch_avdd_default>;
	touch_avdd: touch_avdd_stub {
		/*
		 * Touch eLDO controlled by gpio#53 is always ON.
		 * Using dummy regulator.
		 */
		compatible = "qcom,stub-regulator";
		regulator-name = "touch_avdd_stub";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <2700000>;
		regulator-max-microvolt = <3544000>;
	};
};

+10 −26
Original line number Diff line number Diff line
@@ -146,33 +146,17 @@
	};
};

&tlmm {
	touch_avdd_default: touch_avdd_default {
		mux {
			pins = "gpio53";
			function = "gpio";
		};

		config {
			pins = "gpio53";
			drive-strength = <8>;
			bias-disable = <0>;
			output-high;
		};
	};
};

&soc {
	touch_avdd: touch_avdd {
		compatible = "regulator-fixed";
		regulator-name = "touch_avdd";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-enable-ramp-delay = <233>;
		gpio = <&tlmm 53 0>;
		enable-active-high;
		pinctrl-names = "default";
		pinctrl-0 = <&touch_avdd_default>;
	touch_avdd: touch_avdd_stub {
		/*
		 * Touch eLDO controlled by gpio#53 is always ON.
		 * Using dummy regulator.
		 */
		compatible = "qcom,stub-regulator";
		regulator-name = "touch_avdd_stub";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <2700000>;
		regulator-max-microvolt = <3544000>;
	};
};

+10 −26
Original line number Diff line number Diff line
@@ -165,33 +165,17 @@
	};
};

&tlmm {
	touch_avdd_default: touch_avdd_default {
		mux {
			pins = "gpio53";
			function = "gpio";
		};

		config {
			pins = "gpio53";
			drive-strength = <8>;
			bias-disable = <0>;
			output-high;
		};
	};
};

&soc {
	touch_avdd: touch_avdd {
		compatible = "regulator-fixed";
		regulator-name = "touch_avdd";
		regulator-min-microvolt = <2800000>;
		regulator-max-microvolt = <3300000>;
		regulator-enable-ramp-delay = <233>;
		gpio = <&tlmm 53 0>;
		enable-active-high;
		pinctrl-names = "default";
		pinctrl-0 = <&touch_avdd_default>;
	touch_avdd: touch_avdd_stub {
		/*
		 * Touch eLDO controlled by gpio#53 is always ON.
		 * Using dummy regulator.
		 */
		compatible = "qcom,stub-regulator";
		regulator-name = "touch_avdd_stub";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <2700000>;
		regulator-max-microvolt = <3544000>;
	};
};