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

Commit b18d9ef9 authored by Yingwei Zhao's avatar Yingwei Zhao Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Configure pin state for SMB1381 interrupt



GPIO21 is connected to SMB1381 STAT pin for interrupt detection,
configure it to pull up for sensing SMB1381's interrupt.

CRs-Fixed: 2033882
Change-Id: Ib88aac4acb3b1094adb13839cccf1aa27903b9c7
Signed-off-by: default avatarYingwei Zhao <cyizhao@codeaurora.org>
parent 9b3e8a81
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -22,11 +22,13 @@
		#address-cells = <1>;
		#size-cells = <1>;
		interrupt-parent = <&tlmm>;
		interrupts = <21 0x0>;
		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
		interrupt_names = "smb138x";
		interrupt-controller;
		#interrupt-cells = <3>;
		qcom,periph-map = <0x10 0x11 0x12 0x13 0x14 0x16 0x36>;
		pinctrl-names = "default";
		pinctrl-0 = <&smb_int_default>;

		smb138x_revid: qcom,revid@100 {
			compatible = "qcom,qpnp-revid";
@@ -131,6 +133,21 @@
	};
};

&tlmm {
	smb_int_default: smb_int_default {
		mux {
			pins = "gpio21";
			function = "gpio";
		};

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

/ {
	qrd_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;