Skip to contentSkip to conversation

Support for a generic platform for all Exynos mobile devices

PATCH In review Kaustabh Chakraborty 2 participants 5 messages Oct 24, 2025 – Dec 2, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover Support for a generic platform for all Exynos mobile devices

This patch series aims to add support for a generic platform which intends to support multiple boards powerid by Samsung Exynos SoCs. This series also includes initial support for three boards:
* Samsung Galaxy A2 Core
* Samsung Galaxy J6
* Samsung Galaxy J7 Prime

This patch has the following dependencies:
(NOTE: x indicates applied)

armv8-broken-cntfrq - https://patch.msgid.link/[email protected]
clk-exynos7870 - https://patch.msgid.link/[email protected]
gpio-s5p-bank-fix - https://patch.msgid.link/[email protected]
i2c-hs-exynos7 - https://patch.msgid.link/[email protected]
mmc-dw-exynos7870 - https://patch.msgid.link/[email protected]
phy-usb-exynos7870 - https://patch.msgid.link/[email protected]
pinctrl-exynos7870 - https://patch.msgid.link/[email protected]
power-pmic-regulator-s2mpu05 - https://patch.msgid.link/20251017-power-pmic-regulator-s2mpu05-v1-0-91cadc0f4156@disroot.org
serial-s5p-exynos8895 - https://patch.msgid.link/[email protected]
soc-pmu-exynos7 - https://patch.msgid.link/[email protected]
usb-dwc3-exynos7870 - https://patch.msgid.link/[email protected]

---
Changes in v2:
- Split patch in multiple parts (Henrik Grimler)
- Fix typos in docs and other small changes (Henrik Grimler)
- Split device-specific docs in a separate file
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Kaustabh Chakraborty (3):
board: samsung: add support for Samsung Exynos mobile device boards
board: samsung: exynos-mobile: add exynos7870 support and three devices
doc: samsung: exynos-mobile: add documentation for exynos7870

 arch/arm/mach-exynos/Kconfig                       |  11 +-
 board/samsung/exynos-mobile/Kconfig                |  18 +
 board/samsung/exynos-mobile/MAINTAINERS            |   6 +
 board/samsung/exynos-mobile/Makefile               |   5 +
 .../samsung/exynos-mobile/debug-exynos7870.config  |   7 +
 board/samsung/exynos-mobile/exynos-mobile.c        | 403 +++++++++++++++++++++
 board/samsung/exynos-mobile/exynos-mobile.env      |  18 +
 configs/exynos-mobile_defconfig                    |  72 ++++
 doc/board/samsung/exynos-mobile.rst                |  45 +++
 doc/board/samsung/exynos-mobile/exynos7870.rst     |  85 +++++
 doc/board/samsung/index.rst                        |   1 +
 include/configs/exynos-mobile.h                    |  14 +
 12 files changed, 684 insertions(+), 1 deletion(-)

---
base-commit: 582a04763aa80738c1c8ac60c47d1a5159a42833
change-id: 20251017-board-exynos-mobile-7c7d43832693

Best regards,

Signature · 1 line
Kaustabh Chakraborty <[email protected]>
#1 lore raw

PATCH v2 1/3 board: samsung: add support for Samsung Exynos mobile device boards

Add support for a generic platform which intends to support multiple boards powered by ARMv8 Samsung Exynos SoCs. Some important features include:
* Fastboot: This is present to provide an open alternative to Samsung's proprietary Odin protocol. The board file configures certain features for fastboot, such as a dynamically allocated fastboot buffer, and standardized (lowercase) partition aliases.
* EFI: Kernel image can be loaded from an EFI partition. This adopts a standard booting process, which multiple OS distributions can rely on.

---
 arch/arm/mach-exynos/Kconfig                  |  11 +-
 board/samsung/exynos-mobile/Kconfig           |  18 ++
 board/samsung/exynos-mobile/MAINTAINERS       |   6 +
 board/samsung/exynos-mobile/Makefile          |   5 +
 board/samsung/exynos-mobile/exynos-mobile.c   | 287 ++++++++++++++++++++++++++
 board/samsung/exynos-mobile/exynos-mobile.env |  18 ++
 configs/exynos-mobile_defconfig               |  68 ++++++
 doc/board/samsung/exynos-mobile.rst           |  40 ++++
 doc/board/samsung/index.rst                   |   1 +
 include/configs/exynos-mobile.h               |  14 ++
 10 files changed, 467 insertions(+), 1 deletion(-)
