[PATCH v2 3/6] reset: airoha: Add driver for controlling reset line of AN7581

2025-03-14 Thread Christian Marangi
Add driver for controlling the reset lines of AN7581. This is a detached version of the clock controller driver present in Linux only used to control reset lines. Driver gets loaded with the bind of the clock driver and doesn't require a compatible. This is needed as they share the same registers.

[PATCH] x86: Correct usage of FSP_VERSION2

2025-03-14 Thread Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In this case, we move to having a "default FSP_VERSION2 if INTEL_APOLLOLAKE" in order to get the desired outcome. Signed-off-by: Tom Rini --- arch/x86/Kconfig | 1 + arch/x8

[PATCH] mtd: nand: raw: Drop SYS_NAND_SOFT_ECC from NAND_SANDBOX

2025-03-14 Thread Tom Rini
This option is only meaningful within the davinci nand driver, so drop the statement here (which had no effect). Signed-off-by: Tom Rini --- drivers/mtd/nand/raw/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 609bdffbf

[PATCH] Kconfig: Do not "select OF_SEPARATE"

2025-03-14 Thread Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In the case of OF_SEPARATE this is the default so we do not need to do anything here normally to enforce this. Signed-off-by: Tom Rini --- arch/arm/Kconfig | 3 --- arch/arm/

Re: [PATCH v1 0/1] video: edid: guard standard timings EDID expansion behind kconfig

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 06:47:26PM +0200, Svyatoslav Ryhel wrote: > пт, 14 бер. 2025 р. о 18:21 Tom Rini пише: > > > > On Fri, Mar 14, 2025 at 08:47:19AM +0200, Svyatoslav Ryhel wrote: > > > > > Since EDID only indicates supported standard timings, a large table with > > > detailed timing informat

Re: [RFC PATCH v2 2/5] doc: cmd: add documentation for fuse command

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 07:27:03PM +0530, Harsha Vardhan V M wrote: > Add documentation for the 'fuse' sub-system commands. > > Signed-off-by: Harsha Vardhan V M > --- > doc/usage/cmd/fuse.rst | 156 + > 1 file changed, 156 insertions(+) > create mode 10

[PATCH 1/2] arc: Rework Kconfig choice menus

2025-03-14 Thread Tom Rini
Currently we get a number of warnings about using "select" statements on "choice" options and that this as no effect. Rework some of these so that we use "depends on" rather than select for the CPU, and have the CPU select the MMU version. The MMU version is no longer prompted for. Signed-off-by:

[PATCH] Kconfig: Fix "warning: style: quotes recommended" warnings

2025-03-14 Thread Tom Rini
We have three warnings about needing to use quotes around some strings in Kconfig files today. In two of these cases we can just add the missing strings. In the case of INTEL_PINCTRL_PADCFG_PADTOL the symbol is never referenced and should be dropped. Signed-off-by: Tom Rini --- Kconfig

[PATCH] ARM: renesas: Drop 'imply MULTI_DTB_FIT_USER_DEFINED_AREA' lines

2025-03-14 Thread Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. This is why for all of the boards which had an 'imply MULTI_DTB_FIT_USER_DEFINED_AREA' they then also had to set the option in the defconfig. Drop the imply lines here. Signed-off-by: Tom Rini

[PATCH] phycore_imx8mp: Rework some of the RAM related Kconfig symbols

2025-03-14 Thread Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In this case we can easily fix this by dropping the select line as the following choice statement handles things correctly. We also drop the "default false" line as false / n is the default. Si

[PATCH] ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

2025-03-14 Thread Tom Rini
The use of both "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION" and "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE" here is wrong as those are both part of the same choice statement. Furthermore you cannot select/imply something from a choice statement, it must be a "default ... if ..." constr

[PATCH] cmd: Correct dependency for CMD_LINK_LOCAL

2025-03-14 Thread Tom Rini
Given how LIB_RAND is handled now, we should be depending on one of the implementations and not selecting one of them. Signed-off-by: Tom Rini --- cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index cd391d422ae2..aaebdfdd0c1c 100644 ---

[PATCH] ARM: mvebu: Correct SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR usage

2025-03-14 Thread Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. However, it also works as intended because SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is the default option within that choice statement. To guard against future regressions, make the choice statement

[PATCH] openpiton: riscv64: Drop unnecessary 'imply SPL_RISCV_MMODE'

2025-03-14 Thread Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In this case, the option SPL_RISCV_MMODE is the default. Signed-off-by: Tom Rini --- Cc: Tianrui Wei --- board/openpiton/riscv64/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/bo

[PATCH 2/2] usb: ulpi: Clean up how we enable support

2025-03-14 Thread Tom Rini
The way we enable ULPI support today isn't something that should work. The "optional" keyword in a choice statement is not a documented feature. To make this work in a supported way, make USB_ULPI something we ask about if USB_HOST is set. Next, we move the choice of what viewer to use to be after

[PATCH 1/2] usb: ulpi: Remove unused omap-ulpi-viewport driver

2025-03-14 Thread Tom Rini
The last platform to enable this driver was removed in 2019. Remove this unused code and documentation now. Signed-off-by: Tom Rini --- Cc: Marek Vasut --- doc/README.omap-ulpi-viewport | 27 -- drivers/usb/ulpi/Kconfig | 5 -- drivers/usb/ulpi/Makefile

