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

Commit e4a91685 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

ARM: dts: msm: Add SMB1351 device for QCS405



SMB1351 is a single-cell battery charger. QCS405 uses SMB1351
to charge the battery and power the system.

Change-Id: I58d90d04b7a7b2bbf6cfd167ae728ab19adda4ad
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 043b53f2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -10,3 +10,7 @@
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

&smb1351_otg_supply {
	qcom,charging-disabled;
};
+15 −0
Original line number Diff line number Diff line
@@ -782,5 +782,20 @@
				bias-disable;
			};
		};

		/* SMB CONFIGURATION */
		smb_stat: smb_stat {
			mux {
				pins = "gpio107";
				function = "gpio";
			};

			config {
				pins = "gpio107";
				drive-strength = <2>;
				bias-pull-up;
				input-enable;
			};
		};
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -120,3 +120,7 @@

	status = "disabled";
};

&smb1351_otg_supply {
	status = "disabled";
};
+18 −0
Original line number Diff line number Diff line
@@ -756,3 +756,21 @@
};

#include "qcs405-coresight.dtsi"

&i2c_5 {
	status = "ok";
	smb1351_otg_supply: smb1351-charger@1d {
		compatible = "qcom,smb1351-charger";
		reg = <0x1d>;
		interrupt-parent = <&tlmm>;
		interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
		qcom,float-voltage-mv = <4350>;
		qcom,charging-timeout = <1536>;
		qcom,recharge-thresh-mv = <200>;
		qcom,iterm-ma = <100>;
		regulator-name = "smb1351_otg_supply";
		pinctrl-names = "default";
		pinctrl-0 = <&smb_stat>;
		qcom,switch-freq = <2>;
	};
};