From d12618b9279647e10055b9d086e454823496b0ff Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Tue, 10 Jan 2023 17:18:08 -0300 Subject: 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. Signed-off-by: Fabio Estevam Reviewed-by: Tom Rini --- doc/board/cloos/imx8mm_phg.rst | 55 ++++++++++++++++++++++++++++++++++++++++++ doc/board/cloos/index.rst | 9 +++++++ doc/board/index.rst | 1 + 3 files changed, 65 insertions(+) create mode 100644 doc/board/cloos/imx8mm_phg.rst create mode 100644 doc/board/cloos/index.rst (limited to 'doc') diff --git a/doc/board/cloos/imx8mm_phg.rst b/doc/board/cloos/imx8mm_phg.rst new file mode 100644 index 00000000000..173f02d4aed --- /dev/null +++ b/doc/board/cloos/imx8mm_phg.rst @@ -0,0 +1,55 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +Cloos i.MX8MM PHG board +======================= + +U-Boot for the Cloos i.MX8MM PHG board + +Quick Start +----------- + +- Get and Build the ARM Trusted firmware +- Get the DDR firmware +- Build U-Boot +- Flash U-Boot into the eMMC + +Get and Build the ARM Trusted firmware +-------------------------------------- + +Note: builddir is U-Boot build directory (source directory for in-tree builds) +Get ATF from: https://github.com/nxp-imx/imx-atf +branch: lf_v2.6 + +.. code-block:: bash + + $ make PLAT=imx8mm bl31 + $ cp build/imx8mm/release/bl31.bin $(builddir) + +Get the DDR firmware +-------------------- + +.. code-block:: bash + + $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin + $ chmod +x firmware-imx-8.9.bin + $ ./firmware-imx-8.9 + $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir) + +Build U-Boot +------------ + +.. code-block:: bash + + $ export CROSS_COMPILE=aarch64-poky-linux- + $ make imx8mm_phg_defconfig + $ make + +Flash U-Boot into the eMMC +-------------------------- + +Program flash.bin to the eMMC at offset 33KB: + +.. code-block:: bash + + $ ums 0 mmc 0 + $ sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=33; sync diff --git a/doc/board/cloos/index.rst b/doc/board/cloos/index.rst new file mode 100644 index 00000000000..02c84152db6 --- /dev/null +++ b/doc/board/cloos/index.rst @@ -0,0 +1,9 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +Cloos +===== + +.. toctree:: + :maxdepth: 2 + + imx8mm_phg diff --git a/doc/board/index.rst b/doc/board/index.rst index 53edd5301f2..1e628e99e63 100644 --- a/doc/board/index.rst +++ b/doc/board/index.rst @@ -16,6 +16,7 @@ Board-specific doc atmel/index broadcom/index bsh/index + cloos/index congatec/index coreboot/index emulation/index -- cgit v1.3.1 From f0f461287eff2a797fefd845aa746df17f5b0624 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Thu, 12 Jan 2023 21:52:23 -0300 Subject: imx: Suggest the NXP ATF github repo As explained in the text at the bottom of the page https://source.codeaurora.org/external/imx/imx-atf: "QUIC repositories on this site will not receive any updates after March 31, 2022, and will be deleted on March 31, 2023." Point to the NXP ATF github repo instead. Signed-off-by: Fabio Estevam Reviewed-by: Oliver Graute Reviewed-by: Marcel Ziswiler Reviewed-by: Frieder Schrempf --- board/beacon/imx8mm/README | 2 +- board/beacon/imx8mn/README | 2 +- board/freescale/imx8qm_mek/README | 2 +- board/gateworks/venice/README | 2 +- board/google/imx8mq_phanbell/README | 2 +- board/ronetix/imx8mq-cm/README | 2 +- doc/board/advantech/imx8qm-rom7720-a1.rst | 2 +- doc/board/congatec/cgtqmx8.rst | 2 +- doc/board/kontron/sl-mx8mm.rst | 2 +- doc/board/nxp/imx8mm_evk.rst | 2 +- doc/board/nxp/imx8mn_evk.rst | 2 +- doc/board/nxp/imx8mp_evk.rst | 2 +- doc/board/nxp/imx8mq_evk.rst | 2 +- doc/board/nxp/imx8qxp_mek.rst | 2 +- doc/board/toradex/apalis-imx8.rst | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) (limited to 'doc') diff --git a/board/beacon/imx8mm/README b/board/beacon/imx8mm/README index c65acef22d8..32b24bc03eb 100644 --- a/board/beacon/imx8mm/README +++ b/board/beacon/imx8mm/README @@ -11,7 +11,7 @@ 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 clone https://github.com/nxp-imx/imx-atf $ git lf-5.10.72-2.2.0 $ make PLAT=imx8mm bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree) diff --git a/board/beacon/imx8mn/README b/board/beacon/imx8mn/README index 788ab1093b4..49da03c8d83 100644 --- a/board/beacon/imx8mn/README +++ b/board/beacon/imx8mn/README @@ -11,7 +11,7 @@ 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 clone https://github.com/nxp-imx/imx-atf $ git lf-5.10.72-2.2.0 $ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mn/release/bl31.bin $(srctree) diff --git a/board/freescale/imx8qm_mek/README b/board/freescale/imx8qm_mek/README index b1a4c6cc822..47fae3d2843 100644 --- a/board/freescale/imx8qm_mek/README +++ b/board/freescale/imx8qm_mek/README @@ -12,7 +12,7 @@ Quick Start Get and Build the ARM Trusted firmware ====================================== -$ git clone https://source.codeaurora.org/external/imx/imx-atf +$ git clone https://github.com/nxp-imx/imx-atf $ cd imx-atf/ $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga $ make PLAT=imx8qm bl31 diff --git a/board/gateworks/venice/README b/board/gateworks/venice/README index 9f3a250bb66..ea9b8348a7d 100644 --- a/board/gateworks/venice/README +++ b/board/gateworks/venice/README @@ -10,7 +10,7 @@ Quick Start Get and Build the ARM Trusted firmware ====================================== -$ git clone https://source.codeaurora.org/external/imx/imx-atf +$ git clone https://github.com/nxp-imx/imx-atf $ git checkout imx_5.4.47_2.2.0 $ make PLAT=imx8mm CROSS_COMPILE=aarch64-linux-gnu- bl31 $ cp build/imx8mm/release/bl31.bin . diff --git a/board/google/imx8mq_phanbell/README b/board/google/imx8mq_phanbell/README index 88a136b32c8..7c63fc52a73 100644 --- a/board/google/imx8mq_phanbell/README +++ b/board/google/imx8mq_phanbell/README @@ -10,7 +10,7 @@ Quick Start 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 +Get ATF from: https://github.com/nxp-imx/imx-atf branch: imx_4.19.35_1.0.0 $ make PLAT=imx8mq bl31 $ cp build/imx8mq/release/bl31.bin $(builddir) diff --git a/board/ronetix/imx8mq-cm/README b/board/ronetix/imx8mq-cm/README index 1d43fa5f4f8..c57ff2477ea 100644 --- a/board/ronetix/imx8mq-cm/README +++ b/board/ronetix/imx8mq-cm/README @@ -9,7 +9,7 @@ Quick Start Get and Build the ARM Trusted firmware ====================================== -$ git clone https://source.codeaurora.org/external/imx/imx-atf +$ git clone https://github.com/nxp-imx/imx-atf $ cd imx-atf $ git checkout imx_4.19.35_1.0.0 $ make PLAT=imx8mq bl31 diff --git a/doc/board/advantech/imx8qm-rom7720-a1.rst b/doc/board/advantech/imx8qm-rom7720-a1.rst index 953cf01fde4..13ea2eb19e4 100644 --- a/doc/board/advantech/imx8qm-rom7720-a1.rst +++ b/doc/board/advantech/imx8qm-rom7720-a1.rst @@ -19,7 +19,7 @@ Get and Build the ARM Trusted firmware .. code-block:: bash - $ git clone https://source.codeaurora.org/external/imx/imx-atf + $ git clone https://github.com/nxp-imx/imx-atf $ cd imx-atf/ $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga $ make PLAT=imx8qm bl31 diff --git a/doc/board/congatec/cgtqmx8.rst b/doc/board/congatec/cgtqmx8.rst index 16711a844d5..a970cb82a12 100644 --- a/doc/board/congatec/cgtqmx8.rst +++ b/doc/board/congatec/cgtqmx8.rst @@ -19,7 +19,7 @@ Get and Build the ARM Trusted firmware .. code-block:: bash - $ git clone https://source.codeaurora.org/external/imx/imx-atf + $ git clone https://github.com/nxp-imx/imx-atf $ cd imx-atf/ $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga $ make PLAT=imx8qm bl31 diff --git a/doc/board/kontron/sl-mx8mm.rst b/doc/board/kontron/sl-mx8mm.rst index 702db60fe38..09c50aa8b16 100644 --- a/doc/board/kontron/sl-mx8mm.rst +++ b/doc/board/kontron/sl-mx8mm.rst @@ -40,7 +40,7 @@ There are two sources for the TF-A. Mainline and NXP. Get the one you prefer **NXP's imx-atf** -1. Get TF-A from: https://github.com/nxp-imx/imx-atf, branch: lf_v2.6 +1. Get TF-A from: https://github.com/nxp-imx/imx-atf, branch: imx_5.4.70_2.3.0 2. Build .. code-block:: bash diff --git a/doc/board/nxp/imx8mm_evk.rst b/doc/board/nxp/imx8mm_evk.rst index 5b178d703e9..327ce6e49cc 100644 --- a/doc/board/nxp/imx8mm_evk.rst +++ b/doc/board/nxp/imx8mm_evk.rst @@ -17,7 +17,7 @@ Get and Build the ARM Trusted firmware -------------------------------------- Note: builddir is U-Boot build directory (source directory for in-tree builds) -Get ATF from: https://source.codeaurora.org/external/imx/imx-atf +Get ATF from: https://github.com/nxp-imx/imx-atf branch: imx_5.4.47_2.2.0 .. code-block:: bash diff --git a/doc/board/nxp/imx8mn_evk.rst b/doc/board/nxp/imx8mn_evk.rst index c45bb7bac7a..4f225ea6601 100644 --- a/doc/board/nxp/imx8mn_evk.rst +++ b/doc/board/nxp/imx8mn_evk.rst @@ -17,7 +17,7 @@ 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 +Get ATF from: https://github.com/nxp-imx/imx-atf branch: imx_5.4.47_2.2.0 .. code-block:: bash diff --git a/doc/board/nxp/imx8mp_evk.rst b/doc/board/nxp/imx8mp_evk.rst index b996ae055e6..e7cc7b396b5 100644 --- a/doc/board/nxp/imx8mp_evk.rst +++ b/doc/board/nxp/imx8mp_evk.rst @@ -16,7 +16,7 @@ Quick Start Get and Build the ARM Trusted firmware -------------------------------------- -Get ATF from: https://source.codeaurora.org/external/imx/imx-atf +Get ATF from: https://github.com/nxp-imx/imx-atf branch: imx_5.4.70_2.3.0 .. code-block:: bash diff --git a/doc/board/nxp/imx8mq_evk.rst b/doc/board/nxp/imx8mq_evk.rst index aa1ecfb47ad..4b0624e7e86 100644 --- a/doc/board/nxp/imx8mq_evk.rst +++ b/doc/board/nxp/imx8mq_evk.rst @@ -17,7 +17,7 @@ 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 +Get ATF from: https://github.com/nxp-imx/imx-atf branch: imx_5.4.47_2.2.0 .. code-block:: bash diff --git a/doc/board/nxp/imx8qxp_mek.rst b/doc/board/nxp/imx8qxp_mek.rst index 708db1952e9..bdd38368f1a 100644 --- a/doc/board/nxp/imx8qxp_mek.rst +++ b/doc/board/nxp/imx8qxp_mek.rst @@ -19,7 +19,7 @@ Get and Build the ARM Trusted firmware .. code-block:: bash - $ git clone https://source.codeaurora.org/external/imx/imx-atf + $ git clone https://github.com/nxp-imx/imx-atf $ cd imx-atf/ $ git checkout origin/imx_4.19.35_1.1.0 -b imx_4.19.35_1.1.0 $ make PLAT=imx8qx bl31 diff --git a/doc/board/toradex/apalis-imx8.rst b/doc/board/toradex/apalis-imx8.rst index 29593faf1a0..849b1172bd4 100644 --- a/doc/board/toradex/apalis-imx8.rst +++ b/doc/board/toradex/apalis-imx8.rst @@ -18,7 +18,7 @@ Get and Build the ARM Trusted Firmware .. code-block:: bash - $ git clone -b imx_4.14.78_1.0.0_ga https://source.codeaurora.org/external/imx/imx-atf + $ git clone -b imx_4.14.78_1.0.0_ga https://github.com/nxp-imx/imx-atf $ cd imx-atf/ $ make PLAT=imx8qm bl31 -- cgit v1.3.1