Re: [PATCH 2/2] mtd: spi-nor-core: Rework spansion_sr_ready() for parallel memories support

2025-03-14 Thread Takahiro Kuwano
On 3/14/2025 11:54 PM, Tom Rini wrote: > On Fri, Mar 14, 2025 at 07:40:17AM +, Tudor Ambarus wrote: >> + Marek, >> >> Hi, >> >> On 3/14/25 5:53 AM, tkuw584...@gmail.com wrote: >>> spansion_sr_ready() needs to support parallel memories configuration, >>> that reads status register value from eac

Re: [PATCH] lmb: change the return code on lmb_alloc_addr()

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 11:26:59PM +, Ben Schneider wrote: > > Thanks Ben. > > Happy to help. In case the context is useful, I wound up here > because I use U-Boot to load systemd-boot which then, in turn, loads > the kernel. Unlike GRUB, systemd-boot does not provide decompression > and recom

Re: [PATCH] lmb: change the return code on lmb_alloc_addr()

2025-03-14 Thread Ben Schneider
> Thanks Ben. Happy to help. In case the context is useful, I wound up here because I use U-Boot to load systemd-boot which then, in turn, loads the kernel. Unlike GRUB, systemd-boot does not provide decompression and recommends using EFI_ZBOOT[0]. Perhaps it is uncommon to: a) have the first goo

[PATCH v2 0/1] board: tegra30: ouya: add basic support for Ouya Game Console

2025-03-14 Thread Svyatoslav Ryhel
The Ouya microconsole is build on Nvidia Tegra 3 (T33) SoC, featuring a quad-core 1.7 GHz ARM Cortex-A9 CPU and a ULP GeForce GPU, paired with 1GB of DDR3 RAM and 8GB of internal flash storage. --- Changes in v2: - fixed EMMC, removed restrictions - removed redundant configurations --- Svyatoslav

[PATCH] arch/x86: Add 64-bit U-Boot configuration without SPL

2025-03-14 Thread Jeremy Compostella
This commit introduces a new configuration option X86_RUN_64BIT_NO_SPL to allow building U-Boot as a 64-bit binary without using the SPL (Secondary Program Loader). The motivation is to simplify the boot process for specific x86-based platforms that do not require SPL, such as those booting directl

[PATCH 12/12] CI: add sandbox64_lwip

2025-03-14 Thread Jerome Forissier
Add sandbox64_lwip_defconfig to the list of tested boards. Signed-off-by: Jerome Forissier --- .azure-pipelines.yml | 2 ++ .gitlab-ci.yml | 11 +++ 2 files changed, 13 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index d5cfa59a8a6..2e894948507 100644 --

[PATCH 08/12] net: ping: make do_ping() available via

2025-03-14 Thread Jerome Forissier
Make the do_ping() function in cmd/net.c a global one by getting rid of the static qualifier, and move the prototype declaration from net-lwip.h to net-common.h. This makes the function available to other parts of U-Boot when CONFIG_NET=y, as was already the case when CONFIG_NET_LWIP=y. This is a

[PATCH 09/12] test: dm: eth, dsa: update tests for NET_LWIP

2025-03-14 Thread Jerome Forissier
Convert the tests to use the do_ping() interface which is now common to NET and NET_LWIP. This allows running most network test with SANDBOX and NET_LWIP. A few things to note though: 1. The ARP and IPv6 tests are enabled for NET only 2. The net_retry test is modified to use eth0 (eth@10002000) a

[PATCH 07/12] sandbox: provide static IP addresses for eth{2, 3, 5, 6, 7}

