[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200205143003.28408-9-martin.kepplinger@puri.sm>
Date: Wed, 5 Feb 2020 15:29:59 +0100
From: Martin Kepplinger <martin.kepplinger@...i.sm>
To: robh@...nel.org, mark.rutland@....com, shawnguo@...nel.org,
s.hauer@...gutronix.de, kernel@...gutronix.de, festevam@...il.com
Cc: linux-imx@....com, Anson.Huang@....com, devicetree@...r.kernel.org,
kernel@...i.sm, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
"Angus Ainslie (Purism)" <angus@...ea.ca>
Subject: [PATCH v1 08/12] arm64: dts: librem5-devkit: add a battery for the bq25896 to monitor
From: "Angus Ainslie (Purism)" <angus@...ea.ca>
Add a simple-battery with default power capacity
Discharge curve comes from the panasonic NCR18650B datasheet
https://www.batteryspace.com/prod-specs/NCR18650B.pdf
Signed-off-by: Angus Ainslie (Purism) <angus@...ea.ca>
---
.../dts/freescale/imx8mq-librem5-devkit.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index 6a8f6cee96cf..4957acc512d5 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -26,6 +26,22 @@
power-supply = <®_22v4_p>;
};
+ bat: battery {
+ compatible = "simple-battery";
+ voltage-min-design-microvolt = <3000000>;
+ voltage-max-design-microvolt = <4192000>;
+ energy-full-design-microwatt-hours = <11700000>;
+ charge-full-design-microamp-hours = <3250000>;
+ precharge-current-microamp = <130000>;
+ charge-term-current-microamp = <66000>;
+ constant-charge-current-max-microamp = <1600000>;
+ constant-charge-voltage-max-microvolt = <4200000>;
+ factory-internal-resistance-micro-ohms = <250000>;
+ ocv-capacity-celsius = <25>;
+ ocv-capacity-table-0 = <4192000 100>, <3750000 85>, <3650000 68>,
+ <3500000 51>, <3400000 34>, <3250000 17>, <3000000 0>;
+ };
+
chosen {
stdout-path = &uart1;
};
@@ -480,6 +496,7 @@
ti,minimum-sys-voltage = <3000000>; /* 3V */
ti,boost-voltage = <5000000>; /* 5V */
ti,boost-max-current = <50000>; /* 50mA */
+ monitored-battery = <&bat>;
};
};
--
2.20.1
Powered by blists - more mailing lists