All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] gpio: pca953x: Add interrupt mask support for pca953x chips
@ 2022-10-10 13:20 Levente Révész
  2022-10-10 13:20 ` [PATCH 1/2] gpio: pca953x: Generalize interrupt mask register handling Levente Révész
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Levente Révész @ 2022-10-10 13:20 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski; +Cc: linux-gpio, Levente Révész

Hello,

Some chips in the pca953x family have an interrupt mask register in
addition to the standard 4 registers:

    0: INPUT
    1: OUTPUT
    2: POLARITY
    3: CONFIGURATION
    4: INTERRUPT MASK

Chips with this register:

    - pca9505
    - pca9506
    - pca9698

The interrupt mask register defaults to all interrupts disabled, so
interrupts are unusable unless the driver sets this register.

Interrupt masking is already implemented for pcal chips. That
implementation could be extended to support this register as well.

This patch series adds support for the interrupt mask register in
mentioned pca chips.

Note 1:

    Interrupt support for the pca9698 is not enabled currently, so the
    interrupt mask support has not been turned on either. An additional
    patch in this series could enable support for it, although I have no
    hardware to test with.

Kind regards,
Levente

Levente Révész (2):
  gpio: pca953x: Generalize interrupt mask register handling
  gpio: pca953x: Add interrupt mask support for chips with the standard
    register set

 drivers/gpio/gpio-pca953x.c | 81 +++++++++++++++++++++++++------------
 1 file changed, 56 insertions(+), 25 deletions(-)

-- 
2.37.3


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

end of thread, other threads:[~2022-10-24 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-10 13:20 [PATCH 0/2] gpio: pca953x: Add interrupt mask support for pca953x chips Levente Révész
2022-10-10 13:20 ` [PATCH 1/2] gpio: pca953x: Generalize interrupt mask register handling Levente Révész
2022-10-24 16:58   ` Martyn Welch
2022-10-10 13:20 ` [PATCH 2/2] gpio: pca953x: Add interrupt mask support for chips with the standard register set Levente Révész
2022-10-17 10:02 ` [PATCH 0/2] gpio: pca953x: Add interrupt mask support for pca953x chips Linus Walleij
2022-10-17 17:31   ` Andy Shevchenko
2022-10-19 10:15     ` Révész, Levente
2022-10-19 11:28       ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.