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

Commit c99c0b23 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

ARM: dts: msm: Add SMB1390 device



SMB1390 is a div2 charge pump capable of delivering 6A charge current
with very high efficiency. It can work either as 2s to 1s pre-regulator
or as a companion charger when paired with Qualcomm Technologies, Inc.’s
family of standalone chargers, e.g. PM8150B, to enable a high current,
low profile Li+ battery charging system.

Change-Id: I0d394b8244f853670eeda6f1cbf38dd2a55c1d7e
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 4c6c258a
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */

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

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>;
	status = "disabled";

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

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

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