Skip to contentSkip to conversation

arm: imx: Add support for Google's Coral Dev Board

PATCH New Alifer Moraes 4 participants 5 messages Mar 6, 2020 – May 1, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: imx: Add support for Google's Coral Dev Board

Add initial support for Google's Coral Dev Board based on i.MX8MQ.

https://coral.ai/products/dev-board

The Phanbell naming has been used here to match the naming convention used in Google's U-Boot source tree:

https://coral.googlesource.com/uboot-imx/

---
 arch/arm/dts/Makefile                         |    1 +
 arch/arm/dts/imx8mq-phanbell.dts              |  417 ++++
 arch/arm/mach-imx/imx8m/Kconfig               |    6 +
 board/google/imx8mq_phanbell/Kconfig          |   12 +
 board/google/imx8mq_phanbell/MAINTAINERS      |    8 +
 board/google/imx8mq_phanbell/Makefile         |   11 +
 board/google/imx8mq_phanbell/README           |   37 +
 .../google/imx8mq_phanbell/imx8mq_phanbell.c  |  100 +
 .../google/imx8mq_phanbell/lpddr4_timing_1g.c | 1731 +++++++++++++++++
 board/google/imx8mq_phanbell/spl.c            |  180 ++
 configs/imx8mq_phanbell_defconfig             |   52 +
 include/configs/imx8mq_phanbell.h             |  216 ++
 12 files changed, 2771 insertions(+)
 create mode 100644 arch/arm/dts/imx8mq-phanbell.dts
 create mode 100644 board/google/imx8mq_phanbell/Kconfig
 create mode 100644 board/google/imx8mq_phanbell/MAINTAINERS
 create mode 100644 board/google/imx8mq_phanbell/Makefile
 create mode 100644 board/google/imx8mq_phanbell/README
 create mode 100644 board/google/imx8mq_phanbell/imx8mq_phanbell.c
 create mode 100644 board/google/imx8mq_phanbell/lpddr4_timing_1g.c
 create mode 100644 board/google/imx8mq_phanbell/spl.c
 create mode 100644 configs/imx8mq_phanbell_defconfig
 create mode 100644 include/configs/imx8mq_phanbell.h
arch/arm/dts/Makefile +1 -0
index be4cf029d0..7cd6c93586 100644
@@ -721,6 +721,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-verdin.dtb \
 	imx8mn-ddr4-evk.dtb \
 	imx8mq-evk.dtb \
+	imx8mq-phanbell.dtb \
 	imx8mp-evk.dtb
 
 dtb-$(CONFIG_ARCH_IMXRT) += imxrt1050-evk.dtb
arch/arm/dts/imx8mq-phanbell.dts new file +417 -0

417 lines not on this page · raw message

arch/arm/mach-imx/imx8m/Kconfig +6 -0
index 58f1758ab6..895f903780 100644
@@ -32,6 +32,11 @@ config TARGET_IMX8MQ_EVK
 	select IMX8MQ
 	select IMX8M_LPDDR4
 
+config TARGET_IMX8MQ_PHANBELL
+        bool "imx8mq_phanbell"
+        select IMX8MQ
+        select IMX8M_LPDDR4
+
 config TARGET_IMX8MM_EVK
 	bool "imx8mm LPDDR4 EVK board"
 	select IMX8MM
@@ -62,6 +67,7 @@ source "board/freescale/imx8mq_evk/Kconfig"
 source "board/freescale/imx8mm_evk/Kconfig"
 source "board/freescale/imx8mn_evk/Kconfig"
 source "board/freescale/imx8mp_evk/Kconfig"
+source "board/google/imx8mq_phanbell/Kconfig"
 source "board/toradex/verdin-imx8mm/Kconfig"
 
 endif
