Re: [PATCH v2 0/3] rpi5: initial support

2023-12-01 Thread Dmitry Malkin
Hi Peter, > I've given these a cursory look over, I have a system to test and will > give them a whirl in the next few days, I was planning to start > playing over the weekend so you've provided a great start :) Did you have any chance to test my patches? > > Hi guys, > > First of all, thank

Re: [PATCH v2 0/3] rpi5: initial support

2023-11-23 Thread Dmitry Malkin
Hi guys, First of all, thank you for all your reviews. I hope I can answer all your questions here. If I forget something please let me know. I don't have much experience with arm/arm64 and I don't have previous experience with u-boot and contributing to it. So please guide me for next steps.

[PATCH v2 3/3] rpi5: initial support

2023-11-21 Thread Dmitry Malkin
rpi5: get_board is no longer works. Print model name from FW FDT rpi5 deprecated some calls/tags for MBOX. Better to use FW FDT. However it does not give all information. Signed-off-by: Dmitry Malkin --- v2: new patch --- board/raspberrypi/rpi/rpi.c | 6 ++ 1 file changed, 6

[PATCH v2 2/3] rpi5: initial support

2023-11-21 Thread Dmitry Malkin
rpi5: add alternative way to get MBOX address via FDT node MBOX on RPI5/bcm2712 has a different offset. Find it via "brcm,bcm2835-mbox" node. Signed-off-by: Dmitry Malkin --- v2: new patch --- arch/arm/mach-bcm283x/include/mach/base.h | 1 + arch/arm/mach-bcm283x/include/m

[PATCH v2 1/3] rpi5: initial support

2023-11-21 Thread Dmitry Malkin
rpi5: add initial memory map for bcm2712 includes: * 1GB of RAM (from 4GB or 8GB total) * VPU memory interface * SOC range (main peripherals) Signed-off-by: Dmitry Malkin --- v2: new patch --- arch/arm/mach-bcm283x/init.c | 28 1 file changed, 28 insertions

[PATCH v2 0/3] rpi5: initial support

2023-11-21 Thread Dmitry Malkin
onse status is 0x8000_0001). Looks like a number of tags doesn't work anymore (board/serial/MAC) but could be fetched from FW FDT. v2: explicitly set .data section for rpi_bcm283x_mbox_addr due to relocation issue update memory map with VPU range add a patch to get human readable model from

[RFC PATCH 2/2] rpi5: initial support

2023-11-18 Thread Dmitry Malkin
rpi5: add initial memory map for bcm2712 --- arch/arm/mach-bcm283x/init.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c index d76c8e5eb2..3424b116d5 100644 --- a/arch/arm/mach-bcm283x/init.c +++

[RFC PATCH 1/2] rpi5: initial support

2023-11-18 Thread Dmitry Malkin
rpi5: add alternative way to get MBOX address via FDT node MBOX on RPI5/bcm2712 has a different offset. Find it via the "brcm,bcm2835-mbox" node. --- arch/arm/mach-bcm283x/include/mach/base.h | 1 + arch/arm/mach-bcm283x/include/mach/mbox.h | 4 ++-- arch/arm/mach-bcm283x/init.c | 8

[RFC PATCH 0/2] rpi5: initial support

2023-11-18 Thread Dmitry Malkin
02) doesn't work (the response status is 0x8000_0001). Dmitry Malkin (2): rpi5: add alternative way to get MBOX address via FDT node rpi5: add initial memory map for bcm2712 arch/arm/mach-bcm283x/include/mach/base.h | 1 + arch/arm/mach-bcm283x/include/mach/mbox.h | 4 ++-- arch/arm/mac