[PATCH] arm64: dts: imx8mp: Add DH i.MX8MP DHCOM SoM on DRC02 carrier board

2024-09-24 Thread Marek Vasut
Add support for DH electronics i.MX8MP DHCOM SoM on DRC02 carrier board. This system is populated with two ethernet ports, two CANs, RS485 and RS232, USB, capacitive buttons and an OLED display. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Stefano Babic Cc: T

[PATCH] arm: imx: Enable always-on regulators using board specific workaround on DHCOM SoM

2024-09-24 Thread Marek Vasut
U-Boot is currently unable to automatically enable regulators which contain DT property regulator-always-on or regulator-boot-on. There is an ongoing work to add this functionality to regulator core code, but until the proper solution lands, add this awful workaround code to force these regulators

[PATCH v8 03/13] net/tcp: put connection specific data into a tcp_stream structure

2024-09-24 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deleti

[PATCH v8 04/13] net/tcp: add connection info to tcp_stream structure

2024-09-24 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net.

[PATCH v8 02/13] net/tcp: fix selective acknowledge

2024-09-24 Thread Mikhail Kshevetskiy
Current code assume that all (except last) packets are of the same size. This is definitely wrong. Replace SACK code with a new one, that does not rely on this assumption. Also this code uses less memory. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 200 ++

[PATCH v8 01/13] net/tcp: fix TCP options processing

2024-09-24 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index b0cc8a1fe3e..3e3118de45

[PATCH v8 11/13] net/netcat: add netcat over tcp support

2024-09-24 Thread Mikhail Kshevetskiy
This patch adds downloading/uploading of data with netcat. Client/server mode both supported. How to test: netcat-openbsd=1.219-1 from debian were used for a tests a) Load data from remote host. * U-Boot listen on tcp port 3456 * PC connects u-boot: netcat loa

[PATCH v8 07/13] test/cmd/wget: fix the test

2024-09-24 Thread Mikhail Kshevetskiy
The wget test seriously broken: * Uses zero values for ISS and IRS values (see RFC 9293). * Writes incorrect values to Sequence and Acknowledgment numbers fields of tcp packets. In the real life such packets will break the tcp stream. * The test should fail (see above), but due to buggy old t

[PATCH v8 09/13] net/tcp: define a fallback value for rcv_wnd size

2024-09-24 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avoid it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 +- 1 file c

[PATCH v8 10/13] net/net: fix include ordering

2024-09-24 Thread Mikhail Kshevetskiy
fix include ordering to follow https://docs.u-boot.org/en/latest/develop/codingstyle.html#include-files Signed-off-by: Mikhail Kshevetskiy --- net/net.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/net/net.c b/net/net.c index 86182cc504e..92156

[PATCH v8 12/13] net/httpd: add httpd common code

2024-09-24 Thread Mikhail Kshevetskiy
This patch adds HTTP/1.1 compatible web-server that can be used by other. Server supports GET, POST, and HEAD requests. On client request it will call user specified GET/POST callback. Then results will be transmitted to client. The following restrictions exist on the POST request at the moment:

[PATCH v8 13/13] net/httpd-upload: an example web-server implementation for file uploading

2024-09-24 Thread Mikhail Kshevetskiy
This is an example web-server implementation. It can be used for files uploading to u-boot using a web-browser. It acts much like tftpget, but no special servers needs to be installed by the user. This code can be used as a base for other implementations like firmware upgrade web-server used by so

[PATCH v8 00/13] net: tcp: improve tcp support

2024-09-24 Thread Mikhail Kshevetskiy
U-Boot support of LWIP is not ready for a moment, but we already have some kind of tcp support. Unfrotunately this support is really bad. Some of the known issues: * tcp packet from other connection can break a current one * tcp send sequence always starts from zero * bad tcp options processing

[PATCH v8 06/13] net/tcp: improve tcp framework, use better state machine

2024-09-24 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v8 08/13] net/tcp: simplify tcp header filling code

