Devicetree
 help / color / mirror / Atom feed
* [PATCH v4 0/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible
@ 2026-08-10 11:46 Gregor Herburger
  2026-08-10 11:46 ` [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping Gregor Herburger
  2026-08-10 11:46 ` [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
  0 siblings, 2 replies; 7+ messages in thread
From: Gregor Herburger @ 2026-08-10 11:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Eric Anholt, Stefan Wahren, Dave Stevenson
  Cc: devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Gregor Herburger

The bcm2712 found on the Raspberry Pi 5 is available in the d Stepping
and in a c Stepping. There are two separate dts files. The
bcm2712-rpi-5-b.dts for the c Stepping and the bcm2712-d-rpi-5-b.dts for
the d Stepping. The d stepping does not set its own compatible/model
string but uses "raspberrypi,5-model-b".

These two steppings are not compatible. Booting with the wrong dtb file
causes a crash at boot.

Add compatible strings "raspberrypi,5-model-b-d0" and "brcm2712-d0" to
allow us to distinguish between those two steppings.

---
Changes in v4:
- Add Fixes Tag
- Add SoC compatible string
- Link to v3: https://patch.msgid.link/20260804-bcm2712-d-stepping-compatible-v3-0-1860094486eb@linutronix.de

Changes in v3:
- Remove fallback compatible
- Link to v2: https://patch.msgid.link/20260803-bcm2712-d-stepping-compatible-v2-0-803017e4ba7a@linutronix.de

Changes in v2:
- Removed the wrong oneOf
- Link to v1: https://patch.msgid.link/20260803-bcm2712-d-stepping-compatible-v1-0-401934357a44@linutronix.de

---
Gregor Herburger (2):
      dt-bindings: arm: bcm2835: Add 2712-d0 Stepping
      arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible

 Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml | 6 ++++++
 arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts     | 5 +++++
 2 files changed, 11 insertions(+)
---
base-commit: 8ba098e6b6ff0db8edf28528d1552be261af30d4
change-id: 20260731-bcm2712-d-stepping-compatible-4b40f0c4bda5

Best regards,
--  
Gregor Herburger <gregor.herburger@linutronix.de>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping
  2026-08-10 11:46 [PATCH v4 0/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
@ 2026-08-10 11:46 ` Gregor Herburger
  2026-08-10 16:03   ` Stefan Wahren
  2026-08-11  7:57   ` Krzysztof Kozlowski
  2026-08-10 11:46 ` [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
  1 sibling, 2 replies; 7+ messages in thread
From: Gregor Herburger @ 2026-08-10 11:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Eric Anholt, Stefan Wahren, Dave Stevenson
  Cc: devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Gregor Herburger

The bcm2712 SoC, found on the Raspberry Pi 5, is available in a d
Stepping and in a c Stepping. The two steppings are not compatible.

Introduce a new SoC compatible string together with a new board
compatible string.

Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
---
 Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml b/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml
index 2729a542c4f35..7ad6583f7fae0 100644
--- a/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml
+++ b/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml
@@ -29,6 +29,12 @@ properties:
               - raspberrypi,5-model-b
           - const: brcm,bcm2712
 
+      - description: BCM2712-d0 stepping based Boards
+        items:
+          - enum:
+              - raspberrypi,5-model-b-d0
+          - const: brcm,bcm2712-d0
+
       - description: BCM2835 based Boards
         items:
           - enum:

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible
  2026-08-10 11:46 [PATCH v4 0/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
  2026-08-10 11:46 ` [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping Gregor Herburger
@ 2026-08-10 11:46 ` Gregor Herburger
  2026-08-10 16:04   ` Stefan Wahren
  2026-08-11  7:58   ` Krzysztof Kozlowski
  1 sibling, 2 replies; 7+ messages in thread
From: Gregor Herburger @ 2026-08-10 11:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Eric Anholt, Stefan Wahren, Dave Stevenson
  Cc: devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Gregor Herburger

The bcm2712 found on the Raspberry Pi 5 is available in the d Stepping
and in a c Stepping. There are two separate dts files. The
bcm2712-rpi-5-b.dts for the c Stepping and the bcm2712-d-rpi-5-b.dts for
the d Stepping. The d stepping does not set its own compatible/model
string but uses "raspberrypi,5-model-b" through its include.

These two steppings are not compatible. Booting with the wrong dtb file
causes a crash at boot.

Add a compatibles string "raspberrypi,5-model-b-d0" together with a
"bcm2712-d0" string to allow us to distinguish between those two
steppings.

Fixes: 44839e2ac8ec ("arm64: dts: broadcom: Add DT for D-step version of BCM2712")
Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
---
 arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts b/arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts
index 127be0fc27c22..ae4b7c587dbc5 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts
@@ -3,6 +3,11 @@
 
 #include "bcm2712-rpi-5-b.dts"
 
+/ {
+	compatible = "raspberrypi,5-model-b-d0", "brcm,bcm2712-d0";
+	model = "Raspberry Pi 5 d0 Stepping";
+};
+
 &gio_aon {
 	brcm,gpio-bank-widths = <15 6>;
 

-- 
2.47.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping
  2026-08-10 11:46 ` [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping Gregor Herburger
@ 2026-08-10 16:03   ` Stefan Wahren
  2026-08-11  7:57   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Wahren @ 2026-08-10 16:03 UTC (permalink / raw)
  To: Gregor Herburger, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Eric Anholt, Dave Stevenson
  Cc: devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel

Am 10.08.26 um 13:46 schrieb Gregor Herburger:
> The bcm2712 SoC, found on the Raspberry Pi 5, is available in a d
> Stepping and in a c Stepping. The two steppings are not compatible.
>
> Introduce a new SoC compatible string together with a new board
> compatible string.
>
> Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
> ---
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible
  2026-08-10 11:46 ` [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
@ 2026-08-10 16:04   ` Stefan Wahren
  2026-08-11  7:58   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Wahren @ 2026-08-10 16:04 UTC (permalink / raw)
  To: Gregor Herburger, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Eric Anholt, Dave Stevenson
  Cc: devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel

Am 10.08.26 um 13:46 schrieb Gregor Herburger:
> The bcm2712 found on the Raspberry Pi 5 is available in the d Stepping
> and in a c Stepping. There are two separate dts files. The
> bcm2712-rpi-5-b.dts for the c Stepping and the bcm2712-d-rpi-5-b.dts for
> the d Stepping. The d stepping does not set its own compatible/model
> string but uses "raspberrypi,5-model-b" through its include.
>
> These two steppings are not compatible. Booting with the wrong dtb file
> causes a crash at boot.
>
> Add a compatibles string "raspberrypi,5-model-b-d0" together with a
> "bcm2712-d0" string to allow us to distinguish between those two
> steppings.
>
> Fixes: 44839e2ac8ec ("arm64: dts: broadcom: Add DT for D-step version of BCM2712")
> Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
> ---
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping
  2026-08-10 11:46 ` [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping Gregor Herburger
  2026-08-10 16:03   ` Stefan Wahren
@ 2026-08-11  7:57   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2026-08-11  7:57 UTC (permalink / raw)
  To: Gregor Herburger
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Eric Anholt, Stefan Wahren, Dave Stevenson, devicetree,
	linux-rpi-kernel, linux-arm-kernel, linux-kernel

On Mon, Aug 10, 2026 at 01:46:33PM +0200, Gregor Herburger wrote:
> The bcm2712 SoC, found on the Raspberry Pi 5, is available in a d
> Stepping and in a c Stepping. The two steppings are not compatible.
> 
> Introduce a new SoC compatible string together with a new board
> compatible string.
> 
> Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
> ---
>  Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml | 6 ++++++
>  1 file changed, 6 insertions(+)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible
  2026-08-10 11:46 ` [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
  2026-08-10 16:04   ` Stefan Wahren
@ 2026-08-11  7:58   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2026-08-11  7:58 UTC (permalink / raw)
  To: Gregor Herburger
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Eric Anholt, Stefan Wahren, Dave Stevenson, devicetree,
	linux-rpi-kernel, linux-arm-kernel, linux-kernel

On Mon, Aug 10, 2026 at 01:46:34PM +0200, Gregor Herburger wrote:
> The bcm2712 found on the Raspberry Pi 5 is available in the d Stepping
> and in a c Stepping. There are two separate dts files. The
> bcm2712-rpi-5-b.dts for the c Stepping and the bcm2712-d-rpi-5-b.dts for
> the d Stepping. The d stepping does not set its own compatible/model
> string but uses "raspberrypi,5-model-b" through its include.
> 
> These two steppings are not compatible. Booting with the wrong dtb file
> causes a crash at boot.
> 
> Add a compatibles string "raspberrypi,5-model-b-d0" together with a
> "bcm2712-d0" string to allow us to distinguish between those two
> steppings.
> 
> Fixes: 44839e2ac8ec ("arm64: dts: broadcom: Add DT for D-step version of BCM2712")
> Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
> ---
>  arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts | 5 +++++
>  1 file changed, 5 insertions(+)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-08-11  7:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-10 11:46 [PATCH v4 0/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
2026-08-10 11:46 ` [PATCH v4 1/2] dt-bindings: arm: bcm2835: Add 2712-d0 Stepping Gregor Herburger
2026-08-10 16:03   ` Stefan Wahren
2026-08-11  7:57   ` Krzysztof Kozlowski
2026-08-10 11:46 ` [PATCH v4 2/2] arm64: dts: broadcom: bcm2712-d-rpi-5-b: add compatible Gregor Herburger
2026-08-10 16:04   ` Stefan Wahren
2026-08-11  7:58   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox