Skip to contentSkip to conversation

Add support for Kontron i.MX8MP and i.MX93 OSM hardware

PATCH In review Frieder Schrempf 2 participants 5 messages Nov 11, 2025 – Nov 29, 2025

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

v2 cover Add support for Kontron i.MX8MP and i.MX93 OSM hardware

From: Frieder Schrempf <[email protected]>

Changes for v2:
* drop DT fixup patch, and add workaround in patch 1/3

This adds support for Kontron hardware based on i.MX8MP and i.MX93 OSM (Open Standard Module) SoMs.

Frieder Schrempf (3):
imx: Add support for Kontron i.MX8MP OSM-S SoM and BL carrier board
arm: imx: imx9: Use arch override for env_get_location()
imx: Add support for Kontron i.MX93 OSM-S SoM and BL carrier board

 .../dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi   |  124 +
 .../dts/imx93-kontron-bl-osm-s-u-boot.dtsi    |  153 +
 arch/arm/mach-imx/imx8m/Kconfig               |   14 +
 arch/arm/mach-imx/imx9/Kconfig                |   11 +-
 arch/arm/mach-imx/imx9/soc.c                  |    2 +-
 board/kontron/osm-s-mx8mp/Kconfig             |   17 +
 board/kontron/osm-s-mx8mp/MAINTAINERS         |    7 +
 board/kontron/osm-s-mx8mp/Makefile            |    9 +
 board/kontron/osm-s-mx8mp/imximage.cfg        |    8 +
 board/kontron/osm-s-mx8mp/lpddr4_timing.c     | 2474 +++++++++++++++++
 board/kontron/osm-s-mx8mp/osm-s-mx8mp.c       |  175 ++
 board/kontron/osm-s-mx8mp/osm-s-mx8mp.env     |    6 +
 board/kontron/osm-s-mx8mp/spl.c               |  358 +++
 board/kontron/osm-s-mx93/Kconfig              |   17 +
 board/kontron/osm-s-mx93/MAINTAINERS          |    7 +
 board/kontron/osm-s-mx93/Makefile             |    9 +
 board/kontron/osm-s-mx93/lpddr4x_timing.c     | 1992 +++++++++++++
 board/kontron/osm-s-mx93/osm-s-mx93.c         |  168 ++
 board/kontron/osm-s-mx93/osm-s-mx93.env       |    6 +
 board/kontron/osm-s-mx93/spl.c                |  169 ++
 configs/kontron-osm-s-mx8mp.config            |  203 ++
 configs/kontron-osm-s-mx8mp_defconfig         |    3 +
 configs/kontron-osm-s-mx93.config             |  197 ++
 configs/kontron-osm-s-mx93_defconfig          |    3 +
 doc/board/kontron/index.rst                   |    2 +
 doc/board/kontron/osm-s-mx8mp.rst             |  104 +
 doc/board/kontron/osm-s-mx93.rst              |   95 +
 include/configs/kontron-osm-s-mx8mp.h         |   30 +
 include/configs/kontron-osm-s-mx93.h          |   30 +
 29 files changed, 6391 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx93-kontron-bl-osm-s-u-boot.dtsi
 create mode 100644 board/kontron/osm-s-mx8mp/Kconfig
 create mode 100644 board/kontron/osm-s-mx8mp/MAINTAINERS
 create mode 100644 board/kontron/osm-s-mx8mp/Makefile
 create mode 100644 board/kontron/osm-s-mx8mp/imximage.cfg
 create mode 100644 board/kontron/osm-s-mx8mp/lpddr4_timing.c
 create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.c
 create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.env
 create mode 100644 board/kontron/osm-s-mx8mp/spl.c
 create mode 100644 board/kontron/osm-s-mx93/Kconfig
 create mode 100644 board/kontron/osm-s-mx93/MAINTAINERS
 create mode 100644 board/kontron/osm-s-mx93/Makefile
 create mode 100644 board/kontron/osm-s-mx93/lpddr4x_timing.c
 create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.c
 create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.env
 create mode 100644 board/kontron/osm-s-mx93/spl.c
 create mode 100644 configs/kontron-osm-s-mx8mp.config
 create mode 100644 configs/kontron-osm-s-mx8mp_defconfig
 create mode 100644 configs/kontron-osm-s-mx93.config
 create mode 100644 configs/kontron-osm-s-mx93_defconfig
 create mode 100644 doc/board/kontron/osm-s-mx8mp.rst
 create mode 100644 doc/board/kontron/osm-s-mx93.rst
 create mode 100644 include/configs/kontron-osm-s-mx8mp.h
 create mode 100644 include/configs/kontron-osm-s-mx93.h
