summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2020-03-24apalis-imx8x: sync with MEK platformIgor Opaniuk
1. Enable CONFIG_SNVS_SEC_SC_AUTO by default 2. Move BOOTAUX_* defines to defconfig Related-to: ELB-2605 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-03-24apalis-imx8: sync with MEK platformIgor Opaniuk
1. Adding power-up of base board via SCFW 2. Moved BOOTAUX defines to defconfig Related-to: ELB-2605 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-03-23colibri-imx8qxp: sync with MEK platformIgor Opaniuk
1. Enable CONFIG_SNVS_SEC_SC_AUTO by default 2. Move BOOTAUX_* defines to defconfig Related-to: ELB-2605 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-03-16apalis-imx8: Fix hardware version detection in recovery modeMarcel Ziswiler
Make sure recent version detection implementation is also used during recovery mode. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-13apalis-imx8: Remove fdt_file env variablePhilippe Schenker
This variable is deprecated, therefore remove it. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-13apalis-imx8: Implement hardware version detectionPhilippe Schenker
And select the correct devicetree to load. Related-to: ELB-1254 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-10config: apalis-imx8x: Enable fec txc delayPhilippe Schenker
Related-to: ELB-1299 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit bad96834e65ae6364d8a9a8b3ba7756c61d6145c)
2020-03-10config: apalis-imx8: Enable FEC TXC delayPhilippe Schenker
Related-to: ELB-1299 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 3173b9aa17bc4c2580076376942a9ee1b6b8f636)
2020-03-10board: verdin-imx8mm: Add KSZ9131 phy skew settingsPhilippe Schenker
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> (cherry picked from commit 50e975e6ce4e4e88f8c5c943ef2ddc38b0a31997)
2020-03-10drivers: net: phy: micrel_ksz90x1.c: Add basic support for KSZ9131Philippe Schenker
This adds basic support for the new Micrel KSZ9131 phy. Related-to: ELB-1299 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit cc96ed419f7585db15855dd53046562aadece3fb) (cherry picked from commit 150e6b7f6c9c8342997245be50f3bc58df78aaf3)
2020-03-10net: phy: micrel: Use defines for PHY_IDs and MASKPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 28491c802d36accbb4d8562114ce8085ca53e1b0) (cherry picked from commit 9ee5759d22acc3406bca3b76cb24ed558b64d0df)
2020-03-05verdin-imx8: do not undef configs configured using KconfigMax Krummenacher
Do not undef CMD config defines which are set by Kconfig. This allows to enable those commands using Kconfig. (Taken from commit 26f0fb6c61e94f8ba52bcc0b4946d378e682ccff 'apalis-imx8: do not undef configs configured using Kconfig') Related-to: TOR-498 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05config: apalis-imx8: fix auto-negotiation timeout errorOleksandr Suvorov
Sometimes an ethernet PHY interface can’t complete auto-negotiation and returns “timeout” error. Overriding default timeout value fixes this issue. Related-to: #58999 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-03-05board: toradex: add verdin imx8mm 2gb wb it v1.0a module supportMax Krummenacher
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>
2020-03-05dt-bindings: pinctrl: imx8mm: add alternative uart muxingsMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05pins-imx8mm.h: add uart1 muxing on sai2 pinsMax Krummenacher
Copied from linux, branch nxp/imx_4.14.98_2.2.0 @ e6c2f6322962. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05config: apalis/colibri-imx8*: Add fdt_high variable without valuePhilippe Schenker
This will actually clear the value of a variable that is potentially still existing. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05apalis-imx8/x/colibri-imx8qxp: skip resource checkingMarcel Ziswiler
Define CONFIG_SKIP_RESOURCE_CHECING which skips the downstream proprietary resource checking preventing us from booting any kind of mainline device tree based Linux kernels. While at it also fix some indentations/whitespaces. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05include: apalis-imx8.h: change default devicetree filePhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8.h: change tdxargs to defargs for pci_nomsiPhilippe Schenker
tdxargs are meant for temporary adjusting U-Boot. Use defargs that suits this purpose better. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8.h: add default tdxargs pci=nomsiPhilippe Schenker
As we have issues with MSI enabled we will disable it in default environment. Issue: Kernel panic Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05Machine: Apalis-iMX8X: Change name from apalis-imx8qxp to apalis-imx8xPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8qxp.h: new fdt_file name and delete earlyconPhilippe Schenker
This commit uses the correct devicetree filename and makes sure, it doesn't use earlycon by default while at it make sure to use only tabs. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05apalis-imx8qxp: initial addPhilippe Schenker
Initial board support for Apalis iMX8QXP using a copy of Colibri iMX8QXP. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05apalis-imx8/colibri-imx8x: set fdtfile since it is used by distro bootcmdStefan Agner
The environment variable fdtfile is used in include/config_distro_bootcmd.h hence we should make sure it is set by default. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8/colibri-imx8x: use proper distroboot scriptMarcel Ziswiler
Rather than using NXP proprietary boot script transition to using proper distroboot one. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8x: enable FDT relocationStefan Agner
FDT relocation disabled seems to cause issues when using TorizonCore, probably related to ramdisk. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05colibri-imx8x/apalis-imx8: converge scriptaddr for distrobootStefan Agner
Distro boot scripts require scriptaddr. Make sure it is defined to a sensible address for both Apalis iMX8 as well as Colibri iMX8X. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8/colibri-imx8qxp: integrate fastboot recoveryMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8qxp: change default device treeMarcel Ziswiler
Change default device tree to the regular one now that parallel RGB is working. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8qxp: modify default ramdisk loading addressMing Liu
The current loading address for the ramdisk images overlaps with reserved memory for the decoder_boot section of the device tree (see fsl-imx8qxp.dtsi). This generates a kernel panic early in the boot process when trying to access that memory region. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2020-03-05colibri-imx8qxp: do not undef configs configured using KconfigMing Liu
Do not undef CMD config defines which are set by Kconfig. This allows to enable those commands using Kconfig. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2020-03-05colibri-imx8x: bootcmd_mfg, distroboot and bootm_len fixesMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8qxp: move environment into first boot areaMax Krummenacher
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8: fix ramdisk relocation addressMarcel Ziswiler
Fix ramdisk relocation address to work accross all our use cases. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8: enable FDT relocationStefan Agner
FDT relocation disabled seems to cause issues when using TorizonCore, probably related to ramdisk. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8: add scriptaddr for distrobootStefan Agner
Distro boot scripts require scriptaddr. Make sure it is defined to a sensible address. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8.h: move environment into first boot areaMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05apalis-imx8: configure automatic booting on recoveryGerard Salvatella
When booting U-Boot in recovery mode the default boot command for automatic boots is substituted by bootcmd_mfg. For tezi we want this command to source the boot script inside the boot container that the uuu utility loads. The precise load address of this script is the one used in the mkimage_imx8 utility to generate the boot container. NOTE: this change affects both tezi U-Boot as well as BSP U-Boot. Since currently only tezi is supporting recovery mode, this shouldn't be a problem. Otherwise, consider adding preprocessor safeguards. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: enable distro boot in teziGerard Salvatella
Tezi uses Distro Boot by default. Enable it and modify the appropriate environment. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: increase bootm loading sizeGerard Salvatella
By default bootm can load kernels of up to 5MB. Our universal kernels in imx8 are much larger than this, even when compressed. Since recovery tezi needs to load from memory, allow for larger sizes to be loaded by bootm. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: do not undef configs configured using KconfigStefan Agner
Do not undef CMD config defines which are set by Kconfig. This allows to enable those commands using Kconfig. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8: modify default ramdisk loading addressGerard Salvatella
The current loading address for the ramdisk images overlaps with reserved memory for the decoder_boot section of the device tree (see fsl-imx8qm.dtsi). This generates a kernel panic early in the boot process when trying to access that memory region. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: clean-up ethernet functionalityMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05apalis-imx8: fused modules boot from emmcMax Krummenacher
Fused modules boot from eMMC rather than SD card. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05apalis-imx8: clean-up board fileMax Krummenacher
Clean-up board file. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05apalis-imx8: clean-up configurationMax Krummenacher
Clean-up configuration moving some stuff from include header file to Kconfig defconfig. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05apalis-imx8: adjust copyright/licensing headersMax Krummenacher
Adjust copyright/licensing headers e.g. universally using SPDX license identifier. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05colibri-imx8qxp: adjust copyright/licensing headers some moreMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05colibri-imx8qxp: fix ethernet functionalityMarcel Ziswiler
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>