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

Commit 0d424b7b authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala Committed by Anirudh Ghayal
Browse files

ARM dts: msm: Add charger nodes for mdm9640 CDP



Add the device tree nodes required to enable smb135x-charger
device for mdm9640 cdp.

CRs-Fixed: 1038403
Change-Id: I5c54182267a0849f8e8ead15e8013afde23d0f7b
Signed-off-by: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 79dd32e0
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -28,6 +28,22 @@

};

&i2c_3 {
	smb1357_otg_supply: smb1357-charger@1c {
		compatible = "qcom,smb1357-charger";
		reg = <0x1c>;
		interrupt-parent = <&tlmm_pinmux>;
		interrupts = <83 0>;    /* MDM GPIO 83 */
		qcom,float-voltage-mv = <4200>;
		qcom,charging-timeout = <1536>;
		qcom,recharge-thresh-mv = <200>;
		qcom,iterm-ma = <100>;
		regulator-name = "smb1357_otg_supply";
		qcom,id-line-not-connected;
		qcom,bmd-algo-disabled;
	};
};

&pmd9635_gpios {
	gpio@c000 { /* GPIO 1 */
	};
@@ -102,6 +118,10 @@
	};
};

&usb3 {
	vbus_dwc3-supply = <&smb1357_otg_supply>;
};

&pmd9635_vadc {
	chan@6 {
		label = "vbat_sns";