imx8mm-phg: Add board support
Subsystems (3)
PATCH v3 1/1 imx8mm-phg: Add board support
Add the board support for the i.MX8MM Cloos PHG board.
This board uses a imx8mm-tqma8mqml SoM from TQ-Group.
imx8mm-phg.dts and imx8mm-tqma8mqml.dtsi are taken directly from Linux 6.2-rc3.
---
Changes since v2:
- Convert to a text environment file (Tom).
arch/arm/dts/Makefile | 1 + arch/arm/dts/imx8mm-phg-u-boot.dtsi | 137 ++ arch/arm/dts/imx8mm-phg.dts | 266 +++ arch/arm/dts/imx8mm-tqma8mqml.dtsi | 341 +++ arch/arm/mach-imx/imx8m/Kconfig | 8 + board/cloos/imx8mm_phg/Kconfig | 15 + board/cloos/imx8mm_phg/MAINTAINERS | 6 + board/cloos/imx8mm_phg/Makefile | 12 + board/cloos/imx8mm_phg/imx8mm_phg.c | 50 + board/cloos/imx8mm_phg/imx8mm_phg.env | 9 + .../cloos/imx8mm_phg/imximage-8mm-lpddr4.cfg | 8 + board/cloos/imx8mm_phg/lpddr4_timing.c | 1846 +++++++++++++++++ board/cloos/imx8mm_phg/spl.c | 147 ++ configs/imx8mm_phg_defconfig | 120 ++ doc/board/cloos/imx8mm_phg.rst | 55 + doc/board/cloos/index.rst | 9 + doc/board/index.rst | 1 + include/configs/imx8mm_phg.h | 41 + 18 files changed, 3072 insertions(+) create mode 100644 arch/arm/dts/imx8mm-phg-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mm-phg.dts create mode 100644 arch/arm/dts/imx8mm-tqma8mqml.dtsi create mode 100644 board/cloos/imx8mm_phg/Kconfig create mode 100644 board/cloos/imx8mm_phg/MAINTAINERS create mode 100644 board/cloos/imx8mm_phg/Makefile create mode 100644 board/cloos/imx8mm_phg/imx8mm_phg.c create mode 100644 board/cloos/imx8mm_phg/imx8mm_phg.env create mode 100644 board/cloos/imx8mm_phg/imximage-8mm-lpddr4.cfg create mode 100644 board/cloos/imx8mm_phg/lpddr4_timing.c create mode 100644 board/cloos/imx8mm_phg/spl.c create mode 100644 configs/imx8mm_phg_defconfig create mode 100644 doc/board/cloos/imx8mm_phg.rst create mode 100644 doc/board/cloos/index.rst create mode 100644 include/configs/imx8mm_phg.h
arch/arm/dts/Makefile +1 -0
@@ -955,6 +955,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \ imx8mm-kontron-bl.dtb \ imx8mm-kontron-bl-osm-s.dtb \ imx8mm-mx8menlo.dtb \ + imx8mm-phg.dtb \ imx8mm-venice.dtb \ imx8mm-venice-gw71xx-0x.dtb \ imx8mm-venice-gw72xx-0x.dtb \
arch/arm/dts/imx8mm-phg-u-boot.dtsi new file +137 -0
137 lines not on this page · raw message
arch/arm/dts/imx8mm-phg.dts new file +266 -0
266 lines not on this page · raw message
arch/arm/dts/imx8mm-tqma8mqml.dtsi new file +341 -0
341 lines not on this page · raw message
arch/arm/mach-imx/imx8m/Kconfig +8 -0
@@ -94,6 +94,13 @@ config TARGET_IMX8MM_MX8MENLO select SUPPORT_SPL select IMX8M_LPDDR4 +config TARGET_IMX8MM_PHG + bool "i.MX8MM PHG board" + select BINMAN + select IMX8MM + select SUPPORT_SPL + select IMX8M_LPDDR4 + config TARGET_IMX8MM_VENICE bool "Support Gateworks Venice iMX8M Mini module" select BINMAN
@@ -305,6 +312,7 @@ source "board/advantech/imx8mp_rsb3720a1/Kconfig" source "board/beacon/imx8mm/Kconfig" source "board/beacon/imx8mn/Kconfig" source "board/bsh/imx8mn_smm_s2/Kconfig" +source "board/cloos/imx8mm_phg/Kconfig" source "board/compulab/imx8mm-cl-iot-gate/Kconfig" source "board/data_modul/imx8mm_edm_sbc/Kconfig" source "board/dhelectronics/dh_imx8mp/Kconfig"
board/cloos/imx8mm_phg/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_IMX8MM_PHG + +config SYS_BOARD + default "imx8mm_phg" + +config SYS_VENDOR + default "cloos" + +config SYS_CONFIG_NAME + default "imx8mm_phg" + +config IMX_CONFIG + default "board/cloos/imx8mm_phg/imximage-8mm-lpddr4.cfg" + +endif
board/cloos/imx8mm_phg/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +i.MX8MM PHG BOARD +M: Fabio Estevam <[email protected]> +S: Maintained +F: board/cloos/imx8mm_phg/ +F: include/configs/imx8mm_phg.h +F: configs/imx8mm_phg_defconfig
board/cloos/imx8mm_phg/Makefile new file +12 -0
@@ -0,0 +1,12 @@ +# +# Copyright 2018 NXP +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += imx8mm_phg.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing.o +endif
board/cloos/imx8mm_phg/imx8mm_phg.c new file +50 -0
50 lines not on this page · raw message
board/cloos/imx8mm_phg/imx8mm_phg.env new file +8 -0
@@ -0,0 +1,8 @@ +fdt_addr_r=0x43000000 +mmcdev=0 +fdtfile=imx8mm-phg.dtb +mmcargs=setenv bootargs console=ttymxc1,115200 root=/dev/mmcblk${mmcdev}p${mmcpart} rw rootwait quiet +bootcmd=env exists mmcpart || setenv mmcpart 1; run mmcargs; \ + mmc dev ${mmcdev}; load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/Image; \ + load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} boot/${fdtfile}; \ + booti ${loadaddr} - ${fdt_addr_r}
board/cloos/imx8mm_phg/imximage-8mm-lpddr4.cfg new file +8 -0
@@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2021 NXP + */ + + +BOOT_FROM sd +LOADER u-boot-spl-ddr.bin 0x7E1000
board/cloos/imx8mm_phg/lpddr4_timing.c new file +1846 -0
1,846 lines not on this page · raw message
board/cloos/imx8mm_phg/spl.c new file +147 -0
147 lines not on this page · raw message
configs/imx8mm_phg_defconfig new file +120 -0
120 lines not on this page · raw message
doc/board/cloos/imx8mm_phg.rst new file +55 -0
17 lines not on this page · raw message
include/configs/imx8mm_phg.h new file +41 -0
41 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.25.1
Part of the diff is not shown here. View the raw message.
Quoted 8 lines · Fabio Estevam
Add the board support for the i.MX8MM Cloos PHG board.
This board uses a imx8mm-tqma8mqml SoM from TQ-Group.
imx8mm-phg.dtsandimx8mm-tqma8mqml.dtsiare taken directly from Linux 6.2-rc3.Signed-off-by Fabio Estevam <[email protected]>
Signature · 1 line
Tom
PATCH v3 1/1 imx8mm-phg: Add board support
In reply to Fabio EstevamQuoted 7 lines
Add the board support for the i.MX8MM Cloos PHG board.
This board uses a imx8mm-tqma8mqml SoM from TQ-Group.
imx8mm-phg.dtsandimx8mm-tqma8mqml.dtsiare taken directly from Linux 6.2-rc3.Signed-off-by Fabio Estevam <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================