Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662585

[PATCH] ARM: sun6i: a31s: primo81: Enable battery power supply

From Chen-Yu Tsai <wens@csie.org>
Newsgroups linux.kernel
Subject [PATCH] ARM: sun6i: a31s: primo81: Enable battery power supply
Date 2017-06-09 18:10 +0200
Message-ID <tQuE2-3IK-27@gated-at.bofh.it> (permalink)
References <tQuE1-3IK-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The MSI Primo81 tablet has a 3500 mAh 3.7V LiPo battery.

Enable the PMIC's battery power supply so the battery can be monitored.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/boot/dts/sun6i-a31s-primo81.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/sun6i-a31s-primo81.dts b/arch/arm/boot/dts/sun6i-a31s-primo81.dts
index 73b163a7d9dd..4c10123509c4 100644
--- a/arch/arm/boot/dts/sun6i-a31s-primo81.dts
+++ b/arch/arm/boot/dts/sun6i-a31s-primo81.dts
@@ -164,6 +164,10 @@
 
 #include "axp22x.dtsi"
 
+&battery_power_supply {
+	status = "okay";
+};
+
 &reg_aldo3 {
 	regulator-always-on;
 	regulator-min-microvolt = <2700000>;
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ARM: sun6i: a31s: primo81: Change USB OTG to OTG mode Chen-Yu Tsai <wens@csie.org> - 2017-06-09 18:10 +0200
  [PATCH] ARM: sun6i: a31s: primo81: Enable battery power supply Chen-Yu Tsai <wens@csie.org> - 2017-06-09 18:10 +0200
    Re: [PATCH] ARM: sun6i: a31s: primo81: Enable battery power supply Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-10 10:40 +0200

csiph-web