mbox series

[v2,0/2] gpiolib: of: Handle threecell gpios

Message ID 20250225-gpio-ranges-fourcell-v2-0-8da9998fa976@linaro.org
Headers show
Series gpiolib: of: Handle threecell gpios | expand

Message

Linus Walleij Feb. 25, 2025, 4:15 p.m. UTC
This adds some code in the gpiolib OF core to deal with
several gpio chip instances per OF node.

The change was prompted by the need of the Spacemit GPIO
controller.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Changes in v2:
- Fix a speling error in first patch.
- Fix coding errors and documentation errors in second patch.
- Collected review tags.
- Drop RFT tag, this is for applying.
- Link to v1: https://lore.kernel.org/r/20250218-gpio-ranges-fourcell-v1-0-b1f3db6c8036@linaro.org

---
Linus Walleij (2):
      gpiolib: of: Use local variables
      gpiolib: of: Handle threecell GPIO chips

 drivers/gpio/gpiolib-of.c   | 126 ++++++++++++++++++++++++++++++++++++--------
 include/linux/gpio/driver.h |  24 ++++++++-
 2 files changed, 126 insertions(+), 24 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250217-gpio-ranges-fourcell-85888ad219da

Best regards,