[PATCH v8 0/9] gpio: realtek: Add support for Realtek DHC RTD1625
From: Yu-Chun Lin
Date: Sun Jul 26 2026 - 08:53:23 EST
For better review flow, this series includes Andy Shevchenko's
gpio-regmap fix patches [1] as a prerequisite. The first patch
reverts the previously applied patch from Bartosz Golaszewski.
This series then adds GPIO support for the Realtek DHC RTD1625 SoC.
Unlike the existing driver (gpio-rtd.c) which uses shared bank
registers, the RTD1625 features a per-pin register architecture where
each GPIO line is managed by its own dedicated 32-bit control register.
This distinct hardware design requires a new, separate driver.
Link: https://lore.kernel.org/lkml/20260702130903.1790633-1-andriy.shevchenko@xxxxxxxxxxxxxxx/ [1]
---
Changes in v8:
Patch 1:
- Add Acked-by tag from Linus.
Patch 2:
- Add Reviewed-by tag from Linus.
Patch 3
- Add Reviewed-by tags from Mathieu and Linus.
Patch 4
- Add Reviewed-by tag from Linus.
Patch 5
- Remove GPIO_REGMAP_IN and GPIO_REGMAP_OUT from 'enum gpio_regmap_operation'
and one extra regmap_read in gpio_regmap_get().
- Add Acked-by tags from William Breathitt Gray and Jonathan Cameron.
Patch 6
- Add Reviewed-by tags from Michael and Linus.
- Improve kernel-doc comments for 'enum gpio_regmap_operation' and value_xlate.
Patch 7
- Move the assignment of gpio->set_config into the if (config->set_config)
block.
- Add Reviewed-by tags from Michael and Linus.
Patch 8:
- Add Reviewed-by tag from Linus.
Patch 9
- Add error handlers in td1625_gpio_irq_handle().
- Move the direction-checking logic from the core to our custom
reg_mask_xlate() callback.
- Add Reviewed-by tag from Linus.
v7: https://lore.kernel.org/lkml/20260723034237.2501507-1-eleanor.lin@xxxxxxxxxxx/
v6: https://lore.kernel.org/lkml/20260721065802.689530-1-eleanor.lin@xxxxxxxxxxx/
v5: https://lore.kernel.org/lkml/20260702090115.2564318-1-eleanor.lin@xxxxxxxxxxx/
v4: https://lore.kernel.org/lkml/20260622092335.1166876-1-eleanor.lin@xxxxxxxxxxx/
v3: https://lore.kernel.org/lkml/20260512033317.1602537-1-eleanor.lin@xxxxxxxxxxx/
v2: https://lore.kernel.org/lkml/20260408025243.1155482-1-eleanor.lin@xxxxxxxxxxx/
v1: https://lore.kernel.org/lkml/20260331113835.3510341-1-eleanor.lin@xxxxxxxxxxx/
Andy Shevchenko (3):
gpio: regmap: Provide default IRQ resource request and release
callbacks
gpio: regmap: Apply default resource callbacks for regmap IRQ chip
gpio: regmap: Order kernel-doc descriptions with the actual appearance
Tzuyi Chang (1):
gpio: realtek: Add driver for Realtek DHC RTD1625 SoC
Yu-Chun Lin (5):
Revert "gpio: realtek: Add driver for Realtek DHC RTD1625 SoC"
gpio: regmap: Add gpio_regmap_operation to extend reg_mask_xlate
callback
gpio: regmap: Add value_xlate callback
gpio: regmap: Add set_config callback
gpio: regmap: Add IRQ enable/disable helpers
drivers/gpio/Kconfig | 2 +
drivers/gpio/gpio-104-idi-48.c | 7 +-
drivers/gpio/gpio-i8255.c | 4 +-
drivers/gpio/gpio-idio-16.c | 6 +-
drivers/gpio/gpio-max7360.c | 8 +-
drivers/gpio/gpio-pcie-idio-24.c | 6 +-
drivers/gpio/gpio-regmap.c | 104 ++++++-
drivers/gpio/gpio-rtd1625.c | 408 +++++++++++++++-----------
drivers/iio/adc/ad7173.c | 8 +-
drivers/iio/addac/stx104.c | 6 +-
drivers/pinctrl/bcm/pinctrl-bcm63xx.c | 1 +
drivers/pinctrl/pinctrl-tps6594.c | 1 +
include/linux/gpio/regmap.h | 73 ++++-
13 files changed, 421 insertions(+), 213 deletions(-)
--
2.43.0