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

Commit 46eb4b8f authored by Ashish Chavan's avatar Ashish Chavan
Browse files

ARM: dts: msm: smb1390: Enable dual smb1390 for atoll QRD



Add and enable SMB1390 master/slave device node. SMB1390 is configured
in USBIN(input) and VBAT(output) mode, set the secondary charger
configuration to indicate presence of charge pump.

Change-Id: I49b2ecd31a566c8064f04d3058b8d92ef2aa805b
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
parent 7c3314cd
Loading
Loading
Loading
Loading
+44 −1
Original line number Original line Diff line number Diff line
@@ -120,7 +120,7 @@
	qcom,sw-jeita-enable;
	qcom,sw-jeita-enable;
	qcom,fcc-stepping-enable;
	qcom,fcc-stepping-enable;
	qcom,suspend-input-on-debug-batt;
	qcom,suspend-input-on-debug-batt;
	qcom,sec-charger-config = <3>;
	qcom,sec-charger-config = <1>;
	qcom,thermal-mitigation = <4200000 3500000 3000000
	qcom,thermal-mitigation = <4200000 3500000 3000000
			2500000 2000000 1500000 1000000 500000>;
			2500000 2000000 1500000 1000000 500000>;
	dpdm-supply = <&qusb_phy0>;
	dpdm-supply = <&qusb_phy0>;
@@ -137,6 +137,49 @@
	extcon = <&pm6150_pdphy>;
	extcon = <&pm6150_pdphy>;
};
};


&pm6150_gpios {
	smb_stat {
	smb_stat_default: smb_stat_default {
			pins = "gpio3";
			function = "normal";
			input-enable;
			bias-pull-up;
			qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
			power-source = <0>;
		};
	};
};

&qupv3_se9_i2c {
	status = "ok";
	#include "smb1390.dtsi"
};

&smb1390 {
	/delete-property/ interrupts;
	interrupts = <0x0 0xc2 0x0 IRQ_TYPE_LEVEL_LOW>;
	pinctrl-names = "default";
	pinctrl-0 = <&smb_stat_default>;
	status = "ok";
};

&smb1390_charger {
	compatible = "qcom,smb1390-charger-psy";
	io-channels = <&pm6150_vadc ADC_AMUX_THM2>;
	io-channel-names = "cp_die_temp";
	qcom,parallel-input-mode = <1>; /* USBIN */
	qcom,parallel-output-mode = <2>; /* VBAT */
	status = "ok";
};

&smb1390_slave {
	status = "ok";
};

&smb1390_slave_charger {
	status = "ok";
};

&pm6150l_gpios {
&pm6150l_gpios {
	key_vol_up {
	key_vol_up {
		key_vol_up_default: key_vol_up_default {
		key_vol_up_default: key_vol_up_default {