Skip to contentSkip to conversation

ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM

PATCH New Ilko Iliev 2 participants 2 messages Apr 23, 2021 – May 2, 2021

Subsystems (3)
lore
Share & tools
lore

Ilko Iliev

author
#0 lore raw

PATCH 1/1 ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM

Supported peripherals: Ethernet, eMMC, Serial.

U-Boot SPL 2021.04-00911-g5fa1e2ffeb-dirty (Apr 23 2021 - 09:11:14 +0200)
Normal Boot
Trying to boot from MMC2

U-Boot 2021.04-00911-g5fa1e2ffeb-dirty (Apr 23 2021 - 09:11:14 +0200)

CPU:   Freescale i.MX8MQ rev2.1 at 1000 MHz
Reset cause: POR
Model: Ronetix iMX8M-CM SoM
DRAM:  1 GiB
WDT:   Started with servicing (60s timeout)
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial

Net:
Warning: ethernet at 30be0000 (eth0) using random MAC address - 42:0d:e7:78:da:53
eth0: ethernet at 30be0000
Hit any key to stop autoboot: 0
u-boot=>

---
 arch/arm/dts/Makefile                         |    1 +
 arch/arm/dts/imx8mq-cm-u-boot.dtsi            |  111 +
 arch/arm/dts/imx8mq-cm.dts                    |  535 +++++
 arch/arm/mach-imx/imx8m/Kconfig               |    7 +
 board/ronetix/imx8mq-cm/Kconfig               |   12 +
 board/ronetix/imx8mq-cm/MAINTAINERS           |    6 +
 board/ronetix/imx8mq-cm/Makefile              |   12 +
 board/ronetix/imx8mq-cm/README                |   42 +
 board/ronetix/imx8mq-cm/imx8mq_cm.c           |   84 +
 .../ronetix/imx8mq-cm/imximage-8mq-lpddr4.cfg |    9 +
 board/ronetix/imx8mq-cm/lpddr4_timing.c       | 1866 +++++++++++++++++
 board/ronetix/imx8mq-cm/spl.c                 |  165 ++
 configs/imx8mq_cm_defconfig                   |   82 +
 include/configs/imx8mq_cm.h                   |  104 +
 14 files changed, 3036 insertions(+)
 create mode 100644 arch/arm/dts/imx8mq-cm-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mq-cm.dts
 create mode 100644 board/ronetix/imx8mq-cm/Kconfig
 create mode 100644 board/ronetix/imx8mq-cm/MAINTAINERS
 create mode 100644 board/ronetix/imx8mq-cm/Makefile
 create mode 100644 board/ronetix/imx8mq-cm/README
 create mode 100644 board/ronetix/imx8mq-cm/imx8mq_cm.c
 create mode 100644 board/ronetix/imx8mq-cm/imximage-8mq-lpddr4.cfg
 create mode 100644 board/ronetix/imx8mq-cm/lpddr4_timing.c
 create mode 100644 board/ronetix/imx8mq-cm/spl.c
 create mode 100644 configs/imx8mq_cm_defconfig
 create mode 100644 include/configs/imx8mq_cm.h
arch/arm/dts/Makefile +1 -0
index 1dd6c4b2e8..f061176c55 100644
@@ -837,6 +837,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-verdin.dtb \
 	phycore-imx8mm.dtb \
 	imx8mn-ddr4-evk.dtb \
+	imx8mq-cm.dtb \
 	imx8mn-evk.dtb \
 	imx8mq-evk.dtb \
 	imx8mm-beacon-kit.dtb \
arch/arm/dts/imx8mq-cm-u-boot.dtsi new file +111 -0

111 lines not on this page · raw message

arch/arm/dts/imx8mq-cm.dts new file +535 -0

535 lines not on this page · raw message

arch/arm/mach-imx/imx8m/Kconfig +7 -0
index c27fb248d1..5b76721f27 100644
@@ -28,6 +28,12 @@ choice
 	prompt  "NXP i.MX8M board select"
 	optional
 
