From f9ae418471b6d428460c5fbc798646a8777c35ed Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Wed, 18 Nov 2020 14:59:08 +0530 Subject: [PATCH] ARM: dts: qcom: add ADC channels for pm8350b and smb139x on shima Add CHG_TEMP, IIN_FB and ICHG_FB channels on PM8350B to read charger temperature, input current and charging current. Add SMB_TEMP, IIN_SMB and ICHG_SMB on both SMB139x charge pumps to read SMB temperature, input current and charging current which happens over reading virtual channels through PBS. Change-Id: I347cacdf2aacc0db2b7e94a6b49293f45bc8665b --- qcom/shima-pmic-overlay.dtsi | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/qcom/shima-pmic-overlay.dtsi b/qcom/shima-pmic-overlay.dtsi index d83e6fa3b45c..437a1088620a 100644 --- a/qcom/shima-pmic-overlay.dtsi +++ b/qcom/shima-pmic-overlay.dtsi @@ -1,4 +1,5 @@ #include +#include #include "pmk8350.dtsi" #include "pm8350.dtsi" @@ -116,6 +117,72 @@ qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; + + pm8350b_chg_temp { + reg = ; + label = "pm8350b_chg_temp"; + qcom,pre-scaling = <1 1>; + }; + + pm8350b_iin_fb { + reg = ; + label = "pm8350b_iin_fb"; + qcom,pre-scaling = <32 100>; + }; + + pm8350b_ichg_fb { + reg = ; + label = "pm8350b_ichg_fb"; + qcom,pre-scaling = <1000 305185>; + }; + + smb139x_1_smb_temp { + reg = ; + label = "smb139x_1_smb_temp"; + qcom,pre-scaling = <1 1>; + }; + + smb139x_1_ichg_smb { + reg = ; + label = "smb139x_1_ichg_smb"; + qcom,pre-scaling = <14 100>; + }; + + smb139x_1_ichg_smb_pt { + reg = ; + label = "smb139x_1_ichg_smb_pt"; + qcom,pre-scaling = <32 100>; + }; + + smb139x_1_iin_smb { + reg = ; + label = "smb139x_1_iin_smb"; + qcom,pre-scaling = <28 100>; + }; + + smb139x_2_smb_temp { + reg = ; + label = "smb139x_2_smb_temp"; + qcom,pre-scaling = <1 1>; + }; + + smb139x_2_ichg_smb { + reg = ; + label = "smb139x_2_ichg_smb"; + qcom,pre-scaling = <14 100>; + }; + + smb139x_2_ichg_smb_pt { + reg = ; + label = "smb139x_2_ichg_smb_pt"; + qcom,pre-scaling = <32 100>; + }; + + smb139x_2_iin_smb { + reg = ; + label = "smb139x_2_iin_smb"; + qcom,pre-scaling = <28 100>; + }; }; &pmk8350_adc_tm {