board: toradex: Add Verdin iMX8M Mini support
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Tue, 28 Jan 2020 13:42:25 +0000 (14:42 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 9 Feb 2020 13:50:52 +0000 (14:50 +0100)
commit14d5aeff776bce23a4825114a8277e1be30e545b
treea7a68b1a2896f48bda1662ebe06ce1f373d825b9
parentc0c3978cba3472bc67db0e096243a429a8ae9def
board: toradex: Add Verdin iMX8M Mini support

This adds initial minimal support for the Toradex Verdin iMX8M Mini Quad
2GB WB IT V1.0A module. They are now strapped to boot from eFuses which
are factory fused to properly boot from their on-module eMMC. U-Boot
supports booting from the on-module eMMC only, SDP support is disabled
for now due to missing i.MX 8M Mini USB support.

Functionality wise the following is known to be working:
- eMMC, 8-bit and 4-bit MMC/SD card slots
- Ethernet
- GPIOs
- I2C

Boot sequence is:
SPL ---> ATF (TF-A) ---> U-boot proper

ATF, U-boot proper and u-boot.dtb images are packed into a FIT image,
loaded by SPL.

Boot:
U-Boot SPL 2020.01-00187-gd411d164e5 (Jan 26 2020 - 04:47:26 +0100)
Normal Boot
Trying to boot from MMC1
NOTICE:  Configuring TZASC380
NOTICE:  RDC off
NOTICE:  BL31: v2.0(release):rel_imx_4.14.98_2.3.0-0-g09c5cc994-dirty
NOTICE:  BL31: Built : 01:11:41, Jan 25 2020
NOTICE:  sip svc init

U-Boot 2020.01-00187-gd411d164e5 (Jan 26 2020 - 04:47:26 +0100)

CPU:   Freescale i.MX8MMQ rev1.0 at 0 MHz
Reset cause: POR
DRAM:  2 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Model: Toradex Verdin iMX8M Mini Quad 2GB Wi-Fi / BT IT V1.0A, Serial#
 06535149
Net:   eth0: ethernet@30be0000
Hit any key to stop autoboot:  0
Verdin iMX8MM #

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
12 files changed:
arch/arm/dts/Makefile
arch/arm/dts/imx8mm-verdin-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/imx8mm-verdin.dts [new file with mode: 0644]
arch/arm/mach-imx/imx8m/Kconfig
board/toradex/verdin-imx8mm/Kconfig [new file with mode: 0644]
board/toradex/verdin-imx8mm/Makefile [new file with mode: 0644]
board/toradex/verdin-imx8mm/imximage.cfg [new file with mode: 0644]
board/toradex/verdin-imx8mm/lpddr4_timing.c [new file with mode: 0644]
board/toradex/verdin-imx8mm/spl.c [new file with mode: 0644]
board/toradex/verdin-imx8mm/verdin-imx8mm.c [new file with mode: 0644]
configs/verdin-imx8mm_defconfig [new file with mode: 0644]
include/configs/verdin-imx8mm.h [new file with mode: 0644]