lkml.org 
[lkml]   [2017]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/5] Add formula for LiIon batteries to compute capacity
Date
This patches sitting in my repo for long time and would like to get feedback first before
submitting final series. This patches adding devicetree to generic-adc-battery driver
(we reuse it for gta04 board then and drop twl4030_madc_battery). Also add formula
for computing capacity of LiIon battery. This patches was tested on gta04 and
works fine. Thanks for comments.

Marek Belisko (5):
dt-bindings: power: Add battery types
power: generic-adc-battery: Parse more properties from DT
power/generic-adc-battery: Add support for temperature and add check
for charge from iio current channel
power: Add formula for computing LiIon State of Charge from Voltage
power: generic-adc-battery: Add capacity handling

drivers/power/supply/generic-adc-battery.c | 100 ++++++++++++++++++++++++++++-
include/dt-bindings/power/power.h | 11 ++++
include/linux/power/generic-fuel-gauge.h | 38 +++++++++++
3 files changed, 146 insertions(+), 3 deletions(-)
create mode 100644 include/dt-bindings/power/power.h
create mode 100644 include/linux/power/generic-fuel-gauge.h

--
2.7.4

\
 
 \ /
  Last update: 2017-08-01 22:56    [W:0.215 / U:24.764 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site