From 8d0a044b4e2f8723aa43bfb988709e1ddaddcabe Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 11 Oct 2021 10:10:35 +0800 Subject: [PATCH] arm/dts: cypfr add cw2217 battery parameter SB18C77591 -> ATL 1th SB18C77226 ->SCUD 2th apply above two battery parameter from CellWise Change-Id: I21d0dbe4e7ce2501581f2b1c225991425fdc7fcd Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2086797 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah.dtsi | 26 ++++++++++++++++++++++ qcom/bat_setting/CW_jd50-scud-5000mah.dtsi | 26 ++++++++++++++++++++++ qcom/blair-cypfr-common-overlay.dtsi | 3 +++ 3 files changed, 55 insertions(+) create mode 100644 qcom/bat_setting/CW_jd50-atl-5000mah.dtsi create mode 100644 qcom/bat_setting/CW_jd50-scud-5000mah.dtsi diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi new file mode 100644 index 000000000000..4e5b0a16bea3 --- /dev/null +++ b/qcom/bat_setting/CW_jd50-atl-5000mah.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. + */ +jd50-atl-5000mah { + serialnum = "SB18C77591"; + fcc_design = <4850>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A0 B2 BF CB C3 C2 96 59 + 2F FF FF DB A6 8D 74 60 + 55 52 4D 8D FD DC 02 CF + CF D2 D1 D1 D0 CD C8 CD + C1 C0 C5 AD 95 8A 81 74 + 62 62 73 8F A7 87 5F 62 + 20 00 57 10 02 B0 76 00 + 00 00 64 28 D3 7C 00 00 + 00 00 00 00 00 00 00 44 ]; +}; diff --git a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi new file mode 100644 index 000000000000..cb39fea22cbb --- /dev/null +++ b/qcom/bat_setting/CW_jd50-scud-5000mah.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. + */ +jd50-scud-5000mah { + serialnum = "SB18C77226"; + fcc_design = <4850>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A5 B1 B5 CE C3 C2 97 58 + 31 FF FF E3 92 80 63 58 + 4F 4D 4A 86 F0 DC 0D D2 + D2 D1 D1 D1 CF CC BC DC + B0 C3 C8 AA 96 89 80 71 + 68 64 73 8F A3 86 65 60 + 20 00 57 10 02 B0 74 00 + 00 00 64 24 D3 79 00 00 + 00 00 00 00 00 00 00 5F ]; +}; diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 1ca797f42878..40deae1b69ca 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -451,6 +451,9 @@ reg = <0x64>; status = "okay"; }; + df-serialnum = "SB18C77591"; + #include "bat_setting/CW_jd50-scud-5000mah.dtsi" + #include "bat_setting/CW_jd50-atl-5000mah.dtsi" }; &qupv3_se10_i2c {