lkml.org 
[lkml]   [2018]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] power: supply: MAX17040: Add IRQ for low level and alert SOC changes
Date
This series add IRQ handler for low level SOC alert, define a devicetree 
binding attribute to configure the alert level threshold and check for changes
in SOC for send uevents.

Max17040 have a pin for alert host about low level state of charge and this
alert can be configured in a threshold from 1% up to 32% of SOC.

Tested on Raspberry Pi Zero W, with a SparkFun Lipo Fuel Gauge module based on
MAXIM MAX17043.

Matheus Castello (4):
power: supply: max17040: Add IRQ handler for low SOC alert
power: supply: max17040: Config alert SOC low level threshold from FDT
dt-bindings: power: supply: Max17040: Add low level SOC alert threshold
power: supply: max17040: Send uevent in SOC changes

.../bindings/power/supply/max17040_battery.txt | 24 ++++++
drivers/power/supply/max17040_battery.c | 95 ++++++++++++++++++++++
2 files changed, 119 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/max17040_battery.txt

--
2.13.3

\
 
 \ /
  Last update: 2018-07-23 06:58    [W:0.147 / U:26.380 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site