Skip to contentSkip to conversation

ARM: dts: imx: Add support for Data Modul i.MX8M Plus eDM SBC

PATCH Superseded Marek Vasut 1 participant 1 message Feb 8, 2023

Subsystems (3)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: imx: Add support for Data Modul i.MX8M Plus eDM SBC

Add support for Data Modul i.MX8M Plus eDM SBC board. This is an evaluation board for various custom display units. Currently supported are serial console, ethernet, eMMC, SD, SPI NOR, USB.

---
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
---
V2: Rebase on current u-boot master and add changes which landed in
U-Boot upstream since the last submission, i.e. macro rename.

---
 arch/arm/dts/Makefile                         |    1 +
 .../dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi |  130 ++
 arch/arm/dts/imx8mp-data-modul-edm-sbc.dts    |  973 +++++++++
 arch/arm/mach-imx/imx8m/Kconfig               |    8 +
 board/data_modul/imx8mp_edm_sbc/Kconfig       |   15 +
 board/data_modul/imx8mp_edm_sbc/MAINTAINERS   |    8 +
 board/data_modul/imx8mp_edm_sbc/Makefile      |   13 +
 .../imx8mp_data_modul_edm_sbc.c               |   93 +
 board/data_modul/imx8mp_edm_sbc/imximage.cfg  |    8 +
 .../data_modul/imx8mp_edm_sbc/lpddr4_timing.h |   11 +
 .../imx8mp_edm_sbc/lpddr4_timing_4G_32.c      | 1852 +++++++++++++++++
 board/data_modul/imx8mp_edm_sbc/spl.c         |  124 ++
 configs/imx8mp_data_modul_edm_sbc_defconfig   |  267 +++
 include/configs/imx8mp_data_modul_edm_sbc.h   |   45 +
 14 files changed, 3548 insertions(+)
 create mode 100644 arch/arm/dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mp-data-modul-edm-sbc.dts
 create mode 100644 board/data_modul/imx8mp_edm_sbc/Kconfig
 create mode 100644 board/data_modul/imx8mp_edm_sbc/MAINTAINERS
 create mode 100644 board/data_modul/imx8mp_edm_sbc/Makefile
 create mode 100644 board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c
 create mode 100644 board/data_modul/imx8mp_edm_sbc/imximage.cfg
 create mode 100644 board/data_modul/imx8mp_edm_sbc/lpddr4_timing.h
 create mode 100644 board/data_modul/imx8mp_edm_sbc/lpddr4_timing_4G_32.c
 create mode 100644 board/data_modul/imx8mp_edm_sbc/spl.c
 create mode 100644 configs/imx8mp_data_modul_edm_sbc_defconfig
 create mode 100644 include/configs/imx8mp_data_modul_edm_sbc.h
arch/arm/dts/Makefile +1 -0
index d9b719f85dd..1159d1b133f 100644
@@ -986,6 +986,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mn-beacon-kit.dtb \
 	imx8mq-mnt-reform2.dtb \
 	imx8mq-phanbell.dtb \
+	imx8mp-data-modul-edm-sbc.dtb \
 	imx8mp-dhcom-pdk2.dtb \
 	imx8mp-evk.dtb \
 	imx8mp-icore-mx8mp-edimm2.2.dtb \
arch/arm/dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi new file +130 -0

130 lines not on this page · raw message

arch/arm/dts/imx8mp-data-modul-edm-sbc.dts new file +973 -0

973 lines not on this page · raw message

arch/arm/mach-imx/imx8m/Kconfig +8 -0
index 5e4836b02fe..39016dcf78f 100644
@@ -170,6 +170,13 @@ config TARGET_IMX8MN_VENICE
 	select GATEWORKS_SC
 	select MISC
 
+config TARGET_IMX8MP_DATA_MODUL_EDM_SBC
+	bool "Data Modul eDM SBC i.MX8M Plus"
+	select BINMAN
+	select IMX8MP
+	select IMX8M_LPDDR4
+	select SUPPORT_SPL
+
 config TARGET_IMX8MP_DH_DHCOM_PDK2
 	bool "DH electronics DHCOM Premium Developer Kit (2) i.MX8M Plus"
 	select BINMAN
