imx: Add support for i.MX8MN Beacon EmbeddedWorks devkit.
Subsystems (3)
PATCH 1/1 imx: Add support for i.MX8MN Beacon EmbeddedWorks devkit.
Beacon EmbeddedWorks, formerly known as Logic PD, is releasing a devkit based on the i.MX8M Nano SoC consisting of baseboard + SOM. It is nearly identical to the i.MX8M Mini SOM already released.
It supports eMMC on the SOM, microSD on the baseboard, various GPIO, the PINCTRL, and UART.
Signed-off-by Adam Ford <[email protected]>
arch/arm/dts/Makefile +1 -0
@@ -753,6 +753,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \ imx8mn-ddr4-evk.dtb \ imx8mq-evk.dtb \ imx8mm-beacon-kit.dtb \ + imx8mn-beacon-kit.dtb \ imx8mq-phanbell.dtb \ imx8mp-evk.dtb \ imx8mq-pico-pi.dtb
arch/arm/dts/imx8mn-beacon-baseboard.dtsi new file +220 -0
220 lines not on this page · raw message
arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi new file +128 -0
128 lines not on this page · raw message
arch/arm/dts/imx8mn-beacon-kit.dts new file +19 -0
@@ -0,0 +1,19 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2020 Compass Electronics Group, LLC + */ + +/dts-v1/; + +#include "imx8mn.dtsi" +#include "imx8mn-beacon-som.dtsi" +#include "imx8mn-beacon-baseboard.dtsi" + +/ { + model = "Beacon EmbeddedWorks i.MX8M Nano Development Kit"; + compatible = "beacon,imx8mn-beacon-kit", "fsl,imx8mn"; + + chosen { + stdout-path = &uart2; + }; +};
arch/arm/dts/imx8mn-beacon-som.dtsi new file +390 -0
390 lines not on this page · raw message
arch/arm/mach-imx/imx8m/Kconfig +8 -1
@@ -67,11 +67,17 @@ config TARGET_VERDIN_IMX8MM select IMX8M_LPDDR4 config TARGET_IMX8MM_BEACON - bool "imx8mm Beacon Embedded devkit" + bool "imx8m Mini Beacon Embedded devkit" select IMX8MM select SUPPORT_SPL select IMX8M_LPDDR4 +config TARGET_IMX8MN_BEACON + bool "imx8m Nano Beacon Embedded devkit" + select IMX8MN + select SUPPORT_SPL + select IMX8M_LPDDR4 + endchoice source "board/freescale/imx8mq_evk/Kconfig"
@@ -82,5 +88,6 @@ source "board/google/imx8mq_phanbell/Kconfig" source "board/technexion/pico-imx8mq/Kconfig" source "board/toradex/verdin-imx8mm/Kconfig" source "board/beacon/imx8mm/Kconfig" +source "board/beacon/imx8mn/Kconfig" endif
board/beacon/imx8mn/Kconfig new file +14 -0
@@ -0,0 +1,14 @@ +if TARGET_IMX8MN_BEACON + +config SYS_BOARD + default "imx8mn" + +config SYS_VENDOR + default "beacon" + +config SYS_CONFIG_NAME + default "imx8mn_beacon" + +source "board/freescale/common/Kconfig" + +endif
board/beacon/imx8mn/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +i.MX8MN Beacon Kit +M: Adam Ford<[email protected]> +S: Maintained +F: board/beacon/imx8mn/ +F: include/configs/imx8mn_beacon.h +F: configs/imx8mn_beacon_defconfig
board/beacon/imx8mn/Makefile new file +12 -0
@@ -0,0 +1,12 @@ +# +# Copyright 2020 Compass Electronics Group, LLC +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += imx8mn_beacon.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +obj-y += lpddr4_timing.o +endif
board/beacon/imx8mn/README new file +38 -0
@@ -0,0 +1,38 @@ +U-Boot for the Beacon EmbeddedWorks i.MX8M Nano Devkit + +Quick Start +=========== +- Build the ARM Trusted firmware binary +- Get lpddr firmware +- Build U-Boot +- Boot + +Get and Build the ARM Trusted firmware +====================================== +Note: $(srctree) is U-Boot source directory + +$ git clone https://source.codeaurora.org/external/imx/imx-atf +$ git checkout imx_5.4.24_2.1.0 +$ make PLAT=imx8mn bl31 ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- +$ cp build/imx8mm/release/bl31.bin $(srctree) + +Get the DDR firmware +==================== +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin +$ chmod +x firmware-imx-8.5.bin +$ ./firmware-imx-8.5 +$ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) + +Build U-Boot +============ +$ make imx8mn_beacon_defconfig +$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x960000 + +Burn U-Boot to microSD Card +=========================== +$ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 + +Boot +==== +Set Boot switch to SD boot +S17 (1:8) 1100xxxx
board/beacon/imx8mn/imx8mn_beacon.c new file +25 -0
@@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright 2020 Compass Electronics Group, LLC +*/ + +#include <common.h> +#include <env.h> +#include <init.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +return 0 ; +} + +int board_mmc_get_env_dev (int devno) +{ +return devno; +} + +int board_late_init (void ) +{ +return 0 ; +}
board/beacon/imx8mn/lpddr4_timing.c new file +1431 -0
1,431 lines not on this page · raw message
board/beacon/imx8mn/spl.c new file +116 -0
116 lines not on this page · raw message
configs/imx8mn_beacon_defconfig new file +105 -0
105 lines not on this page · raw message
include/configs/imx8mm_beacon.h +1 -1
@@ -61,7 +61,7 @@"booti ${loadaddr} - ${fdt_addr}; " \"else " \"echo WARN: Cannot load the DT; " \ -"fi; " \ +"fi;\0" \"netargs=setenv bootargs console=${console} " \"root=/dev/nfs " \"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
include/configs/imx8mn_beacon.h new file +145 -0
145 lines not on this page · raw message
Signature · 1 line
2.25.1