From 00100a8674befe4d73ecee084233fa407ddf26cc Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Wed, 5 Aug 2020 20:42:04 -0700 Subject: [PATCH] ARM: dts: qcom: add some more channels for pm8350b and smb139x 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: Id08453083d7a09b15ac15032ebef3d9c8ac367e8 --- qcom/lahaina-pmic-overlay.dtsi | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/qcom/lahaina-pmic-overlay.dtsi b/qcom/lahaina-pmic-overlay.dtsi index 28c0947af072..e08b0bea9cc9 100644 --- a/qcom/lahaina-pmic-overlay.dtsi +++ b/qcom/lahaina-pmic-overlay.dtsi @@ -1,4 +1,5 @@ #include +#include #include "pmk8350.dtsi" #include "pm8350.dtsi" @@ -330,6 +331,60 @@ 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_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_iin_smb { + reg = ; + label = "smb139x_2_iin_smb"; + qcom,pre-scaling = <28 100>; + }; }; &pm8350_tz {