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@xxxxxxxxxx> --- 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, -- Linus Walleij <linus.walleij@xxxxxxxxxx>