linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] power: Generic interface to get battery specification.
@ 2014-10-07 10:58 Jonghwa Lee
  2014-10-07 10:58 ` [PATCH 1/3] power: core: Add generic " Jonghwa Lee
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Jonghwa Lee @ 2014-10-07 10:58 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-pm, sre, dbaryshkov, dwmw2, anton, pavel, jenny.tc,
	Jonghwa Lee

This patches contains supporting generic interface to get battery specification
and of-based battery driver which use the interface.

Up to now, power supply subsystem assumes that battery's charartric data is
static and also often left as fuelgauge's role. However, fuelgauge driver or
any power_supply driver can be worked with different battery with different
implementation and battery also can be changed even in runtime.
If so, it needs to notify its change to all related power_supply drivers not
let them notice all with private way. Thus, it tries to introduce generic
interface for management of the battery specification.

In addition to, for the smart battery, this'll help to abstract battery
interface which can be varied with different batteries. (SDQ, MIPI BIF..)

Jonghwa Lee (3):
  power: core: Add generic interface to get battery specification.
  power: core: Add variables related temperature to power_supply_info.
  power: of_battery: Initial support for of-based battery specification
    driver.

 .../bindings/power_supply/of_battery.txt           |   34 +++++++
 drivers/power/Kconfig                              |    7 ++
 drivers/power/Makefile                             |    1 +
 drivers/power/of_battery.c                         |  100 ++++++++++++++++++++
 drivers/power/power_supply_core.c                  |   91 ++++++++++++++++++
 include/linux/power_supply.h                       |    9 ++
 6 files changed, 242 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power_supply/of_battery.txt
 create mode 100644 drivers/power/of_battery.c

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-01-22  0:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 10:58 [RFC PATCH 0/3] power: Generic interface to get battery specification Jonghwa Lee
2014-10-07 10:58 ` [PATCH 1/3] power: core: Add generic " Jonghwa Lee
2014-11-08 10:13   ` Tc, Jenny
2014-11-10  1:10     ` jonghwa3.lee
2014-11-10  3:41       ` Tc, Jenny
2014-10-07 10:58 ` [PATCH 2/3] power: core: Add variables related temperature to power_supply_info Jonghwa Lee
2014-11-10 11:16   ` Tc, Jenny
2014-11-11  0:30     ` jonghwa3.lee
2014-11-11  4:56       ` Tc, Jenny
2014-11-11 20:42         ` Pavel Machek
2014-11-12  3:45           ` Tc, Jenny
2014-10-07 10:58 ` [PATCH 3/3] power: of_battery: Initial support for of-based battery specification driver Jonghwa Lee
2014-10-09 10:44   ` Pavel Machek
2015-01-22  0:54 ` [RFC PATCH 0/3] power: Generic interface to get battery specification Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).