From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BB73202C4C; Thu, 13 Feb 2025 17:07:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739466462; cv=none; b=njKsgs1rW0h/sWLjEcn4/Ff0UURyaMa8HtlPA0ssNJWnKs5cWyII6b2txl1oqL9llTX3Cn1rC6YQPgdFUxbINYHaFFeFCapv6tE/zLSujcGlVVAxMLQXEPfhvgRjfxwir9f4kCkLZ/tmOKCz5qo/V+WTK5UrVhDdS6JArDnDQN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739466462; c=relaxed/simple; bh=W4OErFGysDwGXaHwpzIF3REBjPTSH176IPgpfA/4uJ4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Dx5pHIT1jWLtPbBA5vVTA+SexOV5kaFHBwYdsWeXkBPkPT4v8W97NoYpcCck7ZrKGZy90JnTkz4GTOGhc4qC1XVIkzGnag4jnwVJ5stM/J3D19mcuxGcNfDGEM4OlTY0yd8w3kiMULLJq8uk6XbWKXBqyRJ8jo+bBIVGWydRD6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=SIO/nQJZ; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="SIO/nQJZ" Received: by mail.gandi.net (Postfix) with ESMTPSA id 393344445D; Thu, 13 Feb 2025 17:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1739466457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pkRWv4JP/idAuAK+mR/AdT1Zif8+aeGhHShLWeul7BY=; b=SIO/nQJZv43iVUadTFzcCneOf8JkXKitdCkSooThMyMJzhEtByvC05ZJRe+qnJb/hviIcI DH1RlVBOcZUqBeq9xEK6DmbHgonpPz9mVKmv4RhCMF9auDacoaHaLoXmEuBwuRv9JFluok R+vvrhaltCo9NJVrf1vIjkj1uum3p2wE0077wC72ivgzPLxTyM/tZOoCphmdDWNcgUliLM ArcBDF9EmKibqx6ABf+zoGTTDy6zLJFFstjH4YZCudasC5tLxeNCZcnWE4sS3bBeDS/SY6 FPPv3yskQLPfHk+3OFCdoLIf7LGAA5/lAAvIaGp0Ave040GhGpDoHn4d3HfKIQ== Date: Thu, 13 Feb 2025 18:07:33 +0100 From: Herve Codina To: Phil Elwell Cc: Andrew Lunn , Andrea della Porta , Arnd Bergmann , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , bhelgaas@google.com, brgl@bgdev.pl, Catalin Marinas , Conor Dooley , derek.kiernan@amd.com, devicetree@vger.kernel.org, dragan.cvetic@amd.com, Florian Fainelli , Greg Kroah-Hartman , krzk+dt@kernel.org, kw@linux.com, Linus Walleij , linux-arm-kernel , linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, LKML , "open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , lpieralisi@kernel.org, luca.ceresoli@bootlin.com, manivannan.sadhasivam@linaro.org, masahiroy@kernel.org, Michael Turquette , Rob Herring , saravanak@google.com, Stephen Boyd , thomas.petazzoni@bootlin.com, Stefan Wahren , Will Deacon , Dave Stevenson Subject: Re: [PATCH v6 00/10] Add support for RaspberryPi RP1 PCI device using a DT overlay Message-ID: <20250213180733.11999e07@bootlin.com> In-Reply-To: References: <20250213171435.1c2ce376@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegjeeffecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkjghfohfogggtgfesthekredtredtjeenucfhrhhomhepjfgvrhhvvgcuvehoughinhgruceohhgvrhhvvgdrtghoughinhgrsegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeeviefffeegiedtleelieeghfejleeuueevkeevteegffehledtkeegudeigffgvdenucfkphepvdgrtddumegvtdgrmedvgeeimeejjeeltdemvdeitgegmegvvddvmeeitdefugemheekrgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvrgdtudemvgdtrgemvdegieemjeejledtmedviegtgeemvgdvvdemiedtfegumeehkegrpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehhvghrvhgvrdgtohguihhnrgessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepfeehpdhrtghpthhtohepphhhihhlsehrrghsphgsvghrrhihphhirdgtohhmpdhrtghpthhtoheprghnughrvgifsehluhhnnhdrtghhpdhrtghpthhtoheprghnughrvggrrdhpohhrthgrsehsuhhsvgdrtghomhdprhgtphhtthhopegrrhhnugesrghrnhgusgdruggvpdhrtghpthhtoheps ggtmhdqkhgvrhhnvghlqdhfvggvuggsrggtkhdqlhhishhtsegsrhhorggutghomhdrtghomhdprhgtphhtthhopegshhgvlhhgrggrshesghhoohhglhgvrdgtohhmpdhrtghpthhtohepsghrghhlsegsghguvghvrdhplhdprhgtphhtthhopegtrghtrghlihhnrdhmrghrihhnrghssegrrhhmrdgtohhm X-GND-Sasl: herve.codina@bootlin.com On Thu, 13 Feb 2025 16:30:44 +0000 Phil Elwell wrote: > Hi Andrew, > > On Thu, 13 Feb 2025 at 16:27, Andrew Lunn wrote: > > > > On Thu, Feb 13, 2025 at 05:14:35PM +0100, Herve Codina wrote: > > > Hi Phil, > > > > > > On Thu, 13 Feb 2025 15:18:45 +0000 > > > Phil Elwell wrote: > > > > > > > Hi Andrea, > > > > > > > > The problem with this approach (loading an overlay from the RP1 PCIe > > > > driver), and it's one that I have raised with you offline, is that > > > > (unless anyone can prove otherwise) it becomes impossible to create a > > > > Pi 5 DTS file which makes use of the RP1's resources. How do you > > > > declare something as simple as a button wired to an RP1 GPIO, or fan > > > > connected to a PWM output? > > > > Where is this button or fan? On a pluggable board? Isn't that what > > overlays are for, and they are stackable. So when you probe the > > pluggable board via its eeprom etc, you find the overlay and load it? > > In the Raspberry Pi ecosystem it would be the firmware that applies > the overlay, and it can't do that if the resources the overlay refers > to are not yet present in the dtb. What do you mean by the 'the resources are not yet present in the dtb' ? Also what you call the 'firmware' is the bootloader ? the kernel ? Can you tell me who is the 'firmware' what is the mecanisme it uses to load the overlay. Best regards, Hervé > > > Or do you mean a custom board, which has a CPU, RP1 and the button and > > fan are directly on this custom board? You then want a board DTS which > > includes all these pieces? > > That depends on whether you count the Raspberry Pi 5 as a custom board. >