ARM: dts: qcom: pm8941: Add vadc nodes needed to estimate an ocv
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- arch/arm/boot/dts/qcom-pm8941.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/qcom-pm8941.dtsi +6 -0
@@ -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 {
Signature · 1 line
2.16.2
Quoted 4 lines · Craig Tatlor
vbat_snsis needed to estimate a fairly accurate on chip voltage andbat_thermis needed to produce an accurate percentage from the estimated ocv.
Acked-by Bjorn Andersson <[email protected]>
Regards,
Bjorn
Quoted 36 lines
Signed-off-by Craig Tatlor <[email protected]>--- arch/arm/boot/dts/qcom-pm8941.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm/boot/dts/qcom-pm8941.dtsi +6
-0@@ -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 {Signature · 6 lines
2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html