@@ -330,6 +337,7 @@ source "board/bsh/imx8mn_smm_s2/Kconfig"
 source "board/cloos/imx8mm_phg/Kconfig"
 source "board/compulab/imx8mm-cl-iot-gate/Kconfig"
 source "board/data_modul/imx8mm_edm_sbc/Kconfig"
+source "board/data_modul/imx8mp_edm_sbc/Kconfig"
 source "board/dhelectronics/dh_imx8mp/Kconfig"
 source "board/engicam/imx8mm/Kconfig"
 source "board/engicam/imx8mp/Kconfig"
board/data_modul/imx8mp_edm_sbc/Kconfig new file +15 -0
new file mode 100644
index 00000000000..d7a55b44598
@@ -0,0 +1,15 @@
+if TARGET_IMX8MP_DATA_MODUL_EDM_SBC
+
+config SYS_BOARD
+	default "imx8mp_edm_sbc"
+
+config SYS_VENDOR
+	default "data_modul"
+
+config SYS_CONFIG_NAME
+	default "imx8mp_data_modul_edm_sbc"
+
+config IMX_CONFIG
+	default "board/data_modul/imx8mp_edm_sbc/imximage.cfg"
+
+endif
board/data_modul/imx8mp_edm_sbc/MAINTAINERS new file +8 -0
new file mode 100644
index 00000000000..a67e1047619
@@ -0,0 +1,8 @@
+Data Modul eDM SBC i.MX8M Plus
+M:	Marek Vasut <[email protected]>
+S:	Maintained
+F:	arch/arm/dts/imx8mp-data-modul-edm-sbc.dts
+F:	arch/arm/dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi
+F:	board/data_modul/imx8mp_data_modul_edm_sbc/
+F:	configs/imx8mp_data_modul_edm_sbc_defconfig
+F:	include/configs/imx8mp_data_modul_edm_sbc.h
board/data_modul/imx8mp_edm_sbc/Makefile new file +13 -0
new file mode 100644
index 00000000000..28c1d62f2bb
@@ -0,0 +1,13 @@
+#
+# Copyright (C) 2022 Marek Vasut <[email protected]>
+#
+# SPDX-License-Identifier:      GPL-2.0+
+#
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o lpddr4_timing_4G_32.o
+else
+obj-y += imx8mp_data_modul_edm_sbc.o
+endif
+
+obj-y += ../common/common.o
board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c new file +93 -0

93 lines not on this page · raw message

board/data_modul/imx8mp_edm_sbc/imximage.cfg new file +8 -0
new file mode 100644
index 00000000000..8aadedb1028
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2021 NXP
+ */
+
+ROM_VERSION	v2
+BOOT_FROM	sd
+LOADER		u-boot-spl-ddr.bin	0x920000
board/data_modul/imx8mp_edm_sbc/lpddr4_timing.h new file +11 -0
new file mode 100644
index 00000000000..24569d5931b
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2022 Marek Vasut <[email protected]>
+ */
+
+#ifndef __LPDDR4_TIMING_H__
+#define __LPDDR4_TIMING_H__
+
+extern struct dram_timing_info dmo_imx8mp_sbc_dram_timing_32_32;
+
+#endif /* __LPDDR4_TIMING_H__ */
board/data_modul/imx8mp_edm_sbc/lpddr4_timing_4G_32.c new file +1852 -0

1,722 lines not on this page · raw message

board/data_modul/imx8mp_edm_sbc/spl.c new file +124 -0

124 lines not on this page · raw message

configs/imx8mp_data_modul_edm_sbc_defconfig new file +267 -0

267 lines not on this page · raw message

include/configs/imx8mp_data_modul_edm_sbc.h new file +45 -0

45 lines not on this page · raw message

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

Signature · 1 line
2.39.1

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