rpi: Set FDT for RPi CM4 to the IO Board one
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
@@ -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
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.
Signed-off-by Ariel D'Alessandro <[email protected]>--- board/raspberrypi/rpi/rpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)board/raspberrypi/rpi/rpi.c +0
-0
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
-0true, }, };
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.
Signed-off-by Ariel D'Alessandro <[email protected]>---
board/raspberrypi/rpi/rpi.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)board/raspberrypi/rpi/rpi.c +0
-0@@ -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