ARM: dts: qcom: pm8941: Add vadc nodes needed to estimate an ocv

vbat_sns is needed to estimate a fairly accurate on chip voltage
and bat_therm is needed to produce an accurate percentage
from the estimated ocv.

Signed-off-by: Craig Tatlor <ctatlor97@gmail.com>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
Craig Tatlor 2018-03-30 21:04:08 +01:00 committed by Andy Gross
parent 76a4076511
commit 296a3640ff
1 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,9 @@ pm8941_vadc: vadc@3100 {
#size-cells = <0>; #size-cells = <0>;
#io-channel-cells = <1>; #io-channel-cells = <1>;
bat_temp {
reg = <VADC_LR_MUX1_BAT_THERM>;
};
die_temp { die_temp {
reg = <VADC_DIE_TEMP>; reg = <VADC_DIE_TEMP>;
}; };
@ -154,6 +157,9 @@ ref_gnd {
ref_vdd { ref_vdd {
reg = <VADC_VDD_VADC>; reg = <VADC_VDD_VADC>;
}; };
vbat_sns {
reg = <VADC_VBAT_SNS>;
};
}; };
pm8941_iadc: iadc@3600 { pm8941_iadc: iadc@3600 {