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

Commit 95a4f554 authored by Vijay Navnath Kamble's avatar Vijay Navnath Kamble Committed by Anirudh Ghayal
Browse files

ARM: dts: msm: Add SMB1360 charger/FG DT node for APQ8009-refboard



Add the SMB1360 charger and fuel gauge configuration. Disable
the PM8916 linear-charger and VBMS nodes.

Change-Id: I1e2012601f884cc85f368fd78baeee7620c44d42
Signed-off-by: default avatarVijay Navnath Kamble <vkambl@codeaurora.org>
parent ecedd3d6
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -59,3 +59,32 @@
&peripheral_mem {
	reg = <0x0 0x89e00000 0x0 0x0500000>;
};

&i2c_4 {
	smb1360_otg_supply: smb1360-chg-fg@14 {
		compatible = "qcom,smb1360-chg-fg";
		reg = <0x14>;
		interrupt-parent = <&msm_gpio>;
		interrupts = <58 8>;
		pinctrl-names = "default";
		pinctrl-0 = <&smb_int_default>;
		qcom,charging-disabled;
		qcom,empty-soc-disabled;
		qcom,chg-inhibit-disabled;
		qcom,float-voltage-mv = <4200>;
		qcom,iterm-ma = <200>;
		qcom,recharge-thresh-mv = <100>;
		qcom,thermal-mitigation = <1500 700 600 0>;
		regulator-name = "smb1360_otg_vreg";
	};
};

&pm8916_chg {
	status = "ok";
	qcom,use-external-charger;
};

&pm8916_bms {
	status = "ok";
	qcom,disable-bms;
};
+29 −0
Original line number Diff line number Diff line
@@ -59,3 +59,32 @@
&peripheral_mem {
	reg = <0x0 0x89e00000 0x0 0x0500000>;
};

&i2c_4 {
	smb1360_otg_supply: smb1360-chg-fg@14 {
		compatible = "qcom,smb1360-chg-fg";
		reg = <0x14>;
		interrupt-parent = <&msm_gpio>;
		interrupts = <58 8>;
		pinctrl-names = "default";
		pinctrl-0 = <&smb_int_default>;
		qcom,charging-disabled;
		qcom,empty-soc-disabled;
		qcom,chg-inhibit-disabled;
		qcom,float-voltage-mv = <4200>;
		qcom,iterm-ma = <200>;
		qcom,recharge-thresh-mv = <100>;
		qcom,thermal-mitigation = <1500 700 600 0>;
		regulator-name = "smb1360_otg_vreg";
	};
};

&pm8916_chg {
	status = "ok";
	qcom,use-external-charger;
};

&pm8916_bms {
	status = "ok";
	qcom,disable-bms;
};
+2 −2
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@
			smb_int_default: smb_int_default {
				mux {
					pins = "gpio58";
					function ="smb1360_int_gpio";
					function ="smb_int";
				};
				config {
					pins = "gpio58";
@@ -288,7 +288,7 @@
			smb_int_sleep: smb_int_sleep {
				mux {
					pins = "gpio58";
					function ="smb1360_int_gpio";
					function ="smb_int";
				};
				config {
					pins = "gpio58";
+1 −1
Original line number Diff line number Diff line
@@ -1162,7 +1162,7 @@ static const struct msm_pingroup msm8909_groups[] = {
	PINGROUP(55, uim1_reset, NA, NA, NA, NA, NA, NA, NA, NA),
	PINGROUP(56, uim1_present, NA, NA, NA, NA, NA, NA, NA, NA),
	PINGROUP(57, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA),
	PINGROUP(58, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA),
	PINGROUP(58, qdss_tracedata_a, smb_int, NA, NA, NA, NA, NA, NA, NA),
	PINGROUP(59, cdc_pdm0, pri_mi2s_mclk_a, atest_char3, NA, NA, NA, NA,
		 NA, bimc_dte0),
	PINGROUP(60, cdc_pdm0, pri_mi2s_sck_a, atest_char2, NA, NA, NA, NA, NA,