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

Commit 5060afad authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru
Browse files

ARM: dts: msm: Add default pinctrl state for LAGOON HSUART

When device gets probed, kernel picks up default state and sets
pinctrl to that configuration. Since default state contains UART
functionality, GPIO pins remains high which consumes power.

To resolve power leakage issue, add additional active state to
configure UART functionality and keep default state for the GPIO
during probe.

Change-Id: I3b21cc7f363c73456399d48b0fb5bf81fead191c
parent a512cab7
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -197,6 +197,32 @@
		};

		qupv3_se1_4uart_pins: qupv3_se1_4uart_pins {
			qupv3_se1_default_ctsrtsrx: qupv3_se1_default_ctsrtsrx {
				mux {
					pins = "gpio61", "gpio62", "gpio64";
					function = "gpio";
				};

				config {
					pins = "gpio61", "gpio62", "gpio64";
					drive-strength = <2>;
					bias-pull-down;
				};
			};

			qupv3_se1_default_tx: qupv3_se1_default_tx {
				mux {
					pins = "gpio63";
					function = "gpio";
				};

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

			qupv3_se1_ctsrx: qupv3_se1_ctsrx {
				mux {
					pins = "gpio61", "gpio64";
+5 −3
Original line number Diff line number Diff line
@@ -99,11 +99,13 @@
		clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>,
			<&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
			<&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&qupv3_se1_ctsrx>, <&qupv3_se1_rts>,
						<&qupv3_se1_tx>;
		pinctrl-names = "default", "active", "sleep";
		pinctrl-0 = <&qupv3_se1_default_ctsrtsrx>,
				<&qupv3_se1_default_tx>;
		pinctrl-1 = <&qupv3_se1_ctsrx>, <&qupv3_se1_rts>,
						<&qupv3_se1_tx>;
		pinctrl-2 = <&qupv3_se1_ctsrx>, <&qupv3_se1_rts>,
						<&qupv3_se1_tx>;
		interrupts-extended = <&intc GIC_SPI 602 IRQ_TYPE_LEVEL_HIGH>,
				<&tlmm 64 IRQ_TYPE_LEVEL_HIGH>;
		qcom,wrapper-core = <&qupv3_0>;