board/google/imx8mq_phanbell/Kconfig new file +12 -0
new file mode 100644
index 0000000000..fba2e9ce67
@@ -0,0 +1,12 @@
+if TARGET_IMX8MQ_PHANBELL
+
+config SYS_BOARD
+	default "imx8mq_phanbell"
+
+config SYS_VENDOR
+	default "google"
+
+config SYS_CONFIG_NAME
+	default "imx8mq_phanbell"
+
+endif
board/google/imx8mq_phanbell/MAINTAINERS new file +8 -0
new file mode 100644
index 0000000000..b233e6b57a
@@ -0,0 +1,8 @@
+i.MX 8MQ PHANBELL BOARD
+M:	Fabio Estevam <[email protected]>
+M:	Marco Franchi <[email protected]>
+M:	Alifer Moraes <[email protected]>
+S:	Maintained
+F:	board/google/imx8mq_phanbell/
+F:	include/configs/imx8mq_phanbell.h
+F:	configs/imx8mq_phanbell_defconfig
board/google/imx8mq_phanbell/Makefile new file +11 -0
new file mode 100644
index 0000000000..d6427cf8e9
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright 2020 NXP
+#
+
+obj-y += imx8mq_phanbell.o
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing_1g.o
+endif
board/google/imx8mq_phanbell/README new file +37 -0
new file mode 100644
index 0000000000..88a136b32c
@@ -0,0 +1,37 @@
+U-Boot for Google's i.MX8MQ Phanbell board
+
+Quick Start
+===========
+- Build the ARM Trusted firmware binary
+- Get ddr and hdmi firmware
+- Build U-Boot
+- Boot
+
+Get and Build the ARM Trusted firmware
+======================================
+Note: srctree is U-Boot source directory
+Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
+branch: imx_4.19.35_1.0.0
+$ make PLAT=imx8mq bl31
+$ cp build/imx8mq/release/bl31.bin $(builddir)
+
+Get the ddr and hdmi firmware
+=============================
+$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin
+$ chmod +x firmware-imx-7.9.bin
+$ ./firmware-imx-7.9.bin
+$ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir)
+$ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
+
+Build U-Boot
+============
+$ export CROSS_COMPILE=aarch64-linux-gnu-
+$ make imx8mq_phanbell_defconfig
+$ make flash.bin
+
+Burn the flash.bin to MicroSD card offset 33KB
+$sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=33
+
+Boot
+====
+Set Boot switch SW1: 1011 to boot from Micro SD.
board/google/imx8mq_phanbell/imx8mq_phanbell.c new file +100 -0

100 lines not on this page · raw message

board/google/imx8mq_phanbell/lpddr4_timing_1g.c new file +1731 -0

1,731 lines not on this page · raw message

board/google/imx8mq_phanbell/spl.c new file +180 -0

180 lines not on this page · raw message

configs/imx8mq_phanbell_defconfig new file +52 -0

52 lines not on this page · raw message

include/configs/imx8mq_phanbell.h new file +216 -0

216 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 arm: imx: Add support for Google's Coral Dev Board

Thanks Alifer!

I just followed the README, and it working very well.

Congratulations!

Tested-by marcofrk at gmail.com
reviewer
#2 lore raw

PATCH 1/1 arm: imx: Add support for Google's Coral Dev Board

Hi Marco,

Quoted 8 lines · Marco Franchi

Thanks Alifer!

I just followed the README, and it working very well.

Congratulations!

Tested-by marcofrk at gmail.com

Thanks for testing.

The correct style for the Tested-by tag is:

I think Stefano will pick this patch and could fix the tag while applying it.

Thanks

#3 lore raw

PATCH 1/1 arm: imx: Add support for Google's Coral Dev Board

Quoted 12 lines · Fabio Estevam

Hi Marco,

Quoted 8 lines · Marco Franchi

Thanks Alifer!

I just followed the README, and it working very well.

Congratulations!

Tested-by marcofrk at gmail.com
Quoted 8 lines

Thanks for testing.

The correct style for the Tested-by tag is:

I think Stefano will pick this patch and could fix the tag while applying it.

Yes, I will fix myself.

Stefano

Quoted 2 lines

Thanks

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
=====================================================================
#4 lore raw

PATCH 1/1 arm: imx: Add support for Google's Coral Dev Board

In reply to Alifer Moraes
Quoted 9 lines

Add initial support for Google's Coral Dev Board based on i.MX8MQ.
https://coral.ai/products/dev-board
The Phanbell naming has been used here to match the naming convention used in Google's U-Boot source tree:
https://coral.googlesource.com/uboot-imx/

Tested-by marcofrk at gmail.com

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