mbox series

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

Message ID 20250218-gpio-ranges-fourcell-v1-0-b1f3db6c8036@linaro.org
Headers show
Series gpiolib: of: Handle threecell gpios | expand

Message

Linus Walleij Feb. 18, 2025, 10:28 a.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>
---
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,

Comments

Yixun Lan Feb. 23, 2025, 3:23 a.m. UTC | #1
Hi Linus Walleij:

On 11:28 Tue 18 Feb     , Linus Walleij wrote:
> 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.
> 
this patch works for me, many thanks
I will send a patch v6 of spacemit's gpio on top of this 

> Signed-off-by: Linus Walleij <linus.walleij@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,
> -- 
> Linus Walleij <linus.walleij@linaro.org>
>