[PATCH v2 0/2] gpio: cadence: Add Axiado AX3000 support and edge interrupts

Swark Yang posted 2 patches 1 month ago
drivers/gpio/gpio-cadence.c | 76 ++++++++++++++++++++++++++++++++++++---------
1 file changed, 61 insertions(+), 15 deletions(-)
[PATCH v2 0/2] gpio: cadence: Add Axiado AX3000 support and edge interrupts
Posted by Swark Yang 1 month ago
This patch series updates the gpio-cadence driver to support the Axiado
AX3000 platform and extends its interrupt capabilities.

On the Axiado AX3000 platform, pinmux and pin configuration (such as
direction and output enable) are configured by the hardware/firmware at
boot time before Linux boots. To support this architecture, this series
introduces a platform-specific quirk to skip default pin initialization
during the probe sequence, preserving the pre-boot configuration.

The series also enables support for edge-triggered interrupts (rising,
falling, and both edges). The Cadence IP6508 hardware supports these
modes via its IRQ registers, but they were previously unimplemented in
the driver.

Patch breakdown:
 - Patch 1 adds a quirk for the Axiado AX3000 platform
 - Patch 2 enables edge-triggered interrupt support

These patches are expected to go via the GPIO subsystem tree.

Feedback is welcome.

Signed-off-by: Swark Yang <syang@axiado.com>
---
Changes in v2:
- Patch 1: Refactored quirk handling to use "struct cdns_gpio_quirks" 
  and "device_get_match_data()" instead of bitmasks, as suggested by 
  Linus Walleij and Bartosz Golaszewski.
- Patch 1: Moved Copyright notice to the correct location.
- Patch 2: Added a comment table explaining the interrupt trigger 
  behavior, as suggested by Linus Walleij.
- Patch 2: Collected Reviewed-by tag from Linus Walleij.
- Link to v1: https://lore.kernel.org/r/20251222-axiado-ax3000-cadence-gpio-support-v1-0-c9ef8e0d0bce@axiado.com

---
Swark Yang (1):
      gpio: cadence: Add quirk for Axiado AX3000 platform

Tzu-Hao Wei (1):
      gpio: cadence: Add support for edge-triggered interrupts

 drivers/gpio/gpio-cadence.c | 76 ++++++++++++++++++++++++++++++++++++---------
 1 file changed, 61 insertions(+), 15 deletions(-)
---
base-commit: 4d70843ea1294cf8ff78492643c73ddbe4663aea
change-id: 20251215-axiado-ax3000-cadence-gpio-support-7549bc46ef48

Best regards,
-- 
Swark Yang <syang@axiado.com>
Re: [PATCH v2 0/2] gpio: cadence: Add Axiado AX3000 support and edge interrupts
Posted by Bartosz Golaszewski 4 weeks ago
On Fri, 09 Jan 2026 01:26:05 -0800, Swark Yang wrote:
> This patch series updates the gpio-cadence driver to support the Axiado
> AX3000 platform and extends its interrupt capabilities.
> 
> On the Axiado AX3000 platform, pinmux and pin configuration (such as
> direction and output enable) are configured by the hardware/firmware at
> boot time before Linux boots. To support this architecture, this series
> introduces a platform-specific quirk to skip default pin initialization
> during the probe sequence, preserving the pre-boot configuration.
> 
> [...]

Applied, thanks!

[1/2] gpio: cadence: Add quirk for Axiado AX3000 platform
      commit: ea5b4c68e097412f2d3ca13314b672837718a446
[2/2] gpio: cadence: Add support for edge-triggered interrupts
      commit: 43f37d44f2b8a75a896e218bac1e43d75063f8d3

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>