Age | Commit message (Collapse) | Author |
|
And select the correct devicetree to load.
Related-to: ELB-1254
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
This patch basically just enables both RXC and TXC delay lines in the
PHY. This will compensate the missing delay from the MAC. Other skew
settings are not needed as the traces on board are routed exactly the
same length
Related-to: ELB-1299
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Set the Ethernet PHY's RGMII skew registers according to the needed
skew.
Related-to: ELB-1970
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
DDR calibration created with mscale_ddr_tool_v210_setup.exe using
MX8M_Mini_LPDDR4_RPA_v14 Verdin iMX8MM V1.0.xlsx as of 1. Nov. 2019.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
This commit adds initial 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 either booting from the on-module eMMC or may be used for
recovery purpose using the universal update utility (uuu) aka mfgtools
3.0.
Functionality wise the following is known to be working:
- eMMC, 8-bit and 4-bit MMC/SD card slots
- Gigabit Ethernet
- GPIOs
- I2C
- USB_1 peripheral: fastboot or ums
- USB_2 host: USB mass storage
To prepare the program image for eMMC fastboot using imx-mkimage and
subsequently flash it using U-Boot proceed as follows:
cd imx-mkimage/
make SOC=iMX8MM flash_evk_emmc_fastboot
load mmc 1:1 $loadaddr flash.bin
setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200
mmc dev 0 1
mmc write ${loadaddr} 0x2 ${blkcnt}
To prepare the program image for use with USB recovery aka serial
downloader using imx-mkimage and subsequently download using uuu
with an uuu.auto script proceed as follows:
cd imx-mkimage/
make SOC=iMX8MM flash_evk
uuu_version 1.3.34
SDP: boot -f flash.bin
CFG: SDPU: -vid 0x0525 -pid 0xb4a4
SDPU: delay 1000
SDPU: write -f flash.bin -offset 0x57c00
SDPU: jump
Fusing i.MX 8MM SoC and configuring eMMC for fastboot (already done
during manufacturing):
fuse prog 1 3 0x100020d6 (BT_FUSE_SEL, eMMC boot, SD1, fast boot, 4-bit DDR, high speed, 1.8V)
fuse prog 2 2 0x00000001 (enable boot ack)
mmc bootbus 0 1 0 2 (4-bit, reset bus width, DDR)
mmc partconf 0 1 1 0 (booting from boot area partition 1, send acknowledge)
SD manufaccture boot:
SD manufacture boot only works as long as the module is un-fused and
SD_1_PWR_EN is bypassed on the carrier board.
cd imx-mkimage/
make SOC=iMX8MM flash_evk
sudo dd if=iMX8M/flash.bin of=/dev/mmcblk0 bs=1024 seek=33
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Add configs to support evk_imx8mm 4GB DDR board. The 4GB DDR will
be split into two banks, one is 3GB (0x4000_0000~0xffff_0000) and
another is 1GB(0x1_0000_0000~0x1_4000_0000).
Test: build and boot with or without trusty.
Change-Id: I02f6465fc5709b15fd76820edb846452d011dd56
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit e7db3f3b68bf792f7df5c113c385ebecd468f6ce)
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix CONFIG_TARGET_COLIBRI_IMX8QXP vs. CONFIG_TARGET_COLIBRI_IMX8X
ifdefs.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Initial board support for Apalis iMX8QXP using a copy of Colibri iMX8QXP.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Toradex will use product-id 2600 upwards as id's for prototypes. This
commit adds this functionality to the config block.
The Apalis iMX8X is as well added in the same commit as it is the first
prototype and the first prodid in that range.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
|
|
Make sure the config block information are passed to the kernel
using the device tree properties toradex,product-id, board-rev
and serial-number.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|
Re-sync with mainline which fixes missing Apalis iMX8 and Colibri iMX8X
SKU and their interactive handling.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Improve QP vs. QM resp. DX vs. QXP detection based on core disable
fuses.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Implement proof of concept 1 GB resp. 2 GB vs. 2 GB resp. 4 GB DDR SKU
handling based on fuses indicating SoC being i.MX 8QP resp. 8DX vs. 8QM
resp. 8QXP. This overrides the newly introduced weak
board_mem_get_layout() function.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Make sure the config block information are passed to the kernel
using the device tree properties toradex,product-id, board-rev
and serial-number.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
These are now configured out of the device tree.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Clean-up board file.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Adjust copyright/licensing headers e.g. universally using SPDX license
identifier.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Fix Ethernet functionality. The FEC clock on i.MX 8X really has an
additional by 2 divider plus our design requires the ENET0_RCLK50M_OUT
on the ENET0_RGMII_TXC pin to be turned on for the Micrel PHY.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix USB device aka UMS as well as USB host functionality.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
In wake of future PMIC silicon version changes, make sure complete PMIC
information is printed upon boot.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Clean-up board file synching with i.MX 8QuadXPlus MEK board one as
well.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Adjust copyright/licensing headers e.g. universally using SPDX license
identifier.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
This also enables pullups on the uart forceoff pins.
The UART transceivers on an Iris carrier board can be disabled by
controlling SODIMM pins 102 and/or 104. Make sure that the pins by
default have pullups to have the debug UART working.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit eb0ed0e4283385700db1e5080d78f9a2684f98a5)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 3a5cc1cf85b8e22da78d794a2d71c03490f500b6)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit cba518b4bbe4b9dfccb21ffe3cd0929c1a420719)
(cherry picked from commit 5721e405c34985f5faa1e6ff4e0d3ca32dffa6e5)
|
|
Note that this requires the SCFW in a version which provides access
to the PMIC I2C. Something which the regular SCFW should not do.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 582a98a218dab6ac5a13ebd1cbd7a16e4b8305f3)
(cherry picked from commit 906059a7abf413bc165101812fb916743dd8eee7)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 6557f1c6c8f5c5e6a5585459ab77e3d994ffff81)
(cherry picked from commit 6efbcb8cd6740e60fc53f9033d60cc27f62b3c74)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 969f430f983d602afd83b6dd75b299e51463eae9)
(cherry picked from commit 2963361493e0f3df76f3a25202a56a76e69fd63f)
|
|
Initial board support for Colibri iMX8QXP using a copy of Apalis iMX8.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 62f0f03e1acb4bb6b0fcca8d4e9bd4d2df04ad33)
(cherry picked from commit be14c3ea1850e2614883c86b62fd1c3a1828eac2)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 200ed432e13e93c4c094031fe4d4481998227139)
(cherry picked from commit ba4474ab3cf4ff30ebcfa58b15b5f95746346d07)
|
|
Add support for interactive recovery of Apalis iMX8 QuadMax
config block.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 70cf26d9f5edcb6de6b2b70f1bf6a821e46be3dd)
(cherry picked from commit afc3024a826e61dc0ecc5d55b8dea96544ca9487)
(cherry picked from commit b15393500e633a40319c5f8cf3ad02010f4acddd)
(cherry picked from commit 5ada977a2dd9240d2dd071468d310af79379abfd)
|
|
Add an optional -y parameter to 'cfgblock create’ to simplify
automation.
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit d909b68d7f9da189a16e3ead0a6454b715201e23)
(cherry picked from commit ace5cf96413d3c736148dcecd1481e4249b7c5f1)
(cherry picked from commit 31091506e79e4924f47bc20b1830d6beef9bd1d7)
(cherry picked from commit 674ffe96fb6d9264f2e9019c8d26fce5fb3588e3)
|
|
If the module is in serial downloader mode, we do no longer read the
environment from eMMC. Therefor, the eMMC is unitialized when trying
to read the config block. Use mmc_init to initialize the selected
MMC device before using it.
Note: In case the MMC has already been initialized, the mmc_init
detects that and returns immediately.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Conflicts:
board/toradex/common/configblock.c
(cherry picked from commit 0520b532d77d238be8015d3041a95188e47945cc)
(cherry picked from commit 3cb5f6450c39678a6361620bd45c423a503895cd)
(cherry picked from commit 79d3008acaebc0d33ba8fc21ffe46f058416d4a3)
Conflicts:
board/toradex/common/tdx-cfg-block.c
(cherry picked from commit cdcc3a8660fa4254d6d3ca6932a7cd599c0f1662)
|
|
Add Toradex config block support for i.MX8QM.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 18426b50681e6cd64ab5977f0ba84efd3f7c4495)
(cherry picked from commit c6d0e1042170d273a5b5434abe867213155d5582)
(cherry picked from commit ae31e946da33510a352795de09aa1c0ea9fc8280)
(cherry picked from commit 0798437c661ef3ca11f84fb45b4cce5b7ac145d9)
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit c97ae21d2e87f673e7f249f30df154b2bf5472fa)
(cherry picked from commit e82aab70ddcc0ea46e342980648fd23e69396b94)
(cherry picked from commit efc8eb53cc3184c88d4b76459cd585fcd594e118)
(cherry picked from commit f06fc58f6e30607475dab127cdaa525417022c36)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 3f5807fa41c1744f6d4a9f0b702fb01a31fd73a7)
(cherry picked from commit 77471afdd9b663b775a2d2a1acc383767268e343)
(cherry picked from commit 2cb9fd05afebb14e594a27cb33c19919f39fd142)
(cherry picked from commit e351d2f491361f678d71f34c3857fb09775a12dd)
|
|
Remove GPIOs used on the validation board but not required on
Apalis iMX8.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 9a8a826591c490c0a11c4baeef31c73f482c0438)
(cherry picked from commit adf5a30588c4352fc78c59b0d0c04fd43c6dad25)
(cherry picked from commit b0cabfcfd6d5abd3f1a9d429acf3f44d5c76bb1d)
(cherry picked from commit 75abf4f9e22ba2e1b1673e2d0e72c926ab6578f2)
|
|
NXP LPUART1 is used as Apalis UART1, which is the main console
on our Linux BSP.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 360629c1fd6187de19d0f50feb85c725995e49cc)
(cherry picked from commit 63030dac6afc51d17b04d23ce41af4788f03717e)
(cherry picked from commit 7bbe1708e0cebf3432c234ea74f8d6fb632a023b)
(cherry picked from commit d58fa8f3247edc18bdbf716fa9a45bcf5fce9cb8)
|
|
Make sure that all pins connected to the Micrel KSZ9031 PHY
are muxed. Properly reset the PHY after all muxing has been
applied. This makes sure that strapping is not overwritten by
the SoC default mux (particularly it makes sure that CLK125_NDO
is not driven low during reset).
Make sure to not use CONFIG_DM_ETH as it seems to break ETH
support as is.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit f0a1ceb6f5e2ab3b3618190541b1e7a9fd4c1e4a)
(cherry picked from commit 8f6405070189a8744c2f6a9d9a6e041554fb9046)
(cherry picked from commit 6f24c637fd7725a27249d6a950f587134f30b97c)
(cherry picked from commit 1b3c97e1eb50a56066820596a6b1b83da465af7f)
|
|
The Apalis iMX8 module does not have PCA9557 GPIO controllers
on the module.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit c80b3bfbe693d5a8851129f4878d0cd3a7325d13)
(cherry picked from commit 898ae105703cd0019a542bc0a17649339c934fa6)
(cherry picked from commit 69d385444efa79d2909f772c4a4b404d1bd7274d)
(cherry picked from commit 0f5887d5b80f8535a7f422b73d7a0bf4a4e445af)
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit fa3d4f980a515b135778a74ce1b7476f61ef20d0)
(cherry picked from commit 2ee92bc1dd56b44343079a5474d0fc4e79f28f4a)
(cherry picked from commit 649afbe0aec4089112772a49a7e6f7d34c3741a7)
(cherry picked from commit 81591346d11ffdf9a2442ad976390ffe0e61abda)
|
|
Initial board support for Apalis iMX8 using a copy of NXP
iMX8QM ARM2 LPDDR4 board.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 68e401998ba0654292b7914b85433d8453202ec8)
(cherry picked from commit 6b9234fa1f5889f0eeecc6147afffbc859933c99)
(cherry picked from commit 0b7feded806717b4292615373ed6c018324b8ef5)
Conflicts:
arch/arm/cpu/armv8/imx8/Kconfig, file moved
(cherry picked from commit 393dd8dd4061833fcc3cfd85886d49160b515ce0)
|