Skip to contentSkip to conversation

imx: Add support for Ronetix's iMX7-CM board

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

Subsystems (3)
lore
Share & tools
lore

Ilko Iliev

author
#0 lore raw

PATCH v3 1/1 imx: Add support for Ronetix's iMX7-CM board

Console boot log:

U-Boot SPL 2021.04-00836-ga6232e065d-dirty (Apr 16 2021 - 15:16:35 +0200) Trying to boot from MMC1

U-Boot 2021.04-00836-ga6232e065d-dirty (Apr 16 2021 - 15:16:35 +0200)

CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 44C
Reset cause: POR
Model: Ronetix iMX7-CM Board
Board: iMX7-CM
DRAM:  512 MiB
PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial

Net:
Warning: ethernet at 30be0000 (eth0) using random MAC address - fe:be:37:01:5a:3f
eth0: ethernet at 30be0000
Hit any key to stop autoboot: 0

---
 arch/arm/dts/Makefile             |   1 +
 arch/arm/dts/imx7-cm-u-boot.dtsi  |  17 ++
 arch/arm/dts/imx7-cm.dts          | 432 ++++++++++++++++++++++++++++++
 arch/arm/mach-imx/mx7/Kconfig     |  10 +
 board/ronetix/imx7-cm/Kconfig     |  15 ++
 board/ronetix/imx7-cm/MAINTAINERS |   6 +
 board/ronetix/imx7-cm/Makefile    |   8 +
 board/ronetix/imx7-cm/README      |  11 +
 board/ronetix/imx7-cm/imx7-cm.c   |  98 +++++++
 board/ronetix/imx7-cm/spl.c       | 156 +++++++++++
 configs/imx7_cm_defconfig         | 110 ++++++++
 include/configs/imx7-cm.h         | 110 ++++++++
 12 files changed, 974 insertions(+)
 create mode 100644 arch/arm/dts/imx7-cm-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx7-cm.dts
 create mode 100644 board/ronetix/imx7-cm/Kconfig
 create mode 100644 board/ronetix/imx7-cm/MAINTAINERS
 create mode 100644 board/ronetix/imx7-cm/Makefile
 create mode 100644 board/ronetix/imx7-cm/README
 create mode 100644 board/ronetix/imx7-cm/imx7-cm.c
 create mode 100644 board/ronetix/imx7-cm/spl.c
 create mode 100644 configs/imx7_cm_defconfig
 create mode 100644 include/configs/imx7-cm.h
arch/arm/dts/Makefile +1 -0
index 1dd6c4b2e8..a21b57c9de 100644
@@ -806,6 +806,7 @@ dtb-$(CONFIG_ARCH_MX6) += \
 
 dtb-$(CONFIG_MX7) += imx7d-sdb.dtb \
 	imx7d-sdb-qspi.dtb \
+	imx7-cm.dtb \
 	imx7-colibri-emmc.dtb \
 	imx7-colibri-rawnand.dtb \
 	imx7s-warp.dtb \
arch/arm/dts/imx7-cm-u-boot.dtsi new file +17 -0
new file mode 100644
index 0000000000..c6970c51ba
@@ -0,0 +1,17 @@
+/{
+    aliases {
+        mmc0 = &usdhc1;
+    };
+};
+
+&usdhc1 {
+	u-boot,dm-spl;
+};
+
+&i2c1 {
+	u-boot,dm-spl;
+};
+
+&pinctrl_i2c1 {
+	u-boot,dm-spl;
+};
arch/arm/dts/imx7-cm.dts new file +432 -0

432 lines not on this page · raw message

arch/arm/mach-imx/mx7/Kconfig +10 -0
index c8146c3509..5c6fe426ef 100644
@@ -35,6 +35,15 @@ config TARGET_CL_SOM_IMX7
 	select SUPPORT_SPL
 	imply CMD_DM
 
+config TARGET_IMX7_CM
+	bool "Ronetix iMX7-CM"
+	select BOARD_LATE_INIT
+	select DM
+	select DM_THERMAL
+	select MX7D
+	select SUPPORT_SPL
+	imply CMD_DM
+
 config TARGET_MEERKAT96
 	bool "NovTech Meerkat96 board"
 	select BOARD_LATE_INIT
@@ -82,6 +91,7 @@ config SYS_SOC
 	default "mx7"
 
 source "board/compulab/cl-som-imx7/Kconfig"
+source "board/ronetix/imx7-cm/Kconfig"
 source "board/freescale/mx7dsabresd/Kconfig"
 source "board/novtech/meerkat96/Kconfig"
 source "board/technexion/pico-imx7d/Kconfig"
board/ronetix/imx7-cm/Kconfig new file +15 -0
new file mode 100644
index 0000000000..a4bc48f694
@@ -0,0 +1,15 @@
+if TARGET_IMX7_CM
+
+config SYS_BOARD
+	default "imx7-cm"
+
+config SYS_VENDOR
+	default "ronetix"
+
+config SYS_SOC
+	default "mx7"
+
+config SYS_CONFIG_NAME
+	default "imx7-cm"
+
+endif
board/ronetix/imx7-cm/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..184c887463
@@ -0,0 +1,6 @@
+i.MX7-CM BOARD
+M:	Ilko Iliev <[email protected]>
+S:	Maintained
+F:	board/ronetix/imx7_cm/
+F:	include/configs/imx7_cm.h
+F:	configs/imx7_cm_defconfig
\ No newline at end of file
board/ronetix/imx7-cm/Makefile new file +8 -0
new file mode 100644
index 0000000000..7e08f238a0
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0+
+# (C) Copyright 2017 NXP Semiconductors
+
+ifdef CONFIG_SPL_BUILD
+obj-y  += spl.o
+else
+obj-y  += imx7-cm.o
+endif
board/ronetix/imx7-cm/README new file +11 -0
new file mode 100644
index 0000000000..43e8c4fb7a
@@ -0,0 +1,11 @@
+U-Boot for the Ronetix i.MX7-CM board
+
+Build U-Boot
+============
+$ make imx7_cm_defconfig
+$ make
+
+Burn the images to a SD card
+============================
+$ sudo dd if=SPL of=/dev/sdX bs=1k seek=1; sync
+$ sudo dd if=u-boot-dtb.img  of=/dev/sdX bs=1k seek=69; sync
board/ronetix/imx7-cm/imx7-cm.c new file +98 -0

98 lines not on this page · raw message

board/ronetix/imx7-cm/spl.c new file +156 -0

156 lines not on this page · raw message

configs/imx7_cm_defconfig new file +110 -0

110 lines not on this page · raw message

include/configs/imx7-cm.h new file +110 -0

110 lines not on this page · raw message

--
2.25.1

#1 lore raw

PATCH v3 1/1 imx: Add support for Ronetix's iMX7-CM board

Quoted 16 lines

Console boot log:
U-Boot SPL 2021.04-00836-ga6232e065d-dirty (Apr 16 2021 - 15:16:35 +0200) Trying to boot from MMC1
U-Boot 2021.04-00836-ga6232e065d-dirty (Apr 16 2021 - 15:16:35 +0200)

CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 44C
Reset cause: POR
Model: Ronetix iMX7-CM Board
Board: iMX7-CM
DRAM:  512 MiB
PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Quoted 5 lines

Net:
Warning: ethernet at 30be0000 (eth0) using random MAC address - fe:be:37:01:5a:3f
eth0: ethernet at 30be0000
Hit any key to stop autoboot: 0

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
=====================================================================