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

Commit 3a12704c authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

ARM: dts: msm: add DT file for APQ8084 MTPs with SMB1359



There exists a new APQ8084 MTP board variant with the SMB1359 charger
instead of SMB1357. Create a new top level devicetree file to support
the new board.

The board id for this new board variant will be <8 1> (platform-id = 8 and
subtype-id = 4).

Change-Id: I142c09c54152a549909a6f649423b3775303a833
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent cadcc68d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ dtb-$(CONFIG_ARCH_APQ8084) += apq8084-sim.dtb \
	apq8084-liquid.dtb \
	apq8084-smb1357-cdp.dtb \
	apq8084-smb1357-mtp.dtb \
	apq8084-smb1359-mtp.dtb \
	apq8084-smb349-cdp.dtb \
	apq8084-smb349-mtp.dtb \
	apq8084-sbc.dtb
+42 −0
Original line number Diff line number Diff line
/* Copyright (c) 2013, 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.
 */

/dts-v1/;

#include "apq8084.dtsi"
#include "apq8084-mtp.dtsi"

/ {
	model = "Qualcomm APQ 8084, SMB1357 MTP";
	compatible = "qcom,apq8084-mtp", "qcom,apq8084", "qcom,mtp";
	qcom,board-id = <8 4>;
};

&i2c_0 {
	smb1359_otg_vreg: smb1359-charger@1c {
		compatible = "qcom,smb1359-charger";
		reg = <0x1c>;
		interrupt-parent = <&spmi_bus>;
		interrupts = <0x0 0xcd 0x0>;	/* PMA8084 GPIO 14 */
		qcom,float-voltage-mv = <4200>;
		qcom,charging-timeout = <1536>;
		qcom,recharge-thresh-mv = <200>;
		qcom,iterm-ma = <100>;
		regulator-name = "smb1359_otg_vreg";
		qcom,soft-vfloat-comp-disabled;
		therm-bias-supply = <&pma8084_lvs2>;
	};
};

&usb3 {
	vbus_dwc3-supply = <&smb1359_otg_vreg>;
};