Re: [RFT PATCH v2] ARM: omap1: enable real software node lookup of GPIOs on Nokia 770

From: Bartosz Golaszewski

Date: Wed Feb 11 2026 - 08:19:42 EST


On Wed, Feb 11, 2026 at 2:14 PM Bartosz Golaszewski
<bartosz.golaszewski@xxxxxxxxxxxxxxxx> wrote:
>
> Currently the board file for Nokia 770 creates dummy software nodes not
> attached in any way to the actual GPIO controller devices and uses the
> fact that GPIOLIB matching swnode's name to the GPIO chip's label during
> software node lookup. This behavior is wrong and we want to remove it.
> To that end, we need to first convert all existing users to creating
> actual fwnode links.
>
> Create real software nodes for GPIO controllers on OMAP16xx and
> reference them from the software nodes in the nokia board file.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> Changes in v2:
> - fix build with CONFIG_I2C_CBUS_GPIO
> - only export the two symbols that are actually required by the nokia
> board file
>
> @@ -225,9 +206,9 @@ static inline void nokia770_mmc_init(void)
> #if IS_ENABLED(CONFIG_I2C_CBUS_GPIO)
>
> static const struct software_node_ref_args nokia770_cbus_gpio_refs[] = {
> - SOFTWARE_NODE_REFERENCE(&nokia770_mpuio_gpiochip_node, 9, 0),
> - SOFTWARE_NODE_REFERENCE(&nokia770_mpuio_gpiochip_node, 10, 0),
> - SOFTWARE_NODE_REFERENCE(&nokia770_mpuio_gpiochip_node, 11, 0),
> + SOFTWARE_NODE_REFERENCE(omap16xx_mpu_gpio_swnode, 9, 0),
> + SOFTWARE_NODE_REFERENCE(omap16xx_mpu_gpio_swnode, 10, 0),
> + SOFTWARE_NODE_REFERENCE(omap16xx_mpu_gpio_swnode, 11, 0),
> };
>

I'm sorry, this is still wrong but it builds, so I didn't notice. It
should be `&omap16xx_mpu_gpio_swnode`.

Will send v3 tomorrow.

Bartosz