patch sto set bat charge current in dts
This commit is contained in:
parent
41966ea9c3
commit
e291e34b83
|
@ -0,0 +1,45 @@
|
|||
From 709159a6428f696915df4ff9795af86ddc328740 Mon Sep 17 00:00:00 2001
|
||||
From: vincent <vbusoenseirb@gmail.com>
|
||||
Date: Mon, 28 Sep 2020 15:05:59 +0200
|
||||
Subject: [PATCH] battery charge current set to 400mA
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/sun8i-v3s-funkey.dts | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/sun8i-v3s-funkey.dts b/arch/arm/boot/dts/sun8i-v3s-funkey.dts
|
||||
index 24e26b2..ffff865 100644
|
||||
--- a/arch/arm/boot/dts/sun8i-v3s-funkey.dts
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s-funkey.dts
|
||||
@@ -63,6 +63,11 @@
|
||||
default-brightness-level = <11>;
|
||||
power-supply = <®_vcc5v0>;
|
||||
};
|
||||
+
|
||||
+ bat: battery {
|
||||
+ compatible = "simple-battery";
|
||||
+ constant_charge_current_max_microamp = <400000>;
|
||||
+ };
|
||||
};
|
||||
|
||||
&codec {
|
||||
@@ -121,6 +126,7 @@
|
||||
|
||||
&battery_power_supply {
|
||||
status = "okay";
|
||||
+ monitored-battery = <&bat>;
|
||||
};
|
||||
|
||||
&usb_power_supply {
|
||||
@@ -177,7 +183,7 @@
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
txbuflen = <115202>;
|
||||
-// txbuflen = <0>;
|
||||
+ //txbuflen = <0>;
|
||||
spi_async_mode = "true";
|
||||
//interlacing = "true";
|
||||
rotate = <0>;
|
||||
--
|
||||
1.9.1
|
||||
|
|
@ -5,7 +5,7 @@ THRESHOLD_PERCENT_LOW_BAT=5
|
|||
THRESHOLD_PERCENT_EXTREMELY_LOW_BAT=2
|
||||
MAX_EXTREMELY_LOW_BAT_BEFORE_SHUTDOWN=5
|
||||
SLEEP_SECS=2
|
||||
RESCALE_MAX_PERCENTAGE=112
|
||||
RESCALE_MAX_PERCENTAGE=120
|
||||
|
||||
# Blink Low bat constants declaration
|
||||
BLINK_ICON=0
|
||||
|
|
Loading…
Reference in New Issue