linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs
@ 2017-07-17  9:53 Quentin Schulz
  2017-07-17  9:53 ` [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK Quentin Schulz
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Quentin Schulz @ 2017-07-17  9:53 UTC (permalink / raw)
  To: dmitry.torokhov, wens, lee.jones
  Cc: Quentin Schulz, hdegoede, linux-input, linux-kernel,
	thomas.petazzoni, maxime.ripard

According to their datasheets, the AXP221, AXP223, AXP288, AXP803,
AXP809 and AXP813 PEK have different values for startup time bits from
the AXP20X PEK (which are currently used for all the aforementioned PMICs).

This patch series adds support for platform_device_id to axp20x-pek driver
to support different startup time bits depending on PMIC's variant and set
the correct platform_device_id in the mfd.

This has been tested on AXP813. To perform the test, modify the value of
startup and/or shutdown of the pek in sysfs. Press the button soldered to
PEK input of the AXP the amount of time you set in sysfs. The PMIC shuts
down the board without needing to unplug any power supply. Press PEK button
the amount of time you set in sysfs for startup and the PMIC will start the
board. Note that the time bits are obivoulsy hardware reset to their
default when you unplug all power supplies from the board.

Thanks,
Quentin

Quentin Schulz (2):
  Input: axp20x-pek: add support for AXP221 PEK
  mfd: axp20x: use correct platform device id for many PEK

 drivers/input/misc/axp20x-pek.c | 62 ++++++++++++++++++++++++++++++++++-------
 drivers/mfd/axp20x.c            | 12 ++++----
 2 files changed, 58 insertions(+), 16 deletions(-)

-- 
2.11.0


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

end of thread, other threads:[~2017-07-19  7:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17  9:53 [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs Quentin Schulz
2017-07-17  9:53 ` [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK Quentin Schulz
2017-07-17 11:29   ` Maxime Ripard
2017-07-18  7:36     ` Quentin Schulz
2017-07-18  7:57       ` Maxime Ripard
2017-07-18  8:10         ` Quentin Schulz
2017-07-17  9:53 ` [PATCH 2/2] mfd: axp20x: use correct platform device id for many PEK Quentin Schulz
2017-07-18  7:19   ` Lee Jones
2017-07-18  7:43     ` Quentin Schulz
2017-07-18  9:49       ` Lee Jones
2017-07-18 10:04         ` Quentin Schulz
2017-07-18 10:26           ` Lee Jones
2017-07-18 10:28   ` Lee Jones
2017-07-17 11:15 ` [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs Quentin Schulz
2017-07-18  7:18   ` Lee Jones
2017-07-18  7:25     ` Quentin Schulz
2017-07-18  7:40       ` Chen-Yu Tsai
2017-07-18  9:53         ` Lee Jones
2017-07-19  7:24           ` Chen-Yu Tsai
2017-07-19  7:46             ` Lee Jones

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).