From db26ccb5056b546bc243da7d27ab78129f6bda5b Mon Sep 17 00:00:00 2001 From: wutao Date: Wed, 1 Dec 2021 13:53:46 +0800 Subject: [PATCH] kernel:dtsi sgm41511 charger not register sgm41511 charger add int pin for pull up, this pin is in tlmm, not in soc. it can not register sgm charger in soc.so battery soc is zero Change-Id: I68c7923a68eb6c2a646a92e0f6d197bd691f5a16 Reviewed-on: https://gerrit.mot.com/2131703 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 16 +++++++++++++++- qcom/khaje-rhode-common-overlay.dtsi | 14 -------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index cb0d0cb8e65e..16118fc33a52 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -278,6 +278,21 @@ */ }; +&tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio96"; + function = "gpio"; + }; + + config { + pins = "gpio96"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; +}; &tlmm { bq2589x_irq: bq2589x_irq { @@ -333,4 +348,3 @@ }; }; - diff --git a/qcom/khaje-rhode-common-overlay.dtsi b/qcom/khaje-rhode-common-overlay.dtsi index 89e28ab5e1e7..4a7243211791 100644 --- a/qcom/khaje-rhode-common-overlay.dtsi +++ b/qcom/khaje-rhode-common-overlay.dtsi @@ -66,20 +66,6 @@ moto,vib-ldo-gpio = <&tlmm 25 0x0>; status = "ok"; }; - - sgm4154x_gpio_pins: sgm4154x_gpio_pins { - mux { - pins = "gpio96"; - function = "gpio"; - }; - - config { - pins = "gpio96"; - drive-strength = <2>; - bias-pull-up; - input-enable; - }; - }; };