summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-04-22reset: socfpga: release more A10 peripherals out of resetNaresh Kumar Ravulapalli
Current implementation releases most peripherals out of reset for gen5, but A10 has more peripherals than gen5, hence this patch is required to release the rest of peripherals to support old kernels. Signed-off-by: Tien Fong Chee <[email protected]> Signed-off-by: Naresh Kumar Ravulapalli <[email protected]> Reviewed-by: Tien Fong Chee <[email protected]>
2025-04-22drivers: ddr: altera: Fix integer overflow during size calculationNaresh Kumar Ravulapalli
Data structure, dramaddrw, is defined as u32. Compiler performs 32-bit arithmetic and logic operations on this data structure. Fix is provided to avoid integer overflow while performing shifting operations greater than 32-bit. Signed-off-by: Naresh Kumar Ravulapalli <[email protected]> Reviewed-by: Tien Fong Chee <[email protected]>
2025-04-21fs/squashfs: avoid illegal free() in sqfs_opendir()Heinrich Schuchardt
* Use calloc() to allocate token_list. This avoids an illegal free if sqfs_tokenize() fails. * Do not iterate over token_list if it has not been allocated. Addresses-Coverity-ID: 510453: Null pointer dereferences (FORWARD_NULL) Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Joao Marcos Costa <[email protected]> Reviewed-by: Joao Marcos Costa <[email protected]>
2025-04-21Merge patch series "fs: exfat: Flush node before put in read() callback"Tom Rini
This series from Marek Vasut <[email protected]> includes a number of fixes to the exFAT filesystem support that he recently added. Link: https://lore.kernel.org/r/[email protected]
2025-04-21test_fs: Test 'mv' command on exfat and fs_genericMarek Vasut
Enable tests for the generic FS interface 'mv' command against both exfat and fs_generic. Signed-off-by: Marek Vasut <[email protected]>
2025-04-21fs: exfat: Implement trivial 'rename' supportMarek Vasut
Implement exfat_fs_rename() to rename or move files. This is used by the 'mv' generic FS interface command. The rename implementation for other filesystems was added recently and was not part of exfat porting layer due to merge issue, which made 'mv' command crash, fix this by adding the missing implementation. Fixes: b86a651b646c ("fs: exfat: Add U-Boot porting layer") Signed-off-by: Marek Vasut <[email protected]>
2025-04-21test_fs: Add test -e testMarek Vasut
Add test for the 'test -e' command to check for existence of files. This exercises struct fstype_info .exists callback. Signed-off-by: Marek Vasut <[email protected]>
2025-04-21fs: exfat: Fix exfat_fs_exists() return valueMarek Vasut
The exfat_fs_exists() should return 0 in case the path does not exist, and 1 in case the path does exist. Fix the inverted return value. This fixes 'test -e' command with exfat. Fixes: b86a651b646c ("fs: exfat: Add U-Boot porting layer") Signed-off-by: Marek Vasut <[email protected]>
2025-04-21fs: exfat: Rework exfat_fs_readdir() to behave like exfat_fs_ls()Marek Vasut
The exfat_fs_readdir() depends on state created in exfat_fs_opendir(), but that state may be disrupted by fs_close() called by the FS layer in fs_opendir(), because exfat porting layer unmounts the filesystem in ->close() callback. To avoid this disruption, avoid creating state in exfat_fs_opendir(), cache only the directory name to list there, and rework exfat_fs_readdir() to work in a similar way to exfat_fs_ls(). That is, make exfat_fs_readdir() open the directory, look up specific entry, extract its properties to be reported to FS layer, and close the directory. This is slow, but avoids the disruption. The slowness does not affect regular 'ls' command, which uses exfat_fs_ls() fast path. Fixes: b86a651b646c ("fs: exfat: Add U-Boot porting layer") Signed-off-by: Marek Vasut <[email protected]>
2025-04-21fs: exfat: Inhibit "impossible" print on write to bogus fileMarek Vasut
Write into a bogus file, like '/.', triggers an "impossible" print from the exfat core code. That should not be printed in U-Boot, because U-Boot prints its own error message sooner. Inhibit this error message. The following command triggers the bogus print: " => save host 0:0 1000008 /. 0x10 " Fixes: b86a651b646c ("fs: exfat: Add U-Boot porting layer") Signed-off-by: Marek Vasut <[email protected]>
2025-04-21fs: exfat: Flush node before put in read() callbackMarek Vasut
Make sure the node is never dirty before being released, flush the node first using exfat_flush_node() and only then release the node using exfat_put_node(). This now matches the behavior of exfat_fs_write() too. Fixes: b86a651b646c ("fs: exfat: Add U-Boot porting layer") Signed-off-by: Marek Vasut <[email protected]>
2025-04-21Revert "net: phy: Add the Airoha EN8811H PHY driver"Tom Rini
This was applied prematurely by me as I missed the feedback provided at the time. This reverts commit c9c8df2c377e512553f2e9ad5d19c4b85efbf07d. Signed-off-by: Tom Rini <[email protected]>
2025-04-21Merge tag 'u-boot-at91-2025.07-b' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-at91 Second set of u-boot-at91 features for the 2025.07 cycle: This feature set includes the addition of sam9x60 usb gadget, and a fix for sama5d2 SPL.
2025-04-21Merge tag 'rpi-2025.07-rc1' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-raspberrypi Updates for RPi for 2025.07: - copy over uart clock-frequency in DT - always set fdt_addr with firmware-provided FDT address - Set bootm_size to 512MB - Drop fdt_high and initrd_high - Update environment to support booti and large initrd
2025-04-20Merge tag 'efi-2025-07-rc1-2' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request efi-2025-07-rc1-2 Documentation: * dt_qemu: correct dumpdtb description * release_cycle: Use variable substitution for next version UEFI: * cmd: simplify eficonfig_init() * efi_selftest: check executing in EL2 * efi_selftest: use do_bootefi_exec() Others: * riscv: dts: jh7110: add bootph-pre-ram for &pllclk * mips: malta: set MIPS_RELOCATION_TABLE_SIZE=0xc000
2025-04-19mips: malta: set MIPS_RELOCATION_TABLE_SIZE=0xc000Heinrich Schuchardt
MIPS_RELOCATION_TABLE_SIZE=0x8000 is too small to enable UNIT_TEST. Increase it by 50 % (16 KiB). Signed-off-by: Heinrich Schuchardt <[email protected]>
2025-04-19riscv: dts: jh7110: add bootph-pre-ram for &pllclkHeinrich Schuchardt
Since commit f98cd471f06b ("clk: clk-composite: Resolve parent clock by name") the StarFive VisionFive 2 board fails to boot. Before that patch the SPL debug UART showed warnings like: clk_register: failed to get pll0_out device (parent of perh_root) clk_register: failed to get pll0_out device (parent of qspi_ref_src) clk_register: failed to get pll0_out device (parent of usb_125m) clk_register: failed to get pll0_out device (parent of gmac_src) clk_register: failed to get pll0_out device (parent of gmac1_gtxclk) clk_register: failed to get pll0_out device (parent of gmac0_gtxclk) The &pllclk clock needs to be enabled early. Fixes: f98cd471f06b ("clk: clk-composite: Resolve parent clock by name") Suggested-by: Marek Vasut <[email protected]> Tested-by: Yao Zi <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
2025-04-19doc: dt_qemu: correct dumpdtb descriptionHeinrich Schuchardt
Use only a single -machine parameter. Describe that the same invocation of qemu-system-<arch> has to be used for dumping the device-tree as will be used when executing U-Boot. Signed-off-by: Heinrich Schuchardt <[email protected]>
2025-04-19efi_selftest: use do_bootefi_exec()Heinrich Schuchardt
The EFI selftest should match executing a real EFI binary as closely as possible. Use do_bootefi_exec() to enter the EFI selftest. Acked-by: Ilias Apalodimas <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
2025-04-19efi_selftest: check executing in EL2Heinrich Schuchardt
UEFI binaries should be executed in EL2 or EL1 even if U-Boot is started in EL3. Provide a unit test. Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
2025-04-19doc: release_cycle: Use variable substitution for next versionTom Rini
To avoid the problem fixed in commit 57a95d522ca8 ("doc: release_cycle: fix next release version") moving forward, make use of the variable substitution feature of rST. This adds a next_ver variable and references it in all of the places where I had been listing the version being worked on. Suggested-by: Quentin Schulz <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Tested-by: Quentin Schulz <[email protected]>
2025-04-19cmd: simplify eficonfig_init()Heinrich Schuchardt
As the system table already has pointers to the Simple Text Input and Output Protocols we can directly use these instead of calling OpenProtocol. Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
2025-04-18Revert "power-domain: Add refcounting"Wadim Egorov
Unfortunately this change breaks boot on K3 platform. U-Boot will hang after: U-Boot SPL 2025.04-01050-ga40fc5afaec0 (Apr 14 2025 - 07:31:32 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') This reverts commit 197376fbf300e92afa0a1583815d9c9eb52d613a as suggested in [1]. [1] https://lists.denx.de/pipermail/u-boot/2025-April/587032.html Signed-off-by: Wadim Egorov <[email protected]> Acked-by: Miquel Raynal <[email protected]>
2025-04-18ARM: dts: at91: sama5d2: Pass bootph-all to the PIT timerFabio Estevam
The PIT timer needs to be available early in the SPL phase, otherwise SPL fails to boot and only prints: Could not initialize timer (err -96) Fix this problem by passing 'bootph-all' to the sama5d2 PIT node. Signed-off-by: Fabio Estevam <[email protected]>
2025-04-18ARM: dts: at91: sam9x60-curiosity: Enable USB gadget nodeZixun LI
Enable USB gadget usb0 node support. Signed-off-by: Zixun LI <[email protected]> Reviewed-by: Eugen Hristev <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>
2025-04-18ARM: dts: sam9x60: Add USB gadget DT nodeZixun LI
Add the USB gadget DT node for the sam9x60 SoC's. Signed-off-by: Zixun LI <[email protected]> Reviewed-by: Eugen Hristev <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>
2025-04-17configs: am65x_evm_a53: convert to a standard boot flowBryan Brattlof
Rather than maintaining custom hush scripting to boot the SDK, migrate to a 'standard boot' method which simplifies maintenance and enables multiple distributions to use this evaluation module. Signed-off-by: Bryan Brattlof <[email protected]>
2025-04-17arm: mach-k3: am62px: Fix MCU_CLKOUT0 parent clock muxParth Pancholi
CU_CLKOUT0 can be driven by two input clocks: a 25 MHz and a 50 MHz source. Currently, the 25 MHz option is not selectable due to an incorrect mux configuration where the 50 MHz clock is duplicated in the parent list. This patch fixes the mux setup, allowing proper selection of the 25 MHz clock source for MCU_CLKOUT0. Similar configuration is already correctly implemented in AM62 clock data for 'hsdiv4_16fft_main_2_hsdivout1_clk10', where MCU_CLKOUT0 parent switching behaves as expected. Link: http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am62px/clocks.html#clocks-for-board0-device Signed-off-by: Parth Pancholi <[email protected]> Reviewed-by: Bryan Brattlof <[email protected]>
2025-04-17Merge tag 'xilinx-for-v2025.07-rc1' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-microblaze AMD/Xilinx/FPGA changes for v2025.07-rc1 AMD/Xilinx: - Synchronize enums around tcm_mode - Access bootmode registers via firmware interface - Setup default values for DEBUG_UART - Fix dfu alt buffer clearing - Convert loadpdi command to fpga - Fix board detection code - Minor defconfig updates Versal: - Wire multi_boot register Versal Gen 2: - Enable missing drivers - Wire i2c FRU decoding at start - Wire saving variables to different locations - Disable default DEBUG_UART - Wire USB/UFS boot and fix access via firmware interface - Minor fixes ZynqMP/Kria: - Enable mkfwumdata - Topic board update - Enhance binman configurations - Kria usb update BuR: - Add multiple Zynq based boards cadence_ospi: - Enable device reset fpga: - Add support for loading bitstream for Altera SoCs
2025-04-17Merge patch series "airoha: add support spi/mmc/ethernet"Tom Rini
Christian Marangi <[email protected]> says: This is continuation of the initial patchset for airoha support. Some are trivial fix for spi. A new concept to setup SPI from detected NAND. Sadly DTS node still need to be merged upstream so we are currently adding them to u-boot dtsi and it's planned to be dropped once they are accepted in upstream kernel. Link: https://lore.kernel.org/r/[email protected]
2025-04-17configs: airoha: an7581_evb: Enable Airoha SNFI SPI configChristian Marangi
Enable Airoha SNFI SPI config to enable support for SNAND flash. Signed-off-by: Christian Marangi <[email protected]>
2025-04-17arm: dts: an7581: Add SNAND nodeChristian Marangi
Add SNAND node to Airoha AN7581 EVB DTS to enable support for attached SNAND flash. Signed-off-by: Christian Marangi <[email protected]>
2025-04-17spi: airoha: Add Airoha SPI NAND driverChristian Marangi
Add Airoha SPI NAND driver to permit usage of attached SNAND on the Airoha AN7581 SoC. While SPI controller supports DMA transation, due to U-Boot limitation we currently limit it to single command in Manual mode. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16spinand: call SPI setup_for_spinand if supportedChristian Marangi
Call SPI setup_for_spinand() if supported and defined to configure the SPI slave for the attached NAND. This is needed to configure the SPI with the NAND page size and spare size for correct configuration of the device. Call it as soon as the NAND is detected to correctly handle SPI controller with select_op_variant detection. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16spi: Introduce setup_for_spinand()Christian Marangi
A common device attached to SPI are SPI NAND and some device might require to have info on the attached NAND to know the flash page size and spare size. To support this, introduce setup_for_spinand() that pass the attached spinand info from manufacturer. Signed-off-by: Christian Marangi <[email protected]> [trini: Switch to forward declaration of struct spinand_info] Signed-off-by: Tom Rini <[email protected]>
2025-04-16spi: drop unneeded spi.h header include from spinand.hChristian Marangi
Drop unneeded spi.h header include from spinand.h, nothing included by spi.h is actually used in this header and .c should correctly included spi.h if actually needed. Replace spi.h with linux/bitops.h as this is what is actually required for spinand.h Signed-off-by: Christian Marangi <[email protected]>
2025-04-16regmap: Add regmap_set/clear_bits shorthandsChristian Marangi
Port Linux kernel regmap_set/clear_bits shorthands to set and clear bits in a regmap. These are handy if only specific bits needs to be applied or cleared and makes it easier to port regmap based driver from kernel upstream. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16airoha: Add eMMC config to defconfigChristian Marangi
Enable Mediatek MMC driver in Airoha AN7581 EVB defconfig to add support for it in default images. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16arch: arm: dts: an7581: Add eMMC nodesChristian Marangi
Add eMMC nodes with the fixed regulator and fixed clock. It's also needed to assign the clock and set it to 200MHz as it's set to 150Mhz by default. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16mmc: mediatek: permit to also build for Airoha archChristian Marangi
Airoha new SoC implement the same Mediatek driver for MMC. Permit to also build for Airoha arch. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16arch: arm: dts: an7581: Add Ethernet nodesChristian Marangi
Add Ethrnet nodes for Airoha AN7581 EVB board. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16airoha: Add Ethernet config to defconfigChristian Marangi
Add Ethrnet config to defconfig to enable Ethernet support. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16net: airoha: Add Airoha Ethernet driverChristian Marangi
Add airoha Ethernet driver for Airoha AN7581 SoC. This is a majorly rewritten and simplified version of the Linux airoha_eth.c driver. It's has been modified to support a single RX/TX ring to reflect U-Boot implementation with recv and send API. The struct and the define are kept as similar as possible to upstream one to not diverge too much. The AN7581 SoC include an Ethernet Switch based on the Mediatek MT753x but doesn't require any modification aside from setting the CPU port and applying the Flood configuration hence it can be handled entirely in the Ethernet driver. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16arch: arm: dts: an7581: add Chip SCU nodeChristian Marangi
Add pending Chip SCU node for clock node. Signed-off-by: Christian Marangi <[email protected]>
2025-04-16net: phy: Add the Airoha EN8811H PHY driverLucien.Jheng
Add the driver for the Airoha EN8811H 2.5 Gigabit PHY. The PHY supports 100/1000/2500 Mbps with auto negotiation only. The driver uses two firmware files, for which updated versions are added to linux-firmware already. Based on the Linux upstream 8811 driver code(air_en8811h.c), I have modified the relevant process to align with the U-Boot boot sequence. and have validated this on Banana Pi BPI-R3 Mini. The MD32 FW is currently stored in eMMC partition 1 on Banana Pi BPI-R3 Mini, and it is loaded from there. Signed-off-by: Lucien.Jheng <[email protected]>
2025-04-16Merge tag 'u-boot-marvell-20250516' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-marvell CI: https://dev.azure.com/sr0718/u-boot/_build/results?buildId=390&view=results - mvebu_espressobin_ultra-88f3720_defconfig: disable SATA - helios4: enable ddr odt0 on write for both chip-select - clearfog,helios4: disable sdhci sdma - mvebu/bubt: Correct usage of IS_ENABLED() macro - mvebu: Correct SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR usage
2025-04-16board/BuR/zynq: initial commitBernhard Messerklinger
This commit adds support for the brcp1, brsmarc2, brcp150 and brcp170 boards. This boards are based on the Xilinx Zynq SoC. Signed-off-by: Bernhard Messerklinger <[email protected]> Acked-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
2025-04-16board/BuR/common: split br_resetc_bmode functionBernhard Messerklinger
Split br_resetc_bmode function to add support for reading of reset reason in board code with br_resetc_bmode_get. Signed-off-by: Bernhard Messerklinger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
2025-04-16board/BuR/common: add parameter for reset controller I2C bus selectionBernhard Messerklinger
Normally B&R reset controllers are located at I2C bus 0. This patch adds the possibility to change this bus number with the kconfig option BR_RESETC_I2CBUS. Signed-off-by: Bernhard Messerklinger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
2025-04-16board/BuR/common: use strlcpy instead of strncpyBernhard Messerklinger
Now strlcpy is used to copy the defip string to the corresponding environment variable. This preserves memory for the NULL termination. Signed-off-by: Bernhard Messerklinger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>