Re: [PATCH v3 7/8] board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled

2024-06-06 Thread Santhosh Kumar K
Hi, Wadim, Thanks for the review. On 30/05/24 17:48, Wadim Egorov wrote: Hi Santhosh, thanks for this series! Am 23.05.24 um 07:04 schrieb Santhosh Kumar K: As there are few redundant functions in board/ti/*/evm.c files, pull them to a common location of access to reuse and include the

Re: Possible license violation

2024-06-06 Thread Tom Rini
On Thu, Jun 06, 2024 at 08:15:24PM -0400, pm88hpxmd...@disengage.co wrote: > > > > > I think this is huge misunderstanding.They just don’t want users > to brick devices:After agent reply, no >

Re: Possible license violation

2024-06-06 Thread pm88hpxmdxke
I think this is huge misunderstanding.They just don’t want users to brick devices:After agent reply, no complaintshttps://forum.gl-inet.com/t/uboot-for-gl-mt3000-beryl-ax/41760/13Nice company, sorry for fuss> HiI am copying this message to you and GL

Re: [GIT PULL] Please pull u-boot-dfu-20240606

2024-06-06 Thread Tom Rini
t; https://source.denx.de/u-boot/custodians/u-boot-dfu.git > tags/u-boot-dfu-20240606 > > for you to fetch changes up to 4339138a2086f8449b9356130cb6e97a81aa8679: > > dfu: add missing dependency for SPI flash DFU driver (2024-06-06 09:11:21 > +0200) > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Pull request doc-2024-07-rc5

2024-06-06 Thread Tom Rini
On Thu, Jun 06, 2024 at 09:42:07AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 4b992573b34b1586e323e27b177680a6efec1c76: > > Merge https://gitlab.denx.de/u-boot/custodians/u-boot-usb (2024-06-05 > 10:59:10 -0600) > > are available in the Git

Re: Possible license violation

2024-06-06 Thread Tom Rini
On Tue, Jun 04, 2024 at 06:47:18PM -0400, pm88hpxmd...@disengage.co wrote: > HiI am copying this message to you and GL team.Regarding license > violation:U-boot’s license requires Gl.iNet to provide the source-code for > U-boot (including any modifications they made) to anybody that

[PATCH] arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

2024-06-06 Thread Tony Dinh
- Switch to standard boot (in include/configs/ds414.h and configs/ds414_defconfig) - Implement board_late_init() to ensure successful enumeration of USB3 devices - Remove unnecessary misc_init_r(), since NET_RANDOM_ETHADDR is now configured in - Remove unnecessary checkboard() - Updated

Re: Needs a check in the device tree

2024-06-06 Thread jianqiang wang
hi Simon, yes, you are right, I forgot to call this checking function, thanks! Best regards Jianqiang Simon Glass 于2024年6月6日周四 17:04写道: > Hi Jianqiang, > > On Wed, 5 Jun 2024 at 07:40, jianqiang wang wrote: > > > > Dear Das U-Boot developers, > > > > I found that the u-boot device tree

Re: Proposal: U-Boot memory management

2024-06-06 Thread Sughosh Ganu
hi Simon, On Wed, 29 May 2024 at 22:00, Simon Glass wrote: > > +Sughosh Ganu for reference > > > On Sun, 31 Dec 2023 at 09:16, Tom Rini wrote: > > > > On Sun, Dec 31, 2023 at 04:40:06PM +0100, Heinrich Schuchardt wrote: > > > > > > > > > Am 31. Dezember 2023 16:11:44 MEZ schrieb Tom Rini : > >

Re: [PATCH 0/3] arm: dts: am625/am62a7: Switch over to OF_UPSTREAM

2024-06-06 Thread Bryan Brattlof
On June 5, 2024 thus sayeth Nishanth Menon: > Cleanup am625 on by switching over the last two platforms (SK and > beagleplay) over to OF_UPSTREAM, and while at it, switch over am62a7 > (last of the am62* family) over as well. > > This superscedes the previous version of beagleplay only patch[1]

Re: [PATCH v3 05/12] net-lwip: add ping command

2024-06-06 Thread Ilias Apalodimas
On Thu, 6 Jun 2024 at 20:02, Ilias Apalodimas wrote: > > On Thu, 6 Jun 2024 at 19:53, Ilias Apalodimas > wrote: > > > > [...] > > > > > +static int ping_raw_init(void *recv_arg) > > > +{ > > > + ping_pcb = raw_new(IP_PROTO_ICMP); > > > + if (!ping_pcb) > > > + return

Re: [PATCH v3 05/12] net-lwip: add ping command

2024-06-06 Thread Ilias Apalodimas
On Thu, 6 Jun 2024 at 19:53, Ilias Apalodimas wrote: > > [...] > > > +static int ping_raw_init(void *recv_arg) > > +{ > > + ping_pcb = raw_new(IP_PROTO_ICMP); > > + if (!ping_pcb) > > + return -ENOMEM; > > + > > + raw_recv(ping_pcb, ping_recv, recv_arg); > > +

Re: [PATCH v3 00/12] Introduce the lwIP network stack

2024-06-06 Thread Tom Rini
On Thu, Jun 06, 2024 at 03:35:55PM +0200, Jerome Forissier wrote: > This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP > stack [2] [3] as an alternative to the current implementation in net/, >

Re: [PATCH v3 05/12] net-lwip: add ping command

2024-06-06 Thread Ilias Apalodimas
[...] > +static int ping_raw_init(void *recv_arg) > +{ > + ping_pcb = raw_new(IP_PROTO_ICMP); > + if (!ping_pcb) > + return -ENOMEM; > + > + raw_recv(ping_pcb, ping_recv, recv_arg); > + raw_bind(ping_pcb, IP_ADDR_ANY); > + > + return 0; > +} > + >

[PATCH] doc/sphinx, test/py: Update requests module to 2.32.2

2024-06-06 Thread Tom Rini
The issue described in https://github.com/psf/requests/pull/6655 has been assigned as a security issue. While unlikely to be exploited in our usage, update to the current release to fix it. Furthermore, upstream has now moved on to v2.23.2 as the release to use which has all of the issues

[PATCH v3 03/12] net-lwip: add DHCP support and dhcp commmand

2024-06-06 Thread Jerome Forissier
Add what it takes to enable NETDEVICES with NET_LWIP and enable DHCP as well as the dhcp command. - net-lwip/net-lwip.c is mostly empty for now. It will provide functions similar to net/net.c except based on the lwIP stack - include/net-lwip.h is a replacement for include/net.h which is unused

[PATCH v3 01/12] net: introduce alternative implementation as net-lwip/

2024-06-06 Thread Jerome Forissier
Prepare the introduction of the lwIP (lightweight IP) TCP/IP stack by adding a new net-lwip/ directory and the NET_LWIP symbol. Network support is either NO_NET, NET (legacy stack) or NET_LWIP. Subsequent commits will introduce the lwIP code, re-work the NETDEVICE integration and port some of the

Re: [PATCH 0/7] misc: introduce STATUS LED activity function

2024-06-06 Thread Quentin Schulz
Hi Christian, On 6/6/24 1:52 PM, Christian Marangi wrote: On Thu, Jun 06, 2024 at 12:55:37PM +0200, Quentin Schulz wrote: Hi Christian, On 6/6/24 11:52 AM, Christian Marangi wrote: On Thu, Jun 06, 2024 at 11:12:11AM +0200, Quentin Schulz wrote: Hi Christian, On 6/5/24 9:21 PM, Christian

Re: [PATCH 0/7] misc: introduce STATUS LED activity function

2024-06-06 Thread Christian Marangi
On Thu, Jun 06, 2024 at 03:32:14PM +0200, Quentin Schulz wrote: > Hi Christian, > > On 6/6/24 1:52 PM, Christian Marangi wrote: > > On Thu, Jun 06, 2024 at 12:55:37PM +0200, Quentin Schulz wrote: > > > Hi Christian, > > > > > > On 6/6/24 11:52 AM, Christian Marangi wrote: > > > > On Thu, Jun 06,

[PATCH v2 8/8] doc: convert README.LED to .rst documentation

2024-06-06 Thread Christian Marangi
Convert README.LED to .rst documentation and include all the relevant documentation in the status_led.h. Signed-off-by: Christian Marangi --- doc/README.LED | 77 -- doc/api/index.rst | 1 + doc/api/status_led.rst | 35 +++ include/status_led.h | 224

[PATCH v2 7/8] ubi: implement support for LED status activity

2024-06-06 Thread Christian Marangi
Implement support for LED status activity. If the feature is enabled, make the defined ACTIVITY LED to signal ubi write operation. Signed-off-by: Christian Marangi --- cmd/ubi.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cmd/ubi.c b/cmd/ubi.c index

[PATCH v2 6/8] mtd: implement support for LED status activity

2024-06-06 Thread Christian Marangi
Implement support for LED status activity. If the feature is enabled, make the defined ACTIVITY LED to signal mtd write or erase operations. Signed-off-by: Christian Marangi --- cmd/mtd.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/cmd/mtd.c b/cmd/mtd.c index

[PATCH v2 5/8] tftp: implement support for LED status activity

2024-06-06 Thread Christian Marangi
Implement support for LED status activity. If the feature is enabled, make the defined ACTIVITY LED to signal traffic. Signed-off-by: Christian Marangi --- net/tftp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/tftp.c b/net/tftp.c index 2e335413492..0515dc34d4b 100644 ---

[PATCH v2 4/8] led: status_led: add new activity LED config and functions

2024-06-06 Thread Christian Marangi
Add a new activity LED config and additional functions to implement a simple software blink feature to signal activity of any kind. Usual activity might be a file transfer with TFTP, a flash write... User of this API will call status_led_activity_start/stop() on each activity and LED will be

[PATCH v2 3/8] led: status_led: add function to toggle a status LED

2024-06-06 Thread Christian Marangi
Add function to toggle a status LED by using the status LED ID reference configs. Signed-off-by: Christian Marangi --- drivers/misc/status_led.c | 28 +++- include/status_led.h | 1 + 2 files changed, 24 insertions(+), 5 deletions(-) diff --git

[PATCH v2 2/8] led: status_led: add support for white LED colour

2024-06-06 Thread Christian Marangi
Add support for white LED colour present on many devices. Signed-off-by: Christian Marangi --- cmd/legacy_led.c| 6 ++ common/board_f.c| 2 ++ drivers/led/Kconfig | 14 ++ drivers/misc/gpio_led.c | 12 include/status_led.h| 4 5 files

[PATCH v2 1/8] misc: gpio_led: fix broken coloured LED status functions

2024-06-06 Thread Christian Marangi
The GPIO LED driver is a backend to provide LED status functions via the GPIO common functions. The coloured LED functions are currently broken and deviates from what is written in README.LED Quoting the README.LED: CONFIG_STATUS_LED_RED is the red LED. It is used to signal errors. This must be

[PATCH v2 0/8] misc: introduce STATUS LED activity function

2024-06-06 Thread Christian Marangi
This series expand the STATUS LED framework with a new color and a big new feature. One thing that many device need is a way to communicate to the user that the device is actually doing something. This is especially useful for recovery steps where an user (for example) insert an USB drive, keep a

[PATCH 6/6] powerpc: Add support for CZ.NIC Turris 1.x routers

2024-06-06 Thread Marek Mojík
From: Pali Rohár Add support for CZ.NIC Turris 1.x routers. CZ.NIC Turris 1.0 (RTRS01) and 1.1 (RTRS02) are open source routers, they have dual-core PowerPC Freescale P2020 CPU and are based on reference Freescale P2020RDB-PC-A board design. Hardware design is fully open source, all firmware

[PATCH 0/6] Add Turris 1.x board

2024-06-06 Thread Marek Mojík
Hello all, this is a continuation of previous work by Pali to add support for the Turris 1.x board. As the patches were based on u-boot v2022.04, a nontrivial rebasing was needed. Some notes: - Some options that are in SD defconfig are disabled in NOR defconfig because over the years u-boot

[PATCH 5/6] powerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h

2024-06-06 Thread Marek Mojík
Use the CONFIG_IS_ENABLED() macro when checking for DM_SERIAL so that CFG_SYS_NS16550_CLK is not defined as get_serial_clock() in SPL if SPL does not have DM_SERIAL enabled. Signed-off-by: Marek Mojík --- arch/powerpc/include/asm/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 2/6] board: freescale: p1_p2_rdb_pc: Add weak function p1_p2_rdb_pc_fix_fdt_model() for fixing DT model string

2024-06-06 Thread Marek Mojík
From: Pali Rohár This allows boards to fixup / overwrite DT model string when booting OS. Signed-off-by: Pali Rohár Signed-off-by: Marek Mojík --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 4 1 file changed, 4 insertions(+) diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c

[PATCH 1/6] board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images

2024-06-06 Thread Marek Mojík
From: Pali Rohár When U-Boot is running from flash memory (execute in place) then gd->fdt_blob before relocation points to read-only flash memory. So U-Boot calls board_fix_fdt() with read-only gd->fdt_blob pointer which cause immediate CPU crash when callback is trying to modify gd->fdt_blob.

[PATCH 4/6] powerpc: mpc85xx: use CONFIG_VAL() for SYS_MONITOR_BASE in start.s

2024-06-06 Thread Marek Mojík
Use CONFIG_VAL() for SYS_MONITOR_BASE in start.S so that correct value is used for SPL. Signed-off-by: Marek Mojík --- arch/powerpc/cpu/mpc85xx/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/start.S b/arch/powerpc/cpu/mpc85xx/start.S index

[PATCH 3/6] powerpc: mpc8xxx: Extend find_law() to find_law_by_addr_id()

2024-06-06 Thread Marek Mojík
From: Pali Rohár The find_law() function searches for LAW just by physical address. This is unsuitable for cases with overlapping LAWs. Extend it to find_law_by_addr_id(), which searches for LAW by physical address and target id. Add a static inline definition of the original find_law() into

Re: [PATCH] board: rockchip: Add FriendlyElec NanoPi R6C

2024-06-06 Thread Sebastian Kropatsch
Hi Quentin, thanks for your feedback! Am 06.06.2024 um 16:53 schrieb Quentin Schulz: Hi Sebastian, On 6/5/24 5:36 PM, Sebastian Kropatsch wrote: [You don't often get email from seb-...@mail.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] The NanoPi R6C is

Re: [PATCH v3 06/12] net-lwip: add dns command

2024-06-06 Thread Jerome Forissier
On 6/6/24 18:02, Ilias Apalodimas wrote: > [...] > + + if (!ipaddr) { + printf("DNS: host not found\n"); + host_ipaddr.addr = 0; + return; + } + + if (var) + env_set(var,

Re: [PATCH v3 06/12] net-lwip: add dns command

2024-06-06 Thread Ilias Apalodimas
[...] > >> + > >> + if (!ipaddr) { > >> + printf("DNS: host not found\n"); > >> + host_ipaddr.addr = 0; > >> + return; > >> + } > >> + > >> + if (var) > >> + env_set(var, ipstr); > > > > Do we need this? Won't this set ==

Re: [PATCH v3 06/12] net-lwip: add dns command

2024-06-06 Thread Jerome Forissier
On 6/6/24 17:46, Ilias Apalodimas wrote: >> @@ -7,6 +7,7 @@ obj-$(CONFIG_$(SPL_)DM_ETH) += ../net/eth_common.o >> obj-$(CONFIG_$(SPL_)DM_ETH) += ../net/eth-uclass.o >> obj-$(CONFIG_$(SPL_)DM_ETH) += net-lwip.o >> obj-$(CONFIG_CMD_DHCP) += dhcp.o >> +obj-$(CONFIG_CMD_DNS) += dns.o >>

Re: [PATCH v3 02/12] net-lwip: build lwIP

2024-06-06 Thread Ilias Apalodimas
On Thu, 6 Jun 2024 at 16:36, Jerome Forissier wrote: > > Build the lwIP library when NET_LWIP is enabled. The following files > are adaptation layers written specially for U-Boot: > > lib/lwip/u-boot/arch/cc.h > lib/lwip/u-boot/arch/sys_arch.h (empty) > lib/lwip/u-boot/limits.h (empty) >

Re: [PATCH v3 06/12] net-lwip: add dns command

2024-06-06 Thread Ilias Apalodimas
> @@ -7,6 +7,7 @@ obj-$(CONFIG_$(SPL_)DM_ETH) += ../net/eth_common.o > obj-$(CONFIG_$(SPL_)DM_ETH) += ../net/eth-uclass.o > obj-$(CONFIG_$(SPL_)DM_ETH) += net-lwip.o > obj-$(CONFIG_CMD_DHCP) += dhcp.o > +obj-$(CONFIG_CMD_DNS) += dns.o > obj-$(CONFIG_CMD_PING) += ping.o >

Re: [PATCH 9/9] Revert "arm: am335x: Enable SPL_OF_CONTROL on some configs"

2024-06-06 Thread Tom Rini
On Thu, Jun 06, 2024 at 09:04:17AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 5 Jun 2024 at 14:15, Tom Rini wrote: > > > > On Wed, Jun 05, 2024 at 02:08:54PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 5 Jun 2024 at 08:42, Tom Rini wrote: > > > > > > > > On Tue, Jun 04,

Re: [PATCH v3 07/12] net-lwip: add wget command

2024-06-06 Thread Ilias Apalodimas
Hi Jerome, Can we split this in 2 patches instead? A preparatory one, with split the net-common etc and one that adds wget? Thanks /Ilias On Thu, 6 Jun 2024 at 16:37, Jerome Forissier wrote: > > Add support for the wget command with NET_LWIP. > > About the small change in cmd/efidebug.c: when

Re: [RFC PATCH] drivers: bootcount: Add support for FAT filesystem

2024-06-06 Thread Quentin Schulz
Hi Vasileios, On 6/5/24 8:10 PM, Vasileios Amoiridis wrote: [You don't often get email from vassilisa...@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] From: Vasileios Amoiridis Add support to save boot count variable in a file in a FAT filesystem.

Re: [PATCH 3/9] rockchip: veyron: Add logging for power init

2024-06-06 Thread Quentin Schulz
Hi Simon, On 6/6/24 5:04 PM, Simon Glass wrote: HI Quentin, On Wed, 5 Jun 2024 at 02:36, Quentin Schulz wrote: Hi Simon, On 6/5/24 5:25 AM, Simon Glass wrote: Add better logging for power init so that CONFIG_LOG_ERROR_RETURN can be enabled. Signed-off-by: Simon Glass ---

Re: Needs a check in the device tree

2024-06-06 Thread Simon Glass
Hi Jianqiang, On Wed, 5 Jun 2024 at 07:40, jianqiang wang wrote: > > Dear Das U-Boot developers, > > I found that the u-boot device tree implementation lacks a check for the > off_dt_struct field in the device tree. > > In file scripts\dtc\libfdt\libfdt_internal.h, fdt_offset_ptr_ returns the >

Re: [PATCH 3/9] rockchip: veyron: Add logging for power init

2024-06-06 Thread Simon Glass
HI Quentin, On Wed, 5 Jun 2024 at 02:36, Quentin Schulz wrote: > > Hi Simon, > > On 6/5/24 5:25 AM, Simon Glass wrote: > > Add better logging for power init so that CONFIG_LOG_ERROR_RETURN can > > be enabled. > > > > Signed-off-by: Simon Glass > > --- > > > > board/google/veyron/veyron.c | 27

Re: [PATCH 9/9] Revert "arm: am335x: Enable SPL_OF_CONTROL on some configs"

2024-06-06 Thread Simon Glass
Hi Tom, On Wed, 5 Jun 2024 at 14:15, Tom Rini wrote: > > On Wed, Jun 05, 2024 at 02:08:54PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 5 Jun 2024 at 08:42, Tom Rini wrote: > > > > > > On Tue, Jun 04, 2024 at 09:25:21PM -0600, Simon Glass wrote: > > > > > > > This is a partial revert

Re: [PATCH 3/3] regulator: rk8xx: clarify operator precedence

2024-06-06 Thread Simon Glass
On Wed, 5 Jun 2024 at 03:33, Quentin Schulz wrote: > > From: Quentin Schulz > > My linter complains that the order isn't clear enough so let's put > parentheses around the ternary condition to make it happy. > > Signed-off-by: Quentin Schulz > --- > drivers/power/regulator/rk8xx.c | 26

Re: [PATCH 2/3] regulator: rk8xx: pass pmic udevice instead of regulator to all internal functions

2024-06-06 Thread Simon Glass
On Wed, 5 Jun 2024 at 03:33, Quentin Schulz wrote: > > From: Quentin Schulz > > For the sake of consistency, make all internal (starting with _) > functions expect a pmic udevice instead of a regulator udevice. > > Signed-off-by: Quentin Schulz > --- > drivers/power/regulator/rk8xx.c | 20

Re: [PATCH 7/9] rockchip: bob: kevin: Disable dcache in SPL

2024-06-06 Thread Simon Glass
Hi Jonas, On Wed, 5 Jun 2024 at 05:07, Jonas Karlman wrote: > > Hi Simon, > > On 2024-06-05 05:25, Simon Glass wrote: > > This causes a hang, so disable it. > > When I initially tested this on multiple boards there was some boards > that also hanged, that turned out to be an issue in one of the

Re: [PATCH 1/3] regulator: rk8xx: fix incorrect device used for _ldo_[sg]et_suspend_value

2024-06-06 Thread Simon Glass
On Wed, 5 Jun 2024 at 03:33, Quentin Schulz wrote: > > From: Quentin Schulz > > _ldo_get_suspend_value and _ldo_set_suspend_value get passed the parent > of the regulator (so the pmic) as first argument, therefore this udevice > should be used for pmic_* callbacks instead of using the parent of

Re: [PATCH 0/2] Cleanup fit documentation

2024-06-06 Thread Quentin Schulz
Hi Simon, On 6/5/24 5:52 PM, Simon Glass wrote: Hi Sam, On Tue, 4 Jun 2024 at 20:13, Simon Glass wrote: Hi Sam, On Tue, 4 Jun 2024 at 13:53, Sam Povilus wrote: Sam Povilus (2): doc: Remove extraneous curly braces doc: add clarity to what a "fpga" image is

Re: [PATCH] board: rockchip: Add FriendlyElec NanoPi R6C

2024-06-06 Thread Quentin Schulz
Hi Sebastian, On 6/5/24 5:36 PM, Sebastian Kropatsch wrote: [You don't often get email from seb-...@mail.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] The NanoPi R6C is a SBC by FriendlyElec based on the Rockchip RK3588s. It comes with 4GB or 8GB of RAM, a

Re: [PATCH v2 1/1] xilinx: zynqmp: Enable reset_cpu() in SPL

2024-06-06 Thread Michal Simek
On 6/4/24 15:59, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This commit enables SPL to reset the CPU via PMU-firmware. The usual reset mechanism requires bl31 to be loaded which may not be the case in SPL. Signed-off-by: Lukas Funke --- Changes in v2: - Drop 2/2 since

Re: [PATCH] ARM: stm32: Ping IWDG on exit from PSCI suspend code

2024-06-06 Thread Patrice CHOTARD
On 4/20/24 00:03, Marek Vasut wrote: > Make sure the OS would not get any spurious IWDG pretimeout IRQ > right after the system wakes up. This may happen in case the SoC > got woken up by another source than the IWDG pretimeout and the > pretimeout IRQ arrived immediately afterward, but too

[PATCH] gpio: Add proper dependency on ZYNQMP_FIRMWARE

2024-06-06 Thread Michal Simek
ZYNQMP_FIRMWARE can be disabled and driver depends on it that's why record this dependency via Kconfig. Signed-off-by: Michal Simek --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index

Re: [PATCH 5/5] dts: stm32mp157c-odyssey: add phy-reset-gpios property to ethernet node

2024-06-06 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > In Odyssey board, we should reset the PHY chipset, toggling G0 pin. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey.dts | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/dts/stm32mp157c-odyssey.dts >

Re: [PATCH 4/5] net: dwc_eth_qos: add support for phy-reset-gpios property

2024-06-06 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > This commit adds support for a property 'phy-reset-gpios' to reset PHY > chipset. > > Signed-off-by: Heesub Shin > --- > drivers/net/dwc_eth_qos_stm32.c | 23 ++- > 1 file changed, 22 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH 3/5] dts: stm32mp157c-odyssey: fix incorrect PHY address

2024-06-06 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > In Odyssey board, KSZ9031 is at the PHY address 0x7, not 0x0. This > commit fixes it. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH 2/5] dts: stm32mp157c-odyssey: use internal clock for Tx

2024-06-06 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > In Odyssey board, we should use the internal clock from RCC as the > transmit clock, instead of the external clock from ETH_CLK125 pad. This > commit adds a property, st,eth-clk-sel, so that the ETH_CLK_SEL mux > selects ETH_CLK. > > Signed-off-by: Heesub

Re: [PATCH 1/5] dts: stm32mp157c-odyssey: set PLL4_P to 125Mhz for ETH_CLK

2024-06-06 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > Odyssey board requires ETH_CLK of 125Mhz. This commit sets PLL4_P/Q/R to > 125, 62.5 and 62.5Mhz in respectively. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey-som-u-boot.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2

[PATCH] arm64: zynqmp: Align #address/size-cells with node

2024-06-06 Thread Michal Simek
zynqmp-mini-nand wasn't aligned with dt binding that's why fix it. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-mini-nand.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/zynqmp-mini-nand.dts b/arch/arm/dts/zynqmp-mini-nand.dts index

Re: [PATCH v3 7/7] drivers: misc: Add driver to access ZynqMP efuses

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Add driver to access ZynqMP efuses. This is a u-boot port of [1]. Note: Accessing eFuses requires eFuse access to be enabled in the underlying PMU firmware. [1]

Re: [PATCH v2 00/14] Introduce the lwIP network stack

2024-06-06 Thread Tom Rini
On Thu, Jun 06, 2024 at 11:15:54AM +0200, Jerome Forissier wrote: > > > On 5/27/24 17:34, Tom Rini wrote: > > On Fri, May 24, 2024 at 06:19:54PM +0200, Jerome Forissier wrote: > > > >> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > >> library for the network stack"

Re: [PATCH v2 1/2] ARM: dts: stm32: Add pinmux nodes for DH electronics STM32MP13xx DHCOR SoM and DHSBC board

2024-06-06 Thread Patrice CHOTARD
On 4/28/24 00:20, Marek Vasut wrote: > Add new pinmux nodes for DH electronics STM32MP13xx DHCOR SoM and DHSBC board. > The following pinmux nodes are added: > - ADC pins > - ADC CC pins > - ETH1 pins > - ETH2 pins > - I2C5 pins > - MCAN1 pins > - MCAN2 pins > - PWM13 pins > - PWM5 pins > -

Re: [PATCH v5] cmd: move ELF load and boot to lib/elf.c

2024-06-06 Thread Tom Rini
On Thu, Jun 06, 2024 at 09:02:43AM +0200, Heinrich Schuchardt wrote: > On 6/5/24 20:43, Maxim Moskalets wrote: > > From: Maxim Moskalets > > > > Loading and running the ELF image is the responsibility of the > > library and should not be associated with the command line interface. > > > > It is

Re: [PATCH v3 5/7] soc: xilinx: zynqmp: Use zynqmp_pm_get_chipid() to get chip revision

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Use common zynqmp_pm_get_chipid() function to get the chip revision Signed-off-by: Lukas Funke --- (no changes since v1) drivers/soc/soc_xilinx_zynqmp.c | 21 + 1 file changed, 9

Re: [PATCH v3 4/7] soc: xilinx: versal-net: Use zynqmp_pm_get_chipid() to get chip revision

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Use common zynqmp_pm_get_chipid() function to get the chip revision Signed-off-by: Lukas Funke --- (no changes since v1) drivers/soc/soc_xilinx_versal_net.c | 13 ++--- 1 file changed, 6 insertions(+),

Re: [PATCH v3 6/7] firmware: zynqmp: Add support to access efuses

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Add functions to access efuses through PMU firmware interface. Signed-off-by: Lukas Funke --- (no changes since v1) drivers/firmware/firmware-zynqmp.c | 31 ++

Re: [PATCH v3 3/7] soc: xilinx: versal: Use zynqmp_pm_get_chipid() to get chip revision

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Use common zynqmp_pm_get_chipid() function to get the chip revision Signed-off-by: Lukas Funke --- (no changes since v1) drivers/soc/soc_xilinx_versal.c | 13 ++--- 1 file changed, 6 insertions(+), 7

Re: [PATCH v3 2/7] configs: zynqmp_virt: Enable CMD_FUSE and ZYNQMP_EFUSE

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Enable CMD_FUSE and ZYNQMP_EFUSE in order to be able to write ZyqnMP eFuses from within the bootloader. Signed-off-by: Lukas Funke --- (no changes since v1) configs/xilinx_zynqmp_kria_defconfig | 2 ++ 1 file

Re: [PATCH v3 1/7] configs: zynqmp_kria: Enable CMD_FUSE and ZYNQMP_EFUSE

2024-06-06 Thread Michal Simek
On 6/4/24 16:27, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Enable CMD_FUSE and ZYNQMP_EFUSE in order to be able to write ZyqnMP eFuses from within the bootloader for Kria SoM. Signed-off-by: Lukas Funke --- (no changes since v1) configs/xilinx_zynqmp_virt_defconfig | 2

[PATCH v3 12/12] CI: add qemu_arm64_lwip to the test matrix

2024-06-06 Thread Jerome Forissier
Build and run qemu_arm64_lwip_defconfig in CI. This tests the lightweight IP (lwIP) implementation of the dhcp, tftpboot and ping commands. Signed-off-by: Jerome Forissier --- .azure-pipelines.yml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/.azure-pipelines.yml

[PATCH v3 11/12] MAINTAINERS: net-lwip: add myself as a maintainer

2024-06-06 Thread Jerome Forissier
Add myself as a maintainer for the lwIP network stack integration code and network commands. The library code itself (i.e., most files under lib/lwip/ except README, Makefile and integration files in u-boot) is unmodified from upstream and therefore does not need a maintainer. Signed-off-by:

[PATCH v3 10/12] configs: add qemu_arm64_lwip_defconfig

2024-06-06 Thread Jerome Forissier
Add qemu_arm64_lwip_defconfig based on qemu_arm64_defconfig but with NET_LWIP instead of NET. Signed-off-by: Jerome Forissier --- configs/qemu_arm64_lwip_defconfig | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 configs/qemu_arm64_lwip_defconfig diff --git

[PATCH v3 09/12] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y

2024-06-06 Thread Jerome Forissier
Support "bdinfo -e" when lwIP is selected. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas Reviewed-by: Tom Rini --- cmd/bdinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 79106caeec2..690fb894bf6 100644 ---

[PATCH v3 08/12] test: dm: dsa, eth: disable tests when CONFIG_NET_LWIP=y

2024-06-06 Thread Jerome Forissier
Some sandbox tests make strong assumptions on how the network stack is implemented. For example, the ping tests assume that ARP resolution occurs upon sending out the ICMP packet. This is not always the case with the lwIP stack which can cache ARP information. Therefore, disable these tests when

[PATCH v3 07/12] net-lwip: add wget command

2024-06-06 Thread Jerome Forissier
Add support for the wget command with NET_LWIP. About the small change in cmd/efidebug.c: when the wget command based on the lwIP stack is used the wget command has a built-in URL validation function since it needs to parse it anyways (in parse_url()). Therefore wget_validate_uri() doesn't exist.

[PATCH v3 06/12] net-lwip: add dns command

2024-06-06 Thread Jerome Forissier
Add CMD_DNS when NET_LWIP is enabled to provide the dns command using lwIP. Signed-off-by: Jerome Forissier --- cmd/Kconfig| 6 +++ cmd/net-lwip.c | 8 include/net-lwip.h | 1 + net-lwip/Makefile | 1 + net-lwip/dns.c | 107

[PATCH v3 05/12] net-lwip: add ping command

2024-06-06 Thread Jerome Forissier
Add support for the the ping command with NET_LWIP. The implementation is derived from lwIP's contrib/apps/ping/ping.c. Signed-off-by: Jerome Forissier --- boot/Kconfig | 2 +- cmd/Kconfig| 6 ++ cmd/net-lwip.c | 8 +++ include/net-lwip.h | 3 + net-lwip/Makefile |

[PATCH v3 04/12] net-lwip: add TFTP support and tftpboot command

2024-06-06 Thread Jerome Forissier
Implement do_tftpb(). Signed-off-by: Jerome Forissier --- cmd/Kconfig | 3 +- cmd/net-lwip.c | 8 ++ net-lwip/dhcp.c | 11 ++- net-lwip/tftp.c | 202 +++- 4 files changed, 219 insertions(+), 5 deletions(-) diff --git a/cmd/Kconfig

[PATCH v3 02/12] net-lwip: build lwIP

2024-06-06 Thread Jerome Forissier
Build the lwIP library when NET_LWIP is enabled. The following files are adaptation layers written specially for U-Boot: lib/lwip/u-boot/arch/cc.h lib/lwip/u-boot/arch/sys_arch.h (empty) lib/lwip/u-boot/limits.h (empty) lib/lwip/u-boot/lwipopts.h They were initially contributed by Maxim in a

[PATCH v3 00/12] Introduce the lwIP network stack

2024-06-06 Thread Jerome Forissier
This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP stack [2] [3] as an alternative to the current implementation in net/, selectable with Kconfig, and ultimately keep only lwIP if possible. Some

[PATCH] ARM: stm32: Fix livetree conversion on STM32MP15xx DHSOM

2024-06-06 Thread Marek Vasut
Unlike fdt_node_check_compatible() which returns 0 if node is compatible, ofnode_device_is_compatible() return true which is non-zero if node is compatible. The intention of the code is to exit from the function in case the node is not compatible with "micrel,ks8851-mll". Add the missing invert

[PATCH] ARM: dts: stm32: Auto-detect second MAC on STM32MP15xx DH electronics DHCOM

2024-06-06 Thread Marek Vasut
Test whether this system is compatible with STM32MP15xx DHCOM SoM, if so, test whether R292 pull up is populated on pin PC3, which is an indication that the second MAC chip, KS8851-16MLL, is populated. Use this information to patch 'status' DT property into the second ethernet MAC DT node and

Re: [PATCH v2 0/1] xilinx: Add option to load environment from outside of

2024-06-06 Thread Michal Simek
On 6/3/24 18:47, Vasileios Amoiridis wrote: From: Vasileios Amoiridis Changes in v2: - Remove duplication of custom hardcoded env_locations[] code. - Add implementation with general arch_env_get_location(op, prio) v1:

Re: [PATCH 0/7] misc: introduce STATUS LED activity function

2024-06-06 Thread Christian Marangi
On Thu, Jun 06, 2024 at 12:55:37PM +0200, Quentin Schulz wrote: > Hi Christian, > > On 6/6/24 11:52 AM, Christian Marangi wrote: > > On Thu, Jun 06, 2024 at 11:12:11AM +0200, Quentin Schulz wrote: > > > Hi Christian, > > > > > > On 6/5/24 9:21 PM, Christian Marangi wrote: > > > > This series

Re: [PATCH 0/7] misc: introduce STATUS LED activity function

2024-06-06 Thread Quentin Schulz
Hi Christian, On 6/6/24 11:52 AM, Christian Marangi wrote: On Thu, Jun 06, 2024 at 11:12:11AM +0200, Quentin Schulz wrote: Hi Christian, On 6/5/24 9:21 PM, Christian Marangi wrote: This series expand the STATUS LED framework with a new color and a big new feature. One thing that many device

Re: [PATCH v2 08/14] net-lwip: add wget command

2024-06-06 Thread Maxim Uvarov
чт, 6 июн. 2024 г. в 12:56, Jerome Forissier : > > > > On 5/28/24 15:39, Maxim Uvarov wrote: > > пт, 24 мая 2024 г. в 19:22, Jerome Forissier : > >> > >> Add support for the wget command with NET_LWIP. > >> > >> About the small change in cmd/efidebug.c: when the wget command based > >> on the lwIP

Re: [PATCH 0/7] misc: introduce STATUS LED activity function

2024-06-06 Thread Christian Marangi
On Thu, Jun 06, 2024 at 11:12:11AM +0200, Quentin Schulz wrote: > Hi Christian, > > On 6/5/24 9:21 PM, Christian Marangi wrote: > > This series expand the STATUS LED framework with a new color > > and a big new feature. One thing that many device need is a way > > to communicate to the user that

Re: [PATCH 0/7] misc: introduce STATUS LED activity function

2024-06-06 Thread Quentin Schulz
Hi Christian, On 6/5/24 9:21 PM, Christian Marangi wrote: This series expand the STATUS LED framework with a new color and a big new feature. One thing that many device need is a way to communicate to the user that the device is actually doing something. This is especially useful for recovery

Re: [PATCH 5/7] tftp: implement support for LED status activity

2024-06-06 Thread Christian Marangi
On Thu, Jun 06, 2024 at 09:22:05AM +0100, Peter Robinson wrote: > On Wed, 5 Jun 2024 at 20:51, Christian Marangi wrote: > > > > Implement support for LED status activity. If the feature is enabled, > > make the defined ACTIVITY LED to signal traffic. > > Would this not just duplicate the

Re: [PATCH v2 07/14] net-lwip: add dns command

2024-06-06 Thread Maxim Uvarov
чт, 6 июн. 2024 г. в 09:29, Ilias Apalodimas : > > Hi Jerome, > > [...] > > > + > > +static ulong start; > > +static ip_addr_t host_ipaddr; > > +static bool done; > > + > > +static void do_dns_tmr(void *arg) > > +{ > > + dns_tmr(); > > +} > > + > > +static void dns_cb(const char *name, const

Re: [PATCH 5/7] tftp: implement support for LED status activity

2024-06-06 Thread Peter Robinson
On Wed, 5 Jun 2024 at 20:51, Christian Marangi wrote: > > Implement support for LED status activity. If the feature is enabled, > make the defined ACTIVITY LED to signal traffic. Would this not just duplicate the activity on the NIC LED? > Signed-off-by: Christian Marangi > --- > net/tftp.c |

[PATCH 5/6] bootstd: Add a bootmeth for Android

2024-06-06 Thread Mattijs Korpershoek
Android boot flow is a bit different than a regular Linux distro. Android relies on multiple partitions in order to boot. A typical boot flow would be: 1. Parse the Bootloader Control Block (BCB, misc partition) 2. If BCB requested bootonce-bootloader, start fastboot and wait. 3. If BCB requested

[PATCH 6/6] bootstd: Add test for bootmeth_android

2024-06-06 Thread Mattijs Korpershoek
Add a unit test for testing the Android bootmethod. This requires another mmc image (mmc7) to contain the following partitions: - misc: contains the Bootloader Control Block (BCB) - boot_a: contains a fake generic kernel image - vendor_boot_a: contains a fake vendor_boot image Also add

[PATCH 4/6] android: boot: Add set_abootimg_addr() and set_avendor_bootimg_addr()

2024-06-06 Thread Mattijs Korpershoek
The only way to configure the load addresses for both bootimg and vendor_bootimg is by using the "abootimg" command. If we want to use the C API, there is no equivalent. Add set_abootimg_addr() and set_avendor_bootimg_addr() so that we can specify the load address from C. This can be useful for

[PATCH 3/6] bootstd: Add bootflow_iter_check_mmc() helper

2024-06-06 Thread Mattijs Korpershoek
Some bootflows might be able to only boot from MMC devices. Add a helper function these bootflows can use. Signed-off-by: Mattijs Korpershoek --- boot/bootflow.c| 12 include/bootflow.h | 9 + 2 files changed, 21 insertions(+) diff --git a/boot/bootflow.c

[PATCH 2/6] boot: android: Add image_android_get_version()

2024-06-06 Thread Mattijs Korpershoek
When reading a boot image header, we may need to retrieve the header version. Add a helper function for it. Signed-off-by: Mattijs Korpershoek --- boot/image-android.c | 7 ++- include/image.h | 7 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git

  1   2   >