summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFrieder Schrempf <[email protected]>2025-11-11 17:54:18 +0100
committerFabio Estevam <[email protected]>2025-11-29 14:42:24 -0300
commitdfafac3207b4e590c52d7ceed00850a1e542c886 (patch)
tree4baca5002ec9064b2a0ccfbae0fe03ce7ca42f38 /arch
parent1817467e4838aab9a86237cfb5076d9fc2b5b24e (diff)
imx: Add support for Kontron i.MX8MP OSM-S SoM and BL carrier board
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). Signed-off-by: Frieder Schrempf <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi124
-rw-r--r--arch/arm/mach-imx/imx8m/Kconfig14
2 files changed, 138 insertions, 0 deletions
diff --git a/arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi b/arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi
new file mode 100644
index 00000000000..9c777e62d98
--- /dev/null
+++ b/arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi
@@ -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;
+};
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index 030ed2f0633..1dea8a466a6 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -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"