linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] add support for AXP22X/AXP288/AXP8XX PEK
@ 2017-08-09  9:45 Quentin Schulz
  2017-08-09  9:45 ` [PATCH v3 1/2] Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes Quentin Schulz
  2017-08-09  9:45 ` [PATCH v3 2/2] Input: axp20x-pek: add support for AXP221 PEK Quentin Schulz
  0 siblings, 2 replies; 6+ messages in thread
From: Quentin Schulz @ 2017-08-09  9:45 UTC (permalink / raw)
  To: dmitry.torokhov, wens, lee.jones
  Cc: hdegoede, linux-input, linux-kernel, thomas.petazzoni,
	maxime.ripard, Quentin Schulz

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.

v3:
  - name correctly the newly added functions (remove ext_ in their name),
  - since only two functions remained with an ext_ in their name (and
  since they are used by the newly added functions), rename it directly in
  the first patch (thus, remove the second patch of v2),
  - fix over-80-chars line checkpatch warning,

v2:
  - instead of duplicating all extended attributes, use the driver_data of
  platform_device_id to get startup and shutdown times and their respective
  masks,
  - remove extended attributes and use the structure storing startup and
  shutdown times and their respective masks,
  - separate in different patches,
  - removed mfd patch to correct mfd cell name since Chen-Yu will take care
  of it in another patch series,

Thanks,
Quentin

Quentin Schulz (2):
  Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes
  Input: axp20x-pek: add support for AXP221 PEK

 drivers/input/misc/axp20x-pek.c | 147 +++++++++++++++++++++++----------
 1 file changed, 104 insertions(+), 43 deletions(-)

base-commit: 22bbe310b60b37b029659460843265f190364e48
-- 
git-series 0.9.1

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

end of thread, other threads:[~2017-08-17  0:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09  9:45 [PATCH v3 0/2] add support for AXP22X/AXP288/AXP8XX PEK Quentin Schulz
2017-08-09  9:45 ` [PATCH v3 1/2] Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes Quentin Schulz
2017-08-14 10:03   ` Chen-Yu Tsai
2017-08-17  0:46     ` Dmitry Torokhov
2017-08-09  9:45 ` [PATCH v3 2/2] Input: axp20x-pek: add support for AXP221 PEK Quentin Schulz
2017-08-17  0:46   ` Dmitry Torokhov

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