arch/arm/mach-exynos/Kconfig +10 -1
index 2cd67d023867de29bf85fe6d68b3485dbb67853c..b084b7284aa08eafbc740e47fbc8385f8eb2d7db 100644
@@ -2,7 +2,7 @@ if ARCH_EXYNOS
 
 config BOARD_COMMON
 	def_bool y
-	depends on !TARGET_SMDKV310 && !TARGET_ARNDALE && !TARGET_E850_96
+	depends on !TARGET_SMDKV310 && !TARGET_ARNDALE && !TARGET_EXYNOS_MOBILE && !TARGET_E850_96
 
 config SPI_BOOTING
 	bool
@@ -252,6 +252,14 @@ config TARGET_E850_96
 endchoice
 endif
 
+config TARGET_EXYNOS_MOBILE
+	bool "Samsung Exynos Generic Boards (for mobile devices)"
+	select ARM64
+	select BOARD_EARLY_INIT_F
+	select CLK_EXYNOS
+	select LINUX_KERNEL_IMAGE_HEADER
+	select OF_CONTROL
+
 config SYS_SOC
 	default "exynos"
 
@@ -277,5 +285,6 @@ source "board/samsung/smdk5420/Kconfig"
 source "board/samsung/espresso7420/Kconfig"
 source "board/samsung/axy17lte/Kconfig"
 source "board/samsung/e850-96/Kconfig"
+source "board/samsung/exynos-mobile/Kconfig"
 
 endif
board/samsung/exynos-mobile/Kconfig new file +18 -0
new file mode 100644
index 0000000000000000000000000000000000000000..ed7d16b8c6b718e1a0c2bcb24113b62135ec397c
@@ -0,0 +1,18 @@
+if TARGET_EXYNOS_MOBILE
+
+config ENV_SOURCE_FILE
+	default "exynos-mobile"
+
+config LNX_KRNL_IMG_TEXT_OFFSET_BASE
+	default TEXT_BASE
+
+config SYS_BOARD
+	default "exynos-mobile"
+
+config SYS_CONFIG_NAME
+	default "exynos-mobile"
+
+config SYS_VENDOR
+	default "samsung"
+
+endif # TARGET_EXYNOS_MOBILE
board/samsung/exynos-mobile/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000000000000000000000000000000000..11fea212fb15bb5714ad1de46aace231f0600b69
@@ -0,0 +1,6 @@
+Exynos Generic Boards (for mobile devices)
+M:	Kaustabh Chakraborty <[email protected]>
+S:	Maintained
+F:	board/samsung/exynos-mobile/
+F:	configs/exynos-mobile_defconfig
+F:	include/configs/exynos-mobile.h
board/samsung/exynos-mobile/Makefile new file +5 -0
new file mode 100644
index 0000000000000000000000000000000000000000..e049ed217c18c7e2c173249608a8abc433299687
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Copyright (C) 2025 Kaustabh Chakraborty <[email protected]>
+
+obj-y := exynos-mobile.o
board/samsung/exynos-mobile/exynos-mobile.c new file +287 -0

287 lines not on this page · raw message

board/samsung/exynos-mobile/exynos-mobile.env new file +18 -0
new file mode 100644
index 0000000000000000000000000000000000000000..aa2e89afbacadcc86d0f1f5539f06bdb28bdc3b3
@@ -0,0 +1,18 @@
+stdin=serial,button-kbd
+stdout=serial,vidconsole
+stderr=serial,vidconsole
+
+bootdelay=0
+bootcmd=bootefi bootmgr; pause; bootmenu
+
+fastbootcmd=echo "Fastboot Mode";
+	fastboot -l $fastboot_addr_r usb 0
+
+bootmenu_0=Continue Boot=boot
+bootmenu_1=Enter Fastboot Mode=run fastbootcmd
+bootmenu_2=UEFI Maintenance Menu=eficonfig
+bootmenu_3=Reboot=reset
+bootmenu_4=Power Off=poweroff
+
+button_cmd_0_name=Volume Down Key
+button_cmd_0=bootmenu
configs/exynos-mobile_defconfig new file +68 -0

68 lines not on this page · raw message

