OSDN Git Service

ARM: dts: qcom: pm8941: Add vadc nodes needed to estimate an ocv
authorCraig Tatlor <ctatlor97@gmail.com>
Fri, 30 Mar 2018 20:04:08 +0000 (21:04 +0100)
committerAndy Gross <andy.gross@linaro.org>
Mon, 14 May 2018 20:17:59 +0000 (15:17 -0500)
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>
arch/arm/boot/dts/qcom-pm8941.dtsi

index 1d5ef55..2515c5c 100644 (file)
                        #size-cells = <0>;
                        #io-channel-cells = <1>;
 
+                       bat_temp {
+                               reg = <VADC_LR_MUX1_BAT_THERM>;
+                       };
                        die_temp {
                                reg = <VADC_DIE_TEMP>;
                        };
                        ref_vdd {
                                reg = <VADC_VDD_VADC>;
                        };
+                       vbat_sns {
+                               reg = <VADC_VBAT_SNS>;
+                       };
                };
 
                pm8941_iadc: iadc@3600 {