mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: [PATCH v2 0/3] ARM: boards: add support for Samsung Galaxy S8 and S20 5G
Date: Tue,  2 Sep 2025 17:00:03 +0300	[thread overview]
Message-ID: <20250902140006.1410408-1-ivo.ivanov.ivanov1@gmail.com> (raw)

Hey folks,

This patchset focuses on adding support for S8 and S20. It's designed to
allow adding support for new exynos devices easy, with the primary
differentiating factor being the device tree. Currently, the same built
barebox-exynos.img can be booted on both S20 and S8 without any changes
in the code, as it can dynamically recognize what device it's booting on
based on the tree provided at x0 from the previous bootloader (s-boot).

On these devices, barebox will be used as a shim after the stock bootloader
(s-boot), replacing the linux kernel image in the boot.img.

Please read the patch commit messages, I've tried to describe everything
well enough. Thanks!

Best regards,
Ivaylo

Changes in V2:
- drop the applied patch
- s/Since/If in 1/3
- add r-b tag on 1/3 from Ahmad
- add a simple defaultenv that autoboots a fit image from memory
- change is_compat to is_model
- rework the entry to deal with SP in assembly and jump us to C
- set up properly before touching fdts
- beautify postcore a bit
- enable deep probe on both platforms in DT

Ivaylo Ivanov (3):
  video: simplefb-client: switch to dev_get_resource
  ARM: boards: add support for Samsung Galaxy S8 (dreamlte)
  ARM: boards: add support for Samsung Galaxy S20 5G (x1s)

 arch/arm/Kconfig                              |  5 ++
 arch/arm/boards/Makefile                      |  1 +
 arch/arm/boards/samsung-exynos/Makefile       |  5 ++
 arch/arm/boards/samsung-exynos/board.c        | 69 +++++++++++++++
 .../defaultenv-exynos/boot/ramfit             | 16 ++++
 .../defaultenv-exynos/init/bootsource         |  3 +
 arch/arm/boards/samsung-exynos/entry.S        | 31 +++++++
 arch/arm/boards/samsung-exynos/lowlevel.c     | 83 +++++++++++++++++++
 arch/arm/dts/Makefile                         |  2 +
 arch/arm/dts/exynos8895-dreamlte.dts          | 13 +++
 arch/arm/dts/exynos990-x1s.dts                | 13 +++
 arch/arm/mach-samsung/Kconfig                 | 13 +++
 drivers/video/simplefb-client.c               |  5 +-
 images/Makefile                               |  1 +
 images/Makefile.exynos                        |  8 ++
 15 files changed, 265 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/boards/samsung-exynos/Makefile
 create mode 100644 arch/arm/boards/samsung-exynos/board.c
 create mode 100644 arch/arm/boards/samsung-exynos/defaultenv-exynos/boot/ramfit
 create mode 100644 arch/arm/boards/samsung-exynos/defaultenv-exynos/init/bootsource
 create mode 100644 arch/arm/boards/samsung-exynos/entry.S
 create mode 100644 arch/arm/boards/samsung-exynos/lowlevel.c
 create mode 100644 arch/arm/dts/exynos8895-dreamlte.dts
 create mode 100644 arch/arm/dts/exynos990-x1s.dts
 create mode 100644 arch/arm/mach-samsung/Kconfig
 create mode 100644 images/Makefile.exynos

-- 
2.43.0




             reply	other threads:[~2025-09-02 19:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02 14:00 Ivaylo Ivanov [this message]
2025-09-02 14:00 ` [PATCH v2 1/3] video: simplefb-client: switch to dev_get_resource Ivaylo Ivanov
2025-09-02 14:00 ` [PATCH v2 2/3] ARM: boards: add support for Samsung Galaxy S8 (dreamlte) Ivaylo Ivanov
2025-09-02 14:00 ` [PATCH v2 3/3] ARM: boards: add support for Samsung Galaxy S20 5G (x1s) Ivaylo Ivanov

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=20250902140006.1410408-1-ivo.ivanov.ivanov1@gmail.com \
    --to=ivo.ivanov.ivanov1@gmail.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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