Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1283342rwb; Wed, 7 Dec 2022 10:50:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf50hZHsGC4A8UPh6kiB9IPJ2m/AHSJASxiQ0BbfIyLPt5MP9FJXuMFPcaZ7rZPzFblNAV+r X-Received: by 2002:a05:6402:1f03:b0:468:7be6:55e7 with SMTP id b3-20020a0564021f0300b004687be655e7mr82515214edb.345.1670439042828; Wed, 07 Dec 2022 10:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670439042; cv=none; d=google.com; s=arc-20160816; b=HOoJmoBI8uRmG32JnXqQ3xen0NlT4mDoI3VxQ4qi1IcRMNYRwMvz1rolf0gYoC1DEB XtXwkfHHPFWE7+bZLROq81WJXEq6FcY36bzjyqmwFoDjQ73FWTTsBAuRv3rrZALtE90B qL/fjZHVZldbre7U5BXzaB0L7yDUXd3ZynTUFV2D/lDdI1+dhqXlKr6AgkrT0GUW+eI8 joz2VlbVEcD5WZGgUpr+Zu6X8oHxnY1QdIhN107xqEsDnBUMygLqWwaFOKNP0BSiuKpc SO7RuXLy+LT/c26LeU4aR4wtZqylW6FKHGyzfsLm2wSHL+Z1YzhxzU52T0YeL+RvIvay NFbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XAqZYbN/y12h28N9Di+NOYD0uzPdv1lmdVBD1XOA8Eo=; b=CjBAz/JpZ1eF6qKF3cJQ2ChvomcA+lvsamXHbYng9SI7pxma+fkZSsic2ukMg5KleU EQ4Be6S6OBAg0xNrckPQCilYha90sjW3xf156xfPqamRzMjwKye5bKILJopyAFbnV7wT 8dG3C/veGlwg74YgkLTL/0IyRSl6K3PpYyMbBT4o+XmuAPCAChHvp/U0zTtgNQQM200O fMSw2obJRi3T6KBNu6PB63oZq+6de1GypG5l8fE2pqNvljr4/tzcCoqyKmEPwBlx+uub wWX4OJLn6sUJfA+7p/wJ95aJ4hytE47RRM82Lt676ykJ/cgDzbCYn/Zeut9Z0y1LjzmI d5aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ej3zlIxb; 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=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du15-20020a17090772cf00b00780488c11bbsi19330211ejc.388.2022.12.07.10.50.24; Wed, 07 Dec 2022 10:50:42 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ej3zlIxb; 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=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbiLGS2F (ORCPT + 75 others); Wed, 7 Dec 2022 13:28:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiLGS2D (ORCPT ); Wed, 7 Dec 2022 13:28:03 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5540A54343 for ; Wed, 7 Dec 2022 10:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XAqZYbN/y12h28N9Di+NOYD0uzPdv1lmdVBD1XOA8Eo=; b=ej3zlIxboykYelDWedHivgskS1 RT4tMkrmINoeJdfnI8cshnY7PllX+tO3f5VgxAsdJdwx1+5qfcQfW6eNUk0FBaqMgGj1KXO999YC9 aOxF1f4FIPdh0BMvkNgD10NVnVrddEAxvpO1RusdutGRqFr2Q/3q2Oa3I+S1a5Iw72MvV7QWHasUS 2vf/0hkopKwHLSV4PWxnowsMndFldPYw3+h2DFGTvhe1aPfz1NwSarF1dI+7NFZ0Wh0aIZnf26s9D W4u/zS/28QdIw7ko9JDxdlh9FstvgkiC8RmwMwWlMRcovBuYXTsW0s7r88MLTBCL5fZ5mTShqEpxC kygqdgVg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35620) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p2z99-0000tA-4x; Wed, 07 Dec 2022 18:27:56 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1p2z96-0000wE-3A; Wed, 07 Dec 2022 18:27:52 +0000 Date: Wed, 7 Dec 2022 18:27:52 +0000 From: "Russell King (Oracle)" To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: 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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 On Wed, Dec 07, 2022 at 05:44:58PM +0100, Jonathan Neusch?fer 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? > > > > 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. > > > > > Is 0x40e00000-0x40e0ffff simply too > > > large, and making it smaller would fix the issue? Or are the registers > > > interleaved? > > > > 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. 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!