From c6c5c04cd4ffdef8afdf08e42a9b26fc6f88e944 Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Wed, 26 Sep 2018 09:53:26 +0800 Subject: [PATCH] kernel/dts: samsung moto charger feature enable moto charger feature dts file at samsung platform Change-Id: I265e2c931bac7e1d78c5455053c36b253fa4175d Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1246420 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key Conflicts: arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi --- .../dts/exynos/exynos9610_battery_data.dtsi | 75 +++++++++++++++---- 1 file changed, 62 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi b/arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi index 7a0626352f9f..c8d8949ff9fd 100644 --- a/arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi @@ -52,19 +52,69 @@ battery,small_charging_current = <1000>; /* Order of current setting must be same with - * POWER_SUPPLY_TYPE_ of power_supply.h - */ + * POWER_SUPPLY_TYPE_ of power_supply.h + */ battery,input_current_limit = - <500 450 500 3000 500 1200 1200 1000 1000 3000 - 1000 500 500 3000 2000 500 450>; + <500 450 500 3000 500 1500 1500 1000 1500 1500 + 1000 500 500 1500 1200 500 450>; battery,fast_charging_current = - <500 450 500 3000 500 1200 1200 1000 1000 3000 - 1000 500 500 3000 2000 500 450>; + <500 450 500 3000 500 1500 1500 1000 1500 1800 + 1000 500 500 1500 2500 500 450>; battery,full_check_current = - <300 0 300 300 300 300 300 300 300 300 - 300 300 300 300 300 300 0>; - - /* Battery parameter for cell 1 */ + <150 0 150 150 150 150 150 150 150 150 + 150 150 150 150 150 150 0>; + + /*moto begin*/ + moto,fastchg-current-ma = <3000>; + moto,chg-thermal-mitigation = <3000>, <2500>,<2000>, <1500>, + <1000>,<700>, <600>; + /delete-property/ moto,dc-thermal-mitigation; + moto,parallel-charge-current-map = <3000 3000 0>, + <2500 2500 0>, + <2000 2000 0>, + <1500 1500 0>, + <1000 1000 0>, + <700 700 0>, + <600 600 0>; + moto,stepchg-voltage-mv = <4200>; + moto,stepchg-current-ma = <2000>; + moto,stepchg-taper-ma = <1800>; + moto,stepchg-iterm-ma = <125>; + moto,enable-hvdcp-9v; + moto,weak-charger-check-enable; + moto,temp-warm-current-ma = <1460>; + moto,temp-cool-current-ma = <582>; + moto,temp-slightly-cool-current-ma = <1460>; + moto,slightly-cool-temp-c = <15>; + moto,enable-charging-limit; + moto,upper-limit-capacity = <75>; + moto,lower-limit-capacity = <60>; + moto,iterm-ma = <100>; + moto,iterm-disabled; + /delete-property/ moto,autoadjust-vfloat; + moto,float-voltage-mv = <4400>; + moto,resume-delta-mv = <200>; + moto,chg-inhibit-fg; + moto,rparasitic-uohm = <100000>; + moto,bms-psy-name = "bms"; + moto,charge-unknown-battery; + moto,hot-temp-c = <60>; + moto,cold-temp-c = <(-20)>; + moto,warm-temp-c = <45>; + moto,cool-temp-c = <0>; + moto,ext-temp-volt-mv = <4200>; + moto,hotspot-thrs-c = <50>; + moto,charging-timeout-mins = <0>; + moto,precharging-timeout-mins = <0>; + moto,bmd-algo-disabled; + moto,bmd-pin-src = "bpd_none"; + moto,usbid-gpio-enabled; + moto,auto-voltage-comp-mv = <150>; + df-serialnum = "SB18C43602"; + /*moto end*/ + + /* battery data for cell1 */ + serialnum_cell1 = "SB18C43602"; battery,battery_table3_cell1 = <88 11 214 10 84 10 218 9 100 9 243 8 140 8 34 8 205 7 123 7 @@ -93,9 +143,8 @@ 38791 38469 38237 38054 37911 37778 37574 37390 37106 36900 36236 32120>; - battery,battery_param_ver_cell1 = <0x03>; - - /* Battery parameter for cell 2 */ + /* battery data for cell2 */ + serialnum_cell2 = "SB18C30735"; battery,battery_table3_cell2 = <88 11 214 10 84 10 218 9 100 9 243 8 140 8 34 8 205 7 123 7 -- 2.20.1