Skip to content

pinctrl: amd: Add Remote GPIO (RGPIO) bank support

Basavaraj Natikar linux-gpio 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- Rebased onto the pinctrl "devel" branch (Linus Walleij).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pinctrl: amd: Centralize per-pin register accessdrivers/pinctrl/pinctrl-amd.c+44 -410 replies
2/3pinctrl: amd: Factor out optional named resource lookupdrivers/pinctrl/pinctrl-amd.c+19 -140 replies
3/3pinctrl: amd: Add support for the Remote GPIO (RGPIO) bankdrivers/pinctrl/pinctrl-amd.c drivers/pinctrl/pinctrl-amd.h+292 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] pinctrl: amd: Add Remote GPIO (RGPIO) bank support

Some AMD platforms expose a second GPIO register bank, Remote GPIO (RGPIO), covering pins 256-271 through a separate MMIO region that the platform advertises by name. This series adds support for it.

The first two patches are preparation: one centralizes per-pin register access behind a single helper, the other factors the optional named-resource lookup into a reusable helper with a minimum-size check. The last patch adds the RGPIO bank itself, including its pins, groups, pinmux and interrupts.

The RGPIO pins are registered only when the platform advertises the region and the main bank spans the expected number of registers, so platforms that do not expose it are unaffected.

Changes in v2:
- Rebased onto the pinctrl "devel" branch (Linus Walleij).

Basavaraj Natikar (3):
pinctrl: amd: Centralize per-pin register access
pinctrl: amd: Factor out optional named resource lookup
pinctrl: amd: Add support for the Remote GPIO (RGPIO) bank

 drivers/pinctrl/pinctrl-amd.c | 237 ++++++++++++++++++++++++++--------
 drivers/pinctrl/pinctrl-amd.h | 174 +++++++++++++++++++++++++
 2 files changed, 354 insertions(+), 57 deletions(-)
Signature · 1 line
2.34.1