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

Commit 1a09d546 authored by Nicholas Troast's avatar Nicholas Troast Committed by Kyle Yan
Browse files

ARM: dts: msm: add SMB138X parallel charger device to msmcobalt-mtp



Add the SMB138X parallel charger device that is present in msmcobalt-mtp

CRs-Fixed: 1023141
Change-Id: Iba87437d7d57f4f42f973ea7db2af5ff8b579bd3
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 05de9fa9
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
 * GNU General Public License for more details.
 */

#include <dt-bindings/interrupt-controller/irq.h>
#include "msmcobalt-pinctrl.dtsi"
#include "msmcobalt-camera-sensor-mtp.dtsi"
/ {
@@ -146,6 +147,16 @@
		qcom,master-en = <1>;
		status = "okay";
	};

	/* GPIO 18 SMB138X */
	gpio@d100 {
		qcom,mode = <0>;
		qcom,pull = <0>;
		qcom,vin-sel = <0>;
		qcom,src-sel = <0>;
		qcom,master-en = <1>;
		status = "okay";
	};
};

&i2c_5 {
@@ -289,6 +300,27 @@
	qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
};

&i2c_7 {
	status = "okay";
	qcom,smb138x@8 {
		compatible = "qcom,i2c-pmic";
		reg = <0x8>;
		#address-cells = <2>;
		#size-cells = <0>;
		interrupt-parent = <&spmi_bus>;
		interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>;
		interrupt_names = "smb138x";
		interrupt-controller;
		#interrupt-cells = <3>;
		qcom,periph-map = <0x10 0x11 0x12 0x13 0x14 0x16 0x36>;

		smb138x_parallel_slave: qcom,smb138x-parallel-slave@1000 {
			compatible = "qcom,smb138x-parallel-slave";
			reg = <0x1000 0x700>;
		};
	};
};

&pmicobalt_haptics {
	status = "okay";
};