From 26115afc9aa3f263bb3594d9d0e2e9688db97fc3 Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Wed, 13 Feb 2019 16:26:52 +0800 Subject: [PATCH] dtsi: Troika 2A DCP support Troika support 2A DCP charGing current Change-Id: Ia2c2a1f45c1b7426d28aaa04ff5574f3cbf908b7 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1308171 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- .../dts/exynos/exynos9610-troika-common.dtsi | 2 +- .../exynos9610_troika_battery_data.dtsi | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100755 arch/arm64/boot/dts/exynos/exynos9610_troika_battery_data.dtsi diff --git a/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi b/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi index 9e6ad1f143e1..917d253ce920 100644 --- a/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos9610-troika-common.dtsi @@ -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 index 000000000000..380c7b83cbc4 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos9610_troika_battery_data.dtsi @@ -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>; + + }; + }; + }; +}; -- 2.20.1