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

Commit 40f5bcde authored by Nicholas Troast's avatar Nicholas Troast Committed by Guru Das Srinagesh
Browse files

ARM: dts: msm: Add SMB1390 device and enable it on MTP and QRD



Specify the configuration for the charger device that is present on
SMB1390, which will be used for SM8150 platforms. Also enable SMB1390 on
SM8150 MTP and QRD platforms.

Change-Id: Icb08255fdc9ac15ac5e7c0423cf0298706720350
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent cb7ed0fa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include "sm8150-sde-display.dtsi"
#include "sm8150-camera-sensor-mtp.dtsi"
#include "sm8150-thermal-overlay.dtsi"
#include "smb1390.dtsi"

&qupv3_se12_2uart {
	status = "ok";
@@ -543,3 +544,7 @@
			   "usb_in_current",
			   "chg_temp";
};

&smb1390_charger {
	status = "ok";
};
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include "sm8150-sde-display.dtsi"
#include "sm8150-camera-sensor-qrd.dtsi"
#include "sm8150-thermal-overlay.dtsi"
#include "smb1390.dtsi"

&vendor {
	bluetooth: bt_wcn3990 {
@@ -519,3 +520,7 @@
			   "usb_in_current",
			   "chg_temp";
};

&smb1390_charger {
	status = "ok";
};
+56 −0
Original line number Diff line number Diff line
/* Copyright (c) 2018, 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
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <dt-bindings/interrupt-controller/irq.h>

&qupv3_se4_i2c {
	smb1390: qcom,smb1390@10 {
		compatible = "qcom,i2c-pmic";
		reg = <0x10>;
		#address-cells = <1>;
		#size-cells = <0>;
		interrupt-parent = <&spmi_bus>;
		interrupts = <0x2 0xC5 0x0 IRQ_TYPE_LEVEL_LOW>;
		interrupt_names = "smb1390";
		interrupt-controller;
		#interrupt-cells = <3>;
		qcom,periph-map = <0x10>;

		smb1390_revid: qcom,revid {
			compatible = "qcom,qpnp-revid";
			reg = <0x100>;
		};

		smb1390_charger: qcom,charge_pump {
			compatible = "qcom,smb1390-charger";
			qcom,pmic-revid = <&smb1390_revid>;
			interrupt-parent = <&smb1390>;
			status = "disabled";

			io-channels = <&pm855b_vadc ADC_AMUX_THM2>;
			io-channel-names = "cp_die_temp";

			qcom,core {
				interrupts = <0x10 0x0 IRQ_TYPE_EDGE_RISING>,
					     <0x10 0x1 IRQ_TYPE_EDGE_RISING>,
					     <0x10 0x2 IRQ_TYPE_EDGE_RISING>,
					     <0x10 0x3 IRQ_TYPE_EDGE_RISING>,
					     <0x10 0x4 IRQ_TYPE_EDGE_RISING>;
				interrupt-names = "switcher-off-window",
						  "switcher-off-fault",
						  "vph-ov-soft",
						  "ilim",
						  "temp-alarm";
			};
		};
	};
};