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

Commit bbf04994 authored by Umang Agrawal's avatar Umang Agrawal Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add SMB1390 and SMB1355 support to SM6150



Add SMB1390 charger pump and SMB1355 slave charger support
to SM6150 IDP and QRD platform.

Change-Id: I095e23b16e84de848ec71e3524773a6970808a9d
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 60733446
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -12,6 +12,12 @@

#include <dt-bindings/iio/qcom,spmi-vadc.h>

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

&soc {
};

@@ -113,4 +119,29 @@
	qcom,battery-data = <&mtp_batterydata>;
	qcom,step-charging-enable;
	qcom,sw-jeita-enable;
	qcom,sec-charger-config = <3>;
};

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

&smb1390_charger {
	io-channels = <&pm6150_vadc ADC_AMUX_THM3>;
	io-channel-names = "cp_die_temp";
	status = "ok";
};

&smb1355 {
	/delete-property/ interrupts;
	interrupts = <0x0 0xc2 0x0 IRQ_TYPE_LEVEL_LOW>;
	status = "ok";
};

&smb1355_charger {
	status = "ok";
};
+13 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
 * GNU General Public License for more details.
 */

#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>

&soc {
	tlmm: pinctrl@03000000 {
		compatible = "qcom,sm6150-pinctrl";
@@ -866,4 +868,15 @@
			output-low;
		};
	};

	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>;
		};
	};
};
+21 −0
Original line number Diff line number Diff line
@@ -13,6 +13,12 @@
#include "sm6150-thermal-overlay.dtsi"
#include <dt-bindings/iio/qcom,spmi-vadc.h>

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

&soc {
};

@@ -65,4 +71,19 @@
	qcom,battery-data = <&mtp_batterydata>;
	qcom,step-charging-enable;
	qcom,sw-jeita-enable;
	qcom,sec-charger-config = <1>;
};

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

&smb1390_charger {
	io-channels = <&pm6150_vadc ADC_AMUX_THM3>;
	io-channel-names = "cp_die_temp";
	status = "ok";
};