Skip to contentSkip to conversation

rpi: Add identifiers for the new RPi 5 series

PATCH In review Peter Robinson 3 participants 3 messages Dec 29, 2024 – Jan 4, 2025 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpi: Add identifiers for the new RPi 5 series

The Raspberry Pi foundation have released the Raspberry Pi 500, CM5 an CM5 lite devices so add the assoicated revision identifers so we can detect them.

---
 board/raspberrypi/rpi/rpi.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
board/raspberrypi/rpi/rpi.c +15 -0
index 18be244aa79..1e43c631898 100644
@@ -193,6 +193,21 @@ static const struct rpi_model rpi_models_new_scheme[] = {
 		DTB_DIR "bcm2712-rpi-5-b.dtb",
 		true,
 	},
+	[0x18] = {
+		"Compute Module 5",
+		DTB_DIR "bcm2712-rpi-cm5-cm5io.dtb",
+		true,
+	},
+	[0x19] = {
+		"500",
+		DTB_DIR "bcm2712-rpi-500.dtb",
+		true,
+	},
+	[0x1A] = {
+		"Compute Module 5 Lite",
+		DTB_DIR "bcm2712-rpi-cm5l-cm5io.dtb",
+		true,
+	},
 };
 
 static const struct rpi_model rpi_models_old_scheme[] = {
Signature · 1 line
2.47.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Peter Robinson

The Raspberry Pi foundation have released the Raspberry Pi 500, CM5 an CM5 lite devices so add the assoicated revision identifers so we can detect them.

Quoted 30 lines
---
  board/raspberrypi/rpi/rpi.c | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
board/raspberrypi/rpi/rpi.c +15 -0
index 18be244aa79..1e43c631898 100644
@@ -193,6 +193,21 @@ static const struct rpi_model rpi_models_new_scheme[] = {
  		DTB_DIR "bcm2712-rpi-5-b.dtb",
  		true,
  	},
+	[0x18] = {
+		"Compute Module 5",
+		DTB_DIR "bcm2712-rpi-cm5-cm5io.dtb",
+		true,
+	},
+	[0x19] = {
+		"500",
+		DTB_DIR "bcm2712-rpi-500.dtb",
+		true,
+	},
+	[0x1A] = {
+		"Compute Module 5 Lite",
+		DTB_DIR "bcm2712-rpi-cm5l-cm5io.dtb",
+		true,
+	},
  };
 
  static const struct rpi_model rpi_models_old_scheme[] = {
#2 lore raw
In reply to Peter Robinson

Hi Peter,

Quoted 10 lines · Peter Robinson

The Raspberry Pi foundation have released the Raspberry Pi 500, CM5 an CM5 lite devices so add the assoicated revision identifers so we can detect them.

---
 board/raspberrypi/rpi/rpi.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Would it be possible to get the information below from the devicetree on the FAT partition? This is passed to U-Boot at runtime.

Since we already have the DT internally, do we need fdtfile? There are mechanisms for using U-Boot's devicetree when booting.

Quoted 27 lines
board/raspberrypi/rpi/rpi.c +15 -1
index 18be244aa79..1e43c631898 100644
@@ -193,6 +193,21 @@ static const struct rpi_model rpi_models_new_scheme[] = {
                DTB_DIR "bcm2712-rpi-5-b.dtb",
                true,
        },
+       [0x18] = {
+               "Compute Module 5",
+               DTB_DIR "bcm2712-rpi-cm5-cm5io.dtb",
+               true,
+       },
+       [0x19] = {
+               "500",
+               DTB_DIR "bcm2712-rpi-500.dtb",
+               true,
+       },
+       [0x1A] = {
+               "Compute Module 5 Lite",
+               DTB_DIR "bcm2712-rpi-cm5l-cm5io.dtb",
+               true,
+       },
 };
 
 static const struct rpi_model rpi_models_old_scheme[] = {
--
Quoted 2 lines

2.47.1

Regards,
Simon