doc/board/samsung/exynos-mobile.rst new file +40 -0
new file mode 100644
index 0000000000000000000000000000000000000000..d5c1c83a4e84ac0fc9401b02de0ec786c9397892
@@ -0,0 +1,40 @@
+.. SPDX-License-Identifier: GPL-2.0+
+.. sectionauthor:: Kaustabh Chakraborty <[email protected]>
+
+Samsung Exynos Generic ARMv8 Boards (for mobile devices)
+=======================================================
+
+Overview
+--------
+This document describes how to build and run U-Boot for Samsung Exynos generic
+boards. Boards are expected to boot with a primary bootloader, such as S-BOOT or
+S-LK, which hands off control to U-Boot. Presently, only ARMv8 devices are
+supported.
+
+The U-Boot image is built with all device tree blobs packed in a single FIT
+image. During boot, it uses simple heuristics to detect the target board, and
+subsequently the appropriate FDT is selected.
+
+Installation
+------------
+Building
+^^^^^^^^
+If a cross-compiler is required, install it and set it up like so:
+
+.. prompt:: bash $
+
+	export CROSS_COMPILE=aarch64-linux-gnu-
+
+Then, run the following commands to build U-Boot:
+
+.. prompt:: bash $
+
+	make O=.output exynos-mobile_defconfig
+	make O=.output -j$(nproc)
+
+If successful, the U-Boot binary will be present in ``.output/u-boot.bin``.
+
+Preparation and Flashing
+^^^^^^^^^^^^^^^^^^^^^^^^
+Since U-Boot supports multiple boards, and devices have different requirements,
+this step will vary depending on your target.
doc/board/samsung/index.rst +1 -0
index 1b92c9518a57df102c2b64ff934b460548ce3d53..1fbe88130c049e1a33d22ae9230fb60ddccea131 100644
@@ -8,4 +8,5 @@ Samsung
 
    axy17lte
    e850-96
+   exynos-mobile
    n1
include/configs/exynos-mobile.h new file +14 -0
new file mode 100644
index 0000000000000000000000000000000000000000..862db5779ef4c9ff7f53bef78d7cee5107b7226e
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Samsung Exynos Generic Board Configuration (for mobile devices)
+ *
+ * Copyright (C) 2025 Kaustabh Chakraborty <[email protected]>
+ */
+
+#ifndef __CONFIG_EXYNOS_MOBILE_H
+#define __CONFIG_EXYNOS_MOBILE_H
+
+#define CPU_RELEASE_ADDR	secondary_boot_addr
+#define CFG_SYS_BAUDRATE_TABLE	{9600, 115200}
+
+#endif /* __CONFIG_EXYNOS_MOBILE_H */
Signature · 1 line
2.51.0
#2 lore raw

PATCH v2 2/3 board: samsung: exynos-mobile: add exynos7870 support and three devices

In reply to Kaustabh Chakraborty

Add basic support for the Exynos7870 SoC, this includes device tree match logic using multiple boards, where devices use a stub dtb in Samsung's QCDT format. S-BOOT, the previous stage bootloader, places its cmdline arguments there, which has identifying information.

This is added with support for three devices:
* Samsung Galaxy A2 Core (codename: a2corelte)
* Samsung Galaxy J6 (codename: j6lte)
* Samsung Galaxy J7 Prime (codename: on7xelte)

Add their device trees in the defconfig, and also enable the clock and pin controller drivers.

---
 .../samsung/exynos-mobile/debug-exynos7870.config  |   7 ++
 board/samsung/exynos-mobile/exynos-mobile.c        | 116 +++++++++++++++++++++
 configs/exynos-mobile_defconfig                    |   4 +
 3 files changed, 127 insertions(+)
board/samsung/exynos-mobile/debug-exynos7870.config new file +7 -0
new file mode 100644
index 0000000000000000000000000000000000000000..1aa506a675d30b025651dd4575aee36de82b8d07
@@ -0,0 +1,7 @@
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0x13820000
+CONFIG_DEBUG_UART_CLOCK=133250000
+CONFIG_DEBUG_UART_S5P=y
+CONFIG_LOG=y
+CONFIG_LOG_CONSOLE=y
+CONFIG_LOG_MAX_LEVEL=8
board/samsung/exynos-mobile/exynos-mobile.c +116 -0

134 lines not on this page · raw message