2025-03-14 Thread Jerome Forissier
The tests in test/dm/eth.c and test/dm/dsa.c use interfaces that have no static IP addresses configured in the board's default environment file. That will be a problem when NET_LWIP=y because the lwIP stack refuses to send ICMP packets through an interface that doesn't have an IP ("no route to host

[PATCH 06/12] drivers: net: sandbox: add support for NET_LWIP

2025-03-14 Thread Jerome Forissier
Make the sandbox mock ethernet driver (drivers/net/sandbox.c) compatible with NET_LWIP by not relying on any of the structures or functions defined in net-legacy.h. This is done by providing local definitions of the various protocol structures (Ethernet, ARP, IPv4, ICMP). Drop the stub driver that

[PATCH 05/12] net: lwip: use timer_early_get_count() when CONFIG_SANDBOX_TIMER=y

2025-03-14 Thread Jerome Forissier
When the sandbox timer is available, use it. This allows skipping time in the tests (sandbox_eth_skip_timeout()). Signed-off-by: Jerome Forissier --- net/lwip/net-lwip.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c index 5d862e038a9..c20bdaf8

[PATCH 04/12] net: lwip: add restart support to ping

2025-03-14 Thread Jerome Forissier
Use net_start_again() in do_ping() to determine if a failed ping should be restarted on a different interface. Signed-off-by: Jerome Forissier --- net/lwip/ping.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/net/lwip/ping.c b/net/lwip/ping.c index 542ef2cb148.

[PATCH 00/12] lwIP sandbox tests

2025-03-14 Thread Jerome Forissier
This series enables most of the driver model tests for network features with NET_LWIP (test/dm/eth.c and test/dm/dsa.c). - Patches 1-5 fix a few bugs (device selection) and add missing features (sandbox timer, restart support) to NET_LWIP - Patch 6 decouples the sandbox ethernet driver from NET - P

[PATCH v2 6/6] dt-bindings: clock: add ID for eMMC for EN7581

2025-03-14 Thread Christian Marangi
Add ID for eMMC for EN7581. This is to control clock selection of eMMC between 200MHz and 150MHz. Signed-off-by: Christian Marangi Acked-by: Conor Dooley Link: https://lore.kernel.org/r/20250113231030.6735-4-ansuels...@gmail.com Signed-off-by: Stephen Boyd [ upstream commit: 82108ad3285f58f314

[PATCH v1 3/4] ARM: tegra: p1801-t: enable HDMI

2025-03-14 Thread Svyatoslav Ryhel
Bind HDMI for ASUS AiO P1801-t to provide full panel support and improve usability. Signed-off-by: Svyatoslav Ryhel --- arch/arm/dts/tegra30-asus-p1801-t.dts | 12 +--- configs/transformer_t30_defconfig | 2 ++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/arch/arm

Re: [PATCH] common: console: Delete obsolete VIDCONSOLE_AS_{LCD, NAME} options

2025-03-14 Thread Tom Rini
On Sun, 02 Mar 2025 15:52:57 +0100, Dragan Simic wrote: > The configuration options CONFIG_VIDCONSOLE_AS_LCD and CONFIG_VIDCONSOLE_AS_ > NAME have been marked as obsolete and scheduled for deletion in late 2020. > > That's already long overdue and the last remaining consumers of these options > h

Re: [EXTERNAL] Re: [RFC PATCH 1/4] cmd: fuse: Remove custom string functions

2025-03-14 Thread Harsha Vardhan V M
On 13/03/25 21:45, Tom Rini wrote: On Thu, Mar 13, 2025 at 05:25:14PM +0530, Harsha Vardhan V M wrote: Remove custom string functions and replace them with normal string functions. Remove the custom strtou32 and replace it with str2long. Signed-off-by: Harsha Vardhan V M Thanks for doing

Re: [PATCH v2 0/4] Better smartphone support (Qualcomm)

2025-03-14 Thread Jens Reidel
On 3/11/25 1:31 PM, Caleb Connolly wrote: Improve support for running U-Boot on [Qualcomm] smartphones, with: * A boot menu which can be entered by holding power during boot * Hang on panic (so errors can be read on the display) * Serial gadget which can be enabled by holding volume down or via

[PATCH 2/2] imx8qm: Do not use CONFIG_XPL_BUILD in device tree

2025-03-14 Thread Hendrik Donner
In c9713c15512 the device tree was moved from CONFIG_SPL to CONFIG_SPL_BUILD and later to CONFIG_XPL_BUILD, but the CONFIG_xPL_BUILD defines are never set for device trees, breaking the build. Move the guards back to CONFIG_SPL. Also add a missing guard analog to 645a42d7ee8 to fix a similar build

[PATCH 1/2] imx8qxp: Do not use CONFIG_XPL_BUILD in device tree

2025-03-14 Thread Hendrik Donner
In c9713c155127 the device tree was moved from CONFIG_SPL to CONFIG_SPL_BUILD and later to CONFIG_XPL_BUILD, but the CONFIG_xPL_BUILD defines are never set for device trees, breaking the build. Move the guards back to CONFIG_SPL. Fixes: c9713c155127 ("imx8-u-boot: Fix SPL guard option") Signed-off

[PATCH 0/2] Do not use CONFIG_XPL_BUILD in device tree

2025-03-14 Thread Hendrik Donner
As discussed on the mailing list, move instances of CONFIG_XPL_BUILD back to the initially used CONFIG_SPL in device trees. Hendrik Donner (2): imx8qxp: Do not use CONFIG_XPL_BUILD in device tree imx8qm: Do not use CONFIG_XPL_BUILD in device tree arch/arm/dts/imx8qm-u-boot.dtsi | 4 +++- ar

[PATCH] disable mail for swarren

2025-03-14 Thread Stephen Warren
From: Stephen Warren I haven't been involved in U-Boot development for quite a while, so CCing me on patches isn't currently useful. Add a .mailmap entry that I believe will turn off patch CCs. This can always be removed if I become active again! Remove myself from a few MAINTAINERS failed and th

Re: [PATCH v1] common/memsize.c: Fix get_ram_size() original data restore

2025-03-14 Thread Francesco Dolcini
Hello Tom, On Fri, Mar 14, 2025 at 11:06:49AM +0100, Stefan Eichenberger wrote: > From: Stefan Eichenberger > > The get_ram_size() function fails to restore the original RAM data when > the data cache is enabled. This issue was observed on an AM625 R5 SPL > with 512MB of RAM and is a regression

[PATCH v2 4/6] arm64: dts: airoha: en7581: Add Clock Controller node

2025-03-14 Thread Christian Marangi
Add Clock Controller node for EN7581 SoC to correctly expose supported clock for any user in the SoC. Signed-off-by: Christian Marangi Reviewed-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20250105150328.15172-1-ansuels...@gmail.com Signed-off-by: AngeloGioacchino Del Regno

[PATCH v2 5/6] dt-bindings: clock: drop NUM_CLOCKS define for EN7581

2025-03-14 Thread Christian Marangi
Drop NUM_CLOCKS define for EN7581 dts/upstream/src/include. This is not a binding and should not be placed here. Value is derived internally in the user driver. Signed-off-by: Christian Marangi Acked-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20250113231030.6735-3-ansuels...@gmail.

[PATCH v2 2/6] clk: airoha: Add support for Airoha AN7581 SoC clock

2025-03-14 Thread Christian Marangi
Add support for Airoha AN7581 SoC clock driver. This mainly needed for eMMC support to correctly get the current clock applied. Based on the Linux clk-en7523.c but majorly reworked for U-Boot that doesn't require CCF subsystem. Major modification, support for set_rate, realtime get_rate and split

[PATCH v2 0/6] airoha: Add initial support AN7581

2025-03-14 Thread Christian Marangi
This little series adds initial support for Airoha AN7581 SoC. With the help of some backport patch, this use OF_UPSTREAM directly. Posting this to have the targer and the very basic driver. Ethernet, SNAND and eMMC support is already ready downstream and will be posted shortly after this gets a

[PATCH v1 3/4] pinctrl: tegra20: fix function naming mismatches

2025-03-14 Thread Svyatoslav Ryhel
The names used for displaya, displayb and i2c1 do not align with their corresponding Linux counterparts. This inconsistency can cause pins to be configured incorrectly, potentially breaking existing functionality. Signed-off-by: Svyatoslav Ryhel --- arch/arm/include/asm/arch-tegra20/pinmux.h | 6

Re: [PATCH] lmb: change the return code on lmb_alloc_addr()

2025-03-14 Thread Ilias Apalodimas
[...] > > ret = lmb_alloc_addr(ram - 1, 1, LMB_NONE); > > - ut_asserteq(ret, 0); > > + ut_asserteq(ret, -1); > > } > > > > lmb_pop(&store); > > -- > > 2.47.2 > > Tested-by: Ben Schneider Thanks Ben. Especially for the testing and the whole debugging saga /Ilias