2024-09-24 Thread Mikhail Kshevetskiy
This patch: * remove useless code, * use a special function for pretty printing of tcp flags, * simplify the code The behavior should not be changed. Signed-off-by: Mikhail Kshevetskiy --- net/tcp.c | 66 +++ 1 file changed, 33 insertions(+

[PATCH v8 05/13] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-09-24 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-24 Thread Tom Rini
On Fri, Sep 20, 2024 at 10:48:56AM -0600, Tom Rini wrote: > On Fri, Sep 20, 2024 at 07:40:35PM +0300, Svyatoslav Ryhel wrote: > > пн, 16 вер. 2024 р. о 19:28 Tom Rini пише: > > > > > > On Wed, Sep 11, 2024 at 07:00:56PM -0600, Simon Glass wrote: > > > > Hi Marek, > > > > > > > > On Fri, 28 Jun 202

Re: [PATCH] test/py/tests/test_bootstage.py: Combine stash/unstash tests

2024-09-24 Thread Tom Rini
On Wed, 28 Aug 2024 16:56:10 -0600, Tom Rini wrote: > When running the bootstage tests currently we get a warning like: > tests/test_bootstage.py::test_bootstage_stash > ...PytestReturnNotNoneWarning: Expected None, but > tests/test_bootstage.py::test_bootstage_stash returned (37748736, 4096), >

Re: [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT

2024-09-24 Thread Tom Rini
On Tue, 10 Sep 2024 15:00:18 +0200, Jerome Forissier wrote: > Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected > by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT > may be enabled without the other two being enabled, which results in the > following build

Re: [PATCH v4 00/15] Miscellaneous fixes

2024-09-24 Thread Tom Rini
On Wed, 11 Sep 2024 11:58:13 +0200, Jerome Forissier wrote: > Miscellaneous fixes made when developing the lwIP series [1]. They are > posted separately since they make sense on their own. Subsequent > versions of the lwIP series will contain a squashed version of this one. > > [1] > http://patc

Re: [PATCH V2 4/4] board: rockchip: Enable PD_VO before driver access

2024-09-24 Thread Quentin Schulz
Hi Chris, On 9/23/24 7:38 PM, Chris Morgan wrote: On Mon, Sep 23, 2024 at 01:24:34PM +0200, Quentin Schulz wrote: Hi Chris, On 9/19/24 4:00 PM, Chris Morgan wrote: From: Chris Morgan Enable the PD_VO power domain before driver access on the rk3568 SoC. Signed-off-by: Chris Morgan --- a

[PATCH v2 5/5] power: regulator: Drop regulators_enable_boot_on/off()

2024-09-24 Thread Marek Vasut
Both regulators_enable_boot_on/off() are unused and superseded by regulator uclass regulator_post_probe(). Remove both functions. Signed-off-by: Marek Vasut --- Cc: Ben Wolsieffer Cc: Caleb Connolly Cc: Chris Morgan Cc: Dragan Simic Cc: Eugen Hristev Cc: Francesco Dolcini Cc: Heinrich Schuc

[PATCH v2 4/5] power: regulator: Drop regulator_unset()

2024-09-24 Thread Marek Vasut
This function is never called, drop it. Signed-off-by: Marek Vasut --- Cc: Ben Wolsieffer Cc: Caleb Connolly Cc: Chris Morgan Cc: Dragan Simic Cc: Eugen Hristev Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Jaehoon Chung Cc: Jagan Teki Cc: Jonas Karlman Cc: Kever Yang Cc: Matteo Li

[PATCH v2 3/5] power: regulator: Exit from regulator_set_suspend_value on poorly described regulators

2024-09-24 Thread Marek Vasut
In case the DT regulator node does not contain 'regulator-max-microvolt' property and does not contain 'regulator-state-mem' subnode (like the test.dts regul1_scmi: reg@1 {} regulator node), then regulator_pre_probe() will parse this regulator node and set uc_pdata->suspend_on = true and uc_pdata->

[PATCH v2 1/5] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-24 Thread Marek Vasut
In case a regulator DT node contains regulator-always-on or regulator-boot-on property, make sure the regulator gets correctly configured by U-Boot on start up. Unconditionally probe such regulator drivers. This is a preparatory patch for introduction of .regulator_post_probe() which would trigger

[PATCH v2 2/5] power: regulator: Convert regulators_enable_boot_on/off() to regulator_post_probe

2024-09-24 Thread Marek Vasut
Turn regulators_enable_boot_on() and regulators_enable_boot_off() into empty functions. Implement matching functionality in regulator_post_probe() instead. The regulator_post_probe() is called for all regulators after they probe, and regulators that have regulator-always-on or regulator-boot-on DT

[PATCH] arm64: dts: imx8m: Always name the generated fitImage u-boot.itb

2024-09-24 Thread Marek Vasut
Maintain backward compatibility with pre-binman u-boot file naming, the U-Boot fitImage used to be named u-boot.itb before, restore the file name after binman conversion. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Marcel Ziswiler Cc: Peng Fan Cc: Rasmus Vi

Re: [PATCH 1/1] rpi: Fix build error when CONFIG_VIDEO is disabled for Raspberry Pi

2024-09-24 Thread Martin Stolpe
Hi, Am Fr., 20. Sept. 2024 um 10:10 Uhr schrieb Ivan T. Ivanov : > Hi, > > On 09-20 08:32, Martin Stolpe wrote: > > > > When the CONFIG_VIDEO option is set to disabled for Raspberry Pi devices > > the build will fail with the following error message: > > "undefined reference to `fdt_simplefb_enab

Re: [PATCH V2 2/4] board: rockchip: Add vdd_cpu reg fixup for RGXX3 Series

2024-09-24 Thread Quentin Schulz
Hi Chris, On 9/23/24 7:36 PM, Chris Morgan wrote: On Mon, Sep 23, 2024 at 01:21:01PM +0200, Quentin Schulz wrote: Hi Chris, On 9/19/24 4:00 PM, Chris Morgan wrote: From: Chris Morgan Some of the Powkiddy devices switched to using a different vendor for the vdd_cpu regulator. Unfortunately t

Re: [PATCH 2/3] riscv: qemu: Enable EFI framebuffer

2024-09-24 Thread Leo Liang
Hi Lekkit, On Sun, Sep 22, 2024 at 01:11:01PM +0300, lek...@at.encryp.ch wrote: > [EXTERNAL MAIL] > > From: LekKit <50500857+lek...@users.noreply.github.com> > > Enable framebuffer for better virtual machine integration. > Some guests need EFI FB to work properly. > --- > board/emulation/qemu-r

RE: [PATCH v1 09/20] sysreset: Add reset support to SoCFPGA Agilex5 device

2024-09-24 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Marek Vasut > Sent: Saturday, September 21, 2024 9:52 PM > To: Chee, Tien Fong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Meng, Tingting > ; Yuslaimi, Alif Zakuan > ; Hea, Kok Kiang > > Subject: Re: [PATCH v1 09/20] sysreset: Add reset support to So

[u-boot-test-hooks][PATCH] travis-ci: Add qemu-arm-sbsa-ref

2024-09-24 Thread Patrick Rudolph
Add support for testing sbsa-ref via QEMU. sbsa-ref has two SPI NOR flash, one for Arm-TF and one for unsecure firmware, providing ACPI tables to the OS. Signed-off-by: Patrick Rudolph --- bin/travis-ci/conf.qemu-arm-sbsa_na | 27 +++ 1 file changed, 27 insertions(+) cre

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-09-24 Thread Heiko Schocher
Hello Dario, On 13.09.24 11:55, Dario Binacchi wrote: From: Michael Trimarchi Add iMX8 block ctrl driver for displaymix on iMX8MM/iMX8MN and mediamix on iMX8MP. To support blk ctrl driver, the power domain driver on iMX8M needs update to add relevant PGC domains Signed-off-by: Ye Li Signed-

Re: [u-boot-test-hooks][PATCH] travis-ci: Add qemu-arm-sbsa-ref

2024-09-24 Thread Tom Rini
On Tue, Sep 24, 2024 at 10:49:35AM +0200, Patrick Rudolph wrote: > Add support for testing sbsa-ref via QEMU. sbsa-ref has two SPI > NOR flash, one for Arm-TF and one for unsecure firmware, providing > ACPI tables to the OS. > > Signed-off-by: Patrick Rudolph Reviewed-by: Tom Rini -- Tom s

Re: [PATCH v3 22/30] board: emulation: Add QEMU sbsa support

2024-09-24 Thread Patrick Rudolph
On Fri, Sep 20, 2024 at 5:59 PM Simon Glass wrote: > > Hi Patrick, > > On Fri, 20 Sept 2024 at 12:29, Patrick Rudolph > wrote: > > > > On Fri, Sep 20, 2024 at 11:37 AM Simon Glass wrote: > > > > > > +Peter Maydell for comment on the below > > > > > > Hi Patrick, > > > > > > On Fri, 20 Sept 2024

Re: [PATCH v1 08/20] arm: dts: agilex5: Enable XGMAC

2024-09-24 Thread Marek Vasut
On 9/24/24 8:02 AM, Chee, Tien Fong wrote: Hi, Hi, diff --git a/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi b/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi index 9eb21d65428..75ab05031bc 100644 --- a/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi +++ b/arch/arm/dts/socfpga_agilex5_socdk

Re: [PATCH v1 03/20] linker: Add SPL linker script for SoC64 devices

2024-09-24 Thread Marek Vasut
On 9/24/24 7:48 AM, Chee, Tien Fong wrote: Hi, Add a new .data section for preserving the original state of the .data section of SoC64 SPL. This new .data section is required to make SPL reentrant after warm reset. Where is the linker script copied from ? What is the original file name and pat

Re: [PATCH v1 01/20] arm: socfpga: agilex5: Add new system manager base addresses

2024-09-24 Thread Marek Vasut
On 9/24/24 6:45 AM, Chee, Tien Fong wrote: Hi, Initial creation of new system manager base addresses for Agilex5. How much of this can be converted to DT probing ? Yes, we have dedicated resource is working to convert this to DT in conjunction with syscon support to provide System-wide conf

Re: [PATCH v1 04/20] arm: socfpga: agilex5: Add low level initialization

2024-09-24 Thread Marek Vasut
On 9/24/24 5:14 AM, Chee, Tien Fong wrote: Hi, diff --git a/arch/arm/mach-socfpga/Makefile b/arch/arm/mach-socfpga/Makefile index 67c6a8dfec5..53c91d1d2a5 100644 --- a/arch/arm/mach-socfpga/Makefile +++ b/arch/arm/mach-socfpga/Makefile @@ -58,6 +58,7 @@ endif ifdef CONFIG_TARGET_SOCFPGA_A

Re: [PATCH v3 22/30] board: emulation: Add QEMU sbsa support

2024-09-24 Thread Tom Rini
On Tue, Sep 24, 2024 at 03:17:15PM +0200, Patrick Rudolph wrote: > On Fri, Sep 20, 2024 at 5:59 PM Simon Glass wrote: > > > > Hi Patrick, > > > > On Fri, 20 Sept 2024 at 12:29, Patrick Rudolph > > wrote: > > > > > > On Fri, Sep 20, 2024 at 11:37 AM Simon Glass wrote: > > > > > > > > +Peter Mayde

Re: [PATCH] ram: k3-ddrss: Handle error properly in lpddr4_start

2024-09-24 Thread Tom Rini
On Thu, 29 Aug 2024 14:04:53 +0530, Udit Kumar wrote: > In lpddr4_start function error returned by lpddr4_enablepiinitiator > may go undetected due to overwrite of return code. > Add support to handle error in above case. > > Applied to u-boot/master, thanks! -- Tom

Re: [u-boot-test-hooks][PATCH] travis-ci: Add qemu-arm-sbsa-ref

2024-09-24 Thread Tom Rini
On Tue, 24 Sep 2024 10:49:35 +0200, Patrick Rudolph wrote: > Add support for testing sbsa-ref via QEMU. sbsa-ref has two SPI > NOR flash, one for Arm-TF and one for unsecure firmware, providing > ACPI tables to the OS. > > Applied to u-boot/u-boot-test-hooks.git/master, thanks! -- Tom

RE: [PATCH] arm64: dts: imx8m: Always name the generated fitImage u-boot.itb

2024-09-24 Thread Peng Fan
> Subject: [PATCH] arm64: dts: imx8m: Always name the generated > fitImage u-boot.itb > > Maintain backward compatibility with pre-binman u-boot file naming, > the U-Boot fitImage used to be named u-boot.itb before, restore the > file name after binman conversion. > > Signed-off-by: Marek Vasut

Re: [PATCH v2 3/5] power: regulator: Exit from regulator_set_suspend_value on poorly described regulators

2024-09-24 Thread Jonas Karlman
Hi Marek, On 2024-09-25 04:21, Marek Vasut wrote: > In case the DT regulator node does not contain 'regulator-max-microvolt' > property and does not contain 'regulator-state-mem' subnode (like the > test.dts regul1_scmi: reg@1 {} regulator node), then regulator_pre_probe() > will parse this regula

RE: [PATCH v1 13/20] arm: socfpga: Export board ID as U-Boot environment variable

2024-09-24 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Marek Vasut > Sent: Saturday, September 21, 2024 9:54 PM > To: Chee, Tien Fong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Meng, Tingting > ; Yuslaimi, Alif Zakuan > ; Hea, Kok Kiang > > Subject: Re: [PATCH v1 13/20] arm: socfpga: Export board ID as

Re: [PATCH v9 35/37] [TESTING] Kconfig: enable NET_LWIP by default except for SANDBOX

2024-09-24 Thread Jerome Forissier
On 9/19/24 16:14, Simon Glass wrote: > Hi Tom, > > On Thu, 5 Sept 2024 at 00:32, Tom Rini wrote: >> >> On Sun, Sep 01, 2024 at 02:09:43PM -0600, Simon Glass wrote: >>> Hi Ilias, >>> >>> On Fri, 30 Aug 2024 at 03:27, Ilias Apalodimas >>> wrote: Hi Simon, On Fri, 30 Aug 2024

RE: [PATCH v1 03/20] linker: Add SPL linker script for SoC64 devices

2024-09-24 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Marek Vasut > Sent: Wednesday, September 25, 2024 2:36 AM > To: Chee, Tien Fong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Meng, Tingting > ; Yuslaimi, Alif Zakuan > ; Hea, Kok Kiang > > Subject: Re: [PATCH v1 03/20] linker: Add SPL linker script fo

RE: [PATCH v1 04/20] arm: socfpga: agilex5: Add low level initialization

2024-09-24 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Marek Vasut > Sent: Wednesday, September 25, 2024 2:32 AM > To: Chee, Tien Fong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Meng, Tingting > ; Yuslaimi, Alif Zakuan > ; Hea, Kok Kiang > > Subject: Re: [PATCH v1 04/20] arm: socfpga: agilex5: Add low l

RE: [PATCH v1 08/20] arm: dts: agilex5: Enable XGMAC

2024-09-24 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Marek Vasut > Sent: Wednesday, September 25, 2024 2:36 AM > To: Chee, Tien Fong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Meng, Tingting > ; Yuslaimi, Alif Zakuan > ; Hea, Kok Kiang > > Subject: Re: [PATCH v1 08/20] arm: dts: agilex5: Enable XGMAC