Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4515705rwr; Mon, 8 May 2023 08:43:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70SbD7L5DsvmRHdT5pvyy4FxqyCI7imfmnYeLHr2Egxj/rdJV4zZzPyYKjfCTvJf9CTbG1 X-Received: by 2002:a05:6a20:442a:b0:ff:68f1:679 with SMTP id ce42-20020a056a20442a00b000ff68f10679mr11485186pzb.52.1683560597767; Mon, 08 May 2023 08:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683560597; cv=none; d=google.com; s=arc-20160816; b=olPRFJ/G6a1hTN5KZ5vdAgcJTF3DBPVZSC1jRM/atTmmnBFSeqGWqIlGUumFrnQLl0 miRiwL8WVplgMef4/lGRNHSHeYBLxP1gI7giLIuJ3j+RLczqNoDM3uF0vJnHi9Yr162F 22sKZPitMZLndH4+TzbIF5NeyKaO3McOeRtLMm/Ugr42iCxTrQo3b3A1ZdivXi6XRCej TbULTn8ugngFshmGF/UMkaScmPSw5DObGRNIpe30qYdlEywDxnjyZhtzb382HutlYOGW mqPTH/xbFrunkqweUkGMU3J4Sc0l65ARaZc7QcBK6EsBeP1K65J7kCFUQgpQLEDX1ucr 0GJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=FNdgoFa30kKz8B6PbLwUXanLXoshesZCZK78wJHreOw=; b=eFld7F8eum+u18J4pDn7oNHS+qNbADvpTHFQ9rq5J1LgeFl08kXkfHRzdFm3XYOGYt NQs2VC0nCsUvrNmM82HwkiRdikR0DQCH8K1kJz9F5aDBg8RPd1H687IRt2MqkH6bCNA9 ShmWfOUG8BcqPgLjqYweCPVMtkOD3JGXeC2RBMlyedKRAdMvCeBa7EjaRU5PStqNOKQA Y3xnCFHNOuO2KNSZNgkK/LeR9fe4m+bVzTJBCsTVKYqrd7lDVLBDist96Hre8I2lreky tdTXoILkvj3dDijeoxoy966mqjYbD1vsoHObdr7S/oo7g6u06faJdeCi2r1Tqyaf5ZLI N7Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g71-20020a636b4a000000b005288172b346si8853309pgc.584.2023.05.08.08.43.03; Mon, 08 May 2023 08:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234452AbjEHPRf (ORCPT + 99 others); Mon, 8 May 2023 11:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233604AbjEHPRc (ORCPT ); Mon, 8 May 2023 11:17:32 -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 99076A2 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> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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