From f1c02bf477fe94812adca6277e2d3e5a9bdabf4d Mon Sep 17 00:00:00 2001 From: Claudio dos Santos Junior Date: Tue, 12 Mar 2024 15:06:39 -0300 Subject: [PATCH] Penang5G: update battery serial number HW changed battery serial number on Penang5g Add new serial number. So add PN SB18E06273 to Penang 5G. Ported from: (CR) and (CR) Change-Id: I7bbb5b4e4f891f342952e80d63e5adef8af7c139 Signed-off-by: Claudio dos Santos Junior Reviewed-on: https://gerrit.mot.com/2904469 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Rafael Ortolan Reviewed-by: Gilberto Gambugge Neto Submit-Approved: Jira Key --- ...W_nh50-atl-5000mah-new-5mohm-penang5g.dtsi | 27 +++++++++++++++++++ ..._nh50-atl-5000mah-new-5mohm-penangb5g.dtsi | 27 +++++++++++++++++++ .../vendor/qcom/discrete_charging_penang.dtsi | 1 + .../qcom/discrete_charging_penangb.dtsi | 1 + 4 files changed, 56 insertions(+) create mode 100644 arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penang5g.dtsi create mode 100644 arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penangb5g.dtsi diff --git a/arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penang5g.dtsi b/arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penang5g.dtsi new file mode 100644 index 000000000000..754fecfe7a45 --- /dev/null +++ b/arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penang5g.dtsi @@ -0,0 +1,27 @@ +/* + * 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. + */ +nh50-atl-5000mah-new-5mohm { + serialnum = "SB18E06273"; + fcc_design = <5000>; + ui_full = <99>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A4 C5 9B D0 BC BE 9E 63 + 38 FF FF FF A5 8D 74 62 + 57 53 4E 8A DC DE F6 ED + D6 CF D4 D6 D4 D2 CE CA + C6 C5 CC BB 9B 8E 85 7B + 6A 66 76 90 AA 8C 5D 65 + 80 00 AB 10 00 A0 60 00 + 00 00 64 23 C3 56 00 00 + 00 00 00 00 00 00 00 45]; +}; diff --git a/arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penangb5g.dtsi b/arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penangb5g.dtsi new file mode 100644 index 000000000000..754fecfe7a45 --- /dev/null +++ b/arch/arm64/boot/dts/vendor/qcom/bat_setting/CW_nh50-atl-5000mah-new-5mohm-penangb5g.dtsi @@ -0,0 +1,27 @@ +/* + * 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. + */ +nh50-atl-5000mah-new-5mohm { + serialnum = "SB18E06273"; + fcc_design = <5000>; + ui_full = <99>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A4 C5 9B D0 BC BE 9E 63 + 38 FF FF FF A5 8D 74 62 + 57 53 4E 8A DC DE F6 ED + D6 CF D4 D6 D4 D2 CE CA + C6 C5 CC BB 9B 8E 85 7B + 6A 66 76 90 AA 8C 5D 65 + 80 00 AB 10 00 A0 60 00 + 00 00 64 23 C3 56 00 00 + 00 00 00 00 00 00 00 45]; +}; diff --git a/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penang.dtsi b/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penang.dtsi index 24584436dcad..f8bd0f446d55 100644 --- a/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penang.dtsi +++ b/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penang.dtsi @@ -44,6 +44,7 @@ df-serialnum = "SB18D34202"; #include "bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi" #include "bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi" + #include "bat_setting/CW_nh50-atl-5000mah-new-5mohm-penang5g.dtsi" #include "bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi" #include "bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi" #include "bat_setting/CW_nd50-local-5000mah.dtsi" diff --git a/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penangb.dtsi b/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penangb.dtsi index 24584436dcad..52f3718515ec 100644 --- a/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penangb.dtsi +++ b/arch/arm64/boot/dts/vendor/qcom/discrete_charging_penangb.dtsi @@ -44,6 +44,7 @@ df-serialnum = "SB18D34202"; #include "bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi" #include "bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi" + #include "bat_setting/CW_nh50-atl-5000mah-new-5mohm-penangb5g.dtsi" #include "bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi" #include "bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi" #include "bat_setting/CW_nd50-local-5000mah.dtsi"