| From: |
| Billy Tsai <billy_tsai-AT-aspeedtech.com> |
| To: |
| Linus Walleij <linusw-AT-kernel.org>, Bartosz Golaszewski <brgl-AT-kernel.org>, Joel Stanley <joel-AT-jms.id.au>, Andrew Jeffery <andrew-AT-codeconstruct.com.au>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org> |
| Subject: |
| [PATCH v2 0/6] Add Aspeed G7 sgpio support |
| Date: |
| Fri, 23 Jan 2026 17:26:25 +0800 |
| Message-ID: |
| <20260123-upstream_sgpio-v2-0-69cfd1631400@aspeedtech.com> |
| Cc: |
| <linux-gpio-AT-vger.kernel.org>, <linux-arm-kernel-AT-lists.infradead.org>, <linux-aspeed-AT-lists.ozlabs.org>, <linux-kernel-AT-vger.kernel.org>, "Andrew Jeffery" <andrew-AT-aj.id.au>, <devicetree-AT-vger.kernel.org>, <bmc-sw-AT-aspeedtech.com>, Billy Tsai <billy_tsai-AT-aspeedtech.com>, "Krzysztof Kozlowski" <krzysztof.kozlowski-AT-oss.qualcomm.com> |
| Archive-link: |
| Article |
The Aspeed 7th generation SoC features two SGPIO master controllers: both
with 256 serial inputs and outputs. The main difference from the previous
generation is that the control logic has been updated to support
per-pin control, allowing each pin to have its own 32-bit register for
configuring value, interrupt type, and more.
This patch serial also add low-level operations (llops) to abstract the
register access for SGPIO registers making it easier to extend the driver
to support different hardware register layouts.
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
---
Changes in v2:
- Split the IRQ-related llops conversion into a separate patch to keep changes logically scoped.
- Minimized unrelated changes (such as variable renaming) to reduce diff noise and ease review.
- Clarified the llops design intent and semantics.
- Link to v1: https://lore.kernel.org/r/20260117-upstream_sgpio-v1-0-85...
---
Billy Tsai (6):
gpio: aspeed-sgpio: Change the macro to support deferred probe
gpio: aspeed-sgpio: Remove unused bank name field
gpio: aspeed-sgpio: Create llops to handle hardware access
gpio: aspeed-sgpio: Convert IRQ functions to use llops callbacks
dt-bindings: gpio: aspeed,sgpio: Support ast2700
gpio: aspeed-sgpio: Support G7 Aspeed sgpiom controller
.../devicetree/bindings/gpio/aspeed,sgpio.yaml | 4 +-
drivers/gpio/gpio-aspeed-sgpio.c | 362 +++++++++++++--------
2 files changed, 227 insertions(+), 139 deletions(-)
---
base-commit: 39d3389331abd712461f50249722f7ed9d815068
change-id: 20251223-upstream_sgpio-70d815c64a19
Best regards,
--
Billy Tsai <billy_tsai@aspeedtech.com>