configs/exynos-mobile_defconfig +4 -0
index 2dbf90010bac8182ea202a484252a5b527eb6ad9..81a2c4d337314da6d92e4681606e1a5dcbfad745 100644
@@ -7,6 +7,7 @@ CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x16000
 CONFIG_TARGET_EXYNOS_MOBILE=y
 CONFIG_NR_DRAM_BANKS=3
+CONFIG_DEFAULT_DEVICE_TREE="exynos/exynos7870-a2corelte"
 CONFIG_SYS_BOOTM_LEN=0x2000000
 CONFIG_SYS_LOAD_ADDR=0x80000000
 CONFIG_ARMV8_CNTFRQ_BROKEN=y
@@ -24,11 +25,13 @@ CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_EFI_PARTITION=y
 CONFIG_OF_UPSTREAM=y
+CONFIG_OF_LIST="exynos/exynos7870-a2corelte exynos/exynos7870-j6lte exynos/exynos7870-on7xelte"
 CONFIG_MULTI_DTB_FIT=y
 CONFIG_BUTTON=y
 CONFIG_BUTTON_REMAP_PHONE_KEYS=y
 CONFIG_CLK=y
 CONFIG_CLK_CCF=y
+CONFIG_CLK_EXYNOS7870=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0xdead0000
 CONFIG_FASTBOOT_FLASH=y
@@ -44,6 +47,7 @@ CONFIG_MMC_DW=y
 CONFIG_PHY=y
 CONFIG_PHY_EXYNOS_USBDRD=y
 CONFIG_PINCTRL=y
+CONFIG_PINCTRL_EXYNOS78x0=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_S2MPS11=y
 CONFIG_DM_REGULATOR=y
Signature · 1 line
2.51.0
#3 lore raw

PATCH v2 3/3 doc: samsung: exynos-mobile: add documentation for exynos7870

In reply to Kaustabh Chakraborty

Document the image preparation and flashing techniques for Exynos7870-based boards. This is done in a separate file in a sub-directory, which is linked back to the main documentation.

---
 doc/board/samsung/exynos-mobile.rst            |  5 ++
 doc/board/samsung/exynos-mobile/exynos7870.rst | 85 ++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)
doc/board/samsung/exynos-mobile.rst +5 -0
index d5c1c83a4e84ac0fc9401b02de0ec786c9397892..9634991c0a171da832c65e119d6fe3e3b8331840 100644
@@ -38,3 +38,8 @@ Preparation and Flashing
 ^^^^^^^^^^^^^^^^^^^^^^^^
 Since U-Boot supports multiple boards, and devices have different requirements,
 this step will vary depending on your target.
+
+.. toctree::
+	:maxdepth: 1
+
+	exynos-mobile/exynos7870
doc/board/samsung/exynos-mobile/exynos7870.rst new file +85 -0

85 lines not on this page · raw message

Signature · 1 line
2.51.0
#4 lore raw
In reply to Kaustabh Chakraborty

Hi,

Quoted 18 lines

Kaustabh Chakraborty (3):
board: samsung: add support for Samsung Exynos mobile device boards
board: samsung: exynos-mobile: add exynos7870 support and three devices
doc: samsung: exynos-mobile: add documentation for exynos7870

 arch/arm/mach-exynos/Kconfig                       |  11 +-
 board/samsung/exynos-mobile/Kconfig                |  18 +
 board/samsung/exynos-mobile/MAINTAINERS            |   6 +
 board/samsung/exynos-mobile/Makefile               |   5 +
 .../samsung/exynos-mobile/debug-exynos7870.config  |   7 +
 board/samsung/exynos-mobile/exynos-mobile.c        | 403 +++++++++++++++++++++
 board/samsung/exynos-mobile/exynos-mobile.env      |  18 +
 configs/exynos-mobile_defconfig                    |  72 ++++
 doc/board/samsung/exynos-mobile.rst                |  45 +++
 doc/board/samsung/exynos-mobile/exynos7870.rst     |  85 +++++
 doc/board/samsung/index.rst                        |   1 +
 include/configs/exynos-mobile.h                    |  14 +
 12 files changed, 684 insertions(+), 1 deletion(-)
Quoted 7 lines

---
base-commit: 582a04763aa80738c1c8ac60c47d1a5159a42833
change-id: 20251017-board-exynos-mobile-7c7d43832693

Best regards,
--
Kaustabh Chakraborty <[email protected]>

Applied to u-boot-samsung.

Thanks,
Minkyu Kang.