summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-21cmd: Add ncsi commandSamuel Mendoza-Jonas
Adds an "ncsi" command to manually start NC-SI configuration. Signed-off-by: Samuel Mendoza-Jonas <[email protected]> Signed-off-by: Joel Stanley <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]>
2022-10-21net: NC-SI setup and handlingSamuel Mendoza-Jonas
Add the handling of NC-SI ethernet frames, and add a check at the start of net_loop() to configure NC-SI before starting other network commands. Signed-off-by: Samuel Mendoza-Jonas <[email protected]> Signed-off-by: Joel Stanley <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2022-10-21Merge branch '2022-10-21-enforce-some-DM-migrations'Tom Rini
- Enforce CONFIG_DM being enabled (which has been the case for all boards for a bit now) and remove non-DM_KEYBOARD options as they're also unused for some time now.
2022-10-21configs: Resync with savedefconfigTom Rini
Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <[email protected]>
2022-10-21input: Remove legacy KEYBOARD optionTom Rini
There are no platforms that have not migrated to using DM_KEYBOARD, remove the legacy option. Cc: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2022-10-21core: Enable DM by defaultTom Rini
There are no longer any platforms which do not enable DM, move this to a def_bool y and remove the check in the Makefile. Cc: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2022-10-21Merge tag 'u-boot-at91-fixes-2023.01-a' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-at91 First set of u-boot-at91 fixes for the 2023.01 cycle: This small fixes set includes an indentation fix for sam9x60 DT and one name for one pin for sama7g5.
2022-10-21imx8mn-venice-u-boot: Fix broken bootFabio Estevam
When the imx8mm.dtsi file was pulled in from Linux, the UARTs were moved into an spba sub-node which wasn't being included in the SPL device tree. This meant the references to the UART weren't being handled properly and when booting the system would constantly reboot. Fix this by adding the spba node to the spl device tree to restore normal booting. Based on the patch from Adam Ford for the imx8mn-beacon-kit-u-boot board. Fixes: 4e5114daf9eb ("imx8mn: synchronise device tree with linux") Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]>
2022-10-21imx8mn-ddr4-evk-u-boot: Fix broken bootFabio Estevam
When the imx8mm.dtsi file was pulled in from Linux, the UARTs were moved into an spba sub-node which wasn't being included in the SPL device tree. This meant the references to the UART weren't being handled properly and when booting the system would constantly reboot. Fix this by adding the spba node to the spl device tree to restore normal booting. Based on the patch from Adam Ford for the imx8mn-beacon-kit-u-boot board. Fixes: 4e5114daf9eb ("imx8mn: synchronise device tree with linux") Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]>
2022-10-21board: gateworks: gw_ventana: fix mmc env devTim Harvey
Fix the MMC env device for boards with eMMC by adding a board_mmc_get_env_dev override to return the boot device as the MMC env device. Signed-off-by: Tim Harvey <[email protected]>
2022-10-21ARM: imx6: dh-imx6: Use sf update instead of sf erase and writeMarek Vasut
With sf update fixed to support unaligned start offset, use plain sf update to update the bootloader in SPI NOR. This also helps avoid the case where not enough SPI NOR has been erased and the bootloader has been written to unerased area, and thus corrupted. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21ARM: imx: Enable btrfs support on DHSOMMarek Vasut
The btrfs filesystem provides advanced functionality like copy-on-write and snapshots, as well as metadata and data duplication and checksumming. Enable btrfs in U-Boot to permit even the primary partition to be btrfs and let system boot from it. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Peng Fan <[email protected]>
2022-10-21crypto/fsl: fsl_rsa: Fix dcache issue in the driverYe Li
issue: CAAM fails with key error when perform Modular Exponentiation using PKHA Block in CAAM Fix: add flush and invalidate dcache for keys, signature and output decrypted data processed by CAAM. Fixes: 34276478f7 (DM: crypto/fsl - Add Freescale rsa DM driver) Signed-off-by: Ye Li <[email protected]> Reviewed-by: Gaurav Jain <[email protected]> Acked-by: Peng Fan <[email protected]>
2022-10-21apalis/colibri_imx6/-imx6ull/_imx7: update env memory layoutMarcel Ziswiler
Update the distro config env memory layout for the Apalis iMX6, Colibri iMX6, Colibri iMX6ULL and Colibri iMX7: - loadaddr=0x84200000 (resp. 0x14200000 on them i.MX 6) allows for 64MB area for uncompressing (ie FIT images) - fdt_addr_r = loadaddr + 64MB : allows for 64MB kernel - scriptaddr = fdt_addr_r + 512KB : allows for 512KB fdt - pxefile_addr_r = scriptaddr + 512KB : allows for 512KB script - ramdisk_addr_r = pxefile_addr_r + 512KB : allows for 1MB extlinux.conf Memory layout analogous to 64-bit one from commit fd5c7173ade4 ("imx8m{m,n}_venice: update env memory layout") but left pxefile_addr_r updated according to doc/develop/distro.rst. This fixes a potential issue caused by the compressed kernel being relocated on top of the ramdisk causing its corruption. Signed-off-by: Marcel Ziswiler <[email protected]>
2022-10-21nitrogen6x: Remove extra quotes in fdtfileAriel D'Alessandro
After commit 395110284b56 ("nitrogen6x: Populate FDTFILE at build-time for all platforms") iMX.6Q Sabrelite fails to boot due to a bad fdtfile string: Retrieving file: /dtbs/5.18.0-0.deb11.4-armmp/"imx6q-sabrelite".dtb ** File not found /dtbs/5.18.0-0.deb11.4-armmp/"imx6q-sabrelite".dtb ** CONFIG_DEFAULT_DEVICE_TREE option is string typed, so __stringify() is adding extra quotes. Remove this. Signed-off-by: Ariel D'Alessandro <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Acked-by: Troy Kisky <[email protected]>
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-21ARM: dts: at91: sama7g5: fix signal name of pin PB2Mihai Sain
The signal name of pin PB2 with function F is FLEXCOM11_IO1 as it is defined in the datasheet. Fixes: 558378a4cd ("ARM: mach-at91: add support for new SoC sama7g5") Signed-off-by: Mihai Sain <[email protected]>
2022-10-21ARM: dts: at91: sam9x60ek: fix indentation for pinctrl sub-nodesDario Binacchi
The indentation went far on the right due to an extra tab for each pinctrl sub-nodes. Signed-off-by: Dario Binacchi <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]>
2022-10-20Merge tag 'u-boot-rockchip-20221020' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-rockchip - dts update and sync for rk356x, rk3288, rk3399 from Linux; - Add rk3399 EAIDK-610 board support; - Update for puma-rk3399 board; - some fix and typo fix in different drivers;
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]>