+config TARGET_IMX8MQ_CM
+        bool "Ronetix iMX8MQ-CM SoM"
+		select BINMAN
+        select IMX8MQ
+        select IMX8M_LPDDR4
+
 config TARGET_IMX8MQ_EVK
 	bool "imx8mq_evk"
 	select IMX8MQ
@@ -108,6 +114,7 @@ config TARGET_PHYCORE_IMX8MP
 	select IMX8M_LPDDR4
 endchoice
 
+source "board/ronetix/imx8mq-cm/Kconfig"
 source "board/freescale/imx8mq_evk/Kconfig"
 source "board/freescale/imx8mm_evk/Kconfig"
 source "board/freescale/imx8mn_evk/Kconfig"
board/ronetix/imx8mq-cm/Kconfig new file +12 -0
new file mode 100644
index 0000000000..9dd6a86add
@@ -0,0 +1,12 @@
+if TARGET_IMX8MQ_CM
+
+config SYS_BOARD
+	default "imx8mq-cm"
+
+config SYS_VENDOR
+	default "ronetix"
+
+config SYS_CONFIG_NAME
+	default "imx8mq_cm"
+
+endif
board/ronetix/imx8mq-cm/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..962a83267d
@@ -0,0 +1,6 @@
+i.MX8MQ-CM BOARD
+M:	Ilko Iliev <[email protected]>
+S:	Maintained
+F:	board/ronetix/imx8mq-cm/
+F:	include/configs/imx8mq_cm.h
+F:	configs/imx8mq_cm_defconfig
board/ronetix/imx8mq-cm/Makefile new file +12 -0
new file mode 100644
index 0000000000..0d9d8e646d
@@ -0,0 +1,12 @@
+#
+# Copyright 2017 NXP
+#
+# SPDX-License-Identifier:      GPL-2.0+
+#
+
+obj-y += imx8mq_cm.o
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing.o
+endif
board/ronetix/imx8mq-cm/README new file +42 -0

42 lines not on this page · raw message

board/ronetix/imx8mq-cm/imx8mq_cm.c new file +84 -0

84 lines not on this page · raw message

board/ronetix/imx8mq-cm/imximage-8mq-lpddr4.cfg new file +9 -0
new file mode 100644
index 0000000000..268b5ae716
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2021 NXP
+ */
+
+#define __ASSEMBLY__
+
+BOOT_FROM	sd
+LOADER		mkimage.flash.mkimage	0x7E1000
\ No newline at end of file
board/ronetix/imx8mq-cm/lpddr4_timing.c new file +1866 -0

1,866 lines not on this page · raw message

board/ronetix/imx8mq-cm/spl.c new file +165 -0

165 lines not on this page · raw message

configs/imx8mq_cm_defconfig new file +82 -0

82 lines not on this page · raw message

include/configs/imx8mq_cm.h new file +104 -0

49 lines not on this page · raw message

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

--
2.25.1

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

#1 lore raw

PATCH 1/1 ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM

Quoted 16 lines

Supported peripherals: Ethernet, eMMC, Serial.
U-Boot SPL 2021.04-00911-g5fa1e2ffeb-dirty (Apr 23 2021 - 09:11:14 +0200)
Normal Boot
Trying to boot from MMC2
U-Boot 2021.04-00911-g5fa1e2ffeb-dirty (Apr 23 2021 - 09:11:14 +0200)

CPU:   Freescale i.MX8MQ rev2.1 at 1000 MHz
Reset cause: POR
Model: Ronetix iMX8M-CM SoM
DRAM:  1 GiB
WDT:   Started with servicing (60s timeout)
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Quoted 7 lines

Net:
Warning: ethernet at 30be0000 (eth0) using random MAC address - 42:0d:e7:78:da:53
eth0: ethernet at 30be0000
Hit any key to stop autoboot: 0
u-boot=>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================