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

Commit 07aa1337 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

ARM: dts: msm: Add a DTS file for SMB1360 512MB-DDR 8909 MTP



Add a DTS file to support 512MB-DDR configuration for 8909MTP
with SMB1360 external charger. Add the required DT nodes to
enable SMB1360 and disable the internal charger.

While at it, update the 'model name' for 1GB smb1360 8909 MTP.

Change-Id: I41f0c8fb60a276414c273ccae1dfa4de5bc445f8
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 3f7a3a7a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_MSM8909) += msm8909-sim.dtb \
	msm8909-cdp.dtb \
	msm8909-mtp.dtb \
	msm8909-mtp-smb1360.dtb \
	msm8909-512mb-mtp-smb1360.dtb \
	msm8909-1gb-qrd-skua.dtb \
	msm8909-1gb-qrd-skuc.dtb \
	msm8909-1gb-qrd-skue.dtb \
+52 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014, 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 "msm8909-mtp.dtsi"
#include "msm8909-camera-sensor-cdp.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. MSM8909 SMB1360 512MB MTP";
	compatible = "qcom,msm8909-mtp", "qcom,msm8909", "qcom,mtp";
	qcom,board-id= <8 0x103>;
};

&i2c_4 {
	smb1360_otg_supply: smb1360-chg-fg@14 {
		compatible = "qcom,smb1360-chg-fg";
		reg = <0x14>;
		interrupt-parent = <&msm_gpio>;
		interrupts = <58 8>;
		pinctrl-names = "default";
		pinctrl-0 = <&smb_int_default>;
		qcom,charging-disabled;
		qcom,empty-soc-disabled;
		qcom,chg-inhibit-disabled;
		qcom,float-voltage-mv = <4200>;
		qcom,iterm-ma = <200>;
		qcom,recharge-thresh-mv = <100>;
		qcom,thermal-mitigation = <1500 700 600 0>;
		regulator-name = "smb1360_otg_vreg";
	};
};

&pm8909_chg {
	status = "ok";
	qcom,use-external-charger;
};

&pm8909_bms {
	status = "ok";
	qcom,disable-bms;
};
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
#include "msm8909-camera-sensor-cdp.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. MSM8909 SMB1360 MTP";
	model = "Qualcomm Technologies, Inc. MSM8909 SMB1360 1GB MTP";
	compatible = "qcom,msm8909-mtp", "qcom,msm8909", "qcom,mtp";
	qcom,board-id= <8 0x3>;
};