mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] make I2C GPIO expander provided buttons work
@ 2024-02-21 14:27 Sascha Hauer
  2024-02-21 14:27 ` [PATCH 1/4] gpio: add slice support Sascha Hauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sascha Hauer @ 2024-02-21 14:27 UTC (permalink / raw)
  To: Barebox List

The TQMa6UL board uses the gpio-keys driver with GPIOs provided by a
PCA9554 I2C GPIO expander. This currently doesn't work as the GPIOs
are read in a poller during an ongoing I2C transfer on the same bus.

This series fixes that by adding a slice to struct gpio_chip and
checking its availability before using it.

Sascha Hauer (4):
  gpio: add slice support
  gpio: pca953x: depend on i2c slice
  input: gpio_keys: limit poll rate
  input: gpio_keys: only use gpios in poller when not in use

 drivers/gpio/gpio-pca953x.c |  2 ++
 drivers/gpio/gpiolib.c      | 11 +++++++++++
 drivers/input/gpio_keys.c   | 27 +++++++++++++++------------
 include/gpio.h              | 15 +++++++++++++++
 4 files changed, 43 insertions(+), 12 deletions(-)

-- 
2.39.2




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

end of thread, other threads:[~2024-02-23  7:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 14:27 [PATCH 0/4] make I2C GPIO expander provided buttons work Sascha Hauer
2024-02-21 14:27 ` [PATCH 1/4] gpio: add slice support Sascha Hauer
2024-02-21 14:27 ` [PATCH 2/4] gpio: pca953x: depend on i2c slice Sascha Hauer
2024-02-21 14:27 ` [PATCH 3/4] input: gpio_keys: limit poll rate Sascha Hauer
2024-02-21 14:28 ` [PATCH 4/4] input: gpio_keys: only use gpios in poller when not in use Sascha Hauer
2024-02-23  7:32 ` [PATCH 0/4] make I2C GPIO expander provided buttons work Sascha Hauer

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