From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80628C7EE24 for ; Mon, 8 May 2023 15:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233714AbjEHPRe (ORCPT ); Mon, 8 May 2023 11:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234001AbjEHPRd (ORCPT ); Mon, 8 May 2023 11:17:33 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EFE644B6 for ; Mon, 8 May 2023 08:17:31 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 71d38cae-edb3-11ed-b3cf-005056bd6ce9; Mon, 08 May 2023 18:17:29 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Mon, 8 May 2023 18:17:28 +0300 To: Linus Walleij Cc: Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Thomas Bogendoerfer , Dmitry Torokhov , Mark Brown , Bartosz Golaszewski , Andreas Kemnade , Helge Deller , Ulf Hansson , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mmc@vger.kernel.org Subject: Re: [PATCH v3 3/3] ARM: omap1: Fix up the Nokia 770 board device IRQs Message-ID: References: <20230430-nokia770-regression-v3-0-a6d0a89ffa8b@linaro.org> <20230430-nokia770-regression-v3-3-a6d0a89ffa8b@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230430-nokia770-regression-v3-3-a6d0a89ffa8b@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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