Signature · 1 line
2.51.0
#1 lore raw

PATCH v2 1/3 imx: Add support for Kontron i.MX8MP OSM-S SoM and BL carrier board

From: Frieder Schrempf <[email protected]>

This adds support for the Kontron Electronics OSM-S i.MX8MP SoM and the matching baseboard BL i.MX8MP.

The SoM hardware complies to the Open Standard Module (OSM) 1.1 specification, size S (https://sget.org/standards/osm).

---
Changes for v2:
* add workaround in imx8mp-kontron-bl-osm-s-u-boot.dtsi to fix USB until DT changes have been synced

---
 .../dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi   |  124 +
 arch/arm/mach-imx/imx8m/Kconfig               |   14 +
 board/kontron/osm-s-mx8mp/Kconfig             |   17 +
 board/kontron/osm-s-mx8mp/MAINTAINERS         |    7 +
 board/kontron/osm-s-mx8mp/Makefile            |    9 +
 board/kontron/osm-s-mx8mp/imximage.cfg        |    8 +
 board/kontron/osm-s-mx8mp/lpddr4_timing.c     | 2474 +++++++++++++++++
 board/kontron/osm-s-mx8mp/osm-s-mx8mp.c       |  175 ++
 board/kontron/osm-s-mx8mp/osm-s-mx8mp.env     |    6 +
 board/kontron/osm-s-mx8mp/spl.c               |  358 +++
 configs/kontron-osm-s-mx8mp.config            |  203 ++
 configs/kontron-osm-s-mx8mp_defconfig         |    3 +
 doc/board/kontron/index.rst                   |    1 +
 doc/board/kontron/osm-s-mx8mp.rst             |  104 +
 include/configs/kontron-osm-s-mx8mp.h         |   30 +
 15 files changed, 3533 insertions(+)
 create mode 100644 arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi
 create mode 100644 board/kontron/osm-s-mx8mp/Kconfig
 create mode 100644 board/kontron/osm-s-mx8mp/MAINTAINERS
 create mode 100644 board/kontron/osm-s-mx8mp/Makefile
 create mode 100644 board/kontron/osm-s-mx8mp/imximage.cfg
 create mode 100644 board/kontron/osm-s-mx8mp/lpddr4_timing.c
 create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.c
 create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.env
 create mode 100644 board/kontron/osm-s-mx8mp/spl.c
 create mode 100644 configs/kontron-osm-s-mx8mp.config
 create mode 100644 configs/kontron-osm-s-mx8mp_defconfig
 create mode 100644 doc/board/kontron/osm-s-mx8mp.rst
 create mode 100644 include/configs/kontron-osm-s-mx8mp.h
arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi new file +124 -0
new file mode 100644
index 00000000000..9c777e62d98
@@ -0,0 +1,124 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2022 Kontron Electronics GmbH
+ */
+
+#include "imx8mp-u-boot.dtsi"
+
+/ {
+	wdt-reboot {
+		compatible = "wdt-reboot";
+		wdt = <&wdog1>;
+		bootph-pre-ram;
+	};
+};
+
+&gpio1 {
+	bootph-pre-ram;
+};
+
+&gpio2 {
+	bootph-pre-ram;
+};
+
+&gpio3 {
+	bootph-pre-ram;
+};
+
+&gpio4 {
+	bootph-pre-ram;
+};
+
+&gpio5 {
+	bootph-pre-ram;
+};
+
+/* Enable I2C1 to probe for a touch controller on LVDS connector */
+&i2c1 {
+	status = "okay";
+};
+
+&i2c5 {
+	bootph-pre-ram;
+};
+
+&pinctrl_i2c5 {
+	bootph-pre-ram;
+};
+
+&pinctrl_i2c5_gpio {
+	bootph-pre-ram;
+};
+
+&pinctrl_pmic {
+	bootph-pre-ram;
+};
+
+&pinctrl_uart3 {
+	bootph-pre-ram;
+};
+
+&pinctrl_wdog {
+	bootph-pre-ram;
+};
+
+&pca9450 {
+	bootph-pre-ram;
+};
+
+&reg_vdd_soc {
+	bootph-pre-ram;
+};
+
+&reg_vdd_arm {
+	bootph-pre-ram;
+};
+
+&reg_vdd_3v3 {
+	bootph-pre-ram;
+};
+
+&reg_vdd_1v8 {
+	bootph-pre-ram;
+};
+
+&reg_nvcc_dram {
+	bootph-pre-ram;
+};
+
+&reg_nvcc_snvs {
+	bootph-pre-ram;
+};
+
+&reg_vdda {
+	bootph-pre-ram;
+};
+
+&reg_nvcc_sd {
+	bootph-pre-ram;
+};
+
+&uart3 {
+	bootph-pre-ram;
+};
+
+&usb_dwc3_0 {
+	/*
+	 * OTG role switching is currently not supported in U-Boot, use peripheral
+	 * as default.
+	 */
+	dr_mode = "peripheral";
+};
+
+&usb3_phy0 {
+	/*
+	 * Workaround to fix USB in U-Boot until the following commit from
+	 * linux-next-20251111 has landed and been synced to dts/upstream:
+	 * 6504297872c7 ("arm64: dts: imx8mp-kontron: Fix USB OTG role switching")
+	 */
+	/delete-property/ vbus-supply;
+};
+
+&wdog1 {
+	bootph-pre-ram;
+};
arch/arm/mach-imx/imx8m/Kconfig +14 -0
index 030ed2f0633..1dea8a466a6 100644
@@ -158,6 +158,19 @@ config TARGET_KONTRON_MX8MM
 	select ARCH_MISC_INIT
 	select SPL_CRYPTO if SPL
 
+config TARGET_KONTRON_MX8MP
+	bool "Kontron OSM-S/BL i.MX8MP"
+	select BINMAN
+	select IMX8MP
+	select SUPPORT_SPL
+	select IMX8M_LPDDR4
+	select FSL_CAAM
+	select ARCH_MISC_INIT
+	select SPL_CRYPTO if SPL
+	help
+	  Kontron Electronics BL i.MX8MP using SoM module conformant to OSM
+	  standard 1.1 size S.
+
 config TARGET_IMX8MN_BSH_SMM_S2
 	bool "imx8mn-bsh-smm-s2"
 	select IMX8MN
@@ -434,6 +447,7 @@ source "board/freescale/imx8mn_evk/Kconfig"
 source "board/freescale/imx8mp_evk/Kconfig"
 source "board/gateworks/venice/Kconfig"
 source "board/google/imx8mq_phanbell/Kconfig"
+source "board/kontron/osm-s-mx8mp/Kconfig"
 source "board/kontron/pitx_imx8m/Kconfig"
 source "board/kontron/sl-mx8mm/Kconfig"
 source "board/menlo/mx8menlo/Kconfig"
board/kontron/osm-s-mx8mp/Kconfig new file +17 -0
new file mode 100644
index 00000000000..36da92fed54
@@ -0,0 +1,17 @@
+if TARGET_KONTRON_MX8MP
+
+config SYS_BOARD
+	string
+	default "osm-s-mx8mp"
+
+config SYS_VENDOR
+	string
+	default "kontron"
+
+config SYS_CONFIG_NAME
+	string
+	default "kontron-osm-s-mx8mp"
+
+source "board/kontron/common/Kconfig"
+
+endif
board/kontron/osm-s-mx8mp/MAINTAINERS new file +7 -0
new file mode 100644
index 00000000000..adf94e4f92a
@@ -0,0 +1,7 @@
+Kontron OSM-S/BL i.MX8M Plus Boards
+M:	Frieder Schrempf <[email protected]>
+S:	Maintained
+F:	board/kontron/osm-s-mx8mp
+F:	configs/kontron-osm-s-mx8mp_defconfig
+F:	doc/board/kontron/osm-s-mx8mp.rst
+F:	include/configs/kontron-osm-s-mx8mp.h
board/kontron/osm-s-mx8mp/Makefile new file +9 -0
new file mode 100644
index 00000000000..0b688635038
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0+
+# (C) Copyright 2023 Kontron Electronics GmbH
+
+obj-y := osm-s-mx8mp.o
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing.o
+endif
board/kontron/osm-s-mx8mp/imximage.cfg new file +8 -0
new file mode 100644
index 00000000000..576cc5b3181
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2023 Kontron Electronics GmbH
+ */
+
+ROM_VERSION	v2
+BOOT_FROM	sd
+LOADER		u-boot-spl-ddr.bin	0x920000
board/kontron/osm-s-mx8mp/lpddr4_timing.c new file +2474 -0

2,474 lines not on this page · raw message

board/kontron/osm-s-mx8mp/osm-s-mx8mp.c new file +175 -0

175 lines not on this page · raw message

board/kontron/osm-s-mx8mp/osm-s-mx8mp.env new file +6 -0
new file mode 100644
index 00000000000..b6af9daccae
@@ -0,0 +1,6 @@
+kernel_addr_r=0x42000000
+fdt_addr_r=0x48000000
+fdtoverlay_addr_r=0x49000000
+ramdisk_addr_r=0x48080000
+scriptaddr=0x40000000
+pxefile_addr_r=0x40100000
board/kontron/osm-s-mx8mp/spl.c new file +358 -0

154 lines not on this page · raw message

configs/kontron-osm-s-mx8mp.config new file +203 -0

203 lines not on this page · raw message

configs/kontron-osm-s-mx8mp_defconfig new file +3 -0
new file mode 100644
index 00000000000..096390b897b

Lines of this file are not shown. View the raw message.

doc/board/kontron/index.rst +1 -0
index cb1906e626b..2f103773f63 100644

Lines of this file are not shown. View the raw message.

doc/board/kontron/osm-s-mx8mp.rst new file +104 -0

104 lines not on this page · raw message

include/configs/kontron-osm-s-mx8mp.h new file +30 -0
new file mode 100644
index 00000000000..24b07842bb6

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.51.0

Part of the diff is not shown here. View the raw message.

#2 lore raw

PATCH v2 2/3 arm: imx: imx9: Use arch override for env_get_location()

In reply to Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The arch-level implementation should be used here so that env_get_location() can be used on board-level.

---
Changes for v2:
* none

---
 arch/arm/mach-imx/imx9/soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx9/soc.c +1 -1
index 3f7dafdcce5..583c3a5a464 100644
@@ -783,7 +783,7 @@ int timer_init(void)
 	return 0;
 }
 
