summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-10-10sandbox: Rework readX/writeX macros to be more like ARMTom Rini
The way that the current readX/writeX macros are implemented on sandbox means that when IO_TRACE is not enabled some code will throw up incorrect warnings due to how sandbox_{read,write} is implemented. We instead need to do the "uX __v; __v = sandbox..(..v); __v;" trick that ARM does. Signed-off-by: Tom Rini <[email protected]>
2025-10-10arm: v7m: Allow SYS_ARCH_TIMER hereTom Rini
We have had an implementation of the generic timer found in many v7m chips since 2017, but as part of the Kconfig migration forgot to allow it as it wasn't being used at the time. Allow it to be built. Signed-off-by: Tom Rini <[email protected]>
2025-10-10Merge patch series "mkimage: fit: various fixes in fit_{import,extract}_data"Tom Rini
Quentin Schulz <[email protected]> says: I had to hunt down a difference between the FIT after running mkimage once and after running it twice. The use-case is typically U-Boot generating an unsigned FIT and then calling mkimage manually to sign it outside any build system. The issue can be reproduced with the following make CROSS_COMPILE=aarch64-linux-gnu- BUILD_TAG= SOURCE_DATE_EPOCH=0 O=build/ringneck ringneck-px30_defconfig make CROSS_COMPILE=aarch64-linux-gnu- BUILD_TAG= SOURCE_DATE_EPOCH=0 O=build/ringneck -j`nproc` cd build/ringneck cp ./simple-bin.fit.itb ./simple-bin.foo.fit cp ./simple-bin.fit.itb ./simple-bin.foo2.fit BUILD_TAG= SOURCE_DATE_EPOCH=0 ./tools/mkimage -E -t -B 200 -F ./simple-bin.foo.fit BUILD_TAG= SOURCE_DATE_EPOCH=0 ./tools/mkimage -E -t -B 200 -F ./simple-bin.foo2.fit BUILD_TAG= SOURCE_DATE_EPOCH=0 ./tools/mkimage -E -t -B 200 -F ./simple-bin.foo2.fit then compare the output of dtc -I dtb -O dts simple-bin.foo.fit dtc -I dtb -O dts simple-bin.foo2.fit data-size and data-offset properties are swapped. While going through the code, I identified a few theoretical issues possibly triggered by not checking the return code of fdt_setprop so those are added. Not tested outside of building. Link: https://lore.kernel.org/r/[email protected]
2025-10-10mkimage: fit: erase data-size property when importing dataQuentin Schulz
When importing data, the data-offset property is removed and the data content is imported inside the data property of the node. When mkimage is run twice on the same FIT, data-size property is already set in the second run, from the first run (via the fit_export_data function). If we don't remove the data-size property, nothing guarantees it matches the actual size of data within the data property. To avoid possible mistakes when handling the data property, let's simply remove the data-size property as well. This also fixes an ordering issue of the data-size and data-offset properties in FIT when comparing the FIT after one run of mkimage and a second run. This is due to fit_export_data setting data-offset property first (it doesn't exist so it's added) and then data-size (it doesn't exist so it's added) for the first run, while it sets data-offset property first (removed in fit_import_data, so it doesn't exist so it's added) and then data-size (it exists already from the first run, so it's simply modified) for the second run. Signed-off-by: Quentin Schulz <[email protected]>
2025-10-10mkimage: fit: do not ignore fdt_setprop return codeQuentin Schulz
All explicit calls to fdt_setprop* in tools/ are checked except those three. Let's add a check for the return code of fdt_setprop_u32() calls. Signed-off-by: Quentin Schulz <[email protected]>
2025-10-10mkimage: fit: do not overwrite fdt_setprop return valueQuentin Schulz
The return code of fdt_setprop is overwritten by the one from fdt_delprop meaning we could very well have an issue when setting the property that would be ignored if the deletion of the property that comes right after passes. Let's add a separate check for each. Fixes: 4860ee9b09e0 ("mkimage: allow internalization of data-position") Signed-off-by: Quentin Schulz <[email protected]>
2025-10-10Merge patch series "configs: toradex: enable USB Gadget OS Descriptors"Tom Rini
Emanuele Ghidoli <[email protected]> says: USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Link: https://lore.kernel.org/r/[email protected]
2025-10-10Merge patch series "configs: verdin-am*: enable USB Gadget OS Descriptors"Tom Rini
Emanuele Ghidoli <[email protected]> says: From: Emanuele Ghidoli <[email protected]> USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Toradex Easy Installer takes advantage of USB OS Descriptors to load itself via USB recovery. Link: https://lore.kernel.org/r/[email protected]
2025-10-10configs: toradex-smarc-imx8mp: enable USB Gadget OS Descriptors for fastbootEmanuele Ghidoli
USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Signed-off-by: Emanuele Ghidoli <[email protected]>
2025-10-10Merge patch series "am65-cpsw-nuss phy_interface_t fixup for fixed TX delay"Tom Rini
Matthias Schiffer <[email protected]> says: Following a discussion on the LKML [1], there has been a clarification of the correct use of the rgmii(/-rxid/-txid/-it) phy-modes [2] - namely, that they don't describe the interface at the MAC or PHY boundary, but whether the PCB traces add delays or not (where it is implementation-defined whether the delays are added on the MAC or PHY side in the latter case). Accordingly, a fixup has been implemented in the am65-cpsw-nuss driver to make it follow the clarified rules [3]; apply the same change to U-Boot. Backwards compatibility is preserved: using an old DTB with the wrong phy-mode only results in a warning message, but keeps the Ethernet working. With a new DTB from Linux 6.17+ that sets the mode to rgmii-id, these changes are necessary to avoid using an unsupported/ reserved configuration. See the commit message of patch 2/2 for some additional detail. [1] https://lore.kernel.org/lkml/[email protected]/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c360eb0c3ccb95306704fd221442283ee82f1f58 [3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ca13b249f291f4920466638d1adbfb3f9c8db6e9 Link: https://lore.kernel.org/r/[email protected]
2025-10-10configs: verdin-am62p: enable USB Gadget OS Descriptors for fastbootEmanuele Ghidoli
USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Signed-off-by: Emanuele Ghidoli <[email protected]>
2025-10-10configs: verdin-imx8m[mp]: enable USB Gadget OS Descriptors for fastbootEmanuele Ghidoli
USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Signed-off-by: Emanuele Ghidoli <[email protected]>
2025-10-10net: ethernet: ti: am65-cpsw: fix up PHY mode for fixed RGMII TX delayMatthias Schiffer
The am65-cpsw driver currently sets the SEL_RGMII_IDMODE flag in a MAC's mode register to enable or disable the TX delay. While this was supported for earlier generations of the CPSW controller, the datasheets of all modern TI SoCs using the am65-cpsw MAC state that the TX delay is fixed, and the SEL_RGMII_IDMODE bit is documented as reserved in most of them. Furthermore, while it was found that this bit does in fact disable the TX delay, [1] states that this setting is truly unsupported by TI and not just undocumented. Following the clarification of the rgmii* phy-mode values in the Linux DT bindings in [2], the Linux am65-cpsw driver was changed in [3] to account for the fixed TX delay by fixing up the mode passed to the PHY driver; a similar fixup already existed in the TI icssg-prueth driver. [4] followed up on this by explicitly clearing the SEL_RGMII_IDMODE flag to handle the case where it is set by the bootloader or other firmware before Linux. With the above changes, Device Trees that set the recommended "rgmii-id" mode are now appearing in Linux 6.17+. Avoid setting the unsupported SEL_RGMII_IDMODE flag for such Device Trees, and instead fix up the PHY interface mode, thus aligning the U-Boot driver with the Linux kernel. [1] https://www.spinics.net/lists/netdev/msg1112647.html [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c360eb0c3ccb95306704fd221442283ee82f1f58 [3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ca13b249f291f4920466638d1adbfb3f9c8db6e9 [4] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a22d3b0d49d411e64ed07e30c2095035ecb30ed2 Signed-off-by: Matthias Schiffer <[email protected]>
2025-10-10configs: verdin-am62: enable USB Gadget OS Descriptors for fastbootEmanuele Ghidoli
USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Signed-off-by: Emanuele Ghidoli <[email protected]>
2025-10-10configs: colibri-*: enable USB Gadget OS Descriptors for fastbootEmanuele Ghidoli
USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Signed-off-by: Emanuele Ghidoli <[email protected]>
2025-10-10net: mdio-uclass: introduce dm_eth_phy_connect_interface()Matthias Schiffer
dm_eth_phy_connect_interface() is a variant of dm_eth_phy_connect() that allows to set the used PHY mode, in case the MAC driver needs to fix it up. The previously static dm_eth_connect_phy_handle() is renamed and extended for this purpose. Signed-off-by: Matthias Schiffer <[email protected]>
2025-10-10configs: apalis-imx6: enable USB Gadget OS Descriptors for fastbootEmanuele Ghidoli
USB OS Descriptors are used to install and configure the device without requiring any user interaction on OS which support them (e.g. Windows). Enable them in order to improve the user experience when fastboot is used. Signed-off-by: Emanuele Ghidoli <[email protected]>
2025-10-10spl: spl_sata: Add __maybe_unused decoratorTom Rini
It is possible that we will not have enabled the options to call spl_sata_load_image_raw so use the __maybe_unused decorator to silence the compiler warning. Signed-off-by: Tom Rini <[email protected]>
2025-10-10dts: Set a default value for DEFAULT_DEVICE_TREE for SANDBOXTom Rini
As part of building with "allyesconfig" we need to have the correct default value for the sandbox architecture provided here. Signed-off-by: Tom Rini <[email protected]>
2025-10-10timer: Tighten dependencies on MCHP_PIT64B_TIMERTom Rini
The MCHP_PIT64B_TIMER driver is not safe to compile on 64bit platforms such as allyesconfig on a 64bit host. Tighten the dependencies here to the platforms which use it today. Acked-by: Eugen Hristev <[email protected]> Signed-off-by: Tom Rini <[email protected]>
2025-10-10gpio: Remove FTGPIO0010 driverTom Rini
This driver has never been enabled and currently has build problems related in part to incorrect out_le32 calls. Remove it. Signed-off-by: Tom Rini <[email protected]>
2025-10-10include: completion.h: Convert the rest of the dummy functions to macrosTom Rini
While we declare some of our dummy functions as "inline" we do not also declare them as "static" and so it is possible for the compiler to decide to make these as global functions instead. This can lead to link time failures in some cases, such as "allyesconfig". As these are just dummy functions, convert them to a macro instead. Signed-off-by: Tom Rini <[email protected]>
2025-10-10configs: j7200_evm_a72_defconfig: Enable DP83867 Ethernet PHYSiddharth Vadapalli
The MCU Ethernet Interface on J7200-EVM uses the DP83867 Ethernet PHY as described in the section '4.9 MCU Ethernet Interface' of the J7200-EVM User-Guide [0]. Since the config corresponding to the DP83867 PHY has not been enabled, the Generic PHY driver is used. As a result, the RGMII delays do not take effect leading to packet losses. Fix this by enabling the config for the DP83867 Ethernet PHY. [0]: https://www.ti.com/lit/ug/spruiw7a/spruiw7a.pdf Fixes: f8c1e893c82f ("configs: j7200_evm_a72: Add Initial support") Signed-off-by: Siddharth Vadapalli <[email protected]>
2025-10-10Merge branch 'uboot-05102025' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-nand-flash This series adds significant and valuable work by Mikhail Kshevetskiy to align spi-mem with Linux 6.16. It also includes contributions to the mtd performance patches, a work started by Miquel Raynal and improved by Mikhail Kshevetskiy. Additionally, two patches tighten dependencies on the Atmel driver. The patches pass the pipeline CI: https://source.denx.de/u-boot/custodians/u-boot-nand-flash/-/pipelines/27873
2025-10-10Merge tag 'fsl-qoriq-master-2025-10-10' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq CI: https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq/-/pipelines/27882 - crypto/rng: double the entropy delay interval for retry - Make RAMBOOT_PBL only be valid for PowerPC or ls1021AI
2025-10-10Merge tag 'mmc-power-master-2025-10-10' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-mmc CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/27881 - Use dev_read_u32() for sdhciA-cadence6 - Misc compilation/Kconfig fix
2025-10-10NXP: Make RAMBOOT_PBL only be valid for PowerPC or ls1021ATom Rini
Only PowerPC and LS1021A platforms can make use of RAMBOOT_PBL. Add the dependencies to the symbol. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-10-10crypto/rng: double the entropy delay interval for retryGaurav Jain
During entropy evaluation, if the generated samples fail any statistical test, then, all of the bits will be discarded, and a second set of samples will be generated and tested. Double the ent_delay to give more chance to pass before performing retry. Signed-off-by: Gaurav Jain <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-10-10mmc: cv1800b_sdhci: Fix possible warning with MMC_SUPPORTS_TUNING=nTom Rini
The function cv1800b_set_tap_delay is only called by cv1800b_execute_tuning. The latter is where we currently have the #if guard around MMC_SUPPORTS_TUNING, and so with the option disabled we have an unused function warning. Move the guard to cover both functions. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-10-10power: regulator: Correct dependencies on SPL_REGULATOR_PWMTom Rini
In order to enable and build with SPL_REGULATOR_PWM we need to have both SPL_DM_REGULATOR and SPL_DM_PWM enabled. Build-wise, we can have SPL have PWM regulator support without enabling it in U-Boot itself so drop that dependency. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-10-10mmc: Fix a potential warning in xPLTom Rini
When xPL_MMC_WRITE is set but also xPL_MMC_TINY is set, the function sd_read_ssr may be unused. Guard it appropriately. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-10-10mmc: sdhci-cadence6: Use dev_read_u32() for device tree property parsingTanmay Kathpalia
Convert device tree property parsing to use dev_read_u32(), which handles endianness and simplifies the code. Signed-off-by: Tanmay Kathpalia <[email protected]> Signed-off-by: Peng Fan <[email protected]>
2025-10-09Merge patch series "firmware: scmi: various update"Tom Rini
Peng Fan (OSS) <[email protected]> says: Misc update on firmware scmi: - Typo fix - Use io helpers - Use PAGE_SIZE for arm64 - Add IN_USE error code - Add more error info - Support scmi max rx timeout in mailbox - Add myself as scmi maintainer, AKASHI contributed most code, but seems he is not invovled in the developement anymore, I volunteer to help here. Some items on list that I am thinking to add: - align with linux kernel to use cpu_to_le32 and le32_to_cpu, but have not find a good way to use the helpers. - Add SCMI version negotiation as Linux Kernel Link: https://lore.kernel.org/r/[email protected]
2025-10-09MAINTAINERS: Add an entry for SCMIPeng Fan
Add an entry for SCMI and add myself as maintainer Signed-off-by: Peng Fan <[email protected]>
2025-10-09cmd: scmi: Add pin control protocol namePeng Fan
Pin control protocol name was not added into 'protocol_name' array, however Pin control was supported on i.MX95. So add it. Signed-off-by: Peng Fan <[email protected]>
2025-10-09clk: scmi: Replace log_debug with dev_dbgPeng Fan
Use dev_dbg to dump device name, dev_dbg also a encapsulation call to log() and print(). So it is ok to use dev_dbg. Signed-off-by: Peng Fan <[email protected]>
2025-10-09firmware: scmi: mailbox: Support arm,max_rx_timeout_msPeng Fan
Per devicetree bindings: arm,max-rx-timeout-ms indicates an optional time value, expressed in milliseconds, representing the transport maximum timeout value for the receive channel. The value should be a non-zero value if set. Support this property if platform set it to a non-default value. This property is a per SCMI property, so all channels share same value. Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2025-10-09firmware: scmi: mailbox: Update timeout to 30msPeng Fan
Following Linux Kernel drivers/firmware/arm_scmi/transports/mailbox.c to set the default timeout to 30ms. Signed-off-by: Peng Fan <[email protected]>
2025-10-09firmware: scmi: use PAGE_SIZE alignment for ARM64Peng Fan
For ARMv7, the alignment could be SECTION size. But for ARM64, use PAGE_SIZE. Signed-off-by: Peng Fan <[email protected]>
2025-10-09firmware: scmi: Add error code IN_USEPeng Fan
In SCMI spec 3.2, there is an update: Add IN_USE error code for usage with Pin control protocol So add the error decoding for IN_USE. Signed-off-by: Peng Fan <[email protected]>
2025-10-09firmware: scmi: smt: Dump more infoPeng Fan
"Buffer too small" is too vague, dump more info to make it easier to debug issues. Change dev_dbg to dev_err when buffer is too small. Signed-off-by: Peng Fan <[email protected]>
2025-10-09firmware: scmi: smt: Use io helpersPeng Fan
It is not good practice to directly use "hdr->x" to read/write the hdr, because the SCMI buffer may not mapped as normal memory. Following Linux Kernel, using ioread32/iowrite32/memcpy_[from,to]io for smt header read, write. Signed-off-by: Peng Fan <[email protected]>
2025-10-09firmware: scmi: Typo fixPeng Fan
Typo: 'to' -> 'too' Signed-off-by: Peng Fan <[email protected]>
2025-10-09Merge patch series "fw_loader: Split from fs_loader into separate library file"Tom Rini
This series from Marek Vasut <[email protected]> splits the fw_loader "script" code out from the fs_loader code as the former does not require the latter. Link: https://lore.kernel.org/r/[email protected]
2025-10-09fw_loader: Prefix the FW loader variables with the script prefixMarek Vasut
Add the script name as a prefix to fw_addr and fw_size variables to make sure they are always unique and won't easily conflict with user variables. Signed-off-by: Marek Vasut <[email protected]>
2025-10-09fw_loader: Split from fs_loader into separate library fileMarek Vasut
The script based firmware loader does not use anything from the fs_loader implementation. Separate it into its own library source file and convert the mediatek PHY to use this separate code. This should reduce the amount of code that is pulled in alongside the firmware loader, as the FS loader is no longer included. Signed-off-by: Marek Vasut <[email protected]>
2025-10-09Merge tag 'u-boot-imx-master-20251009' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-imx CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/27872 - Several improvements for kontron-sl-mx8mm. - Add rauc to bootmeths to phycore_imx8mp. - Fix imx93_frdm USB vendor ID.
2025-10-09nand: atmel: Rework ATMEL_EBI and DM_NAND_ATMEL interactionTom Rini
The way that the NAND driver under DM_NAND_ATMEL is probed is by the dummy memory driver controlled by ATMEL_EBI. Rather than require that for NAND to work both be enabled, make NAND select ATMEL_EBI and do not prompt for ATMEL_EBI as it only triggers the probe for NAND. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
2025-10-09mtd: Tighten some mtd driver dependenciesTom Rini
A large number of mtd drivers cannot build without access to some platform specific header files. Express those requirements in Kconfig as well. Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
2025-10-09arm: dts: imx8mp-toradex-smarc: migrate to OF_UPSTREAMErnest Van Hoecke
Enable CONFIG_OF_UPSTREAM to receive automatic device tree updates for the Toradex SMARC iMX8MP. Remove the now obsolete device tree files: - imx8mp-toradex-smarc-dev.dts - imx8mp-toradex-smarc.dtsi Signed-off-by: Ernest Van Hoecke <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>