lkml.org 
[lkml]   [2022]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] gpio-regmap support for register fields and other hooks
Date
This is a small series to expand the usefulness of gpio-regmap.

Patch 1 allows GPIO direction and level to be mapped to values in a register
field for cases where a one-bit-per-GPIO mapping is insufficient.

Patch 2 allows gpio-regmap to be used for the GPIO portion of a combined
pin control + GPIO driver by deferring some ops to the pin control subsystem.

Patch 3 allows drivers to provide a custom ->to_irq() hook for the GPIO chip
as an alternative to using an IRQ domain.

Aidan MacDonald (3):
gpio: regmap: Support registers with more than one bit per GPIO
gpio: regmap: Support combined GPIO and pin control drivers
gpio: regmap: Support a custom ->to_irq() hook

drivers/gpio/gpio-regmap.c | 110 ++++++++++++++++++++++++++----------
include/linux/gpio/regmap.h | 24 ++++++++
2 files changed, 103 insertions(+), 31 deletions(-)

--
2.35.1

\
 
 \ /
  Last update: 2022-07-03 13:11    [W:2.172 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site