From patchwork Thu Jan 23 11:31:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 239957 List-Id: U-Boot discussion From: igor.opaniuk at gmail.com (Igor Opaniuk) Date: Thu, 23 Jan 2020 13:31:35 +0200 Subject: [PATCH v1 0/5] board: toradex: add Verdin iMX8MM 2GB WB IT v1.0a Message-ID: <20200123113140.9353-1-igor.opaniuk@gmail.com> This add initial minimal support for the Toradex Verdin iMX8MM 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. 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 FIT image, loaded by SPL. Boot: U-Boot SPL 2020.01-01840-gd92bdc79cf-dirty (Jan 22 2020 - 18:50:57 +0200) Normal Boot Trying to boot from MMC1 U-Boot 2020.01-01840-gd92bdc79cf-dirty (Jan 22 2020 - 18:50:57 +0200) CPU: Freescale i.MX8MMQ rev1.0 at 0 MHz Reset cause: POR DRAM: 2 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 Loading Environment from MMC... OK In: serial Out: serial Err: serial Model: Toradex Verdin iMX8M Mini 2GB Wi-Fi / BT IT V1.0A, Serial# 06535148 Net: Could not get PHY for FEC0: addr 7 eth0: ethernet at 30be0000 Hit any key to stop autoboot: 0 Igor Opaniuk (3): board: toradex: add Verdin iMX8MM 2GB WB IT v1.0a board: toradex: verdin-imx8mm: add README board: toradex: verdin-imx8mm: add MAINTAINERS Marcel Ziswiler (1): toradex: tdx-cfg-block: add Verdin i.MX8MM support Max Krummenacher (1): dt-bindings: pinctrl: imx8mm: add alternative uart muxings arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx8mm-pinfunc.h | 21 + arch/arm/dts/imx8mm-verdin-u-boot.dtsi | 103 ++ arch/arm/dts/imx8mm-verdin.dts | 854 +++++++++ arch/arm/mach-imx/imx8m/Kconfig | 7 + board/toradex/common/tdx-cfg-block.c | 17 +- board/toradex/common/tdx-cfg-block.h | 1 + board/toradex/verdin-imx8mm/Kconfig | 30 + board/toradex/verdin-imx8mm/MAINTAINERS | 9 + board/toradex/verdin-imx8mm/Makefile | 12 + board/toradex/verdin-imx8mm/README | 81 + board/toradex/verdin-imx8mm/imximage.cfg | 16 + board/toradex/verdin-imx8mm/lpddr4_timing.c | 1851 +++++++++++++++++++ board/toradex/verdin-imx8mm/spl.c | 183 ++ board/toradex/verdin-imx8mm/verdin-imx8mm.c | 74 + configs/verdin-imx8mm_defconfig | 88 + include/configs/verdin-imx8mm.h | 121 ++ 17 files changed, 3468 insertions(+), 3 deletions(-) create mode 100644 arch/arm/dts/imx8mm-verdin-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mm-verdin.dts create mode 100644 board/toradex/verdin-imx8mm/Kconfig create mode 100644 board/toradex/verdin-imx8mm/MAINTAINERS create mode 100644 board/toradex/verdin-imx8mm/Makefile create mode 100644 board/toradex/verdin-imx8mm/README create mode 100644 board/toradex/verdin-imx8mm/imximage.cfg create mode 100644 board/toradex/verdin-imx8mm/lpddr4_timing.c create mode 100644 board/toradex/verdin-imx8mm/spl.c create mode 100644 board/toradex/verdin-imx8mm/verdin-imx8mm.c create mode 100644 configs/verdin-imx8mm_defconfig create mode 100644 include/configs/verdin-imx8mm.h