kernel/dts: samsung moto charger feature
authorxuwei9 <xuwei9@lenovo.com>
Wed, 26 Sep 2018 01:53:26 +0000 (09:53 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:49 +0000 (20:23 +0300)
enable moto charger feature dts
file at samsung platform

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

Conflicts:
arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi

arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi

index 7a0626352f9ff2910ad5c8f52364eabcda2cb6a3..c8d8949ff9fdd4fba435c03aa21c90c6750c149f 100644 (file)
                                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
                                        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