mbox series

[v2,0/3] mfd: MT6358 PMIC button support

Message ID 20210512151614.36996-1-mkorpershoek@baylibre.com (mailing list archive)
Headers show
Series mfd: MT6358 PMIC button support | expand

Message

Mattijs Korpershoek May 12, 2021, 3:16 p.m. UTC
The MediaTek MT6358 PMIC has support for two buttons: PWR and HOME.

The interrupt logic is a little different than other PMICs from the
same family:
for MT6323 and MT6397, we have one interrupt source per button
* for MT6358, we have two interrupts lines per button: the press and
* release interrupts are distinct sources.

Changes since v1 at [1]:
- cover letter title prefixed with 'mfd'

This series depends on [2]

[1] https://lore.kernel.org/r/20210506094116.638527-1-mkorpershoek@baylibre.com
[2] https://lore.kernel.org/r/20210429143811.2030717-1-mkorpershoek@baylibre.com

Mattijs Korpershoek (3):
  mfd: mt6397: add mt6358 register definitions for power key
  mfd: mt6397: keys: use named IRQs instead of index
  mfd: mt6397: add PMIC keys for MT6358

 drivers/mfd/mt6397-core.c            | 20 ++++++++++++++++----
 include/linux/mfd/mt6358/registers.h |  2 ++
 2 files changed, 18 insertions(+), 4 deletions(-)