From f768a6da6b22385a666d34ea1df40344a7be3355 Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Wed, 15 Dec 2021 14:37:37 +0800 Subject: [PATCH] dts:fuelgauge cw2217 battery param Modify fuelgauge cw2217 battery param make it by 5mohm and ntc 100k. Change-Id: Id27bd25acf4d8275515ebc21c6e9f1799727861c Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2142440 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- .../CW_ng50-ATL-5000mah-rhodep.dtsi | 26 +++++++++++++++++++ .../CW_ng50-SWD-5000mah-rhodep.dtsi | 26 +++++++++++++++++++ qcom/blair-rhodep-common-overlay.dtsi | 6 ++--- 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi create mode 100644 qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi diff --git a/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi new file mode 100644 index 000000000000..43795e0414c9 --- /dev/null +++ b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * 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. + * + * 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 http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +ng50-ATL-5000mah-rhodep { + serialnum = "SB18D38324"; + fcc_design = <5000>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A6 C1 C0 C7 B9 B8 A4 69 + 3F FF DE A7 89 76 65 59 + 53 51 4E 84 DE E0 68 EA + D0 C8 D0 D6 D6 D5 D3 CD + CA C8 D5 C4 A0 94 8C 84 + 78 7B 83 92 A9 85 80 AE + 20 00 57 10 02 A0 57 00 + 00 00 64 23 C3 48 00 00 + 00 00 00 00 00 00 00 F9]; +}; diff --git a/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi new file mode 100644 index 000000000000..0cf9e80a3075 --- /dev/null +++ b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * 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. + * + * 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 http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +ng50-SWD-5000mah-rhodep { + serialnum = "SB18D38323"; + fcc_design = <5000>; + config_profile_info = [5A 00 00 00 00 00 00 00 + AD C7 C2 C1 B1 AE B3 7D + 55 D4 C1 9B 82 6C 5D 55 + 51 51 51 7F D8 E0 31 DC + C8 C6 CE D5 D7 D6 D3 CF + CB CD D4 C3 A5 97 8E 86 + 80 7F 86 98 AA 82 7E B8 + 20 00 57 10 02 A0 5C 00 + 00 00 64 21 C3 50 00 00 + 00 00 00 00 00 00 00 9F]; +}; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 3322c6b24604..e06ab537b377 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -35,9 +35,9 @@ reg = <0x64>; status = "okay"; - df-serialnum = "SB18D33989"; - #include "bat_setting/CW_md50-scud-5000mah.dtsi" - #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + df-serialnum = "SB18D38323"; + #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" + #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" }; sm5602@71 {