-enum env_location env_get_location(enum env_operation op, int prio)
+enum env_location arch_env_get_location(enum env_operation op, int prio)
 {
 	enum boot_device dev = get_boot_device();
 
Signature · 1 line
2.51.0
#3 lore raw

PATCH v2 3/3 imx: Add support for Kontron i.MX93 OSM-S SoM and BL carrier board

In reply to Frieder Schrempf

From: Frieder Schrempf <[email protected]>

This adds support for the Kontron Electronics OSM-S i.MX93 SoM and the matching baseboard BL i.MX93.

The SoM hardware complies to the Open Standard Module (OSM) 1.1 specification, size S (https://sget.org/standards/osm).

---
Changes for v2:
* none

---
 .../dts/imx93-kontron-bl-osm-s-u-boot.dtsi    |  153 ++
 arch/arm/mach-imx/imx9/Kconfig                |   11 +-
 board/kontron/osm-s-mx93/Kconfig              |   17 +
 board/kontron/osm-s-mx93/MAINTAINERS          |    7 +
 board/kontron/osm-s-mx93/Makefile             |    9 +
 board/kontron/osm-s-mx93/lpddr4x_timing.c     | 1992 +++++++++++++++++
 board/kontron/osm-s-mx93/osm-s-mx93.c         |  168 ++
 board/kontron/osm-s-mx93/osm-s-mx93.env       |    6 +
 board/kontron/osm-s-mx93/spl.c                |  169 ++
 configs/kontron-osm-s-mx93.config             |  197 ++
 configs/kontron-osm-s-mx93_defconfig          |    3 +
 doc/board/kontron/index.rst                   |    1 +
 doc/board/kontron/osm-s-mx93.rst              |   95 +
 include/configs/kontron-osm-s-mx93.h          |   30 +
 14 files changed, 2857 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/imx93-kontron-bl-osm-s-u-boot.dtsi
 create mode 100644 board/kontron/osm-s-mx93/Kconfig
 create mode 100644 board/kontron/osm-s-mx93/MAINTAINERS
 create mode 100644 board/kontron/osm-s-mx93/Makefile
 create mode 100644 board/kontron/osm-s-mx93/lpddr4x_timing.c
 create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.c
 create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.env
 create mode 100644 board/kontron/osm-s-mx93/spl.c
 create mode 100644 configs/kontron-osm-s-mx93.config
 create mode 100644 configs/kontron-osm-s-mx93_defconfig
 create mode 100644 doc/board/kontron/osm-s-mx93.rst
 create mode 100644 include/configs/kontron-osm-s-mx93.h
arch/arm/dts/imx93-kontron-bl-osm-s-u-boot.dtsi new file +153 -0
new file mode 100644
index 00000000000..217c5e6d0a5
@@ -0,0 +1,153 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2024 Kontron Electronics GmbH
+ */
+
+#include "imx93-u-boot.dtsi"
+
+/ {
+	wdt-reboot {
+		compatible = "wdt-reboot";
+		wdt = <&wdog3>;
+		bootph-all;
+	};
+
+	firmware {
+		optee {
+			compatible = "linaro,optee-tz";
+			method = "smc";
+		};
+	};
+};
+
+&A55_0 {
+	clocks = <&clk IMX93_CLK_ARM_PLL>;
+};
+
+&A55_1 {
+	clocks = <&clk IMX93_CLK_ARM_PLL>;
+};
+
+&{/soc@0} {
+	bootph-all;
+};
+
+&reg_vdd_carrier {
+	bootph-all;
+};
+
+&pinctrl_reg_vdd_carrier {
+	bootph-all;
+};
+
+&aips1 {
+	bootph-all;
+};
+
+&aips2 {
+	bootph-all;
+};
+
+&aips3 {
+	bootph-all;
+};
+
+&iomuxc {
+	bootph-all;
+};
+
+&pinctrl_usdhc2_gpio {
+	bootph-all;
+};
+
+&pinctrl_usdhc2 {
+	bootph-all;
+};
+
+&gpio1 {
+	bootph-all;
+};
+
+&gpio2 {
+	bootph-all;
+};
+
+&gpio3 {
+	bootph-all;
+};
+
+&gpio4 {
+	bootph-all;
+};
+
+&lpuart1 {
+	bootph-all;
+};
+
+&pinctrl_lpuart1 {
+	bootph-all;
+};
+
+&usdhc1 {
+	bootph-all;
+};
+
+&usdhc2 {
+	bootph-all;
+	fsl,signal-voltage-switch-extra-delay-ms = <8>;
+};
+
+&lpi2c1 {
+	bootph-all;
+};
+
+/* Enable I2C2 to probe for a touch controller on LVDS connector */
+&lpi2c2 {
+	bootph-all;
+	status = "okay";
+};
+
+&pca9451 {
+	bootph-all;
+};
+
+&{/soc@0/bus@44000000/i2c@44340000/pmic@25/regulators} {
+	bootph-all;
+};
+
+&pinctrl_lpi2c1 {
+	bootph-all;
+};
+
+&s4muap {
+	bootph-all;
+	status = "okay";
+};
+
+&clk {
+	bootph-all;
+};
+
+&osc_32k {
+	bootph-all;
+};
+
+&osc_24m {
+	bootph-all;
+};
+
+&clk_ext1 {
+	bootph-all;
+};
+
+&wdog3 {
+	bootph-all;
+};
+
+&reg_vdd_3v3 {
+	bootph-all;
+};
+
+&reg_nvcc_sd {
+	bootph-all;
+};
arch/arm/mach-imx/imx9/Kconfig +10 -1
index d9725a96043..e97c9f7ccc6 100644
@@ -103,6 +103,15 @@ config TARGET_IMX93_VAR_SOM
 	select IMX93
 	select IMX9_LPDDR4X
 
+config TARGET_KONTRON_MX93
+	bool "Kontron OSM-S/BL i.MX93"
+	select BINMAN
+	select IMX93
+	select IMX9_LPDDR4X
+	help
+	  Kontron Electronics BL i.MX93 using SoM module conformant to OSM
+	  standard 1.1 size S.
+
 config TARGET_PHYCORE_IMX93
 	bool "phycore_imx93"
 	select IMX93
@@ -142,6 +151,7 @@ source "board/freescale/imx91_evk/Kconfig"
 source "board/freescale/imx93_evk/Kconfig"
 source "board/freescale/imx93_frdm/Kconfig"
 source "board/freescale/imx93_qsb/Kconfig"
+source "board/kontron/osm-s-mx93/Kconfig"
 source "board/phytec/phycore_imx93/Kconfig"
 source "board/variscite/imx93_var_som/Kconfig"
 source "board/freescale/imx94_evk/Kconfig"
@@ -149,4 +159,3 @@ source "board/freescale/imx95_evk/Kconfig"
 source "board/toradex/smarc-imx95/Kconfig"
 
 endif
-
board/kontron/osm-s-mx93/Kconfig new file +17 -0
new file mode 100644
index 00000000000..964d6bfc012
@@ -0,0 +1,17 @@
+if TARGET_KONTRON_MX93
+
+config SYS_BOARD
+	string
+	default "osm-s-mx93"
+
+config SYS_VENDOR
+	string
+	default "kontron"
+
+config SYS_CONFIG_NAME
+	string
+	default "kontron-osm-s-mx93"
+
+source "board/kontron/common/Kconfig"
+
+endif
board/kontron/osm-s-mx93/MAINTAINERS new file +7 -0
new file mode 100644
index 00000000000..9287ef450d0
@@ -0,0 +1,7 @@
+Kontron OSM-S/BL i.MX93 Boards
+M:	Frieder Schrempf <[email protected]>
+S:	Maintained
+F:	board/kontron/osm-s-mx93
+F:	configs/kontron-osm-s-mx93_defconfig
+F:	doc/board/kontron/osm-s-mx93.rst
+F:	include/configs/kontron-osm-s-mx93.h
board/kontron/osm-s-mx93/Makefile new file +9 -0
new file mode 100644
index 00000000000..61039e895f5
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0+
+# (C) Copyright 2023 Kontron Electronics GmbH
+
+obj-y := osm-s-mx93.o
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+obj-y += lpddr4x_timing.o
+endif
board/kontron/osm-s-mx93/lpddr4x_timing.c new file +1992 -0

1,992 lines not on this page · raw message

board/kontron/osm-s-mx93/osm-s-mx93.c new file +168 -0

168 lines not on this page · raw message

board/kontron/osm-s-mx93/osm-s-mx93.env new file +6 -0
new file mode 100644
index 00000000000..bacd0ec74ec
@@ -0,0 +1,6 @@
+kernel_addr_r=0x82000000
+fdt_addr_r=0x88000000
+fdtoverlay_addr_r=0x89000000
+ramdisk_addr_r=0x88080000
+scriptaddr=0x80000000
+pxefile_addr_r=0x80100000
board/kontron/osm-s-mx93/spl.c new file +169 -0

169 lines not on this page · raw message

configs/kontron-osm-s-mx93.config new file +197 -0

197 lines not on this page · raw message

configs/kontron-osm-s-mx93_defconfig new file +3 -0
new file mode 100644
index 00000000000..991dd71140c
@@ -0,0 +1,3 @@
+#include <configs/kontron-osm-s-mx93.config>
+
+CONFIG_SPL_BOOTROM_SUPPORT=y
doc/board/kontron/index.rst +1 -0
index 2f103773f63..bd205ec628e 100644
@@ -7,6 +7,7 @@ Kontron
    :maxdepth: 2
 
    osm-s-mx8mp
+   osm-s-mx93
    pitx-imx8m
    sl28
    sl-mx6ul
doc/board/kontron/osm-s-mx93.rst new file +95 -0

95 lines not on this page · raw message

include/configs/kontron-osm-s-mx93.h new file +30 -0
new file mode 100644
index 00000000000..ab2b42298c8
@@ -0,0 +1,30 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2024 Kontron Electronics GmbH
+ *
+ * Configuration settings for the Kontron OSM-S/BL i.MX93 boards and modules.
+ */
+#ifndef __KONTRON_MX93_CONFIG_H
+#define __KONTRON_MX93_CONFIG_H
+
+#include <asm/arch/imx-regs.h>
+#include <linux/sizes.h>
+
+/* RAM */
+#define PHYS_SDRAM			0x80000000
+#define PHYS_SDRAM_SIZE			(SZ_2G)
+#define CFG_SYS_SDRAM_BASE		PHYS_SDRAM
+
+#define CFG_SYS_INIT_RAM_ADDR	0x80000000
+#define CFG_SYS_INIT_RAM_SIZE	SZ_2M
+
+/* Board and environment settings */
+
+#ifdef CONFIG_USB_EHCI_HCD
+#define CFG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
+#define CFG_MXC_USB_FLAGS		0
+#endif
+
+#define WDOG_BASE_ADDR          WDG3_BASE_ADDR
+
+#endif /* __KONTRON_MX93_CONFIG_H */
Signature · 1 line
2.51.0
reviewer
#4 lore raw
In reply to Frieder Schrempf
Quoted 6 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

Changes for v2:
* drop DT fixup patch, and add workaround in patch 1/3

Quoted 7 lines

This adds support for Kontron hardware based on i.MX8MP and i.MX93 OSM (Open Standard Module) SoMs.

Frieder Schrempf (3):
imx: Add support for Kontron i.MX8MP OSM-S SoM and BL carrier board
arm: imx: imx9: Use arch override for env_get_location()
imx: Add support for Kontron i.MX93 OSM-S SoM and BL carrier board

Series applied to u-boot-imx/next, thanks.