[PATCH v3 3/3] ARM: omap1: Fix up the Nokia 770 board device IRQs
andy.shevchenko at gmail.com
andy.shevchenko at gmail.com
Mon May 8 08:17:28 PDT 2023
Fri, May 05, 2023 at 01:16:57PM +0200, Linus Walleij kirjoitti:
> The platform devices on the Nokia 770 is using some
> board-specific IRQs that get statically assigned to platform
> devices in the boardfile.
>
> This does not work with dynamic IRQ chip bases.
>
> Utilize the NULL device to define some board-specific
> GPIO lookups and use these to immediately look up the
> same GPIOs, convert to IRQ numbers and pass as resources
> to the devices. This is ugly but should work.
...
> +static struct gpiod_lookup_table nokia770_irq_gpio_table = {
> + .dev_id = NULL,
> + .table = {
> + /* GPIO used by SPI device 1 */
> + GPIO_LOOKUP("gpio-0-15", 15, "ads7846_irq",
> + GPIO_ACTIVE_HIGH),
> + /* GPIO used for retu IRQ */
> + GPIO_LOOKUP("gpio-48-63", 15, "retu_irq",
> + GPIO_ACTIVE_HIGH),
> + /* GPIO used for tahvo IRQ */
> + GPIO_LOOKUP("gpio-32-47", 8, "tahvo_irq",
> + GPIO_ACTIVE_HIGH),
Missing terminator.
> + },
> +};
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list