Re: [PATCH] platform/x86: pcengines-apuv2: attach software node to the gpiochip
From: Bartosz Golaszewski
Date: Mon Feb 16 2026 - 02:22:31 EST
On Fri, Feb 13, 2026 at 11:40 PM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> GPIO subsystem is switching the way it locates GPIO chip instances for
> GPIO references in software nodes from matching on node names to
> identity matching, which necessitates assigning firmware nodes
> (software nodes) to GPIO chips.
>
> Attach apu2_gpiochip_node to the platform device representing the GPIO
> controller.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
> drivers/platform/x86/pcengines-apuv2.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c
> index 3b086863c6ac..3f19589d1ba0 100644
> --- a/drivers/platform/x86/pcengines-apuv2.c
> +++ b/drivers/platform/x86/pcengines-apuv2.c
> @@ -294,7 +294,8 @@ static int __init apu_board_init(void)
> }
>
> apu_gpio_pdev = apu_create_pdev(AMD_FCH_GPIO_DRIVER_NAME,
> - id->driver_data, sizeof(struct amd_fch_gpio_pdata), NULL);
> + id->driver_data, sizeof(struct amd_fch_gpio_pdata),
> + &apu2_gpiochip_node);
> err = PTR_ERR_OR_ZERO(apu_gpio_pdev);
> if (err)
> goto err_unregister_swnodes;
> --
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>