Skip to contentSkip to conversation

rpi: Set FDT for RPi CM4 to the IO Board one

PATCH In review Ariel D'Alessandro 2 participants 3 messages Sep 16, 2022 – Sep 19, 2022 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpi: Set FDT for RPi CM4 to the IO Board one

For the RPi CM4 (Compute Module 4), we currently try to load the dtb file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel.

Instead, the only CM4 dtb file provided by linux upstream is the bcm2711-rpi-cm4-io.dtb, so let's use that.

---
 board/raspberrypi/rpi/rpi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/raspberrypi/rpi/rpi.c +2 -2
index 17b8108cc8..b88f80ce05 100644
@@ -168,8 +168,8 @@ static const struct rpi_model rpi_models_new_scheme[] = {
 		true,
 	},
 	[0x14] = {
-		"Compute Module 4",
-		DTB_DIR "bcm2711-rpi-cm4.dtb",
+		"Compute Module 4 IO Board",
+		DTB_DIR "bcm2711-rpi-cm4-io.dtb",
 		true,
 	},
 };
Signature · 1 line
2.37.2
#1 lore raw

Hi Ariel,

Quoted 16 lines · Ariel D'Alessandro

For the RPi CM4 (Compute Module 4), we currently try to load the dtb file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel.

Instead, the only CM4 dtb file provided by linux upstream is the bcm2711-rpi-cm4-io.dtb, so let's use that.

---
  board/raspberrypi/rpi/rpi.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
board/raspberrypi/rpi/rpi.c +0 -0
index 17b8108cc8..b88f80ce05 100644

board/raspberrypi/rpi/rpi.c static const struct rpi_model rpi_models_new_scheme[] = { · line 172

Quoted 7 lines
board/raspberrypi/rpi/rpi.c +2 -2
@@ -168,8 +168,8 @@ static const struct rpi_model rpi_models_new_scheme[] = {
  		true,
  	},
  	[0x14] = {
-		"Compute Module 4",
-		DTB_DIR "bcm2711-rpi-cm4.dtb",
+		"Compute Module 4 IO Board",
+		DTB_DIR "bcm2711-rpi-cm4-io.dtb",

We had that discussion in the past. It is supposed that most CM4s will be used with a custom board. I don't think it's a good idea to tie the ID of the module to a specific IO board.

Regards,
Matthias

Quoted 3 lines
board/raspberrypi/rpi/rpi.c +0 -0
  		true,
  	},
  };
#2 lore raw

Hi Matthias,

Quoted 23 lines · Matthias Brugger

Hi Ariel,

Quoted 20 lines · Ariel D'Alessandro

For the RPi CM4 (Compute Module 4), we currently try to load the dtb file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel.

Instead, the only CM4 dtb file provided by linux upstream is the bcm2711-rpi-cm4-io.dtb, so let's use that.

---
  board/raspberrypi/rpi/rpi.c | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
board/raspberrypi/rpi/rpi.c +0 -0
index 17b8108cc8..b88f80ce05 100644
@@ -168,8 +168,8 @@ static const struct rpi_model
 rpi_models_new_scheme[] = {
           true,
       },
       [0x14] = {
Quoted 8 lines

board/raspberrypi/rpi/rpi.c static const struct rpi_model rpi_models_new_scheme[] = { · line 172

Quoted 4 lines
board/raspberrypi/rpi/rpi.c +2 -2
-        "Compute Module 4",
-        DTB_DIR "bcm2711-rpi-cm4.dtb",
+        "Compute Module 4 IO Board",
+        DTB_DIR "bcm2711-rpi-cm4-io.dtb",

We had that discussion in the past. It is supposed that most CM4s will be used with a custom board. I don't think it's a good idea to tie the ID of the module to a specific IO board.

Ah, sorry I didn't notice that previous thread. Your point makes sense. I guess another question would be: to avoid this inconsistency, does it make sense to have a generic bcm2711-rpi-cm4.dtb built in the kernel?

Thanks!
Ariel