dtsi: Troika 2A DCP support
authorxuwei9 <xuwei9@lenovo.com>
Wed, 13 Feb 2019 08:26:52 +0000 (16:26 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:45 +0000 (17:30 +0800)
Troika  support 2A DCP
charGing current

Change-Id: Ia2c2a1f45c1b7426d28aaa04ff5574f3cbf908b7
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1308171
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi
arch/arm64/boot/dts/exynos/exynos9610_troika_battery_data.dtsi [new file with mode: 0755]

index 9e6ad1f143e128ef4c4be54201b2b6aafad65dc2..917d253ce920cd3cb1e11cc1bf6c7674cd6d7c02 100644 (file)
@@ -12,5 +12,5 @@
 
 
 #include "exynos9609-robusta2_common.dtsi"
-
+#include "exynos9610_troika_battery_data.dtsi"
 
diff --git a/arch/arm64/boot/dts/exynos/exynos9610_troika_battery_data.dtsi b/arch/arm64/boot/dts/exynos/exynos9610_troika_battery_data.dtsi
new file mode 100755 (executable)
index 0000000..380c7b8
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * SAMSUNG EXYNOS9610 board device tree source
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd.
+ *             http://www.samsung.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/ {
+       fragment@battery {
+               __overlay__ {
+                       battery {
+
+                               battery,max_input_current = <2000>;
+                               battery,max_charging_current = <2000>;
+
+                               /* Order of current setting must be same with
+                               * POWER_SUPPLY_TYPE_ of power_supply.h
+                               */
+                               battery,input_current_limit =
+                                       <500 450 500 2000 500 1500 1500 1000 1500 1500
+                                       1000 500 500 2000 1200 500 450>;
+                               battery,fast_charging_current =
+                                       <500 450 500 2000 500 1500 1500 1000 1500 1800
+                                       1000 500 500 2000 2000 500 450>;
+                               battery,full_check_current =
+                                       <175 0 175 175 175 175 175 175 175 175
+                                       175 175 175 175 175 175 0>;
+
+                               /*moto begin*/
+                               moto,fastchg-current-ma = <2000>;
+                               moto,chg-thermal-mitigation = <2000>, <1600>,<1400>, <1300>,
+                                                               <1000>,<700>, <600>;
+                               /delete-property/ moto,dc-thermal-mitigation;
+                               moto,parallel-charge-current-map = <2000 2000 0>,
+                                                               <1600 1600 0>,
+                                                               <1400 1400 0>,
+                                                               <1300 1300 0>,
+                                                               <1000 1000 0>,
+                                                               <700 700 0>,
+                                                               <600 600 0>;
+
+                       };
+               };
+       };
+};