public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] power_supply: Introduce Power Supply Charging Framework
@ 2013-09-23 18:03 Jenny TC
  2013-09-23 18:03 ` [PATCH 1/7] power_supply: Add charger control properties Jenny TC
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Jenny TC @ 2013-09-23 18:03 UTC (permalink / raw)
  To: linux-kernel, Anton Vorontsov, Anton Vorontsov; +Cc: Jenny TC

The Power Supply charging framework connects multiple subsystems to
do charging in a generic way. The framework makes use of different
new features - Battery Identification framework, pluggable charging
algorithms, charger cable arbitrations. PSE compliant charging
algorithm also enabled as part of this patch set.

With this framework the charging logic can be kept outside the charger
driver.The charger driver just need to expose th get_property and
set_property functions to get and set a specific set of power supply
properties. The driver can convert these values to the hardware
configurations to setup charging.


Jenny TC (7):
  power_supply: Add charger control properties
  power_supply : add charger cable properties
  power_supply: add throttle state
  power_supply: Add power_supply notifier
  power_supply : Introduce battery identification framework
  power_supply: Introduce Power Supply charging framework
  power_supply: Introduce PSE compliant algorithm

 Documentation/power/power_supply_class.txt |  202 ++++++
 drivers/power/Kconfig                      |   30 +
 drivers/power/Makefile                     |    3 +
 drivers/power/battery_id.c                 |   87 +++
 drivers/power/charging_algo_pse.c          |  202 ++++++
 drivers/power/power_supply.h               |   21 +
 drivers/power/power_supply_charger.c       | 1011 ++++++++++++++++++++++++++++
 drivers/power/power_supply_charger.h       |  130 ++++
 drivers/power/power_supply_core.c          |   38 ++
 drivers/power/power_supply_sysfs.c         |    8 +
 include/linux/power/battery_id.h           |  100 +++
 include/linux/power_supply.h               |  335 +++++++++
 12 files changed, 2167 insertions(+)
 create mode 100644 drivers/power/battery_id.c
 create mode 100644 drivers/power/charging_algo_pse.c
 create mode 100644 drivers/power/power_supply_charger.c
 create mode 100644 drivers/power/power_supply_charger.h
 create mode 100644 include/linux/power/battery_id.h

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH 0/7] power_supply: Introduce charging Framework
@ 2012-10-18 16:43 Jenny TC
  2012-10-18 16:44 ` [PATCH 7/7] power_supply: Introduce PSE compliant algorithm Jenny TC
  0 siblings, 1 reply; 15+ messages in thread
From: Jenny TC @ 2012-10-18 16:43 UTC (permalink / raw)
  To: Anton Vorontsov, Anton Vorontsov, linux-kernel
  Cc: Pallala Ramakrishna, Chanwoo Choi, myungjoo.ham, Jenny TC

The Power Supply charging framework connects multiple subsystems
to do charging in a generic way. The subsystems involves power_supply,
extcon, and thermal. With this the charging is handled in a generic way.

The framework makes use of different new features - Battery Identification
framework, pluggable charging algorithms, charger cable arbitrations.
PSE compliant charging algorithm also enabled as part of this patchset.

With this framework the charging logic can be kept outside the charger driver.
The charger driver just need to expose th get_property and set_property functions
to get and set a specific set of power supply properties. The driver can
convert these values to the hardware configurations to setup charging.


Jenny TC (7):
  power_supply : Introduce battery identification framework
  power_supply: Add charger control properties
  power_supply : add supported charger cable  feature
  power_supply: add throttle state
  power_supply: Introduce Power Supply charging framework
  power_supply: enable charger framework callbacks
  power_supply: Introduce PSE compliant algorithm

 drivers/power/Kconfig                |   28 ++
 drivers/power/Makefile               |    3 +
 drivers/power/battery_id.c           |   94 +++++
 drivers/power/charging_algo_pse.c    |   79 +++++
 drivers/power/power_supply.h         |   20 ++
 drivers/power/power_supply_charger.c |  634 ++++++++++++++++++++++++++++++++++
 drivers/power/power_supply_charger.h |  165 +++++++++
 drivers/power/power_supply_core.c    |   12 +
 drivers/power/power_supply_sysfs.c   |   16 +-
 include/linux/power/battery_id.h     |   97 ++++++
 include/linux/power_supply.h         |   53 ++-
 11 files changed, 1189 insertions(+), 12 deletions(-)
 create mode 100644 drivers/power/battery_id.c
 create mode 100644 drivers/power/charging_algo_pse.c
 create mode 100644 drivers/power/power_supply_charger.c
 create mode 100644 drivers/power/power_supply_charger.h
 create mode 100644 include/linux/power/battery_id.h

-- 
1.7.9.5


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

end of thread, other threads:[~2013-10-29  4:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-23 18:03 [PATCH 0/7] power_supply: Introduce Power Supply Charging Framework Jenny TC
2013-09-23 18:03 ` [PATCH 1/7] power_supply: Add charger control properties Jenny TC
2013-10-27 23:46   ` Anton Vorontsov
2013-10-28  3:36     ` Tc, Jenny
2013-10-28  6:18       ` Anton Vorontsov
2013-10-29  4:57         ` NeilBrown
2013-09-23 18:04 ` [PATCH 2/7] power_supply : add charger cable properties Jenny TC
2013-09-23 18:04 ` [PATCH 3/7] power_supply: add throttle state Jenny TC
2013-09-23 18:04 ` [PATCH 4/7] power_supply: Add power_supply notifier Jenny TC
2013-09-23 18:04 ` [PATCH 5/7] power_supply : Introduce battery identification framework Jenny TC
2013-09-23 18:04 ` [PATCH 6/7] power_supply: Introduce Power Supply charging framework Jenny TC
2013-09-23 18:04 ` [PATCH 7/7] power_supply: Introduce PSE compliant algorithm Jenny TC
2013-10-28  6:17   ` Anton Vorontsov
2013-10-25 16:49 ` [PATCH 0/7] power_supply: Introduce Power Supply Charging Framework Tc, Jenny
  -- strict thread matches above, loose matches on Subject: below --
2012-10-18 16:43 [PATCH 0/7] power_supply: Introduce charging Framework Jenny TC
2012-10-18 16:44 ` [PATCH 7/7] power_supply: Introduce PSE compliant algorithm Jenny TC

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox