All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/9] gpio: realtek: Add support for Realtek DHC RTD1625
@ 2026-07-23  3:42 Yu-Chun Lin
  2026-07-23  3:42 ` [PATCH v7 1/9] Revert "gpio: realtek: Add driver for Realtek DHC RTD1625 SoC" Yu-Chun Lin
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Yu-Chun Lin @ 2026-07-23  3:42 UTC (permalink / raw)
  To: linusw, andriy.shevchenko, mwalle, brgl, tychang, wbg,
	mathieu.dubois-briand, nuno.sa, Michael.Hennerich, jic23, andy,
	u.kleine-koenig, dakr, bhelgaas, o-takashi
  Cc: eleanor.lin, dlechner, linux-kernel, linux-gpio, linux, linux-iio,
	cy.huang, james.tai

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@linux.intel.com/ [1]
---
Changes in v7:
Patch 1:
- Add Acked-by tag from Andy.

Patch 2:
- Add Reviewed-by tag from Michael.

Patch 3:
- Add Reviewed-by tag from Michael.

Patch 4:
- Add Reviewed-by tag from Michael.
- Fix indentation by replacing spaces with a tab.

Patch 5 & 6:
- Create patch 6 and move value_xlate changes into patch 6.
- Add background context to kernel-doc comment for
'enum gpio_regmap_operation'.

Patch 7:
- Drop the reviewed by tag from Andy due to the signature changes.
- Add 'struct gpio_regmap' as the first parameter to the set_config callback.
- Add wrapper to bridge gpio_chip to gpio_regmap.

Patch 8:
- Add Reviewed-by tags from Michael and Andy.

Patch 9:
- Replace break with return 0 in functions that only consist of a switch-case
statement.
- Add a comment for 'platform_get_irq_optional()'.
- Update rtd1625_gpio_set_config() to align with the newly revised set_config
signature.
- Replace 'irq_domain_create_linear()' and 'devm_add_action_or_reset' with
'devm_irq_domain_instantiate()'.

v6: https://lore.kernel.org/lkml/20260721065802.689530-1-eleanor.lin@realtek.com/
v5: https://lore.kernel.org/lkml/20260702090115.2564318-1-eleanor.lin@realtek.com/
v4: https://lore.kernel.org/lkml/20260622092335.1166876-1-eleanor.lin@realtek.com/
v3: https://lore.kernel.org/lkml/20260512033317.1602537-1-eleanor.lin@realtek.com/
v2: https://lore.kernel.org/lkml/20260408025243.1155482-1-eleanor.lin@realtek.com/
v1: https://lore.kernel.org/lkml/20260331113835.3510341-1-eleanor.lin@realtek.com/

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            | 116 +++++++-
 drivers/gpio/gpio-rtd1625.c           | 389 +++++++++++++++-----------
 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           |  80 +++++-
 13 files changed, 422 insertions(+), 212 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-07-23 16:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23  3:42 [PATCH v7 0/9] gpio: realtek: Add support for Realtek DHC RTD1625 Yu-Chun Lin
2026-07-23  3:42 ` [PATCH v7 1/9] Revert "gpio: realtek: Add driver for Realtek DHC RTD1625 SoC" Yu-Chun Lin
2026-07-23  3:42 ` [PATCH v7 2/9] gpio: regmap: Provide default IRQ resource request and release callbacks Yu-Chun Lin
2026-07-23  3:42 ` [PATCH v7 3/9] gpio: regmap: Apply default resource callbacks for regmap IRQ chip Yu-Chun Lin
2026-07-23 16:36   ` Mathieu Dubois-Briand
2026-07-23  3:42 ` [PATCH v7 4/9] gpio: regmap: Order kernel-doc descriptions with the actual appearance Yu-Chun Lin
2026-07-23  3:42 ` [PATCH v7 5/9] gpio: regmap: Add gpio_regmap_operation to extend reg_mask_xlate callback Yu-Chun Lin
2026-07-23  6:51   ` Michael Walle
2026-07-23 11:14     ` Yu-Chun Lin [林祐君]
2026-07-23 11:20       ` Michael Walle
2026-07-23  3:42 ` [PATCH v7 6/9] gpio: regmap: Add value_xlate callback Yu-Chun Lin
2026-07-23  6:54   ` Michael Walle
2026-07-23  3:42 ` [PATCH v7 7/9] gpio: regmap: Add set_config callback Yu-Chun Lin
2026-07-23  7:01   ` Michael Walle
2026-07-23  3:42 ` [PATCH v7 8/9] gpio: regmap: Add IRQ enable/disable helpers Yu-Chun Lin
2026-07-23  3:42 ` [PATCH v7 9/9] gpio: realtek: Add driver for Realtek DHC RTD1625 SoC Yu-Chun Lin
2026-07-23 16:22   ` Mathieu Dubois-Briand

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.