* [PATCH 0/2] Establish the roles of board DTSes for Raspberry Pi5
@ 2025-08-11 14:12 Andrea della Porta
2025-08-11 14:12 ` [PATCH 1/2] arm64: dts: broadcom: delete redundant pcie enablement nodes Andrea della Porta
2025-08-11 14:12 ` [PATCH 2/2] arm64: dts: broadcom: amend the comment about the role of BCM2712 board DTS Andrea della Porta
0 siblings, 2 replies; 3+ messages in thread
From: Andrea della Porta @ 2025-08-11 14:12 UTC (permalink / raw)
To: Andrea della Porta, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Broadcom internal kernel review list, Lorenzo Pieralisi,
Krzysztof Wilczynski, Bjorn Helgaas, Linus Walleij,
Catalin Marinas, Will Deacon, Bartosz Golaszewski, Derek Kiernan,
Dragan Cvetic, Arnd Bergmann, Greg Kroah-Hartman, Saravana Kannan,
linux-clk, devicetree, linux-arm-kernel, linux-kernel, linux-pci,
linux-gpio, Masahiro Yamada, Stefan Wahren, Herve Codina,
Luca Ceresoli, Thomas Petazzoni, Andrew Lunn, Phil Elwell,
Dave Stevenson, kernel-list, Matthias Brugger, iivanov, svarbanov
Hi,
this patchset is composed of the following:
- patch 1: just a cleanup to get rid of duplicated declarations in the
board DTS for BCM2712.
- patch 2: explicitly states what BCM2712 board DTS will host the
customized nodes that refer to RP1 internal peripherals. This is
important so that followup patches add the nodes to the correct
DTS file. For more information about why it has to be done, please
take a look to the patch comment.
Andrea della Porta (2):
arm64: dts: broadcom: delete redundant pcie enablement nodes
arm64: dts: broadcom: amend the comment about the role of BCM2712
board DTS
.../boot/dts/broadcom/bcm2712-rpi-5-b.dts | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
--
2.35.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] arm64: dts: broadcom: delete redundant pcie enablement nodes
2025-08-11 14:12 [PATCH 0/2] Establish the roles of board DTSes for Raspberry Pi5 Andrea della Porta
@ 2025-08-11 14:12 ` Andrea della Porta
2025-08-11 14:12 ` [PATCH 2/2] arm64: dts: broadcom: amend the comment about the role of BCM2712 board DTS Andrea della Porta
1 sibling, 0 replies; 3+ messages in thread
From: Andrea della Porta @ 2025-08-11 14:12 UTC (permalink / raw)
To: Andrea della Porta, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Broadcom internal kernel review list, Lorenzo Pieralisi,
Krzysztof Wilczynski, Bjorn Helgaas, Linus Walleij,
Catalin Marinas, Will Deacon, Bartosz Golaszewski, Derek Kiernan,
Dragan Cvetic, Arnd Bergmann, Greg Kroah-Hartman, Saravana Kannan,
linux-clk, devicetree, linux-arm-kernel, linux-kernel, linux-pci,
linux-gpio, Masahiro Yamada, Stefan Wahren, Herve Codina,
Luca Ceresoli, Thomas Petazzoni, Andrew Lunn, Phil Elwell,
Dave Stevenson, kernel-list, Matthias Brugger, iivanov, svarbanov
The pcie1 and pcie2 override nodes to enable the respective peripherals are
declared both in bcm2712-rpi-5-b.dts and bcm2712-rpi-5-b-ovl-rp1.dts, which
makes those declared in the former file redundant.
Drop those redundant nodes from the board devicetree.
Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
---
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
index a70a9b158df3..adad85e68f1b 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
@@ -15,11 +15,3 @@
&pcie2 {
#include "rp1-nexus.dtsi"
};
-
-&pcie1 {
- status = "okay";
-};
-
-&pcie2 {
- status = "okay";
-};
--
2.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] arm64: dts: broadcom: amend the comment about the role of BCM2712 board DTS
2025-08-11 14:12 [PATCH 0/2] Establish the roles of board DTSes for Raspberry Pi5 Andrea della Porta
2025-08-11 14:12 ` [PATCH 1/2] arm64: dts: broadcom: delete redundant pcie enablement nodes Andrea della Porta
@ 2025-08-11 14:12 ` Andrea della Porta
1 sibling, 0 replies; 3+ messages in thread
From: Andrea della Porta @ 2025-08-11 14:12 UTC (permalink / raw)
To: Andrea della Porta, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Broadcom internal kernel review list, Lorenzo Pieralisi,
Krzysztof Wilczynski, Bjorn Helgaas, Linus Walleij,
Catalin Marinas, Will Deacon, Bartosz Golaszewski, Derek Kiernan,
Dragan Cvetic, Arnd Bergmann, Greg Kroah-Hartman, Saravana Kannan,
linux-clk, devicetree, linux-arm-kernel, linux-kernel, linux-pci,
linux-gpio, Masahiro Yamada, Stefan Wahren, Herve Codina,
Luca Ceresoli, Thomas Petazzoni, Andrew Lunn, Phil Elwell,
Dave Stevenson, kernel-list, Matthias Brugger, iivanov, svarbanov
Current board DTS for Raspberry Pi5 states that bcm2712-rpi-5-b.dts
should not be modified and all declarations should go in the overlay
board DTS instead (bcm2712-rpi-5-b-ovl-rp1.dts).
There's a caveat though: there's currently no infrastructure to reliably
reference nodes that have not been declared yet, as is the case when
loading those nodes from a runtime overlay. For more details about
these limitations see [1] and follow-ups.
Change the comment to make it clear which DTS file will host specific
nodes, especially the RP1 related nodes which should be customized
outside the overlay DTS.
Link
[1] - https://lore.kernel.org/all/CAMEGJJ3=W8_R0xBvm8r+Q7iExZx8xPBHEWWGAT9ngpGWDSKCaQ@mail.gmail.com/
Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
---
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
index adad85e68f1b..865f092608a6 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
@@ -4,8 +4,14 @@
* the RP1 driver to load the RP1 dtb overlay at runtime, while
* bcm2712-rpi-5-b.dts (this file) is the fully defined one (i.e. it
* already contains RP1 node, so no overlay is loaded nor needed).
- * This file is not intended to be modified, nodes should be added
- * to the included bcm2712-rpi-5-b-ovl-rp1.dts.
+ * This file is intended to host the override nodes for the RP1 peripherals,
+ * e.g. to declare the phy of the ethernet interface or the custom pin setup
+ * for several RP1 peripherals.
+ * This in turn is due to the fact that there's no current generic
+ * infrastructure to reference nodes (i.e. the nodes in rp1-common.dtsi) that
+ * are not yet defined in the DT since they are loaded at runtime via overlay.
+ * All other nodes that do not have anything to do with RP1 should be added
+ * to the included bcm2712-rpi-5-b-ovl-rp1.dts instead.
*/
/dts-v1/;
--
2.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-11 14:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 14:12 [PATCH 0/2] Establish the roles of board DTSes for Raspberry Pi5 Andrea della Porta
2025-08-11 14:12 ` [PATCH 1/2] arm64: dts: broadcom: delete redundant pcie enablement nodes Andrea della Porta
2025-08-11 14:12 ` [PATCH 2/2] arm64: dts: broadcom: amend the comment about the role of BCM2712 board DTS Andrea della Porta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).