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

Commit 7c62d1db authored by Yanfei Zhou's avatar Yanfei Zhou Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: add support for controlling LGA power for bt module



This change is to add support for controlling pin PWR_CTR1_VDD_PA and
pin PWR_CTR2_VDD_1P8 which are required by LGA combo chip

Change-Id: Ied52880e2bd6e735bb9492fef8777c63b36d7c58
Signed-off-by: default avatarYanfei Zhou <zyanfei@codeaurora.org>
parent b49748ed
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -710,4 +710,26 @@
		compatible = "qcom,stub-regulator";
		regulator-name = "vreg_wlan";
	};

	/* PWR_CTR1_VDD_PA supply */
	vreg_conn_pa: vreg_conn_pa {
		compatible = "regulator-fixed";
		regulator-name = "vreg_conn_pa";
		pinctrl-names = "default";
		pinctrl-0 = <&conn_power_pa_active>;
		startup-delay-us = <4000>;
		enable-active-high;
		gpio = <&tlmm 173 0>;
	};

	/* PWR_CTR2_VDD_1P8 supply */
	vreg_conn_1p8: vreg_conn_1p8 {
		compatible = "regulator-fixed";
		regulator-name = "vreg_conn_1p8";
		pinctrl-names = "default";
		pinctrl-0 = <&conn_power_1p8_active>;
		startup-delay-us = <4000>;
		enable-active-high;
		gpio = <&tlmm 174 0>;
	};
};
+6 −1
Original line number Diff line number Diff line
@@ -62,7 +62,12 @@
		compatible = "qca,qca6174";
		pinctrl-names = "default";
		pinctrl-0 = <&bt_en_active>;
		qca,bt-reset-gpio = <&tlmm 172 0>; /* BT_EN */
		/* BT_EN */
		qca,bt-reset-gpio = <&tlmm 172 0>;
		/* PWR_CTR1_VDD_PA */
		qca,bt-vdd-pa-supply = <&vreg_conn_pa>;
		/* PWR_CTR2_VDD_1P8 */
		qca,bt-chip-pwd-supply = <&vreg_conn_1p8>;
		status = "disabled";
	};
};
+26 −0
Original line number Diff line number Diff line
@@ -4286,5 +4286,31 @@
				bias-pull-up;
			};
		};

		conn_power_1p8_active: conn_power_1p8_active {
			mux {
				pins = "gpio173";
				function = "gpio";
			};

			config {
				pins = "gpio173";
				drive-strength = <2>;
				bias-pull-up;
			};
		};

		conn_power_pa_active: conn_power_pa_active {
			mux {
				pins = "gpio174";
				function = "gpio";
			};

			config {
				pins = "gpio174";
				drive-strength = <2>;
				bias-pull-up;
			};
		};
	};
};