Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1164135rwb; Wed, 7 Dec 2022 09:20:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf728ex4ddfiJAKKm3RvKqG+icSwK5ULsFZA/gh05PkE6JOANZj18iBhHnS9PAMB9IE4FLSZ X-Received: by 2002:a17:90a:5787:b0:218:8398:5846 with SMTP id g7-20020a17090a578700b0021883985846mr97456742pji.241.1670433629691; Wed, 07 Dec 2022 09:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670433629; cv=none; d=google.com; s=arc-20160816; b=ihSyDAGVxfyjeQUiHROKU4bUzv+95zidkZyi2xVHBgOOtJywJRcw+E8mm/+ZNCv0u0 vZIo+Ah6p9mx9xEIpeYcquuOSxExslT1xeUJmzvZavbavwVV8eiIk8s+vD2E0jh6Rizk vG1Ie164D5KxkVZOb0ZHZOwjQXv2uLUL5E5oQIl+yj2zbPXTcM0LjsyRueJQl+UgR/ci qrchOfHkNbpi8Lh5sUv7nFGERffYWdcBNT99vZXwtli0jSkRtfkJ+0O8ho0VwqHDS5+3 s9wRjgCAeoNfX7B0Jf9t+/ChYtuah9jht4MEshqTXvZG/c866WRRzKyPQtjrZAuASqZa FDFg== 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=0LPepgQhjmkTqW73nRX1/norefYUIiRbLLnLPSpW5wU=; b=Fhmm+hU+EaB88y5sr6UBcbaX5gIirmw/Ud62tcLKjvOxuycj4Nld3U+9/RxUqOAJz3 2PNUaV2O0p17xhEt/yzJ8urZFBqo62ScldtevHrZOKYG/h6X48MBlKJ2wuDMOgmGYXIs V/Nl2EL4qA6FkkZX2Hl5iROI2Mp+gajZ4oGrTQB3gE2SjMl23h7893b1MQyYrP1/kR9i f/bE9GO0JqEMaRJl7XvWLJClCRCZ+evDPJJQcidp2b357lGc0tKuG9T2i+ImAmwf4jQc OF8XBrrdEVGRRSuK6bCaXiiOh3NZoXe8BjYMclTqYJvkWn6zdb9Ikabc7erdgTl3l009 6jJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=BhhUIxIN; 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 d5-20020a656205000000b0046f583c8c4asi19997684pgv.315.2022.12.07.09.20.19; Wed, 07 Dec 2022 09:20:29 -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=BhhUIxIN; 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 S230016AbiLGQpL (ORCPT + 76 others); Wed, 7 Dec 2022 11:45:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbiLGQpK (ORCPT ); Wed, 7 Dec 2022 11:45:10 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 937D25E3C2 for ; Wed, 7 Dec 2022 08:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1670431500; bh=UycZekzkSjqnF2N5+loQlLUpBO/scCgp/bD64AOybyw=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=BhhUIxINl8Jin6/mwCEUM7+dbZN6yi2VAO45J06SPoSCB9MDlINUrh83Isd5+InfZ aqNRg3rmXuoQv7Ex16e95I/AgndaqxuDuzpHHpgTNY59mW0ckAHld8ABNGZKCZHPNy 0JWUBqUJoLFos45S2jD9wHJP3bfxAp7wKxbQ/HEC7WikZ+ZUJJS3Z0IZRK2OZjP9/u aZdzxtZwDMNWKJlnbaP++K1kytAffpq+1j0A3So6V6GF2rO2V/xlWdrt5z+MqgJunt +vmHhJ/EYRxL1us8B/4Nno3Bb3EBaQkVnFIIubQSUWiNG9X9Q8tGd3r34+4hjG+eKp uEwZdq2OAwYMA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVvPJ-1pUhZZ2M8j-00RmKU; Wed, 07 Dec 2022 17:45:00 +0100 Date: Wed, 7 Dec 2022 17:44:58 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: "Russell King (Oracle)" Cc: Andrew Lunn , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , 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="9eeF8hcRYDtZ6Gsw" Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:Qyv1+6D31pbICyUtF8wJztcfBXIPqJfe5tRyNZfKUhTGLW7WYST Uso18McbxZmJrI3w+NBRAg49NmEMFua1O04lTfSlb6wQ8aWRKrqmqL2bZbX7B+1dUT/6rNS ZCpacMs4BMsDMAb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JuABSk08DidQJKiC7d6c+4LopxNBayRcLTykYh2GH v8mE3Cp1wnSM8iYLdBvf8ft8chg= 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 --9eeF8hcRYDtZ6Gsw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 registers > > 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 fills > that information in. The GPIO reg property is in pxa2xx.dtsi. >=20 > DT could describe the region for PXA25x, which is just: >=20 > 0x40e00000 - 0x40e00054 >=20 > Later PXA have more banks, so would require additional resources to be > listed. >=20 > However, first, we need to know what provides the iomem resource for > this: >=20 > gpio: gpio@40e00000 { > compatible =3D "intel,pxa25x-gpio"; > gpio-ranges =3D <&pinctrl 0 0 84>; > clocks =3D <&clks CLK_NONE>; > }; >=20 > --=20 > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! Jonathan --9eeF8hcRYDtZ6Gsw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmOQwwoACgkQCDBEmo7z X9vPtQ//W+FQ7O1MJS7Wep4GMQxQyamklotEVos/5WUxWxRXD3RE9PP8w0tEyLzP bNUTba+1rJDZO+NL9CJlYLwvD+B8V1gzSpGBc6ak4+4ANGd9GLxdAWM8/rt5QAXv AeGrzXNM1v5gpY+yBQgLf1uW17Aecg3evFasblbjVUXhZiWToyYwbju+83inIAip bQ+49Oru0jdXUIJiygFGqRyUCpOa1BK9Ami5XNBNQo8XtharZTlMBKQFtmS5VdGo cpplEVnwiGJ0BSNzwy93lU+TzRsxSesqPyJja4Lgb5jixtP3CxMy4Jxoi3AU7nOz t9SFVPN2Ps/tBznQkvoz5942TrXAC/5yTzs8cfDHt9zDbXmNaj8QNXG11QTgtrP+ nrElbbI2eYnH1q87ZhwoeBnEA9Fu5jKz2cfCKbXAmNNHIhkOnKEBi/yz/HpySbHY DM+scWSdwnbWIC1u4zFMk0ArZfMcBvLJmUIK04KTUdjVRjjCvR2bmMwN4O/xNQ22 RxQQ4ugZSFYs99AheaAjMHAeWqrWmM88b+HdtH/YreOQ4wlSlfOsHrWdb0jw8Qh5 phqAq5MqSibWgfx+x1FXSl2byQXoqdsDGAStiidsMmu7rNS5vgmGDKgMQvmbYxoW D8VBOKUVEIheoZWGrouRleVDOwamaJc9PpklNSB41hrz0LJJv4E= =o/Ap -----END PGP SIGNATURE----- --9eeF8hcRYDtZ6Gsw--