Re: [PATCH] disable mail for swarren

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:10:31PM -0600, Stephen Warren wrote: > From: Stephen Warren > > I haven't been involved in U-Boot development for quite a while, so > CCing me on patches isn't currently useful. Add a .mailmap entry that I > believe will turn off patch CCs. This can always be removed i

Re: [EXTERNAL] Re: [RFC PATCH 2/4] cmd: fuse: Add fuse writebuff sub-system command

2025-03-14 Thread Harsha Vardhan V M
On 13/03/25 21:48, Tom Rini wrote: On Thu, Mar 13, 2025 at 05:25:15PM +0530, Harsha Vardhan V M wrote: Add CMD_FUSE_WRITEBUFF config option to add and enable fuse writebuff sub-system command. Add fuse_writebuff function to be invoked on writebuff command. Signed-off-by: Harsha Vardhan V M

Trying to port sitronix,st7701 panel driver but nothing shows on display

2025-03-14 Thread Michał Iwanicki
Hello, I have a question about porting MIPI DSI panel driver (sitronix,st7701) from Linux to U-Boot (I'm using custom board with embedded rk3566 SoM. I think I'm mostly done, though I had to apply Dang Huynh VOP2 patches (sent to mailing list on Thu Jan 16) to get anything probed (dw-mipi-dsi-

Re: Pull request for mmu-next-14032025

2025-03-14 Thread Tom Rini
On Fri, 14 Mar 2025 16:07:26 +0200, Ilias Apalodimas wrote: > The following changes since commit 9805321dfdeb5225fe5c5e0721abf49c0875637e: > > Kconfig: Introduce CONFIG_WERROR (2025-03-13 14:23:11 -0600) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodian

Re: [resend v2 06/13] drivers: i3c: Add i3c sandbox simple test.

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:08:55PM +0800, dinesh.mani...@altera.com wrote: > From: Dinesh Maniyam > > Add s simple test for the I3C uclass in sandbox. > > Signed-off-by: Dinesh Maniyam [snip] > diff --git a/drivers/i3c/sandbox_i3c.c b/drivers/i3c/sandbox_i3c.c > new file mode 100755 > index 00

Re: [resend v2 05/13] drivers: i3c: Enabled Kconfig and Makefile for DWI3C

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:08:54PM +0800, dinesh.mani...@altera.com wrote: > From: Dinesh Maniyam > > Enable the Kconfig and Makefile for the MIPI DWI3C driver. > > Signed-off-by: Dinesh Maniyam > --- > drivers/i3c/Kconfig | 3 +++ > drivers/i3c/Makefile| 1 + > drivers/i3c/

Re: [PATCH v1] common/memsize.c: Fix get_ram_size() original data restore

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 11:06:49AM +0100, Stefan Eichenberger wrote: > From: Stefan Eichenberger > > The get_ram_size() function fails to restore the original RAM data when > the data cache is enabled. This issue was observed on an AM625 R5 SPL > with 512MB of RAM and is a regression that became

[PATCH 0/3] Qualcomm: implement support for GENI firmware loading

2025-03-14 Thread Caleb Connolly
re loading and will be available to Linux. For testing on the RB3 Gen 2 [2] is needed so that the i2c peripherals can be probed. [1]: https://lore.kernel.org/linux-arm-msm/20250303124349.3474185-1-quic_vdadh...@quicinc.com/ [2]: https://lore.kernel.org/u-boot/20250314-sc7280-more-clocks-v1-0

[PATCH v1 4/4] ARM: tegra: dts: fix lock, io-reset and open-drain properties

2025-03-14 Thread Svyatoslav Ryhel
Signed-off-by: Svyatoslav Ryhel --- arch/arm/dts/tegra124-xiaomi-mocha.dts| 14 +++--- arch/arm/dts/tegra30-asus-p1801-t.dts | 28 +-- arch/arm/dts/tegra30-asus-tf600t.dts | 44 +- arch/arm/dts/tegra30-asus-transformer.dtsi| 26 +-- ...

Re: [PATCH v1 0/1] video: edid: guard standard timings EDID expansion behind kconfig

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 08:47:19AM +0200, Svyatoslav Ryhel wrote: > Since EDID only indicates supported standard timings, a large table with > detailed timing information is necessary, consuming significant space. To > mitigate this, the table is made configurable via kconfig, allowing it to > be

[PATCH v2 1/1] board: ouya: add Ouya Game Console support

2025-03-14 Thread Svyatoslav Ryhel
The Ouya microconsole is build on Nvidia Tegra 3 (T33) SoC, featuring a quad-core 1.7 GHz ARM Cortex-A9 CPU and a ULP GeForce GPU, paired with 1GB of DDR3 RAM and 8GB of internal flash storage. Running a modified Android 4.1 (Jelly Bean) OS with a custom launcher, it aimed for open-source gaming vi

[PATCH v1 2/4] pinctrl: tegra: adjust pin state lists

2025-03-14 Thread Svyatoslav Ryhel
Modify the pin state lists for lock, io-reset, rcv-sel, and e-io-hv properties by repositioning the default value to the end. This change addresses conflicts with device tree representations of TEGRA_PIN_DISABLE and TEGRA_PIN_ENABLE. Signed-off-by: Svyatoslav Ryhel --- arch/arm/include/asm/arch-

[PATCH v1 1/4] pinctrl: tegra: adjust default values of pins

2025-03-14 Thread Svyatoslav Ryhel
The current default pin and drive values were more of temporary placeholders. They have to be replaced with accurate default values as specified in the TRM and header file. Signed-off-by: Svyatoslav Ryhel --- drivers/pinctrl/tegra/pinctrl-tegra.c | 34 +-- 1 file changed,

[PATCH 3/3] i2c: geni: load firmware if required

2025-03-14 Thread Caleb Connolly
Load firmware for the peripheral if necessary. Signed-off-by: Caleb Connolly --- drivers/i2c/geni_i2c.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/i2c/geni_i2c.c b/drivers/i2c/geni_i2c.c index 4eb41ba852f7790ca646c8ba38f29fdb727fa804..fca0fab7201a2f86ff4a8c12d053297e660

[PATCH 1/3] i2c: geni: fix error message wording in clk_disable

2025-03-14 Thread Caleb Connolly
Correct the error messages so they accurately describe that we failed to disable the clocks, not to enable them. Signed-off-by: Caleb Connolly --- drivers/i2c/geni_i2c.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/geni_i2c.c b/drivers/i2c/geni_i2c.c inde

[PATCH 1/3] clk/qcom: bubble up qcom_gate_clk_en() errors

2025-03-14 Thread Caleb Connolly
If we try to enable a gate clock that doesn't exist, we used to just fail silently. This may make sense for early bringup of some core peripherals that we know are already enabled, but it only makes debugging missing clocks more difficult. Bubble up errors now that qcom_gate_clk_en() can return an

Re: [PATCH v4 00/47] x86: Improve operation under QEMU

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 02:44:35PM +, Simon Glass wrote: > Hi Tom, > > On Fri, 7 Mar 2025 at 14:23, Tom Rini wrote: > > > > On Thu, Mar 06, 2025 at 09:03:27AM -0700, Simon Glass wrote: > > > > > U-Boot can start and boot an OS in both qemu-x86 and qemu-x86_64 but it > > > is not perfect. > >

Re: [PATCH 1/1] drivers: fpga: Add partial reconfiguration console commands

2025-03-14 Thread Simon Glass
Hi, On Fri, 14 Mar 2025 at 11:48, Naresh Kumar Ravulapalli wrote: > > Partial Reconfiguration (pr) command is added to U-Boot console. The > pr command will use the Freeze Controller which can freeze and > unfreeze the specified partial reconfiguration region. The pr command > supports multiple r

Re: [PATCH v4 30/47] test/py: Add a helper to send characters

2025-03-14 Thread Simon Glass
Hi Tom, On Fri, 7 Mar 2025 at 19:09, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 09:03:57AM -0700, Simon Glass wrote: > > > The existing run_command() method is not great for sending things other > > than U-Boot commands. Add a helper for sending arbitrary strings as well > > as control character

Re: [PATCH v4 00/47] x86: Improve operation under QEMU

2025-03-14 Thread Simon Glass
Hi Tom, On Fri, 7 Mar 2025 at 14:23, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 09:03:27AM -0700, Simon Glass wrote: > > > U-Boot can start and boot an OS in both qemu-x86 and qemu-x86_64 but it > > is not perfect. > > > > With both builds, executing the VESA ROM causes an intermittent hang, at

[PATCH v1 1/4] ARM: tegra: lg_x3: upgrade bindings

2025-03-14 Thread Svyatoslav Ryhel
Upgrade LG P895 and P880 device tree bindings according to preliminary upstream Linux tree. Once Linux catches up, LG X3 can be switched to OF_UPSTREAM without regressions. Signed-off-by: Svyatoslav Ryhel --- arch/arm/dts/tegra30-lg-p880.dts | 34 + arch/arm/dts/tegra30-lg-p895.dts |

[PATCH v1 2/4] ARM: tegra: endeavoru: upgrade bindings

2025-03-14 Thread Svyatoslav Ryhel
Upgrade HTC One X device tree to comply possible upstream Linux device tree. Once Linux catches up, HTC One X can be switched to OF_UPSTREAM. Signed-off-by: Svyatoslav Ryhel --- arch/arm/dts/tegra30-htc-endeavoru.dts | 17 - configs/endeavoru_defconfig| 1 + 2 files

[PATCH v1 0/4] ARM: tegra: update bindings to fit video changes

2025-03-14 Thread Svyatoslav Ryhel
Update bindings for special cases of video subsystem users. All other devices should work with updated video drivers as is. Svyatoslav Ryhel (4): ARM: tegra: lg_x3: upgrade bindings ARM: tegra: endeavoru: upgrade bindings ARM: tegra: p1801-t: enable HDMI ARM: tegra: tf700t: upgrade binding

Re: [PATCH 2/2] u_boot_pylib: Clean up pylint warnings in gitutil.py

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 02:45:27PM +, Simon Glass wrote: > Hi Tom, > > On Mon, 17 Feb 2025 at 19:23, Tom Rini wrote: > > > > On Sun, Feb 09, 2025 at 02:26:01PM -0700, Simon Glass wrote: > > > > > Reduce the number of warnings in this file. > > > > > > Signed-off-by: Simon Glass > > > --- > >

[PATCH 2/3] clk/qcom: sc7280: add some debug data

2025-03-14 Thread Caleb Connolly
Dump a few PCIe and USB clocks Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-sc7280.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clk/qcom/clock-sc7280.c b/drivers/clk/qcom/clock-sc7280.c index 8ffd1f43f23e51140c7822f0f523fdfd8ab1de7a..2cbc01b6e0a4f1

[PATCH 3/3] clk/qcom: sc7280: add GENI, PCIe, and more USB clocks

2025-03-14 Thread Caleb Connolly
Add support for a bunch of new clocks, including PCIe, GENI (for all peripherals used on the RB3 Gen 2), and some missing USB clocks. Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-sc7280.c | 104 +++- 1 file changed, 93 insertions(+), 11 deletions(-

[PATCH 0/3] clk/qcom: fixes and more SC7280 clocks

2025-03-14 Thread Caleb Connolly
Refactor qcom_gate_clk_en() so that it will actually report an error if we try to enable a clock that isn't defined. This will help a lot during bringup and ensure we don't miss any clocks. Additionally, add a bunch of clocks for SC7280, preparing for i2c and PCIe support, plus some debug data. -

Re: [GIT PULL] Please pull u-boot-imx-next-20250313

2025-03-14 Thread Tom Rini
On Thu, 13 Mar 2025 16:54:27 -0300, Fabio Estevam wrote: > Please pull from u-boot-imx/next, thanks. > > The following changes since commit eeefcacb851f7f0bccabc3089a725f5ce86f5c70: > > Merge tag 'u-boot-stm32-20250312' of > https://source.denx.de/u-boot/custodians/u-boot-stm into next (2025-

Re: [PATCH v5] spl: remove usage of CMD_BOOT[IZ] from image parsing

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 09:25:04AM +0530, Anshul Dalal wrote: > Using CMD_* configs from spl doesn't make logical sense. Therefore this > patch replaces the checks for CMD_BOOT[IZ] with newly added configs > SPL_HAS_BOOT[IZ]. > > SPL_HAS_BOOTZ is enabled by default for 32-bit ARM systems and > SP

Re: [PATCH 2/2] mtd: spi-nor-core: Rework spansion_sr_ready() for parallel memories support

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 07:40:17AM +, Tudor Ambarus wrote: > + Marek, > > Hi, > > On 3/14/25 5:53 AM, tkuw584...@gmail.com wrote: > > spansion_sr_ready() needs to support parallel memories configuration, > > that reads status register value from each devices and combines the > > status bits,

Re: Reading QSPI on zynq7 broken since commit 9bb02f7f4533

2025-03-14 Thread Mike Looijmans
On 12-03-2025 05:05, Abbarapu, Venkatesh wrote: [AMD Official Use Only - AMD Internal Distribution Only] Hi Mike, Can you try disabling the config SPI_STACKED_PARALLEL. Is read getting failed? Thanks Venkatesh -Original Message- From: Mike Looijmans Sent: Tuesday, March 11, 2025 3:08

Re: [PATCH 2/2] u_boot_pylib: Clean up pylint warnings in gitutil.py

2025-03-14 Thread Simon Glass
Hi Tom, On Mon, 17 Feb 2025 at 19:23, Tom Rini wrote: > > On Sun, Feb 09, 2025 at 02:26:01PM -0700, Simon Glass wrote: > > > Reduce the number of warnings in this file. > > > > Signed-off-by: Simon Glass > > --- > > > > tools/buildman/func_test.py | 4 +- > > tools/u_boot_pylib/gitutil.py |

Re: [PATCH v2 27/28] RFC: test/py: Deal with timeouts

2025-03-14 Thread Simon Glass
Hi Tom, On Mon, 17 Feb 2025 at 17:46, Tom Rini wrote: > > On Sun, Feb 16, 2025 at 01:44:12PM -0700, Simon Glass wrote: > > > The distro test takes a little longer to shut down and restart, so > > add more time to this operation. > > > > Disable the sleep command for now, as it seems to be unrelia

Re: [PATCH v5 06/29] x86: Move the bootm state for zimage into cmd/

2025-03-14 Thread Simon Glass
Hi Heinrich, On Sat, 8 Mar 2025 at 05:07, Heinrich Schuchardt wrote: > > On 3/6/25 01:25, Simon Glass wrote: > > Rather than holding the state in the implementation code, move it to the > > command code. The state is now passed to the implementation functions > > and can there (with future work)

[PATCH] lmb: change the return code on lmb_alloc_addr()

2025-03-14 Thread Ilias Apalodimas
Ben reports a failure to boot the kernel on hardware that starts its physical memory from 0x0. The reason is that lmb_alloc_addr(), which is supposed to reserve a specific address, takes the address as the first argument, but then also returns the address for success or failure and treats 0 as a fa

Re: [PATCH] mmc: mmc_boot: support sandisk and micron emmc boot/rpmb partition resizing

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 04:10:24PM +0800, ziniu.wan...@nxp.com wrote: > From: Luke Wang > > Current mmc bootpart-resize cmd only support samsung emmc boot/rpmb > partition resizing. Add sandisk and micron emmc boot/rpmb partition > resizing support. The commands and parameters for resizing parti

Re: [PATCH v2 11/11] test_fs: Add exfat tests

2025-03-14 Thread Tom Rini
On Thu, Mar 13, 2025 at 08:13:27PM +0100, Marek Vasut wrote: > Add tests for the exfat filesystem. These tests are largely an > extension of the FS_GENERIC tests with the following notable > exceptions. > > The filesystem image for exfat tests is generated using combination > of exfatprogs mkfs.e

Re: [PATCH v2 07/11] fs: exfat: Add U-Boot porting layer

2025-03-14 Thread Tom Rini
On Thu, Mar 13, 2025 at 08:13:23PM +0100, Marek Vasut wrote: > Add U-Boot adjustments to the libexfat code and integrate > the result into U-Boot filesystem layer. This provides full > read-write exfat support for U-Boot available via generic > filesystem interface. > > FS_DIRENT_NAME_LEN is incr

Re: [EXTERNAL] Re: [RFC PATCH 1/4] cmd: fuse: Remove custom string functions

2025-03-14 Thread Tom Rini
On Fri, Mar 14, 2025 at 07:13:19PM +0530, Harsha Vardhan V M wrote: > > > On 13/03/25 21:45, Tom Rini wrote: > > On Thu, Mar 13, 2025 at 05:25:14PM +0530, Harsha Vardhan V M wrote: > > > > > Remove custom string functions and replace them with normal string > > > functions. Remove the custom str

Pull request for mmu-next-14032025

2025-03-14 Thread Ilias Apalodimas
Hi Tom, The following changes since commit 9805321dfdeb5225fe5c5e0721abf49c0875637e: Kconfig: Introduce CONFIG_WERROR (2025-03-13 14:23:11 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-tpm/ tags/mmu-next-14032025 for you to fetch changes up

[RFC PATCH v2 5/5] doc: cmd: add fuse writebuff cmd documentation

2025-03-14 Thread Harsha Vardhan V M
Add fuse writebuff sub-system command documentation. Signed-off-by: Harsha Vardhan V M --- doc/usage/cmd/fuse.rst | 20 1 file changed, 20 insertions(+) diff --git a/doc/usage/cmd/fuse.rst b/doc/usage/cmd/fuse.rst index 6e330eddfea..42c6e209f99 100644 --- a/doc/usage/cmd/fu

[RFC PATCH v2 4/5] drivers: k3_fuse: Add fuse sub-system func calls

2025-03-14 Thread Harsha Vardhan V M
Add K3_FUSE config option to add and enable fuse sub-system implementation function calls. Signed-off-by: Harsha Vardhan V M Reviewed-by: Tom Rini --- drivers/misc/Kconfig | 7 drivers/misc/Makefile | 1 + drivers/misc/k3_fuse.c | 78 ++ 3 files

[RFC PATCH v2 3/5] cmd: fuse: Add fuse writebuff sub-system command

2025-03-14 Thread Harsha Vardhan V M
Add CMD_FUSE_WRITEBUFF config option to add and enable fuse writebuff sub-system command. Add fuse_writebuff function to be invoked on writebuff command. Signed-off-by: Harsha Vardhan V M Reviewed-by: Tom Rini --- cmd/Kconfig| 8 cmd/fuse.c | 26 ++ inc

[RFC PATCH v2 0/5] cmd: fuse: Introduce fuse writebuff sub-system and clean up

2025-03-14 Thread Harsha Vardhan V M
This patch series introduces the fuse writebuff sub-system command and makes improvements to the existing fuse implementation by removing the custom string functions. The patches are required to be applied in sequence. The series consists of the following changes: Patch 1 removes custom string fun

[RFC PATCH v2 1/5] cmd: fuse: Remove custom string functions

2025-03-14 Thread Harsha Vardhan V M
Remove custom string functions and replace them with normal string functions. Remove the custom strtou32 and replace it with str2long. Signed-off-by: Harsha Vardhan V M --- cmd/fuse.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/cmd/fuse.c b/cm

[RFC PATCH v2 2/5] doc: cmd: add documentation for fuse command

2025-03-14 Thread Harsha Vardhan V M
Add documentation for the 'fuse' sub-system commands. Signed-off-by: Harsha Vardhan V M --- doc/usage/cmd/fuse.rst | 156 + 1 file changed, 156 insertions(+) create mode 100644 doc/usage/cmd/fuse.rst diff --git a/doc/usage/cmd/fuse.rst b/doc/usage/cmd/fu

[PATCH 1/1] drivers: fpga: Add partial reconfiguration console commands

2025-03-14 Thread Naresh Kumar Ravulapalli
Partial Reconfiguration (pr) command is added to U-Boot console. The pr command will use the Freeze Controller which can freeze and unfreeze the specified partial reconfiguration region. The pr command supports multiple regions for partial reconfiguration by specifying the region ID. Signed-off-by

Re: [PATCH 2/2] mtd: spi-nor-core: Rework spansion_sr_ready() for parallel memories support

2025-03-14 Thread Tudor Ambarus
+ Marek, Hi, On 3/14/25 5:53 AM, tkuw584...@gmail.com wrote: > spansion_sr_ready() needs to support parallel memories configuration, > that reads status register value from each devices and combines the > status bits, likewise read_sr() and read_fsr(). SNOR_F_HAS_PARALLEL describes 2 flashes tha

[PATCH v1] common/memsize.c: Fix get_ram_size() original data restore

2025-03-14 Thread Stefan Eichenberger
From: Stefan Eichenberger The get_ram_size() function fails to restore the original RAM data when the data cache is enabled. This issue was observed on an AM625 R5 SPL with 512MB of RAM and is a regression that became visible with commit bc07851897bd ("board: ti: Pull redundant DDR functions to a

[PATCH] mmc: mmc_boot: support sandisk and micron emmc boot/rpmb partition resizing

2025-03-14 Thread ziniu . wang_1
From: Luke Wang Current mmc bootpart-resize cmd only support samsung emmc boot/rpmb partition resizing. Add sandisk and micron emmc boot/rpmb partition resizing support. The commands and parameters for resizing partitions are different for each manufacturer. Select the corresponding function acco

[PATCH] configs: am68_sk_r5: Enable AVS config

2025-03-14 Thread Udit Kumar
Enable AVS config Signed-off-by: Udit Kumar --- Test logs https://gist.github.com/uditkumarti/9b30461e66aa27e4a813a65f1c552e51#file-gistfile1-txt-L298 Following print was added to see AVS voltage setting at diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index 0774e0a4c9e..ed1a5768147

Re: [PATCH v4] spl: remove usage of CMD_BOOT[IZ] from image parsing

2025-03-14 Thread Anshul Dalal
On Thu Mar 13, 2025 at 8:58 AM IST, Anshul Dalal wrote: > Using CMD_* configs from spl doesn't make logical sense. Therefore this > patch replaces the checks for CMD_BOOT[IZ] with newly added configs > SPL_HAS_BOOT[IZ]. > > An imply clause has been added for CMD_BOOTZ to avoid breaking configs > th

[PATCH] configs: Enable partial reconfiguration support for Stratix10

2025-03-14 Thread Naresh Kumar Ravulapalli
Intel partial reconfiguration driver is enabled by default for Stratix10 SocFPGA boards. Signed-off-by: Naresh Kumar Ravulapalli --- configs/socfpga_stratix10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig

[PATCH 0/1] Add partial reconfiguration console commands

2025-03-14 Thread Naresh Kumar Ravulapalli
Partial Reconfiguration (pr) command is added to U-Boot console. Internally the driver uses freeze controller to freeze and unfreeze a region. Command is defined as $ pr start [region ID] $ pr stop [region ID] Command can be used as below from U-Boot UART console: $ bridge enable $ fatload mmc 0:

Re: [PATCH] net: lwip: do_ping() should return CMD_RET_FAILURE when no device

2025-03-14 Thread Ilias Apalodimas
On Fri, 14 Mar 2025 at 10:44, Jerome Forissier wrote: > > do_ping() expects ping_loop() to return a negative value on error, so > that it can propagate it to the caller as CMD_RET_FAILURE. This is not > the case when no ethernet device is found, so fix that. > > Signed-off-by: Jerome Forissier >

  1   2   >