summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-21clk-imx8mm: Only build QSPI clocks when CONFIG_NXP_FSPI=yFabio Estevam
The QSPI clocks are only used when CONFIG_NXP_FSPI=y, so only build the QSPI clocks in this case to reduce the final SPL binary size. Signed-off-by: Fabio Estevam <[email protected]>
2022-10-21clk-imx8mm: Only build ecspi clocks when CONFIG_DM_SPI=yFabio Estevam
The ecspi clocks are only used when CONFIG_DM_SPI=y, so only build the ecspi clocks in this case to reduce the final SPL binary size. Signed-off-by: Fabio Estevam <[email protected]>
2022-10-21clk-imx8mm: Move CLK_ENET_AXI to the non-SPL sectionFabio Estevam
Ethernet is not used inside SPL, so move the IMX8MM_CLK_ENET_AXI clock inside the non-SPL block to reduce the final SPL binary size. Signed-off-by: Fabio Estevam <[email protected]>
2022-10-21clk-imx8mm: Only build PWM clocks in non-SPL codeFabio Estevam
PWM is not used inside SPL, so do not define the PWM clocks inside SPL to reduce the final SPL binary size. Signed-off-by: Fabio Estevam <[email protected]>
2022-10-21mmc: fsl_esdhc: fix problem when using clk driverYe Li
Move init_clk_usdhc to non-clk driver case, since assigned-clocks properties will initialize the clocks by clk driver. Signed-off-by: Ye Li <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
2022-10-21verdin-imx8mm: verdin-imx8mp: drop obsolete net/phy configsMarcel Ziswiler
Drop obsolete networking/PHY related configuration defines. Signed-off-by: Marcel Ziswiler <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2022-10-21board: tbs2910: Add serial rx buffer in defconfigSoeren Moch
... to avoid loosing characters when pasting text into the serial console. This allows to remove the workaround to disable the vidconsole output when no HDMI device is detected. This workaround only was there to speed-up serial console processing. Signed-off-by: Soeren Moch <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-21board: tbs2910: Set all board dts files as maintainedSoeren Moch
This also includes the imx6q-tbs2910-u-boot.dtsi file now. Signed-off-by: Soeren Moch <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-21imx8mm_evk: Add Serial Download Protocol supportFabio Estevam
Add Serial Download Protocol support as it is a useful method to load flash.bin to RAM and run it via 'uuu'. With this patch, it is possible to start both U-Boot SPL and U-Boot proper using the following 'uuu'command: $ uuu -brun spl flash.bin Based on a patch from Marek Vasut for the imx8mm-mx8menlo board. Also, to fit the SPL binary into the internal RAM, select CONFIG_LTO to reduce its size. Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21imx8mm_evk: Add an entry for USB bootFabio Estevam
Add an entry for USB boot so that U-Boot could be loaded via the Serial Download Protocol. Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21ARM: dts: imx8m: imx8mm-mx8menlo: Enable SPL SDP supportMarek Vasut
Enable DM USB, DM PHY and USB gadget support in imx8mm-mx8menlo SPL to let the board continue SDP loading of second stage after the first stage was loaded by BootROM SDP implementation. It is not possible to jump back into BootROM v1 and let the BootROM implementation continue the SDP loading, all this has to be performed by the U-Boot CI HDRC controller driver and SDP protocol implementation, both of which fit into the SPL just barely. With this patch, it is possible to start both U-Boot SPL and U-Boot using e.g. uuu on this board as follows: $ uuu -brun spl flash.bin Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21ARM: imx8m: verdin-imx8mm: Drop bogus content from spl_board_init()Marek Vasut
The current implementation of spl_board_init() USB boot handling is not correct, the MX8MM BootROM v1 does not support SDP load when re-entered from U-Boot SPL, it is up to U-Boot to perform the next stage load using its own internal CI gadget driver and SDP protocol implementation. Drop the spl_board_init() to let SPL continue with normal load in case the SDP support is enabled. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21ARM: imx8m: phycore_imx8mm: Drop bogus spl_board_init()Marek Vasut
The current implementation of spl_board_init() is not correct, the MX8MM BootROM v1 does not support SDP load when re-entered from U-Boot SPL, it is up to U-Boot to perform the next stage load using its own internal CI gadget driver and SDP protocol implementation. Drop the spl_board_init() to let SPL continue with normal load in case the SDP support is enabled. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21ARM: imx8m: Deduplicate CAAM init with arch_misc_init() callMarek Vasut
Instead of duplicating code implemented by i.MX8M version of arch_misc_init() in every board, enable CONFIG_ARCH_MISC_INIT and call arch_misc_init() from spl_board_init(). This removes the duplication. No functional change. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-20ARM: dts: imx8mm: Swap i.MX8M Mini Menlo board UARTs backMarek Vasut
The first production revision of the MX8M Mini Menlo board implements a hardware change which swaps console UART and another UART connector. Implement the swap, which maps the console UART back to the way Verdin console is mapped. Signed-off-by: Marek Vasut <[email protected]>
2022-10-20arm: dts: imx8mm-venice-gw7903: add dig1_ctl and dig2_ctl gpiosTim Harvey
The GW7903 revision B adds two additional GPIO's to control the direction of the 2 isolated digital I/O circuits. Define them as: - dig1_ctl - dig2_ctl Signed-off-by: Tim Harvey <[email protected]>
2022-10-20board: gateworks: venice: update GW74xx PMIC configTim Harvey
Update the GW74xx PMIC configuration: - increase VDD_SOC DVS1 to 0.85V per datasheet - increase VDD_SOC DVS0 to 0.95V before first DRAM access - increase VDD_ARM DVS0 to 0.95V to support kernel overdrive voltage (OD) - remove unnecessary changes to VDD_DRAM as we don't use 3GHz DRAM - remove unnecessary change to LDO2 as it is unused Signed-off-by: Tim Harvey <[email protected]> v2: update commit log with more detail
2022-10-20arm: dts: imx8mp-venice-gw74xx: update M2 gpio hogsTim Harvey
Update the M2 socket gpio hogs such that they are not active on boot by flagging them as GPIO_ACTIVE_HIGH so that 'output-high' drives high. Signed-off-by: Tim Harvey <[email protected]>
2022-10-20arm: dts: imx8mp-venice-gw74xx: fix uart configuration gpio hogsTim Harvey
Update the UART config gpio hogs such that it is configured for RS232 by default on boot. Additionally rename them to match the names used on the reset of the venice boards. Signed-off-by: Tim Harvey <[email protected]>
2022-10-20ARM: imx8mp: verdin-imx8mp: Add memory size detectionFrancesco Dolcini
Add RAM auto-sizing, without this change memory size for all SKU is set to 8GB and the system will crash on SKU with less memory as soon as the non existent memory addresses are accessed. Fixes: 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support") Signed-off-by: Francesco Dolcini <[email protected]> Acked-by: Marcel Ziswiler <[email protected]>
2022-10-20board: verdin-imx8mp: add call to ft_common_board_setupPhilippe Schenker
With this call the following attributes get set to the device-tree and are then accessible from linux in /proc/device-tree/ serial-number: The serial number that is stored in config-block toradex,board-rev: The version of the module (e.g. V1.1A) toradex,product-id: The SKU number of the module runnin Fixes: commit 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support") Signed-off-by: Philippe Schenker <[email protected]> Acked-by: Marcel Ziswiler <[email protected]>
2022-10-20board: verdin-imx8mm: add call to ft_common_board_setupPhilippe Schenker
With this call the following attributes get set to the device-tree and are then accessible from linux in /proc/device-tree/ serial-number: The serial number that is stored in config-block toradex,board-rev: The version of the module (e.g. V1.1A) toradex,product-id: The SKU number of the module running Fixes: commit 14d5aeff776b ("board: toradex: Add Verdin iMX8M Mini support") Signed-off-by: Philippe Schenker <[email protected]> Acked-by: Marcel Ziswiler <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Prepare for I2C display detection in environment scriptFrieder Schrempf
Enable the I2C bus and set a env variable for the reset GPIO of the touch controller. This allows us to probe the panel in a script. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Add support for Kontron Electronics SoM SL i.MX8MM OSM-SFrieder Schrempf
This adds support for the Kontron Electronics SoM SL i.MX8MM OSM-S and the matching baseboard BL i.MX8MM OSM-S. The SoM hardware complies to the Open Standard Module (OSM) 1.0 specification, size S (https://sget.org/standards/osm). The existing board configuration for the non-OSM SoM is reused and allows to detect the SoM variant at runtime. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Simplify code in spl.cFrieder Schrempf
Refactor the code a bit without any functional changes. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Use voltage rail names from schematic for PMIC ↵Frieder Schrempf
regulator-names Improve the naming of the regulators to contain the voltage rail names from the schematic. Suggested-by: Heiko Thiery <[email protected]> Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Use the VSELECT signal to switch SD card IO voltageFrieder Schrempf
It turns out that it is not necessary to declare the VSELECT signal as GPIO and let the PMIC driver set it to a fixed high level. This switches the voltage between 3.3V and 1.8V by setting the PMIC register for LDO5 accordingly. Instead we can do it like other boards already do and simply mux the VSELECT signal of the USDHC interface to the pin. This makes sure that the correct voltage is selected by setting the PMIC's SD_VSEL input to high or low accordingly. Reported-by: Heiko Thiery <[email protected]> Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Heiko Thiery <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Adjust devicetree names, compatibles and model stringsFrieder Schrempf
This adjusts the names of the boards and SoMs to the official naming used by Kontron marketing. These changes also affect devicetree names and compatibles. The same changes have been submitted to the Linux kernel. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Prepare for other i.MX8MM SoM typesFrieder Schrempf
This sets an env variable 'som_type' from the board code. It can later be used by environment scripts, e. g. to select the proper devicetree for the board. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Use new LPDDR4 config parametersFrieder Schrempf
These parameters are needed for stable performance on new hardware with Nanya LPDDR4 chips. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Remove 100mt DDR setpointFrieder Schrempf
The new stable configuration is missing the 100mt setpoint, remove it before updating the config to make sure the changes are separated cleanly. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: lpddr4_timing.c: Add spaces for proper alignmentFrieder Schrempf
Fix the spaces and alignment for easier tracking of changes and comparing with configs generated by the tools. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Enable bootaux commandFrieder Schrempf
Enable the bootaux command in order to be able to load a binary into the M4 core when needed. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Migrate to use CONFIG_EXTRA_ENV_TEXTFrieder Schrempf
Move the environment from the board header to a separate text file and also drop those variables that are already set in env_default.h from the Kconfig options. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Enable environment in MMCFrieder Schrempf
In case we boot from SD card or eMMC, we also want to load the environment from the according boot device. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Add redundant environment and SPI NOR partitionsFrieder Schrempf
Enable the redundant environment feature to allow falling back in case of storage corruption. The partition layout for the SPI NOR device is added to the devicetree. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Enable MTD commandFrieder Schrempf
Enable the MTD command to be used for the SPI NOR on the SoM. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Increase CONFIG_SYS_CBSIZE to 2KFrieder Schrempf
This allows using the command line with longer lines like large scripts in env variables. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Remove custom board_boot_order() workaroundFrieder Schrempf
Nowadays detecting the SPI NOR as boot device from the ROMAPI is fixed and works even if the SPI NOR is used as fallback boot device. Therefore we don't need this workaround anymore. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Add support for loading from SPI NOR in SPLFrieder Schrempf
This was initially enabled, but got accidentally dropped while migrating Kconfig options and resyncing the defconfig in: commit 9802154a94d6 ("configs: Resync with savedefconfig") Let's enable this again to be able to boot from SPI NOR. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: kontron-sl-mx8mm: Remove LVDS board type and devicetreesFrieder Schrempf
The display isn't and won't be used in U-Boot. Also the display setup is not yet supported in mainline Linux, so even for cases where the U-Boot devicetree is passed to the kernel there is currently no use for this configuration. Selecting the proper configuration in the kernel FIT image automatically depending on the detected hardware can be handled by a script in the environment. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2022-10-20imx: imx6ul: kontron-sl-mx6ul: Sync devicetreesFrieder Schrempf
Sync the devicetrees with Linux and adjust the board names. Signed-off-by: Frieder Schrempf <[email protected]>
2022-10-20imx: imx6ul: kontron-sl-mx6ul: Migrate to use CONFIG_EXTRA_ENV_TEXTFrieder Schrempf
Move the environment from the board header to a separate text file and also drop those variables that are already set in env_default.h from the Kconfig options or are not needed anymore. Signed-off-by: Frieder Schrempf <[email protected]>
2022-10-20imx: imx6ul: kontron-sl-mx6ul: Select correct boot and env deviceFrieder Schrempf
Instead of checking both, SPI NOR and MMC for loading U-Boot proper and the environment, implement a way to detect the actual boot device even if the BootROM doesn't report it and we can't rely solely on the fuse settings, as by default we use MMC as primary boot device and boot from SPI NOR via the secondary fallback device (EEPROM Recovery Mode). Signed-off-by: Frieder Schrempf <[email protected]>
2022-10-20imx: imx6ul: kontron-sl-mx6ul: Fix CONFIG_ENV_SPI_BUSFrieder Schrempf
The SPI NOR is on ECSPI1 so CONFIG_ENV_SPI_BUS should be 1 to detect the environment on the SPI NOR. Signed-off-by: Frieder Schrempf <[email protected]>
2022-10-20imx: imx6ul: kontron-sl-mx6ul: Enable migrated Kconfig optionsFrieder Schrempf
The board support was merged at the same time as some Kconfig options for SPL were migrated/renamed. As a result some essential features like serial output, MMC support, etc. are currently missing. Fix this by enabling the required options. Signed-off-by: Frieder Schrempf <[email protected]>
2022-10-20Makefile: Make flash.bin target available for all platformsFrieder Schrempf
There is no reason for restricting the use of the flash.bin target to the i.MX8 platform. Others can benefit from this as well. Signed-off-by: Frieder Schrempf <[email protected]>
2022-10-20board: gateworks: venice: rename eeprom_initTim Harvey
rename eeprom_init to avoid build failure when using CMD_EEPROM. Signed-off-by: Tim Harvey <[email protected]>
2022-10-20arm: dts: imx8mm-venice-gw7902: add LTE modem gpiosTim Harvey
Add missing LTE_PWR# and LTE_RST gpio pinmux. Signed-off-by: Tim Harvey <[email protected]> Acked-by: Peng Fan <[email protected]>
2022-10-20imx8*_venice_defconfig: configure default MMC env deviceTim Harvey
When booting from USB/SDP mmc_get_env_dev() returns CONFIG_SYS_MMC_ENV_DEV as the MMC env device (while booting from MMC will call board_mmc_get_env_dev() to get this). Configure CONFIG_SYS_MMC_ENV_DEV for SDHC3 (devno=2) as all Gateworks Venice boards use SDHC3 as eMMC so that persistent env works when booting from USB/SDP. Reviewed-by: Fabio Estevam <[email protected]> Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Peng Fan <[email protected]>