From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54560CFB441 for ; Mon, 7 Oct 2024 14:59:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To: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-Owner; bh=dL9aA540mEeufB7thObWnGoJTxtAhjB5yU/T3BfooEs=; b=xfMhz08vmxQFK+r4MJ6ew6tNU+ K4h04kLIgBe+STeayc8vf813e2WreltMM7q5+o6KCslUMFsBIRSpONSTPZhLJeTAspJN+dbZq6tGX 2piNGwijXtMZnrVpvE+G9BO0uUi2cxw0bfV5xDt0HBkT5i1+SG5kZBxZ1tmxgUcUIl5ZhqiZvMy35 c+wp8yGca6t4S5mizS/O9WG6VxBE2b4o6aXdBSWBJnJjviGcZkHJJd8sy2cw6Hn/Pa1OPa9UpSBRz La8HSXAc687s/GtRtM1uIy3h2awyUOtIMdA3qNu6g3jOYMCv11rgaP85HbKge1hBrt71FhfmAYybq QAIRJ29A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxpCX-00000002pa9-3Rpn; Mon, 07 Oct 2024 14:59:09 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxpBE-00000002pLn-2zqf; Mon, 07 Oct 2024 14:57:51 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6F031E0005; Mon, 7 Oct 2024 14:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728313064; 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=dL9aA540mEeufB7thObWnGoJTxtAhjB5yU/T3BfooEs=; b=UaEgwyuEu6gLwU9JDdC4Jv0egiVcXYuwXu/pXA5cjTNEz/7NzGS+Du+W7aej+hzJrl/6mm q5QSUK1eG2zCEzIYjpAwjyL5OXr0tlA9fz+Bg4zjNkHLlNFjZUTv1OawpSt5TVQVjCkDN9 jRhOPeSpxQe2UQiy5ApnWobz0leWTq/yqHt/v9ccAN42PolVqSlXjibhxbesAUT+rR0Yz3 sFGQAt16VsCYJ5WKvxmt245F6w+olonniYKNtULjCnKQUvJ6xmY29C51lcFeQM7bXS9zSl jHy+g/KhX5EuzuxAWgId7ivmZhrpGyuFNIS/04ypczA+8DOfKAIvS4QzYFdGlg== Date: Mon, 7 Oct 2024 16:57:40 +0200 From: Herve Codina To: Andrea della Porta Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Manivannan Sadhasivam , Bjorn Helgaas , Linus Walleij , Catalin Marinas , Will Deacon , Bartosz Golaszewski , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Saravana Kannan , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-gpio@vger.kernel.org, Masahiro Yamada , Stefan Wahren , Luca Ceresoli , Thomas Petazzoni , Andrew Lunn Subject: Re: [PATCH v2 10/14] arm64: dts: rp1: Add support for RaspberryPi's RP1 device Message-ID: <20241007165740.14d372f5@bootlin.com> In-Reply-To: <3f6f38c06b065f5f6034ad4ed3a24902ee59f378.1728300190.git.andrea.porta@suse.com> References: <3f6f38c06b065f5f6034ad4ed3a24902ee59f378.1728300190.git.andrea.porta@suse.com> Organization: Bootlin X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241007_075749_213323_A331C064 X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Andrea, On Mon, 7 Oct 2024 14:39:53 +0200 Andrea della Porta wrote: > RaspberryPi RP1 is a multi function PCI endpoint device that > exposes several subperipherals via PCI BAR. > Add a dtb overlay that will be compiled into a binary blob > and linked in the RP1 driver. > This overlay offers just minimal support to represent the > RP1 device itself, the sub-peripherals will be added by > future patches. > > Signed-off-by: Andrea della Porta > --- ... > +/ { > + fragment@0 { > + target-path=""; > + __overlay__ { > + compatible = "pci1de4,1"; The compatible is not needed here. Indeed, it will be added by the PCI core when it scans the bus and adds the missing nodes. https://elixir.bootlin.com/linux/v6.12-rc2/source/drivers/pci/of_property.c#L383 > + #address-cells = <3>; > + #size-cells = <2>; > + > + pci_ep_bus: pci-ep-bus@1 { > + compatible = "simple-bus"; > + ranges = <0xc0 0x40000000 > + 0x01 0x00 0x00000000 > + 0x00 0x00400000>; > + dma-ranges = <0x10 0x00000000 > + 0x43000000 0x10 0x00000000 > + 0x10 0x00000000>; > + #address-cells = <2>; > + #size-cells = <2>; > + interrupt-controller; > + interrupt-parent = <&pci_ep_bus>; > + #interrupt-cells = <2>; Not sure this node should be an interrupt controller. The interrupt controller is the PCI device itself (i.e.the node where the overlay is applied). Best regards, Hervé