Linux Power Management development
 help / color / mirror / Atom feed
* LTC3651 and other GPIO chargers
@ 2017-06-26 16:21 Ladislav Michl
  2017-06-27  5:39 ` Mike Looijmans
  2017-07-03 13:52 ` Sebastian Reichel
  0 siblings, 2 replies; 8+ messages in thread
From: Ladislav Michl @ 2017-06-26 16:21 UTC (permalink / raw)
  To: linux-pm; +Cc: Mike Looijmans, Sebastian Reichel

Hi there!

A driver for LTC3651 was recently added to -next
https://patchwork.kernel.org/patch/9717049/
which brings a question whenever we want to add separate driver
(or vendor specific bindings) for ever growing list of similar
chargers. For example those using the same status output lines
are: BQ24232HA, LTC4007, LTM8061, RT9502, LT3651, LT3650, TP4056,
MAX1737...
Others for example BQ24032A and LM3658 (which I have to support)
are using different status encoding, ie. LM3658:

stat1	stat2		Condition
  0	  0	Power-Down, charging is suspended or interrupted
  1	  0	Pre-qualification mode, CC and CV charging
  0	  1	Charge is completed
  1	  1	Bad battery (Safety timer expired), or LDO mode

What about extending gpio-charger instead?
- allow gpio list fdt subnode
  - consider each gpio line to represent bit in a word
- provide per property subnodes
  - each subnode holds a mask and mapping to property values
This way we should be able to cover most chargers providing status
using gpios. Comments welcome and appreciated - those will turn into
implementation.

Thank you,
	ladis

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

end of thread, other threads:[~2017-07-28  5:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-26 16:21 LTC3651 and other GPIO chargers Ladislav Michl
2017-06-27  5:39 ` Mike Looijmans
2017-06-27  6:38   ` Ladislav Michl
2017-06-27  6:59     ` Mike Looijmans
2017-07-28  1:04   ` Ladislav Michl
2017-07-28  5:27     ` Mike Looijmans
2017-07-03 13:52 ` Sebastian Reichel
2017-07-13  7:25   ` Ladislav Michl

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