Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1466335rwb; Thu, 8 Dec 2022 11:01:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf73ez5OtMmQE7fW49PT7x8t3nm/+pqE4syQeTV4L/liJYO7O/Gh5IzDNnUUxNEq03ecDpKj X-Received: by 2002:a63:5920:0:b0:43f:88cc:473 with SMTP id n32-20020a635920000000b0043f88cc0473mr71856485pgb.491.1670526062451; Thu, 08 Dec 2022 11:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670526062; cv=none; d=google.com; s=arc-20160816; b=zpyoKDp1SUcvEJE2AYk2NnntoM6MP3HAvJXan8pxZN0aAhza/1PMBta/al5785/ke4 DMSb5KFy3CykWTsBpaqQ0M4Tm9oYkjAtoETeKoGVCoKGjsqfsmigowGsW5kJFSB8qhTa ETvng6seySMgsB52c8GOBVwMNDBm/nI+zCEVyjK3iva3zMuVuCOYQB9EJVPnEQqIm0AT vGnxtvgzlaj4wH+GunXRx9gmpMdqm8+BWQDYMhI44XWxFxr5ksK9wHwrFSc7phlyHAje Did98bdT7Ksu0Q9xNmJSq2YxcQiQdXUy19DJKTK907T17cmVOtFzwdFh8HljxgchWun+ Z84w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FrlOvsFOX/pfMjBwBoy1bUX3yJA4t88OWF28tp5FYlU=; b=qIzGlAGPbfF2XasS6yyO0RiRanRZ7LeY6t6B83vUDr3cegnGPeFiKrxW2cLQWldfOz YKFuxYHIkA85TEKtseroiy9YBwBcg06VUt6P0TI+CwJCklp2iIElQzN+A39VJtFbvKTc I0lbKRvX6/Kp2pZT7t1X2YbQADdquAa2GzRMHCv/u41cQhazx3hsY4tJ2NTKgjKOcw6a W6xhUJLtT/lUwJ707UTLOmDXyBk4AYseaF8CB7iZSmss2QZP4M9GSup5I+rjWiyFvtRc 1olcZAd9BIe9DTjYk9oJFJIkZvm+N9qPaEqca8rrUdTTmnyS8NBVnuY00zO9BHlSxbcd Acyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=Tqaec27X; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm9-20020a056a00338900b0056da577869asi23072106pfb.356.2022.12.08.11.00.53; Thu, 08 Dec 2022 11:01:02 -0800 (PST) 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; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=Tqaec27X; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiLHSgj (ORCPT + 73 others); Thu, 8 Dec 2022 13:36:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiLHSgh (ORCPT ); Thu, 8 Dec 2022 13:36:37 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CA2BE1 for ; Thu, 8 Dec 2022 10:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1670524570; bh=ArOKgVB2dEMsvvQv2MSw6kaArsHw6nVYY30UErZ/gVQ=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=Tqaec27XhTxt5jki6hIn4Vwbih5daALP/AOGZBLn0XQy9Kwsm7bme5sAbWVccADs0 8HXItdNwAKvMw1G2/srGuzPyxRWsGnKV8VG4zo4UJ9PNgaOixj20F/bKXdGn9htqT0 FEPTRYFoH56NqkoRsc8b7O6DFNLNGwr/T/o4gk9dWXyFClppAbvD5v/EMAGoqezJ4W BCp2Qjv8Qj78MB4d7LqjlcySY+vd/sKHz7XuLhiUKHVXUO/NYjdXBmZ9lFVacZaQyZ TftcgjX7xqMFpBeeH0FgIGPVbHIeU6IrepyHx4Yjm/YC7VqX6UlkT8BBpcX3LhC9Sb cK2FkUFwiGx/g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N63VY-1osWyA2JeC-016SqM; Thu, 08 Dec 2022 19:36:10 +0100 Date: Thu, 8 Dec 2022 19:36:04 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: "Russell King (Oracle)" Cc: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , Andrew Lunn , linux-arm-kernel@lists.infradead.org, Robert Jarzmik , Haojian Zhuang , Daniel Mack , linux-kernel@vger.kernel.org Subject: Re: PXA25x: GPIO driver fails probe due to resource conflict with pinctrl driver Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Rc/mWC0E3+AOr2MX" Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:XDwb+F6BLWnqqpTS+GM/JLMzpIFPPyPZWLFjHy6b9uK2DWgHdCy ZyNOlUWKlt367QEHYfOwMGuMwOQcb99XUUQGLOqIL3JdUsvvGi4EbZJuLWyee5VrzGv/dqS AyJsaNPMciT373dmGpvoXYfat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nBikOMtOn+f hDGSXQ== X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 --Rc/mWC0E3+AOr2MX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2022 at 06:27:52PM +0000, Russell King (Oracle) wrote: > On Wed, Dec 07, 2022 at 05:44:58PM +0100, Jonathan Neusch=C3=A4fer wrote: > > On Wed, Dec 07, 2022 at 03:41:11PM +0000, Russell King (Oracle) wrote: > > > On Wed, Dec 07, 2022 at 04:28:07PM +0100, Andrew Lunn wrote: > > [...] > > > > How are the registers arranged? > > >=20 > > > As documented in drivers/gpio/gpio-pxa.c - it'll be easier for you to > > > look there rather than for me to explain it - but suffice it to say > > > that the pinctrl registers are amongst the GPIO registers. > > >=20 > > > > Is 0x40e00000-0x40e0ffff simply too > > > > large, and making it smaller would fix the issue? Or are the regist= ers > > > > interleaved? > > >=20 > > > They're interleaved. Looking at the .dtsi file for PXA25x, it seems > > > that the pinctrl claims just the addresses that it needs, but the GPIO > > > controller has no reg property in the .dtsi, so I'm not sure what fil= ls > > > that information in. > >=20 > > The GPIO reg property is in pxa2xx.dtsi. >=20 > Looks to me like pxa25x should override the reg property with a smaller > range (0x54) and pxa27x probably should have used a second set of > entries in reg the subsequent group of 3 gpio blocks at offset 0x100. Without further code changes this wouldn't be sufficient, because the pinctrl driver also touches the GPIO direction registers at offset 0x0c-0x14. Jonathan --Rc/mWC0E3+AOr2MX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmOSLnIACgkQCDBEmo7z X9sDcw/+NOGItwyuFjYli1yeq2yxp94FYbLj2r8Y8GQKQBAecd8TVbVKGS0S/FFI o7udq8vqtWuPzomlglonHSvRNLW2RS39IjsPnSsWz6bb6SvGSi6jfeeEJuyCA+yV foifZI1H7crTIRyGaDpYFsZSfh3JIhLMxmLPf+AYctvFDuldqlY0XHfLPWqKZhuI Cs6Qq8XPL4IoNDKdfZpRGMA6AkEljogUqkOl6d7L/CR4aA6hb69lvwGIfPz4/psc hQjbzFPx40iJ5fCqUz7TUhwtS3latC9v3XRRuuIKjJmS6fgbn3ftWaTwKFspgRQZ Oy5SjDPuT2gIZs6Z6uZAi3v3q+wfGpsFE2sw9FUGUqMbikMQ7KR5ExOIiIxiJte3 2pAJ5ea/G4CbX1oi/o+wEpRfrd/memiyymbgKAyLhLnJAHRlG65rf8UbFSxeTZ8p mT0MyGzUMwtuQTgeHxR2UP+N8FO8+ivfq+KVHfgIg3+7eKF2cFKIJLCPNHFegKDg JlhbsPlPs+K76iljbOu/iGzNm5fgIUWhi9Q1XZzRPdBDrliCJekEXAMPsKk24WRb c4FdDNOmnSB9v5hWNmyWytYq1m+SehufCejfNRMwK79T85kFXp6gTqa+cSlSb7Hd kJIGYtAIlWhjVZv01h06N4pGIxBhXo4rG+Yym8u7ItBBSPNj6po= =BF1n -----END PGP SIGNATURE----- --Rc/mWC0E3+AOr2MX--