On 21/12/2023 14:42, Stefan Agner wrote:
Hi Ivan,
On 2023-12-18 22:03, Ivan T. Ivanov wrote:
Hi,
These patches are adding basic support for RPi5.
They are based on v2 series from Dmitry Malkin[1].
With them I am able to _start_ current openSUSE
Tumbleweed without modification. They are still
a lot of things to be added to the upstream Linux
before it runs flawlessly on this device, but at
least in U-Booot SD controller used for uSD card
and Frameboffer and HDMI0 devices are working fine
now. It seems that PCIe controller is working fine
too, but I have not tested it too much.
Thank you very much for this work!
Serial console and reset are also functional.
I've applied the patchset to v2024.01-rc5 and built the
rpi_arm64_defconfig target. I added enable_uart=1 and kernel=u-boot.bin
to config.txt. While I see a brief U-Boot logo on HDMI, I haven't gotten
anything on the serial console on pin 8/10 of the Raspberry Pi pin
header. Is there anything specific needed to get the console going?
Welcome to the club! :)
The RPi5 uses a rather non-standard port for debug console:
https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#uart-connector
Up to now I wasn't able to get serial console on the normal pins 8/10.
Regards
Matthias
--
Stefan
Hopefully this will help others add missing pieces
more easily.
Happy hacking!
Regards,
Ivan
[1]
https://lore.kernel.org/all/CAKRNjQ0dsWozGo4n8g58m4cCEk3n=qx1r+l24wbgpo-ip1y...@mail.gmail.com/
Dmitry Malkin (2):
rpi5: add initial memory map for bcm2712
rpi5: Use devicetree as alternative way to read IO base addresses
Ivan T. Ivanov (5):
rpi5: Use devicetree to retrieve board revision
bcm2835: brcm,bcm2708-fb device is using r5g6b5 format
mmc: bcmstb: Add support for bcm2712 SD controller
configs: rpi_arm64: enable SDHCI BCMSTB driver
pci: pcie-brcmstb: Add bcm2712 PCIe controller support
arch/arm/mach-bcm283x/include/mach/base.h | 5 +-
arch/arm/mach-bcm283x/include/mach/mbox.h | 3 +-
arch/arm/mach-bcm283x/include/mach/sdhci.h | 3 +-
arch/arm/mach-bcm283x/include/mach/timer.h | 3 +-
arch/arm/mach-bcm283x/include/mach/wdog.h | 3 +-
arch/arm/mach-bcm283x/init.c | 81 ++++++++--
board/raspberrypi/rpi/rpi.c | 22 ++-
configs/rpi_arm64_defconfig | 1 +
drivers/mmc/bcmstb_sdhci.c | 173 ++++++++++++++++++++-
drivers/pci/pcie_brcmstb.c | 23 ++-
drivers/video/bcm2835.c | 10 +-
11 files changed, 296 insertions(+), 31 deletions(-)