diff options
author | Craig Tatlor <ctatlor97@gmail.com> | 2018-03-30 21:04:08 +0100 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2018-05-14 15:17:59 -0500 |
commit | 296a3640ffe8b82866eef66a8fc943612df2330b (patch) | |
tree | 4868ff2b335af3648cdf13063b4f26480a2789b2 /arch/arm/boot/dts/qcom-pm8941.dtsi | |
parent | 76a4076511c03fbbfa54dcc42cc6271f6eb66d51 (diff) | |
download | lwn-296a3640ffe8b82866eef66a8fc943612df2330b.tar.gz lwn-296a3640ffe8b82866eef66a8fc943612df2330b.zip |
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>
Diffstat (limited to 'arch/arm/boot/dts/qcom-pm8941.dtsi')
-rw-r--r-- | arch/arm/boot/dts/qcom-pm8941.dtsi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index 1d5ef55c7ee5..2515c5c217ac 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -139,6 +139,9 @@ #size-cells = <0>; #io-channel-cells = <1>; + bat_temp { + reg = <VADC_LR_MUX1_BAT_THERM>; + }; die_temp { reg = <VADC_DIE_TEMP>; }; @@ -154,6 +157,9 @@ ref_vdd { reg = <VADC_VDD_VADC>; }; + vbat_sns { + reg = <VADC_VBAT_SNS>; + }; }; pm8941_iadc: iadc@3600 { |