summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
4 daysw1: Correct dependencies for CMD_W1Tom Rini
The CMD_W1 functionality can only work with both W1 and W1_EEPROM enabled, so express this dependency in Kconfig. Signed-off-by: Tom Rini <[email protected]>
4 dayscmd: Correct dependencies for CMD_BOOTDTom Rini
The CMD_BOOTD functionality can only work with CMD_BOOTM enabled, so express this dependency in Kconfig. Signed-off-by: Tom Rini <[email protected]>
4 dayslmb: boot: Update dependencies within BOOT_DEFAULTS_CMDSTom Rini
The CMD_BOOT[IZ] symbols have a dependency on LMB, correctly, currently. Make sure that in BOOT_DEFAULTS_CMDS we only select these commands if LMB is enabled. Signed-off-by: Tom Rini <[email protected]>
4 dayslmb: Rework the LMB_ARCH_MEM_MAP symbolTom Rini
This symbol should not be enabled by the user directly but rather selected when implemented in a given platform. This converts all of the current users of this feature and hides the symbol. Signed-off-by: Tom Rini <[email protected]>
4 daysdts: Disallow OF_UPSTREAM for sandboxTom Rini
Our sandbox platform are not appropriate for OF_UPSTREAM, reflect this in Kconfig. Signed-off-by: Tom Rini <[email protected]>
4 daysenv: remote: Disallow CMD_SAVEENVTom Rini
Looking at how the saveenv portion of this driver was implemented, it does not appear that it could actually result in changes being saved on the remote end. Update Kconfig to disallow CMD_SAVEENV for ENV_IS_IN_REMOTE and then remove the relevant code. Signed-off-by: Tom Rini <[email protected]>
4 daysenv: Make more use of the ENV_SAVE_PTR macroTom Rini
With commit 82b2f4135719 ("env_internal.h: add alternative ENV_SAVE_PTR macro") we introduced the ENV_SAVE_PTR macro but as explained in the commit message, left full conversion for a later time. This commit makes more progress on that front by doing the remaining easy conversions to the new macro. Signed-off-by: Tom Rini <[email protected]> Changes in v2: - Reduce the number of conversions, some didn't work as expected once CMD_SAVEENV was actually disabled. - Finish converting UBI Cc Rasmus Villemoes <[email protected]>
4 daysconfigs: mt8189: enable GPIO supportDavid Lechner
Enable GPIO support for mt8189-based boards. This is needed for U-Boot to be able to use the SD card slot on the board (for the CD pin). Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
4 daysarm: dts: add U-Boot overrides for Genio 520 and 720 SD cardDavid Lechner
Add U-Boot-specific device tree overrides for the Genio 520 and 720 EVK boards. These are needed to enable SD card support in U-Boot due to current driver limitations. It is expected that these files will remain after eventually converting these to CONFIG_OF_UPSTREAM, so we use separate .u-boot.dtsi files for this. Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
4 daysarm: dts: mt8371: add SD card nodesDavid Lechner
Add SD card nodes to the MT8371 Genio common and MT8189 SoC device tree files. This is coming from what has been submitted upstream in Linux [1]. The process is going slow, so we a copy in U-Boot until we can switch to CONFIG_OF_UPSTREAM. Link: https://lore.kernel.org/linux-mediatek/20251203-add-mediatek-genio-520-720-evk-v1-0-df794b2a30ae@collabora.com/ [1] Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
4 daysboard: mediatek: Add Genio 520/720 EVK defconfigsChris-QJ Chen
Add basic defconfigs for Genio 520 and 720 EVKs. Signed-off-by: Chris-QJ Chen <[email protected]> Signed-off-by: Macpaul Lin <[email protected]> Reviewed-by: Julien Stephan <[email protected]> Reviewed-by: Macpaul Lin <[email protected]> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-6-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <[email protected]>
4 daysarm: dts: mediatek: Add MediaTek Genio 520/720 EVK DTSChris-QJ Chen
Add a basic .dts file for MediaTek Genio 520/720 EVKs. This will suffice until an upstream devicetree is available from Linux. These boards are virtually identical (other than some camera capabilities) so share mostly the same devicetree. Signed-off-by: Chris-QJ Chen <[email protected]> Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-5-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <[email protected]>
4 daysarm: dts: mediatek: Add MediaTek MT8189 dtsi fileChris-QJ Chen
Add a basic .dtsi file for MediaTek MT8189. This will suffice until an upstream devicetree is available from Linux. Signed-off-by: Chris-QJ Chen <[email protected]> Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-4-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <[email protected]>
4 daysarm: dts: mediatek: mt8189: Add pinmux macro header fileCathy Xu
Add the pinctrl header file on MediaTek mt8189. Signed-off-by: Cathy Xu <[email protected]> Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-3-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <[email protected]>
4 daysarm: mediatek: add support of MT8189 SoC familyChris-QJ Chen
Add TARGET_MT8189 for MT8189 and similar SoCs. Signed-off-by: Chris-QJ Chen <[email protected]> Signed-off-by: Macpaul Lin <[email protected]> Reviewed-by: Julien Stephan <[email protected]> Reviewed-by: Macpaul Lin <[email protected]> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-2-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <[email protected]>
4 daysclk: mediatek: mt8189: add some VLP clocksDavid Lechner
Add some VLP clocks needed by the PMIC on MT8189 and similar SoCs. Reviewed-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-1-19dd92f4543f@baylibre.com Signed-off-by: David Lechner <[email protected]>
4 dayspinctrl: mediatek: mtk8189: set get_pinconf functionsDavid Lechner
Set the get_pinconf functions for the mt8189 pinctrl driver. This will append pinconf bias info to the output of the pinmux status command. This is useful for debugging pin configuration issues. Reviewed-by: Macpaul Lin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
4 dayspinctrl: mediatek: print bias info along with pinmuxDavid Lechner
Add functionality to be able to print pin bias settings along with the pinmux setting. This can be useful to debug why pins might not be working correctly. Reviewed-by: Macpaul Lin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
4 dayspinctrl: mediatek: mt8189: fix pinconf biasDavid Lechner
Fix setting pinconf bias for MT8189. Using mtk_pinconf_bias_set_v1() was wrong because MT8189 does not have PULLEN/PULLSEL registers. It has PU and PD registers for most pins. MSDC pins need special handling since they have PUPD/R1/R0 registers. I2C pins need special handling since they have PU/PD/RSEL registers. New groups are added for MSDC and I2C pins and the bias_set callback is now set appropriately for all groups. A new table is needed for the RSEL registers since those were missing. Some new macros are introduced to avoid repeating the same info many times in MTK_TYPED_PIN(). This also fixes the semantically incorrect use of DRV_GRPX for the IO_TYPE_GRPX field. Reviewed-by: Macpaul Lin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
4 dayspinctrl: mediatek: add handling for RSEL registerDavid Lechner
Add a new PINCTRL_PIN_REG_RSEL register type and a new function mtk_pinconf_bias_set_pu_pd_rsel() to handle setting it. Some MediaTek SoCs have a pin configuration register called RSEL that sets the resistance value for bias pullup/pulldown. Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysconfigs: mt8370/mt8390/mt8395 add myself as maintainerJulien Stephan
Set myself as maintainer for the following genio boards: - mt8370-genio-510-evk - mt8393-genio-700-evk - mt8395-genio-1200-evk Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysconfigs: mt8370/mt8390: introduce mt8188.config to avoid duplicationJulien Stephan
mt8370_genio_510_evk_defconfig and mt8390_genio_700_evk_defconfig are both based on MT8188, add a new mt8188.config file to share common config. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysconfigs: mt8390_evk: rename to mt8390_genio_700_evk_defconfigJulien Stephan
Rename mt8390_evk to match the name of the device tree which is mt8390-genio-700-evk.dts Also update CONFIG_IDENT_STRING to be consistent. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysconfigs: mt8370_evk: rename to mt8370_genio_510_evk_defconfigJulien Stephan
Rename mt8370_evk to match the name of the device tree which is mt8370-genio-510-evk.dts Also update CONFIG_IDENT_STRING to be consistent. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysconfigs: mt8395_evk: rename to mt8395_genio_1200_evk_defconfigJulien Stephan
Rename mt8395_evk to match the name of the device tree which is mt8395-genio-1200-evk.dts Also update CONFIG_IDENT_STRING to be consistent. Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysconfigs: mt8390_evk: remove useless CONFIG_SYS_BOARDJulien Stephan
There is no board directory for MT8390_EVK so CONFIG_SYS_BOARD can be removed Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8518: remove call to fdtdec_setup_memory_banksize()David Lechner
Remove an incorrect call to fdtdec_setup_memory_banksize() in dram_init() for mt8518. fdtdec_setup_memory_banksize() populates gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size base on the "memory" node in the device tree. However, calling it from dram_init() is too early because gd->bd has not been allocated yet. gd->bd->bi_dram[0].start and gd->bd->bi_dram[0].size are already correctly initialized later in dram_init_banksize(), so we do not need to replace the removed function call with anything else. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8518: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8518. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8516: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8516. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8512: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8512. This is exactly the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8365: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8365. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8195: fix gd->ram_top limitDavid Lechner
Fix the implementation of the gd->ram_top limit for mt8195. The intention of the comment about MMC/DMA is correct, but the implementation was wrong. gd->mon_len is set to the code size of U-Boot, so trying to set it to limit gd->ram_top does not make sense. Instead, there is already a get_effective_memsize() weak function that we can override to implement the required limit on the usable memory size. This is used to set gd->ram_top in setup_dest_addr(). The comment about the extra SZ_1M needing to be reserved is not correct as U-Boot already takes care of this (with the actual size of U-Boot) in the various board_f functions, so it is removed. This fixes DMA not working on MMC on mt8195. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8195: remove call to fdtdec_setup_memory_banksize()David Lechner
Remove an incorrect call to fdtdec_setup_memory_banksize() in dram_init() for mt8195. fdtdec_setup_memory_banksize() populates gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size base on the "memory" node in the device tree. However, calling it from dram_init() is too early because gd->bd has not been allocated yet. gd->bd->bi_dram[0].start and gd->bd->bi_dram[0].size are already correctly initialized later in dram_init_banksize(), so we do not need to replace the removed function call with anything else. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8195: check return value of fdtdec_setup_mem_size_base()David Lechner
Check and propagate the return value of fdtdec_setup_mem_size_base() in dram_init() for mt8195. This function could fail if the device tree is malformed. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8195: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8195. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8188: fix gd->ram_top limitDavid Lechner
Fix the implementation of the gd->ram_top limit for mt8188. The intention of the comment about MMC/DMA is correct, but the implementation was wrong. gd->mon_len is set to the code size of U-Boot, so trying to set it to limit gd->ram_top does not make sense. Instead, there is already a get_effective_memsize() weak function that we can override to implement the required limit on the usable memory size. This is used to set gd->ram_top in setup_dest_addr(). The comment about the extra SZ_1M needing to be reserved is not correct as U-Boot already takes care of this (with the actual size of U-Boot) in the various board_f functions, so it is removed. This fixes DMA not working on MMC on mt8188. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8188: remove call to fdtdec_setup_memory_banksize()David Lechner
Remove an incorrect call to fdtdec_setup_memory_banksize() in dram_init() for mt8188. fdtdec_setup_memory_banksize() populates gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size base on the "memory" node in the device tree. However, calling it from dram_init() is too early because gd->bd has not been allocated yet. gd->bd->bi_dram[0].start and gd->bd->bi_dram[0].size are already correctly initialized later in dram_init_banksize(), so we do not need to replace the removed function call with anything else. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8188: check return value of fdtdec_setup_mem_size_base()David Lechner
Check and propagate the return value of fdtdec_setup_mem_size_base() in dram_init() for mt8188. This function could fail if the device tree is malformed. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8188: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8188. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8183: remove call to fdtdec_setup_memory_banksize()David Lechner
Remove an incorrect call to fdtdec_setup_memory_banksize() in dram_init() for mt8183. fdtdec_setup_memory_banksize() populates gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size base on the "memory" node in the device tree. However, calling it from dram_init() is too early because gd->bd has not been allocated yet. gd->bd->bi_dram[0].start and gd->bd->bi_dram[0].size are already correctly initialized later in dram_init_banksize(), so we do not need to replace the removed function call with anything else. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt8183: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt8183. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt7988: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt7988. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysarm: mediatek: mt7987: drop dram_init_banksize()David Lechner
Drop override of dram_init_banksize() weak function for mt7987. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan <[email protected]> Tested-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
5 daysMerge branch 'next'Tom Rini
5 daysPrepare v2026.04v2026.04Tom Rini
Signed-off-by: Tom Rini <[email protected]>
5 daysAdd an initial CONTRIBUTE.rstPeter Robinson
Add a contributors file to provide a high level overview for people who wish to contribute to the project outlining basic details and setting some project expectations. This isn't intended to replace any of the existing documentation but rather provide a succinct top level document that's easy to find to enable users to understand the project and get started as quickly as possible. Signed-off-by: Peter Robinson <[email protected]> [trini: Correct merge window length, release day and typo in the main index] Signed-off-by: Tom Rini <[email protected]>
6 daysMerge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-shTom Rini
Two trivial fixes for 2026.04 , one fix for possible NULL pointer dereference which was not triggered thus far but got detected on Gen5 RSIP, and one basic disablement of SCIF1 in DT to which a driver was never bound. But it would be nice to have them corrected.
7 daysarm64: dts: renesas: Disable SCIF1 in Renesas R-Car X5H R8A78000 SoC DTMarek Vasut
Disable incorrectly enabled SCIF1 in Renesas R-Car X5H R8A78000 SoC DT. The SCIF1 should be enabled on board DT level in case it is needed, but should be disabled in SoC DT by default. This had no adverse effect on the currently upstream platforms, because those managed to probe only the HSCIF0 device and SCIF1 was ignored. Signed-off-by: Marek Vasut <[email protected]>
7 daysnet: rswitch: Avoid NULL pointer dereference during PHY accessMarek Vasut
At the very early stage when PHY ID is being auto-detected, the PHY device is not yet instantiated and rswitch_etha .phydev is still NULL. Add missing check for this condition and perform C22 fallback access in this PHY ID auto-detection case. Signed-off-by: Marek Vasut <[email protected]>
8 daysRevert "usb: cdns3: use VBUS Valid to determine role for dr_mode OTG"Prasanth Babu Mantena
While USB DFU boot works with this patch, but the non USB boot modes like SD Boot and flash boot fails for J784S4 EVM device. So, Reverting this patch. This reverts commit bfb530e06ca6c19f66c079601e568c761a001993. Signed-off-by: Prasanth Babu Mantena <[email protected]>