public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Ivan T. Ivanov" <iivanov@suse.de>
To: Matthias Brugger <mbrugger@suse.com>,
	Peter Robinson <pbrobinson@gmail.com>
Cc: Dmitry Malkin <dmitry@bedrocksystems.com>,
	Thomas Fitzsimmons <fitzsim@fitzsim.org>,
	Peng Fan <peng.fan@nxp.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Anatolij Gustschin <agust@denx.de>,
	wahrenst@gmx.net, florian.fainelli@broadcom.com,
	u-boot@lists.denx.de, "Ivan T. Ivanov" <iivanov@suse.de>
Subject: [PATCH v4 0/6] rpi5: initial support
Date: Wed, 10 Jan 2024 14:29:02 +0200	[thread overview]
Message-ID: <20240110122908.31612-1-iivanov@suse.de> (raw)

Hi,

These patches are slight update for patches posted earlier here[1].
They are adding basic support for RPi5 and are based on v2 series
from Dmitry Malkin[2].

What changed:

* Initial memory map now includes whole first 1GB of DRAM. At runtime,
  the firmware will adjust this size depending on whether an HDMI cable
  is plugged in or not. If there is HDMI monitor connected it will reserve
  framebufer memory region and will add simple-framebuffer device into
  devicetree.

* Dynamically calculate bits per pixel in video driver. This works
  on all prevous RPi's models that I have.

* I am dropping PCIe patch for now. I made some progress on porting changes
  from vendor Linux tree to U-Boot. Unfortunatly testing it is little bit
  tricky. They are many devices behind PCIe, but more or less all of them
  requires missing either "reset-controller" or "clock-controller" or
  "pin-controller" drivers. I was able to probe "cdns,macb" device, but
  access to ethernet PHY over MDIO bus is stucking. Then I ported
  "raspberrypi,rp1-adc" driver from vendor Linux tree, but it requires
  missing clock. And on top of that machine that I used for developing this
  crashed and I lost my PCIe changes :-|. Anyway.

These patches allows me to boot current openSUSE Tumbleweed without
modification. I can see serial console log and boot process on HDMI
connected monitor.

I think these patches should be enough for start. Please consider for
inclusion.

Thanks,
Ivan

[1] https://lore.kernel.org/all/20231218210341.30073-1-iivanov@suse.de/
[2] https://lore.kernel.org/all/CAKRNjQ0dsWozGo4n8g58m4cCEk3n=qx1R+L24WBgpo-iP1yo7A@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 (4):
  rpi5: Use devicetree to retrieve board revision
  bcm2835: Dynamically calculate bytes per pixel parameter
  mmc: bcmstb: Add support for bcm2712 SD controller
  configs: rpi_arm64: enable SDHCI BCMSTB driver

 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               |  74 ++++++++-
 board/raspberrypi/rpi/rpi.c                |  22 ++-
 configs/rpi_arm64_defconfig                |   1 +
 drivers/mmc/bcmstb_sdhci.c                 | 173 ++++++++++++++++++++-
 drivers/video/bcm2835.c                    |  18 ++-
 10 files changed, 282 insertions(+), 23 deletions(-)

-- 
2.35.3


             reply	other threads:[~2024-01-10 12:29 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10 12:29 Ivan T. Ivanov [this message]
2024-01-10 12:29 ` [PATCH v4 1/6] rpi5: add initial memory map for bcm2712 Ivan T. Ivanov
2024-01-10 17:57   ` Florian Fainelli
2024-01-10 12:29 ` [PATCH v4 2/6] rpi5: Use devicetree as alternative way to read IO base addresses Ivan T. Ivanov
2024-01-10 18:00   ` Florian Fainelli
2024-01-16  9:11     ` Ivan T. Ivanov
2024-01-10 12:29 ` [PATCH v4 3/6] rpi5: Use devicetree to retrieve board revision Ivan T. Ivanov
2024-01-10 12:29 ` [PATCH v4 4/6] bcm2835: Dynamically calculate bytes per pixel parameter Ivan T. Ivanov
2024-01-10 15:12   ` Matthias Brugger
2024-01-10 12:29 ` [PATCH v4 5/6] mmc: bcmstb: Add support for bcm2712 SD controller Ivan T. Ivanov
2024-01-11 22:07   ` Stefan Wahren
2024-01-12  7:44     ` Ivan T. Ivanov
2024-01-16  9:14       ` Ivan T. Ivanov
2024-01-10 12:29 ` [PATCH v4 6/6] configs: rpi_arm64: enable SDHCI BCMSTB driver Ivan T. Ivanov
2024-01-22 13:46 ` [PATCH v4 0/6] rpi5: initial support Matthias Brugger
2024-09-19  9:36 ` Stefan Agner
2024-09-19  9:52   ` Ivan T. Ivanov
2024-09-19 14:01     ` Stefan Agner
2024-09-19 14:22       ` Ivan T. Ivanov
  -- strict thread matches above, loose matches on Subject: below --
2024-01-12 13:10 Jens Maus
2024-01-17 15:07 ` Ivan T. Ivanov
2024-01-17 15:13   ` Jens Maus
2024-01-17 15:23     ` Ivan T. Ivanov
2024-01-17 15:30       ` Jens Maus
2024-01-17 16:45         ` Ivan T. Ivanov
2024-01-17 23:06           ` Jens Maus
2024-01-18  8:33             ` Ivan T. Ivanov
2024-01-18 17:18               ` Jens Maus
2024-01-19  5:29                 ` Ivan T. Ivanov
2024-01-19  7:21                   ` Jens Maus
2024-01-19  9:20                     ` Stefan Wahren
2024-01-19 10:49                       ` Jens Maus
     [not found]                         ` <sjmi6dftbgx56isfyjtaryehzq2iollwxm2etlspiygehh3n6v@k4ws56nsbgfn>
     [not found]                           ` <6C9E5E0C-9C27-45A4-886F-8B8C641EF7A3@jens-maus.de>
2024-01-19 13:46                             ` Ivan T. Ivanov
2024-01-19 13:54                               ` Jens Maus
2024-01-19 14:06                                 ` Ivan T. Ivanov
2024-01-19 14:08                                   ` Jens Maus
2024-01-19 14:24                                     ` Ivan T. Ivanov
2024-01-19 16:12                                       ` Jens Maus
2024-01-19 16:29                                         ` Ivan T. Ivanov
2024-01-19 16:53                                           ` Jens Maus
2024-01-19 21:26                                             ` Jens Maus
2024-01-20  9:22                                               ` Stefan Wahren
2024-01-20  9:48                                                 ` Jens Maus
2024-01-20 10:50                                                   ` Stefan Wahren
2024-01-22 11:57                                                     ` Ivan T. Ivanov
2024-01-22 14:16                                                       ` Ivan T. Ivanov
2024-01-22 14:30                                                         ` Mark Kettenis
2024-01-22 18:01                                                           ` Tom Rini
2024-01-23 11:11                                                         ` Jens Maus
2024-01-23 12:09                                                           ` Stefan Wahren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240110122908.31612-1-iivanov@suse.de \
    --to=iivanov@suse.de \
    --cc=agust@denx.de \
    --cc=dmitry@bedrocksystems.com \
    --cc=fitzsim@fitzsim.org \
    --cc=florian.fainelli@broadcom.com \
    --cc=jh80.chung@samsung.com \
    --cc=mbrugger@suse.com \
    --cc=pbrobinson@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    --cc=wahrenst@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox