summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2021-10-27apalis-imx6: add usage of KSZ9XX12016.11-toradex-next2016.11-toradexOleksii Bidnichenko
Backport usage of a new KSZ9XX1 PHY by Apalis iMX6, the old driver located in micrel.c still used by other boards. If a board wants to use a new PHY the old one must be disabled. Backported from: commit f72e48ba4d98 ("board: apalis_imx6: Add KSZ9131 phy skew settings") Related-to: ELB-4181 Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
2021-10-27drivers:net:phy Add KSZ9XX1 phy for apalis imx6Oleksii Bidnichenko
Backport a newer version of the Ethernet PHY to support a new Gigabit Ethernet Transceiver (KSZ9131). Backported from: d397f7c45b0b ("net: phy: micrel: Separate KSZ9000 drivers from KSZ8000 drivers") Related-to: ELB-4181 Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
2020-03-05fitimage: adapt to the changes in tezi meta layerMing Liu
- Drop "config@1" for apalis-t30, since that's the only config, we do not have to explicitly set it to config 1. - Change the configuration for apalis-tk1 to use the actual fdt files. - Change the configuration for colibri_imx7 to use the actual fdt files. - Also fix a wrong fdtfile setting for colibri_imx7. Related-to: TEI-498 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2019-04-12colibri_t20: configs: invoke dhcp before tftp usageIgor Opaniuk
Receive DHCP configuration before running tftp command for fetching proper dtb. When `run nfsboot` is invoked before DHCP configuration is received, the booting process is stuck on: Colibri iMX6 # run nfsboot Booting via DHCP/TFTP/NFS... Using FEC device TFTP from server 192.168.10.1; our IP address is 192.168.10.2 Filename '---.dtb'. Load address: 0x12100000 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-12colibri_t30: configs: invoke dhcp before tftp usageIgor Opaniuk
Receive DHCP configuration before running tftp command for fetching proper dtb. When `run nfsboot` is invoked before DHCP configuration is received, the booting process is stuck on: Colibri iMX6 # run nfsboot Booting via DHCP/TFTP/NFS... Using FEC device TFTP from server 192.168.10.1; our IP address is 192.168.10.2 Filename '---.dtb'. Load address: 0x12100000 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-12colibri_imx6: configs: invoke dhcp before tftp usageIgor Opaniuk
Receive DHCP configuration before running tftp command for fetching proper dtb. When `run nfsboot` is invoked before DHCP configuration is received, the booting process is stuck on: Colibri iMX6 # run nfsboot Booting via DHCP/TFTP/NFS... Using FEC device TFTP from server 192.168.10.1; our IP address is 192.168.10.2 Filename '---.dtb'. Load address: 0x12100000 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-12apalis_t30: configs: invoke dhcp before tftp usageIgor Opaniuk
Receive DHCP configuration before running tftp command for fetching proper dtb. When `run nfsboot` is invoked before DHCP configuration is received, the booting process is stuck on: Colibri iMX6 # run nfsboot Booting via DHCP/TFTP/NFS... Using FEC device TFTP from server 192.168.10.1; our IP address is 192.168.10.2 Filename '---.dtb'. Load address: 0x12100000 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-12apalis-imx6: configs: invoke dhcp before tftp usageIgor Opaniuk
Receive DHCP configuration before running tftp command for fetching proper dtb. When `run nfsboot` is invoked before DHCP configuration is received, the booting process is stuck on: Colibri iMX6 # run nfsboot Booting via DHCP/TFTP/NFS... Using FEC device TFTP from server 192.168.10.1; our IP address is 192.168.10.2 Filename '---.dtb'. Load address: 0x12100000 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-04-12apalis-tk1: configs: invoke dhcp before tftp usageIgor Opaniuk
Receive DHCP configuration before running tftp command for fetching proper dtb. When `run nfsboot` is invoked before DHCP configuration is received, the booting process is stuck on: Colibri iMX6 # run nfsboot Booting via DHCP/TFTP/NFS... Using FEC device TFTP from server 192.168.10.1; our IP address is 192.168.10.2 Filename '---.dtb'. Load address: 0x12100000 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2018-12-20apalis-tk1: remove default vesa vga mode from vidargsColibri-iMX7_LXDE-Image_2.8b5.156-20181228Colibri-iMX6_LXDE-Image_2.8b5.156-20181228Colibri-iMX6ULL_LXDE-Image_2.8b5.156-20181228Colibri-VF_LXDE-Image_2.8b5.156-20181228Colibri-T30_LXDE-Image_2.8b5.156-20181228Colibri-T20_LXDE-Image_2.8b5.156-20181228Apalis-iMX6_LXDE-Image_2.8b5.156-20181228Apalis-TK1_LXDE-Image_2.8b5.156-20181228Apalis-TK1-Mainline_LXDE-Image_2.8b5.156-20181228Apalis-T30_LXDE-Image_2.8b5.156-20181228Marcel Ziswiler
Remove video=tegrafb0:640x480-16@60 aka VESA VGA mode from vidargs in order for the panel specification in the device tree to be used. This causes the default to be the 10.1" LVDS display which will be available in the Toradex webshop shortly. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-12-20colibri_imx7_emmc: fix kernel freeze if M4 started from U-BootMarcel Ziswiler
Commit 2196085dc58e ("colibri_imx7_emmc: add configuration for tezi") also enabled FDT relocation, however, this is causing the Linux kernel to freeze if the M4 firmware was previously started from within U-Boot. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-12-20colibri_imx7: fix kernel freeze if M4 started from U-BootMarcel Ziswiler
Commit 66200a6d2d ("colibri_imx7: add configuration for tezi") also enabled FDT relocation, however, this is causing the Linux kernel to freeze if the M4 firmware was previously started from within U-Boot. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-12-20mx6: toradex: apalis_imx6: increase phy autonegotiation timeoutMarcel Ziswiler
Increasing PHY_ANEG_TIMEOUT from the default 4000 to 10000. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Philippe Schenker <philippe.schenker@toradex.com>
2018-12-20phy: ksz9031: Center FLP timing at 16msPhilippe Schenker
This patch centers the timing around 16ms instead of 8ms as it is in reset. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-09-28toradex boards: sdboot cosmetic clean-upColibri-iMX7_LXDE-Image_2.8b4.129-20181005Colibri-iMX6_LXDE-Image_2.8b4.129-20181005Colibri-iMX6ULL_LXDE-Image_2.8b4.129-20181005Colibri-VF_LXDE-Image_2.8b4.129-20181005Colibri-T30_LXDE-Image_2.8b4.129-20181005Colibri-T20_LXDE-Image_2.8b4.129-20181005Apalis-iMX6_LXDE-Image_2.8b4.129-20181005Apalis-TK1_LXDE-Image_2.8b4.129-20181005Apalis-TK1-Mainline_LXDE-Image_2.8b4.129-20181005Apalis-T30_LXDE-Image_2.8b4.129-20181005Marcel Ziswiler
The whole thing meanwhile diverged heavily. Fix this. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Philippe Schenker <philippe.schenker@toradex.com>
2018-09-28colibri_t20: fix sdbootMarcel Ziswiler
Currently, the Colibri T20 sdboot variable tries to load the kernel from the second MMC/SD device instance. However, given the Colibri T20 having on-module NAND flash the MMC/SD card is actually the primary instance. Fix this to load the kernel and device tree from the first (typically FAT) partition of the MMC/SD card as customary on all Toradex modules. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Philippe Schenker <philippe.schenker@toradex.com>
2018-09-28Revert "apalis-tk1: change usb_port_owner_info to 3 in defargs"Dominik Sliwa
This reverts commit cb4e847cbfe791a4093b0dec7b7467df4406f845. We had some issues with USB2.0 devices when using OTG, reverting for now. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-09-13colibri_vf: Fix sdboot in vf modulesGerard Salvatella
Currently Vybrids sdboot variable tries to load the kernel from /boot of the root partition (typically second partition when using the sdcard image). However, since we moved to flash the kernel in a separate UBI volume, we no longer deploy the kernel/device tree to /boot, hence sdboot does not work in its current state. Load the kernel and device tree from the first (typically FAT) partition as customary on all Toradex modules. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2018-07-27apalis/colibri_imx6/imx6ull: make sure loadaddr does not collideStefan Agner
Currently $loadaddr and $fdt_addr_r point to the same address. This might be not ideal for some distro boot scripts which make use of $loadaddr after loading the device tree. Make sure the two variables point to two different addresses. Moving $loadaddr is not entirly trivial since it is defined in mx6_common.h. Move $fdt_addr_r and $ramdisk_addr_r by 1MiB, which should be enough for scripts. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27apalis_t30: add configuration for teziMarcel Ziswiler
Modify configuration for Tezi: - Use distroboot by default - Boot from external SD cards by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2018-07-27apalis-tk1: add configuration for teziMarcel Ziswiler
Modify configuration for Tezi: - Use distroboot by default - Boot from external SD cards by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2018-07-27colibri-imx6ull: add configuration for teziStefan Agner
Modify configuration for Tezi: - Enable SDP in U-Boot - Enable FDT relocation (in-place is causing issues with FIT images) - Use distroboot by default - Boot from external SD cards by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27colibri_imx7: add configuration for tezi recoveryStefan Agner
Modify configuration for Tezi unified recovery mode: - Enable SDP in U-Boot - Enable FDT relocation (in-place is causing issues with FIT images) - Remove video output - Currently only for recovery (no flash/eMMC support) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27colibri_imx7_emmc: add configuration for teziStefan Agner
Modify configuration for Tezi: - Enable SDP in U-Boot - Enable FDT relocation (in-place is causing issues with FIT images) - Remove video output - Boot from external SD cards using distroboot first by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27colibri_imx7: add configuration for teziStefan Agner
Modify configuration for Tezi: - Enable SDP in U-Boot - Enable FDT relocation (in-place is causing issues with FIT images) - Remove video output - Boot from external SD cards using distroboot first by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27colibri_imx6: add configuration for teziStefan Agner
Modify configuration for Tezi: - Enable SDP in SPL and U-Boot - Enable FDT relocation (in-place is causing issues with FIT images) - Remove video output - Use distroboot by default - Boot from external SD cards by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27apalis_imx6: add configuration for teziStefan Agner
Modify configuration for Tezi: - Enable SDP in SPL and U-Boot - Enable FDT relocation (in-place is causing issues with FIT images) - Remove video output - Use distroboot by default - Boot from external SD cards by default - Disable USB PID from config block (otherwise recovery mode download in U-Boot stage fails) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-07-27colibri_imx7_emmc: legacy update from external sd cardStefan Eichenberger
Use the external SD interface for legacy SD update instead of eMMC. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-06-18colibri_imx7_emmc: add fatwrite supportGerard Salvatella
Tested on Colibri iMX7 1GB aka eMMC V1.1A Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-06-06apalis-tk1: change usb_port_owner_info to 3 in defargsDominik Sliwa
Change usb_port_owner_info to 3 in defargs to allow for USB 3.0 SuperSpeed functionality on USBO1 in host mode. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-03-21apalis/colibri_imx6: remove white space after string endStefan Agner
The white spaces after the zero string terminator are applied to the following environment entry. This is not what was intended. Remove the superfluous white spaces. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-03-21apalis/colibri: switch to zimageBhuvanchandra DV
Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-03-21imx: initialize and use generic timer on i.MX 6UL/ULLStefan Agner
The i.MX 6UL/ULL feature a Cortex-A7 CPU which suppor the ARM generic timer. This change makes use of the ARM generic timer in U-Boot. This is crucial to make the ARM generic timers usable in Linux since timer_init() initalizes the system counter module, which is necessary to use the generic timers CP15 registers. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-03-21imx: move CONFIG_SYSCOUNTER_TIMER to KconfigStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-03-20apalis-tk1: add pcie_aspm=off to defargsDominik Sliwa
Disabling ASPM fixes incompatibilities with some PCIe cards Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-12-22apalis/colibri: disable undefined instruction events in user debugColibri-iMX7_LXDE-Image_2.8b1.64-20171229Colibri-iMX6_LXDE-Image_2.8b1.64-20171229Colibri-iMX6ULL_LXDE-Image_2.8b1.64-20171229Colibri-VF_LXDE-Image_2.8b1.64-20171229Colibri-T30_LXDE-Image_2.8b1.64-20171229Colibri-T20_LXDE-Image_2.8b1.64-20171229Apalis-iMX6_LXDE-Image_2.8b1.64-20171229Apalis-TK1_LXDE-Image_2.8b1.64-20171229Apalis-TK1-Mainline_LXDE-Image_2.8b1.64-20171229Apalis-T30_LXDE-Image_2.8b1.64-20171229Stefan Agner
It turns out that OpenSSL calls undefined instructions to detect ARM capabilities at runtime (via SIGILL handler). This leads to stack traces e.g. when logging in using SSH: [ 877.464442] sshd (613): undefined instruction: pc=76ee2da8 ... Disable undefined instruction events since it is used as an autodetecion mechanism. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-12-22colibri_imx6ull: add sensible default DFU configurationStefan Agner
Add DFU configuration which allows access to all MTD partitions. Note that DFU is mostily suited for smaller image uploads e.g. to update U-Boot but does not work well for large images such as rootfs since DFU copies the whole image in a memory buffer first. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-12-20apalis/colibri: enable user debug by defaultStefan Agner
Let the kernel print some debug messages when a user program crashes due to an exception. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-11-27toradex apalis/colibri: set version variable for all modulesMax Krummenacher
Set the ver environment variable consistently in all modules. Move the define form include/configs into the defconfig were applicable and create a new minimal defconfig. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2017-11-27colibri_imx6ull: add dtb for wifi variantMax Krummenacher
Add handling for the device tree for the Colibri iMX6ULL 512MB Wi-Fi / BT Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2017-10-03apalis-tk1: support v1.2 hardware revisionColibri-iMX7_LXDE-Image_2.7b4-20171005Colibri-iMX6_LXDE-Image_2.7b4-20171005Colibri-VF_LXDE-Image_2.7b4-20171005Colibri-T30_LXDE-Image_2.7b4-20171005Colibri-T20_LXDE-Image_2.7b4-20171005Apalis-iMX6_LXDE-Image_2.7b4-20171005Apalis-TK1_LXDE-Image_2.7b4-20171007Apalis-TK1-Mainline_LXDE-Image_2.7b4-20171005Apalis-T30_LXDE-Image_2.7b4-20171005Marcel Ziswiler
Support the V1.2 hardware revision with the following pin muxing changes: Ddc_scl_pv4 and ddc_sda_pv5 previously used as Apalis GPIO3 and GPIO4 are now used as DDC pins. Gen2_i2c_scl_pt5 and gen2_i2c_sda_pt6 previously used as DDC pins are now used as USB power enable signals. Usb_vbus_en0_pn4 and usb_vbus_en1_pn5 previously used as USB power enable signals are now used as GPIO3 and GPIO4. Additionally a new device tree file tegra124-apalis-v1.2-eval.dtb is loaded on V1.2 and later modules and resp. USB power enable signals activated. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-03colibri-imx6ull.h: unify with changes in colibri_imx7.hMax Krummenacher
Remove m4boot options not available on i.MX 6ULL. Cleanup U-Boot environment settings. This undefs CONFIG_ISO_PARTITION. This removes NAND torture no longer needed after bringup. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-10-03colibri-imx6ull.h: cleanup whitespaceMax Krummenacher
Cleanup whitespace and unify order with colibri_imx7.h. No functional change intended. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-10-03colibri-imx6ull.h: remove unused configsMax Krummenacher
Remove/change two NAND releated configs. They are not used in the GPMI driver and likely confuse readers. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-10-02colibri_imx7_emmc: legacy sdboot from external sd cardMarcel Ziswiler
Just like the following commit for distro boot also use the 2nd instance for legacy sdboot: colibri_imx7_emmc: distro boot from external SD card 93ef92091832128259ab342a314d0f3e844bb331 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-02apalis/colibri_imx6: fix white spaceMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-02apalis-tk1/colibri_t20: fix and synchronize mount options 2ndMarcel Ziswiler
Finish the work started by the following commit: apalis/colibri: fix and synchronize mount options 6ed47e0f143df1c80426edb3b705c87c443c27f7 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-02colibri_imx7_emmc: distro boot from external SD cardStefan Agner
Currently distro boot is only used for external media. Use mmc 1 which is the external SD card when booting using distro boot. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-10-02colibri_imx7_emmc: fix environment storageMarcel Ziswiler
Store U-Boot environment in eMMC, before config block at the end of 1st "boot sector". Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-02colibri_imx7_emmc: fix boot commandsMarcel Ziswiler
Use proper emmc specific device tree and boot from eMMC by default rather than from NAND aka ubi. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>