Re: [PATCH v3 3/3] ARM: omap1: Fix up the Nokia 770 board device IRQs

From
<hidden>
Date
2023-05-08 15:17:38
Also in
dri-devel, linux-input, linux-mips, linux-mmc, linux-omap, linux-spi, lkml
Reply to
Linus Walleij, 2023-05-05
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.
...
quoted hunk ↗ jump to hunk
+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

Thread (12 messages) 12 messages, 3 authors, last reply 2023-05-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help