Re: [PATCH v4 04/10] arm64: dts: rockchip: reorder usb2phy properties for rk3588

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: From: Sebastian Reichel Reorder common DT properties alphabetically for usb2phy, according to latest DT style rules. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20240408225109.128953-6-sebastian.reic...@collabora.com Signed-off-b

Re: [PATCH v4 05/10] arm64: dts: rockchip: add USBDP phys on rk3588

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: From: Sebastian Reichel Add both USB3-DisplayPort PHYs to RK3588 SoC DT. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20240408225109.128953-7-sebastian.reic...@collabora.com Signed-off-by: Heiko Stuebner [ upstream commit: e18e5

Re: [PATCH v4 06/10] arm64: dts: rockchip: add USB3 DRD controllers on rk3588

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: From: Sebastian Reichel Add both USB3 dual-role controllers to the RK3588 devicetree. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20240408225109.128953-8-sebastian.reic...@collabora.com Signed-off-by: Heiko Stuebner [ upstream

Re: [PATCH v4 07/10] arm64: dts: rockchip: add rk3588 pcie and php IOMMUs

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: From: Niklas Cassel The mmu600_pcie is connected with the five PCIe controllers. The mmu600_php is connected with the USB3 controller, the GMAC controllers, and the SATA controllers. See 8.2 Block Diagram, in rk3588 TRM (Technical Reference Manual). T

Re: [PATCH v4 08/10] arm64: dts: rockchip: Add ArmSom Sige7 board

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: Specification: Rockchip Rk3588 SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 8/16/32GB Memory LPDDR4/LPDDR4x Mali G610MP4 GPU 2× MIPI-CSI Connector 1× MIPI-DSI Connector 1x M.2 Key M (PCIe 3.0 4-la

Re: [PATCH v4 09/10] rockchip: rk3588: Remove USB3 DRD nodes in u-boot.dtsi

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: After we sync USB3 DRD nodes from v6.10-rc1, these obsolete nodes can be removed. Signed-off-by: Jianfeng Liu Reviewed-by: Kever Yang Thanks, - Kever --- (no changes since v1) arch/arm/dts/rk3588-u-boot.dtsi | 74 --- a

Re: [PATCH v4 10/10] board: rockchip: add ArmSoM Sige7 Rk3588 board

2024-06-06 Thread Kever Yang
On 2024/5/29 01:04, Jianfeng Liu wrote: ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by ArmSoM. There are two variants depending on the DRAM size : 8G and 16G. Specification: Rockchip Rk3588 SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 8/16GB memory LPDDR4x

Re: [PATCH next v2 1/6] rockchip: jaguar-rk3588: use default env size for Rockchip on MMC

2024-06-06 Thread Kever Yang
On 2024/6/5 23:56, Quentin Schulz wrote: From: Quentin Schulz The default env size is 0x8000 when building for Rockchip SoCs with support for environment stored in MMC. Jaguar hasn't entered mass production just yet, so it's a breaking change we can afford in the name of consistency. Signed

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

2024-06-06 Thread Heinrich Schuchardt
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 also required to run ELF images from FIT with the bootm command so as not to depend on the co

Re: [PATCH v4 00/10] add ArmSoM Sige7 Rk3588 board

2024-06-06 Thread Sumit Garg
Hi Jianfeng, On Tue, 28 May 2024 at 22:35, Jianfeng Liu wrote: > > This series also introduces dts commits of rk3588s.dtsi and rk3588.dtsi > from v6.10-rc1-dts. > Then dts of ArmSoM Sige7 is picked from upstream. > I also remove obsolete usb3 nodes of rk3588-u-boot.dtsi and > rk3588-u-boot.dtsi.

Re: [PATCH 1/1] dfu: add missing dependency for SPI flash DFU driver

2024-06-06 Thread Mattijs Korpershoek
Hi, On Tue, 04 Jun 2024 07:44:25 +0200, Heinrich Schuchardt wrote: > Building the SPI flash DFU driver fails if SPI flash support is missing. > > drivers/dfu/dfu_sf.c:123:29: error: > ‘CONFIG_SF_DEFAULT_MODE’ undeclared (first use in this function); > > Add the missing dependency. > > [

Re: [PATCH v3 4/8] mach-snapdragon: implement capsule update support

2024-06-06 Thread Sumit Garg
On Wed, 5 Jun 2024 at 18:03, Caleb Connolly wrote: > > Hi Sumit, > >> +/** > >> + * qcom_configure_capsule_updates() - Configure the DFU string for > >> capsule updates > >> + * > >> + * U-Boot is flashed to the boot partition on Qualcomm boards. In most > >> cases there > >> + * are two boot pa

Re: [PATCH v3 0/8] qcom: implement capsule updates

2024-06-06 Thread Sumit Garg
On Wed, 5 Jun 2024 at 18:12, Caleb Connolly wrote: > > Hi Sumit, > > On 05/06/2024 07:31, Sumit Garg wrote: > > Hi Caleb, > > > > On Mon, 3 Jun 2024 at 18:19, Caleb Connolly > > wrote: > >> > >> Hook up support for capsule updates loaded from disk on Qualcomm > >> platforms. > >> > >> Most Qualc

Pull request doc-2024-07-rc5

2024-06-06 Thread Heinrich Schuchardt
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 repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/doc-2024-07-rc5

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

2024-06-06 Thread Philip Oberfichtner
Hi, On Wed, Jun 05, 2024 at 08:10:41PM +0200, Vasileios Amoiridis wrote: > From: Vasileios Amoiridis > > Add support to save boot count variable in a file in a FAT filesystem. > > Signed-off-by: Vasileios Amoiridis > --- > doc/README.bootcount | 12 > drivers/bootcount/K

Re: [PATCH next v2 6/6] rockchip: ringneck-px30: fix TPL_MAX_SIZE

2024-06-06 Thread Kever Yang
On 2024/6/5 23:56, Quentin Schulz wrote: From: Quentin Schulz Ringneck was mistakenly set to allow up to 128KiB for the TPL code size while PX30 SoC only has 16KiB of SRAM. Therefore, let's use the default value of TPL_MAX_SIZE from the SoC (which is 10KiB) so that the max code size is actua

Re: [PATCH next v2 5/6] power: rk8xx: properly print all supported PMICs name

2024-06-06 Thread Kever Yang
On 2024/6/5 23:56, Quentin Schulz wrote: From: Quentin Schulz The ID of the PMIC is stored in the 2 16b registers but the only part that matters right now is the 3 MSB, which make the 3 digits (in hex) of the part number. Right now, only RK808 was properly displayed, with this all currently

Re: [PATCH next v2 4/6] rockchip: px30-ringneck: Update SPL_PAD_TO Kconfig option

2024-06-06 Thread Kever Yang
On 2024/6/5 23:56, Quentin Schulz wrote: From: Quentin Schulz On px30-ringneck the FIT payload is located at sector 0x200 compared to the more Rockchip common sector 0x4000 offset: SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200 Because FIT payload is located at sector 0x200 and the TPL+SPL i

Re: [PATCH next v2 3/6] rockchip: rk3399-puma: remove unnecessary simple-bin:fit:offset override

2024-06-06 Thread Kever Yang
On 2024/6/5 23:56, Quentin Schulz wrote: From: Quentin Schulz Since commit 6007b69d544e ("rockchip: rk3399-puma: Update SPL_PAD_TO Kconfig option"), SPL_PAD_TO matches (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512 and the default value for simple-bin:fit:offset in rockchip-u-boot.dtsi

Re: [PATCH next v2 2/6] rockchip: rk3399-puma: remove default value from defconfig

2024-06-06 Thread Kever Yang
On 2024/6/5 23:56, Quentin Schulz wrote: From: Quentin Schulz CONFIG_ENV_OFFSET already defaults to 0x3F8000, however it is stored in lowercase hexdigits instead of uppercase like in the defconfig. No change in behavior intended. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Tha

Re: [PATCH v2] cmd: fwu: Also print information about size

2024-06-06 Thread Ilias Apalodimas
This isn't needed v1 [0] is better [0] https://lore.kernel.org/u-boot/6ecddda9-0823-4512-b33c-787eef615...@amd.com/ On Thu, 6 Jun 2024 at 09:35, Michal Simek wrote: > > It is useful when structure is also used for saving vendor data covered > by CRC32. > > Signed-off-by: Michal Simek > --- > >

Re: [PATCH] cmd: fwu: Also print information about size

2024-06-06 Thread Ilias Apalodimas
On Thu, 6 Jun 2024 at 09:38, Michal Simek wrote: > > > > On 6/5/24 17:09, Ilias Apalodimas wrote: > > On Wed, 5 Jun 2024 at 17:58, Michal Simek wrote: > >> > >> It is useful when structure is also used for saving vendor data covered > >> by CRC32. > >> > >> Signed-off-by: Michal Simek > >> --- >

[PATCH next v3 0/6] rockchip: display PMIC variant properly + misc fixes for Theobroma boards

2024-06-06 Thread Quentin Schulz
This fixes how the Rockchip PMIC variant is shown for all but RK808 by stripping the LSB. Also fix the size of the environment on Jaguar to match the default (smaller) size. Fix SPL_PAD_TO on Ringneck. Remove duplicated default value of ENV_OFFSET in puma defconfig. Remove unnecessary override

[PATCH next v3 1/6] rockchip: jaguar-rk3588: use default env size for Rockchip on MMC

2024-06-06 Thread Quentin Schulz
From: Quentin Schulz The default env size is 0x8000 when building for Rockchip SoCs with support for environment stored in MMC. Jaguar hasn't entered mass production just yet, so it's a breaking change we can afford in the name of consistency. Reviewed-by: Kever Yang Signed-off-by: Quentin Sch

[PATCH next v3 2/6] rockchip: rk3399-puma: remove default value from defconfig

2024-06-06 Thread Quentin Schulz
From: Quentin Schulz CONFIG_ENV_OFFSET already defaults to 0x3F8000, however it is stored in lowercase hexdigits instead of uppercase like in the defconfig. No change in behavior intended. Reviewed-by: Kever Yang Signed-off-by: Quentin Schulz --- configs/puma-rk3399_defconfig | 1 - 1 file c

[PATCH next v3 3/6] rockchip: rk3399-puma: remove unnecessary simple-bin:fit:offset override

2024-06-06 Thread Quentin Schulz
From: Quentin Schulz Since commit 6007b69d544e ("rockchip: rk3399-puma: Update SPL_PAD_TO Kconfig option"), SPL_PAD_TO matches (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512 and the default value for simple-bin:fit:offset in rockchip-u-boot.dtsi is SPL_PAD_TO, so let's remove this override.

[PATCH next v3 4/6] rockchip: px30-ringneck: Update SPL_PAD_TO Kconfig option

2024-06-06 Thread Quentin Schulz
From: Quentin Schulz On px30-ringneck the FIT payload is located at sector 0x200 compared to the more Rockchip common sector 0x4000 offset: SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200 Because FIT payload is located at sector 0x200 and the TPL+SPL is located at sector 64, the combined size of

[PATCH next v3 5/6] power: rk8xx: properly print all supported PMICs name

2024-06-06 Thread Quentin Schulz
From: Quentin Schulz The ID of the PMIC is stored in the 2 16b registers but the only part that matters right now is the 3 MSB, which make the 3 digits (in hex) of the part number. Right now, only RK808 was properly displayed, with this all currently supported PMICs should display the proper par

[PATCH next v3 6/6] rockchip: ringneck-px30: fix TPL_MAX_SIZE

2024-06-06 Thread Quentin Schulz
From: Quentin Schulz Ringneck was mistakenly set to allow up to 128KiB for the TPL code size while PX30 SoC only has 16KiB of SRAM. Therefore, let's use the default value of TPL_MAX_SIZE from the SoC (which is 10KiB) so that the max code size is actually checked and useful. Fixes: c925be73a0a8

Re: [PATCH 4/7] led: status_led: add new activity LED config and functions

2024-06-06 Thread neil . armstrong
On 05/06/2024 21:21, Christian Marangi wrote: 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... Driver will call status_led_activity on each acti

Re: [PATCH v2 06/14] net-lwip: add ping command

2024-06-06 Thread Ilias Apalodimas
> +#include > +#include > + > +#define PING_DELAY_MS 1000 > +#define PING_TIMEOUT_MS 1 > +/* Additional data size to include in the packet */ > +#define PING_DATA_SIZE 32 > +/* Ping identifier - must fit on a u16_t */ > +#define PING_ID 0xAFAF > + > +static const ip_addr_t *ping_target; > +st

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

2024-06-06 Thread Jerome Forissier
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" [1]. The goal is to introduce the lwIP TCP/IP >> stack [2] [3] as an alternative t

Re: [PATCH v2 12/14] test/py: net: add _lwip variants of dhcp, ping and tftpboot tests

2024-06-06 Thread Jerome Forissier
On 5/30/24 16:22, Maxim Uvarov wrote: > чт, 30 мая 2024 г. в 17:11, Jerome Forissier : >> >> >> >> On 5/28/24 11:53, Maxim Uvarov wrote: >>> пт, 24 мая 2024 г. в 19:22, Jerome Forissier : WHen NET_LWIP is enabled, the dhcp/ping/tftpboot commands are enabled via CMD_DHCP_LWIP, CMD_

[PATCH v2 0/5] net: dwc_eth_qos: Add glue driver for Intel MAC

2024-06-06 Thread Philip Oberfichtner
This patch series implements the dwc_eth_qos glue driver for Intel SOCs. Before doing that, a few general adaptions to the dwc_eth_qos.c main driver are required. Most notably, the preparation for PCI based driver instances, which do not necessarily use a device tree. This patch series depends on:

[PATCH v2 1/5] x86: provide mb() macro

2024-06-06 Thread Philip Oberfichtner
Implement memory barrier using mfence. Linux does it equivalently [1]. "The MFENCE instruction establishes a memory fence for both loads and stores" [2]. [1] linux/arch/x86/include/asm/barrier.h [2] Intel® 64 and IA-32 Architectures Software Developer’s Manual Signed-off-by: Philip Oberfichtner

[PATCH v2 2/5] net: dwc_eth_qos: Fix header to be self-contained

2024-06-06 Thread Philip Oberfichtner
Before this commit, usage of this header relied on a specific include order. Fix it by including all dependencies. Signed-off-by: Philip Oberfichtner --- drivers/net/dwc_eth_qos.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/dwc_eth_qos.h b/drivers/net/dwc_

[PATCH v2 3/5] net: dwc_eth_qos: Adapt probe() for PCI devices

2024-06-06 Thread Philip Oberfichtner
PCI devices do not necessarily use a device tree. In that case, the driver currently fails to find eqos->config and eqos->regs. This commit factors out the respective functionality. Device tree usage remains default, but board specific implementations will be possible as well. Signed-off-by: Phil

[PATCH v2 4/5] net: dwc_eth_qos: Implement bind() for PCI devices

2024-06-06 Thread Philip Oberfichtner
PCI devices do not necessarily use a device tree. Implement a bind() function to assign unique device names in that case. Signed-off-by: Philip Oberfichtner --- drivers/net/dwc_eth_qos.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net

[PATCH v2 5/5] net: dwc_eth_qos: Add glue driver for Intel MAC

2024-06-06 Thread Philip Oberfichtner
Add dwc_eth_qos glue driver for the Intel Elkhart-Lake SOC. Signed-off-by: Philip Oberfichtner --- Notes: Changes in V2: - Remove 'struct eqos_intel_config' from dwc_eth_qos.h - Improve some comments - Remove duplicate MAC reset drivers/net/Kconfig | 7

Re: [PATCH 1/3] arm: dts: am625_beagleplay: Switch to OF_UPSTREAM

2024-06-06 Thread Mattijs Korpershoek
Hi Nishanth, Thank you for the patch. On mer., juin 05, 2024 at 10:27, Nishanth Menon wrote: > Enable OF_UPSTREAM for AM625-beagleplay board. Remove DT files that > are now available in dts/upstream. Update the appended files based on > version of latest OF_UPSTREAM sync point (v6.10-rc1). > >

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

2024-06-06 Thread Ilias Apalodimas
Hi Jerome > if (!label) > return CMD_RET_FAILURE; > > - if (!wget_validate_uri(argv[3])) { > - printf("ERROR: invalid URI\n"); > - return CMD_RET_FAILURE; > + if (IS_ENABLED(CONFIG_CMD_WGET)) { efi_boot_add_uri() is only called if CONFIG_EFI_HTT

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

2024-06-06 Thread Mattijs Korpershoek
c0ea27bccfb7d2d37fd36806ac2a2f7389099420: Prepare v2024.07-rc4 (2024-06-03 18:34:59 -0600) are available in the Git repository at: 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

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

2024-06-06 Thread 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 stack is used the wget command has a built-in URL >> validation

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

2024-06-06 Thread Mattijs Korpershoek
c0ea27bccfb7d2d37fd36806ac2a2f7389099420: Prepare v2024.07-rc4 (2024-06-03 18:34:59 -0600) are available in the Git repository at: 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

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

2024-06-06 Thread Mattijs Korpershoek
v2024.07-rc4 (2024-06-03 18:34:59 -0600) > > are available in the Git repository at: > > 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: ad

[PATCH] rockchip: mkimage: fix mkimage -l for header v1

2024-06-06 Thread Quentin Schulz
ename' against the 'spl_hdr' found */ --- base-commit: 4b992573b34b1586e323e27b177680a6efec1c76 change-id: 20240606-rkcommon-dumpimage-mkimage-58610cf07340 Best regards, -- Quentin Schulz

Re: [PATCH v2 06/14] net-lwip: add ping command

2024-06-06 Thread Jerome Forissier
On 6/6/24 11:10, Ilias Apalodimas wrote: >> +#include >> +#include >> + >> +#define PING_DELAY_MS 1000 >> +#define PING_TIMEOUT_MS 1 >> +/* Additional data size to include in the packet */ >> +#define PING_DATA_SIZE 32 >> +/* Ping identifier - must fit on a u16_t */ >> +#define PING_ID 0xA

Re: [PATCH 7/7] arm64: zynqmp: Update the usb5744 hub node as per binding

2024-06-06 Thread Michal Simek
On 6/5/24 12:02, Venkatesh Yadav Abbarapu wrote: Updating the usb5744 hub node as per the latest upstream DT binding https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ tree/Documentation/devicetree/bindings/usb/microchip,usb5744.yaml?h=v6.8.8 Signed-off-by: Venkatesh Yadav Abba

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

2024-06-06 Thread Jerome Forissier
On 6/6/24 12:16, Maxim Uvarov wrote: > чт, 6 июн. 2024 г. в 12:56, Jerome Forissier : [...] diff --git a/net-lwip/wget.c b/net-lwip/wget.c new file mode 100644 index 000..25b75040806 --- /dev/null +++ b/net-lwip/wget.c @@ -0,0 +1,180 @@ +// SPDX-Licen

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

2024-06-06 Thread Jerome Forissier
On 6/6/24 08:29, Ilias Apalodimas wrote: > 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 ip_addr_t *ipadd

[PATCH 0/6] bootstd: Add Android support

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 1/6] boot: android: Provide vendor_bootimg_addr in boot_get_fdt()

2024-06-06 Thread Mattijs Korpershoek
When calling android_image_get_dtb_by_index() using boot image v3+, we should also pass the vendor_boot ramdisk address. Use get_avendor_bootimg_addr() to do so. Note: on boot image v2, this is harmless since get_avendor_bootimg_addr() returns -1. Signed-off-by: Mattijs Korpershoek --- boot/im

[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 a/boot/image-androi

[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 b/boot/bootf

[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 i

[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 BOOTMETH_A

[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

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 |

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 ip

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 activity

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 s

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 t

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 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 n

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 expa

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: https://lore.kernel.org/u-boot/20240522174738.73522-1-va

[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 enabl

[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 int

[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 reason

[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 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 b/cmd/Kcon

[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 | 1

[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 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 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 CO

[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 --- a/cmd/b

[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 a/configs/qemu_arm64_lwip

[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: Jerom

[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 b/.azure-pipelines.

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 +

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 ch

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 del

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 ++ include/zynqmp_firmware

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(+), 7

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 insertions(+

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 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 > - QSPI

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" [1]

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] https://lore.kernel.org/all/20240224114516.86365-8-sri

[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 5889d436edb8.

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 delet

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 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 a/arch/arm/dts/s

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 a/dri

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 > b/arch/arm/d

[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 b050585389bb..93c512

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 late

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 rework

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 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 doc/usage/fit/source_fi

  1   2   >