Re: [PATCH v2 1/2] bootstd: Add implementation for bootmeth rauc

2025-06-03 Thread Wadim Egorov
Hi Martin, Am 02.06.25 um 14:31 schrieb Martin Schwan: Add a bootmeth driver which supports booting A/B system with RAUC as their update client. Signed-off-by: Martin Schwan --- boot/Kconfig | 51 ++ boot/Makefile| 1 + boot/bootmeth_rauc.c | 432

Re: [Upstream] [PATCH] ARM: dts: imx93-phycore: Migrate to OF_UPSTREAM

2025-05-18 Thread Wadim Egorov
On 5/16/25 1:46 PM, Primoz Fiser wrote: Migrate to OF_UPSTREAM for phyCORE-i.MX93 since board can use upstream Linux kernel device-tree for phyBOARD-Segin-i.MX93. Signed-off-by: Primoz Fiser Reviewed-by: Wadim Egorov --- arch/arm/dts/Makefile | 3 +- arch/arm/dts

Re: [PATCH 4/4] arm: dts: k3-am62a7-phycore-r5*: Remove clocks from main_timer0

2025-05-16 Thread Wadim Egorov
lock dependency for it, also while at it, move it from u-boot.dtsi to R5 as that is the only entity that should require it as DM isn't up. Fixes: 5d1aac358f3c ("arm: dts: k3-*-r5: Remove clocks from mcu_timer0") Signed-off-by: Manorit Chawdhry Acked-by: Wadim Egorov --- arch/a

Re: [PATCH 2/4] arm: dts: k3-am625-phycore-r5*: Remove clocks from main_timer0

2025-05-16 Thread Wadim Egorov
lock dependency for it, also while at it, move it from u-boot.dtsi to R5 as that is the only entity that should require it as DM isn't up. Fixes: 5d1aac358f3c ("arm: dts: k3-*-r5: Remove clocks from mcu_timer0") Signed-off-by: Manorit Chawdhry Tested-by: Wadim Egorov --- arch/

[PATCH 1/2] arm: mach-k3: Detect and print reset reason

2025-05-15 Thread Wadim Egorov
Call get_reset_reason() during CPU info output and display the result if the SoC provides the implementation. This helps in debugging by providing context on the last system reset reason. Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/common.c| 10 ++ arch/arm/mach-k3

[PATCH 2/2] arm: mach-k3: am62x: Implement get_reset_reason()

2025-05-15 Thread Wadim Egorov
Implement get_reset_reason() for AM62x to enable reporting of the reset cause in the cpuinfo output. Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/am62x/boot.c | 40 +++ arch/arm/mach-k3/include/mach/am62_hardware.h | 19 + 2 files changed, 59

[PATCH 0/2] Print Reset Reason for K3 based devices

2025-05-15 Thread Wadim Egorov
reuse. It will be mostly copy&paste for the mentioned devices. Also, I am not sure how this Register operates exactly. I noticed that two bits can be set at once, so I started to check for set bits instead of having a switch/case logic. Wadim Egorov (2): arm: mach-k3: Detect and print r

Re: [PATCH 0/2] *** boot: Add Kconfig options for script-based boot parameters ***

2025-05-08 Thread Wadim Egorov
On 5/8/25 10:32 PM, Tom Rini wrote: On Thu, May 08, 2025 at 03:16:39PM +0200, Wadim Egorov wrote: This series introduces new Kconfig options to configure default environment variables used in script-based boot scenarios. Specifically, it allows setting the following standard boot

[PATCH v2 2/7] board: phytec: phycore_am64x: Update environment for fitboot

2025-05-08 Thread Wadim Egorov
From: Nathan Morrisson Add fit_addr_r to the environment to allow us to boot from a FIT image. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- v1: https://lists.denx.de/pipermail/u-boot/2025-April/588142.html v2: No changes --- board/phytec/phycore_am64x/phycore_am64x.env | 1

Re: [PATCH 2/2] mtd: bootdev: Add Kconfig option for defining script parameters

2025-05-08 Thread Wadim Egorov
Am 08.05.25 um 18:27 schrieb Tom Rini: On Thu, May 08, 2025 at 03:16:41PM +0200, Wadim Egorov wrote: Introduce USE_SPI_FLASH_SCRIPT Kconfig option to enable setting default environment values for loading boot scripts from SPI flash. When enabled, SPI_FLASH_SCRIPT_OFFSET and

[PATCH v2 4/7] configs: phycore_am6xx: Default BOOTCOMMAND to standard boot

2025-05-08 Thread Wadim Egorov
Make the "bootflow scan -lb" command execute first and fallback to the legacy BSP boot scripts. Signed-off-by: Wadim Egorov --- v1: https://lists.denx.de/pipermail/u-boot/2025-April/588142.html v2: No changes --- configs/phycore_am62ax_a53_defconfig | 2 +- configs/phycore_am62x_a53

[PATCH v2 3/7] board: phytec: phycore_am6xx: Set bootmeths & boot_targets environment

2025-05-08 Thread Wadim Egorov
As part of our migration to the standard boot process, configure the default values for the bootmeths and boot_targets environment variables. Signed-off-by: Wadim Egorov --- v1: https://lists.denx.de/pipermail/u-boot/2025-April/588142.html v2: - Rebased on current master, fixing conflicts

[PATCH v2 5/7] board: phytec: common: k3: Update boot_targets at runtime

2025-05-08 Thread Wadim Egorov
user-customized order untouched. Signed-off-by: Wadim Egorov --- v1: https://lists.denx.de/pipermail/u-boot/2025-April/588142.html v2: - Move boot_targets_setup() inside IS_ENABLED(CONFIG_BOARD_LATE_INIT) block to fix compile warning on R5 case: warning: ‘boot_targets_setup’ defined but

[PATCH v2 6/7] board: phytec: common: k3: Factor out mac address setup

2025-05-08 Thread Wadim Egorov
Factor out the mac address setup into setup_mac_from_eeprom(). Signed-off-by: Wadim Egorov --- v1: https://lists.denx.de/pipermail/u-boot/2025-April/588142.html v2: - Move setup_mac_from_eeprom() inside IS_ENABLED(CONFIG_BOARD_LATE_INIT) --- board/phytec/common/k3/board.c | 44

[PATCH v2 7/7] configs: phycore_am6xx_a53_defconfig: Enable BOOTDEV_SPI_FLASH

2025-05-08 Thread Wadim Egorov
Enable standard boot with SPI Flash & sync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am62ax_a53_defconfig | 2 +- configs/phycore_am62x_a53_defconfig | 2 +- configs/phycore_am64x_a53_defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --g

[PATCH v2 1/7] board: phytec: phycore_am62x: Update environment for fitboot

2025-05-08 Thread Wadim Egorov
From: Nathan Morrisson Add fit_addr_r to the environment to allow us to boot from a FIT image. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- v1: https://lists.denx.de/pipermail/u-boot/2025-April/588142.html v2: No changes --- board/phytec/phycore_am62x/phycore_am62x.env | 1

[PATCH 2/2] mtd: bootdev: Add Kconfig option for defining script parameters

2025-05-08 Thread Wadim Egorov
Introduce USE_SPI_FLASH_SCRIPT Kconfig option to enable setting default environment values for loading boot scripts from SPI flash. When enabled, SPI_FLASH_SCRIPT_OFFSET and SPI_FLASH_SCRIPT_SIZE define the default script_offset_f and script_size_f variables. Signed-off-by: Wadim Egorov

Re: [Upstream] [PATCH 0/2] *** boot: Add Kconfig options for script-based boot parameters ***

2025-05-08 Thread Wadim Egorov
Am 08.05.25 um 16:16 schrieb Wadim Egorov: This series introduces new Kconfig options to configure default environment variables used in script-based boot scenarios. Specifically, it allows setting the following standard boot environment variables: - boot_script_dhcp via BOOTSCRIPT_DHCP

[PATCH 2/2] mtd: bootdev: Add Kconfig option for defining script parameters

2025-05-08 Thread Wadim Egorov
Introduce USE_SPI_FLASH_SCRIPT Kconfig option to enable setting default environment values for loading boot scripts from SPI flash. When enabled, SPI_FLASH_SCRIPT_OFFSET and SPI_FLASH_SCRIPT_SIZE define the default script_offset_f and script_size_f variables. Signed-off-by: Wadim Egorov

[PATCH 0/2] *** boot: Add Kconfig options for script-based boot parameters ***

2025-05-08 Thread Wadim Egorov
reproducibility and simplifying integration in automated firmware build workflows. Wadim Egorov (2): boot: Add BOOTSCRIPT_DHCP Kconfig option for boot_script_dhcp env mtd: bootdev: Add Kconfig option for defining script parameters boot/Kconfig| 18 ++ drivers/mtd/spi

[PATCH 1/2] boot: Add BOOTSCRIPT_DHCP Kconfig option for boot_script_dhcp env

2025-05-08 Thread Wadim Egorov
Introduce a new Kconfig option BOOTSCRIPT_DHCP to allow setting a value for boot_script_dhcp in the default environment. Signed-off-by: Wadim Egorov --- boot/Kconfig | 18 ++ include/env_default.h | 3 +++ 2 files changed, 21 insertions(+) diff --git a/boot/Kconfig b

[PATCH 1/2] boot: Add BOOTSCRIPT_DHCP Kconfig option for boot_script_dhcp env

2025-05-08 Thread Wadim Egorov
Introduce a new Kconfig option BOOTSCRIPT_DHCP to allow setting a value for boot_script_dhcp in the default environment. Signed-off-by: Wadim Egorov --- boot/Kconfig | 18 ++ include/env_default.h | 3 +++ 2 files changed, 21 insertions(+) diff --git a/boot/Kconfig b

[PATCH 0/2] *** boot: Add Kconfig options for script-based boot parameters ***

2025-05-08 Thread Wadim Egorov
reproducibility and simplifying integration in automated firmware build workflows. Wadim Egorov (2): boot: Add BOOTSCRIPT_DHCP Kconfig option for boot_script_dhcp env mtd: bootdev: Add Kconfig option for defining script parameters boot/Kconfig| 18 ++ drivers/mtd/spi

Re: [PATCH v2] arm: dts: k3: require mandatory firmware in binman

2025-05-06 Thread Wadim Egorov
s are not found Signed-off-by: Bryan Brattlof Acked-by: Wadim Egorov --- Changes in v2: - Rebased on -master - Link to v1: https://lore.kernel.org/r/20250429-non-optional-v1-1-b4cad3bc7...@ti.com --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 5 - arch/arm/dts/k3-am625-r5

Re: [Upstream] [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-05-06 Thread Wadim Egorov
Hi Martin, Am 29.01.25 um 16:25 schrieb Martin Schwan: Add a bootmeth driver which supports booting A/B system with RAUC as their update client. Signed-off-by: Martin Schwan --- boot/Kconfig | 11 ++ boot/Makefile| 1 + boot/bootmeth_rauc.c | 408

[PATCH 6/7] board: phytec: common: k3: Factor out mac address setup

2025-04-28 Thread Wadim Egorov
Factor out the mac address setup into setup_mac_from_eeprom(). Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 44 ++ 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c

[PATCH 5/7] board: phytec: common: k3: Update boot_targets at runtime

2025-04-28 Thread Wadim Egorov
user-customized order untouched. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 36 -- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c index 828973a8e28..bddc818743a

[PATCH 4/7] configs: phycore_am6xx: Default BOOTCOMMAND to standard boot

2025-04-28 Thread Wadim Egorov
Make the "bootflow scan -lb" command execute first and fallback to the legacy BSP boot scripts. Signed-off-by: Wadim Egorov --- configs/phycore_am62ax_a53_defconfig | 2 +- configs/phycore_am62x_a53_defconfig | 2 +- configs/phycore_am64x_a53_defconfig | 2 +- 3 files changed, 3

[PATCH 7/7] configs: phycore_am6xx_a53_defconfig: Enable BOOTDEV_SPI_FLASH

2025-04-28 Thread Wadim Egorov
Enable standard boot with SPI Flash & sync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am62ax_a53_defconfig | 2 +- configs/phycore_am62x_a53_defconfig | 2 +- configs/phycore_am64x_a53_defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --g

[PATCH 1/7] board: phytec: phycore_am62x: Update environment for fitboot

2025-04-28 Thread Wadim Egorov
From: Nathan Morrisson Add fit_addr_r to the environment to allow us to boot from a FIT image. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore_am62x.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec/phycore_am62x

[PATCH 2/7] board: phytec: phycore_am64x: Update environment for fitboot

2025-04-28 Thread Wadim Egorov
From: Nathan Morrisson Add fit_addr_r to the environment to allow us to boot from a FIT image. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- board/phytec/phycore_am64x/phycore_am64x.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec/phycore_am64x

[PATCH 3/7] board: phytec: phycore_am6xx: Set bootmeths & boot_targets environment

2025-04-28 Thread Wadim Egorov
As part of our migration to the standard boot process, configure the default values for the bootmeths and boot_targets environment variables. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62ax/phycore_am62ax.env | 3 +++ board/phytec/phycore_am62x/phycore_am62x.env | 3 +++ board

Re: [PATCH 1/2] power-domain: Add support for refcounting (again)

2025-04-25 Thread Wadim Egorov
are slightly updated to make sure the count of on/off calls is even and the results match what we *now* expect. They are also extended to test the low-level functions. Signed-off-by: Miquel Raynal Tested-by: Wadim Egorov # On phycore-am62x --- arch/sandbox/include/asm/power-domain.h

Re: [PATCH 0/2] power-domain: Enable uclass refcounting

2025-04-25 Thread Wadim Egorov
Am 25.04.25 um 09:49 schrieb Miquel Raynal: On one side we have a power domain uclass which is mostly clueless about the topology of the power domains it manages. On the other side we have SoCs which are getting more and more complex, ie. with several layers of power domains. Sometimes (eg. on T

[PATCH] Revert "power-domain: Add refcounting"

2025-04-17 Thread Wadim Egorov
suggested in [1]. [1] https://lists.denx.de/pipermail/u-boot/2025-April/587032.html Signed-off-by: Wadim Egorov --- drivers/firmware/scmi/sandbox-scmi_devices.c | 1 - drivers/power/domain/power-domain-uclass.c| 40 ++--- .../power/domain/sandbox-power-domain-test.c | 1 - inc

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-16 Thread Wadim Egorov
Am 16.04.25 um 12:50 schrieb Neha Malcom Francis: Hi Miquel On 16/04/25 14:36, Miquel Raynal wrote: Hello, -int power_domain_on(struct power_domain *power_domain) +int power_domain_on_lowlevel(struct power_domain *power_domain) { + struct power_domain_priv *priv = dev_get_uclass_priv(

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-04-13 Thread Wadim Egorov
Am 30.01.25 um 16:51 schrieb Tom Rini: On Thu, Jan 30, 2025 at 09:48:19AM +, Martin Schwan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wed, 2025-01-29 at 10:03 -0600, Tom Rini wrote: On Wed, Jan 29, 2025 at 03:25:25PM +0100, Martin Schwan wrote: Add a bootmeth driver which s

[PATCH 3/8] configs: phycore_am62x_a53_defconfig: Update for ethernet boot

2025-03-24 Thread Wadim Egorov
Add support for ethernet boot in the A53 SPL. Increase the SPL Size limit and update SPL_STACK_R_ADDR. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configs/phycore_am62x_a53_defconfig b/configs

[PATCH 0/8] *** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs ***

2025-03-24 Thread Wadim Egorov
board-lyra-rdk-u-boot: Disable Ethernet2 Nathan Morrisson (2): arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f() board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core Wadim Egorov (4): arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmi

[PATCH 8/8] configs: Add phycore_am62ax_r5_ethboot_defconfig

2025-03-24 Thread Wadim Egorov
Provide a defconfig for booting the phycore-am62ax via Ethernet. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62ax/MAINTAINERS | 1 + configs/phycore_am62ax_r5_ethboot_defconfig | 43 + 2 files changed, 44 insertions(+) create mode 100644 configs

[PATCH 7/8] board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core

2025-03-24 Thread Wadim Egorov
. [1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62ax/hosts.html Based on patch 19 from https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1307981/sk-am62a-lp-rgmii-boot-mode-problem Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- board

[PATCH 2/8] configs: Add phycore_am62x_r5_ethboot_defconfig

2025-03-24 Thread Wadim Egorov
Provide a defconfig for booting the phycore-am62x via Ethernet. We need a separate defconfig because the AM62x has not enough internal SRAM to support all boot sources. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/MAINTAINERS | 1 + configs/phycore_am62x_r5_ethboot_defconfig

[PATCH 5/8] arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f()

2025-03-24 Thread Wadim Egorov
From: Nathan Morrisson Probe CPSW NUSS in am62a7 board_init_f() to support ethernet boot. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/am62ax/am62a7_init.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-k3/am62ax/am62a7_init.c

[PATCH 6/8] arch: arm: mach-k3: r5: am62ax: Update SoC auto-gen data to enable CPSW boot

2025-03-24 Thread Wadim Egorov
From: Andreas Dannenberg This data was generated using the ksswtool-autogen project with the followig commit: eed7492 ("soc: am62ax: Add cpsw_3guss_main_0 id to the dev list") Signed-off-by: Andreas Dannenberg Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- arch/a

[PATCH 4/8] arch: arm: dts: k3-am62a7-phyboard-lyra-rdk-u-boot: Disable Ethernet2

2025-03-24 Thread Wadim Egorov
auto negotiation to complete... done Signed-off-by: Daniel Schultz Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am62a7-phyboard-lyra-rdk-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am62a7-phyboard-lyra-rdk-u-boot.dtsi b/arch/arm/d

[PATCH 1/8] arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel

2025-03-24 Thread Wadim Egorov
Add bootph-all tag to phy_gmii_sel node. This is needed for booting via Ethernet. While at it, drop main_pktdma reg redefinitions which are already provided by the top-level SoC device tree file. Signed-off-by: Wadim Egorov --- .../arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 14

Re: [PATCH 01/13] net: tftp: Increase TFTP pkt string length to include null character

2025-03-20 Thread Wadim Egorov
length of the string excluding null character. Fix this by increasing TFTP pkt length by 1 to avoid TFTP error of request being not-null terminated while requesting length of packet. Signed-off-by: Chintan Vankar Tested-by: Wadim Egorov Erm, if tiny-printf's sprintf doesn't work li

[PATCH 04/13] doc: phytec: k3: Add a common part for Environment and EFI Capsules

2025-03-04 Thread Wadim Egorov
Provide a common part for our K3 based boards including general details about environment handling and EFI capsule updates. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/MAINTAINERS | 1 + doc/board/phytec/k3-common.rst | 67 ++ doc/board/phytec

[PATCH 08/13] arch: arm: dts: k3-am62a7-phyboard-lyra: Add missing boot phase tag

2025-03-04 Thread Wadim Egorov
Add the bootph-all tag to usb0_phy_ctrl node to ensure it is properly initialized during the boot process. This fixes the following issue: dwc3-am62 dwc3-usb@f90: unable to get ti,syscon-phy-pll-refclk regmap Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am62a7-phyboard-lyra-rdk-u

[PATCH 05/13] configs: Add phycore_am62ax_r5_usbdfu_defconfig

2025-03-04 Thread Wadim Egorov
new defconfig allows to boot from USB. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62ax/MAINTAINERS| 1 + configs/phycore_am62ax_r5_usbdfu_defconfig | 4 2 files changed, 5 insertions(+) create mode 100644 configs/phycore_am62ax_r5_usbdfu_defconfig diff --git a/board/phytec

[PATCH 11/13] board: phytec: common: Add phyCORE-AM62Ax

2025-03-04 Thread Wadim Egorov
From: Daniel Schultz Add the phyCORE-AM62Ax to our common board directory to enable our SOM detection for this product. Signed-off-by: Daniel Schultz Signed-off-by: Wadim Egorov --- board/phytec/common/Kconfig | 11 +++ board/phytec/common/am6_som_detection.c | 5

[PATCH 09/13] arch: arm: dts: k3-am625-phyboard-lyra: Add missing boot phase tag

2025-03-04 Thread Wadim Egorov
Add the bootph-all tag to usb0_phy_ctrl node to ensure it is properly initialized during the boot process. This fixes the following issue: dwc3-am62 dwc3-usb@f90: unable to get ti,syscon-phy-pll-refclk regmap Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am625-phyboard-lyra-rdk-u

[PATCH 10/13] board: phytec: common: k3: Make configure_capsule_updates() static

2025-03-04 Thread Wadim Egorov
This function is only used in the board.c file. Make it static. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c index 9d833456810..7d2146d5727

[PATCH 01/13] arm: dts: k3-am62a-phycore-som-binman: Provide capsule nodes

2025-03-04 Thread Wadim Egorov
Fill in phycore-am62ax capsule GUID properties of the base binman capsule nodes. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am62a-phycore-som-binman.dtsi | 43 ++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am62a-phycore-som-binman.dtsi

[PATCH 12/13] arm: dts: k3-am62a-phycore-som-binman: Add SoM overlays

2025-03-04 Thread Wadim Egorov
Include SoM dt-overlays that handle variants of our SoMs into u-boot's FIT image. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am62a-phycore-som-binman.dtsi | 66 ++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am62a-phycore-som-binman

[PATCH 13/13] configs: phycore_am62ax_a53_defconfig: Add SoM overlays to OF_OVERLAY_LIST

2025-03-04 Thread Wadim Egorov
Include SoM dt-overlays for DT control so we can include them into our u-boot FIT image. Signed-off-by: Wadim Egorov --- configs/phycore_am62ax_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore_am62ax_a53_defconfig b/configs/phycore_am62ax_a53_defconfig index

[PATCH 00/13] *** Various Improvements for phyCORE-AM62/A SoMs ***

2025-03-04 Thread Wadim Egorov
This patch series syncs the phyCORE-AM62Ax feature-wise with our other K3-based SoMs by adding SoM overlay handling and capsule updates. It also introduces support for USBDFU boot and includes various minor fixes. Daniel Schultz (1): board: phytec: common: Add phyCORE-AM62Ax Wadim Egorov (12

[PATCH 07/13] board: phytec: phycore_am62ax: Add Network/SPI/DFU env variables

2025-03-04 Thread Wadim Egorov
Include the boot logic to boot via Network, from a OSPI/QSPI NOR flash or via USB DFU. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62ax/phycore_am62ax.env | 11 +++ 1 file changed, 11 insertions(+) diff --git a/board/phytec/phycore_am62ax/phycore_am62ax.env b/board/phytec

[PATCH 03/13] configs: phycore_am62ax_a53_defconfig: Enable capsule update

2025-03-04 Thread Wadim Egorov
Enable raw & on disk capsule updates and provide configs required for updating MTD devices. Also resync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am62ax_a53_defconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/configs/phycore_am62ax_a53_defco

[PATCH 06/13] board: phytec: phycore_am62x: Use custom k3_dfu.env fragment

2025-03-04 Thread Wadim Egorov
TI's k3_dfu.env includes redundant dfu_alt_info_* data, some of which is incompatible with our board configuration. Replace it with a custom variant that better aligns with our setup, ensuring correct offsets and eliminating unnecessary entries. Signed-off-by: Wadim Egorov --- board/p

[PATCH 02/13] include: configs: phycore-am62ax: Define capsule FW names

2025-03-04 Thread Wadim Egorov
Define firmware names for phycore-am62ax capsules. Signed-off-by: Wadim Egorov --- include/configs/phycore_am62ax.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/phycore_am62ax.h b/include/configs/phycore_am62ax.h index 661ba8f73ca..4f612d2c2ce 100644 --- a/include

Re: [PATCH v4 3/3] board: remove capsule update support in set_dfu_alt_info()

2025-02-26 Thread Wadim Egorov
if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)) - env_set("dfu_alt_info", update_info.dfu_string); -} -#endif - #if IS_ENABLED(CONFIG_ENV_IS_IN_FAT) || IS_ENABLED(CONFIG_ENV_IS_IN_MMC) int mmc_get_env_dev(void) { Reviewed-by: Wadim Egorov # for board/phytec/common/k3/board.c

Re: [PATCH v2 2/2] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to overlays

2025-02-11 Thread Wadim Egorov
Am 11.02.25 um 13:42 schrieb Daniel Schultz: There are some device-tree overlays with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- Changes: v2: Removed keyfile definitions which are

Re: [PATCH v2 1/2] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk to overlays

2025-02-11 Thread Wadim Egorov
Am 11.02.25 um 13:42 schrieb Daniel Schultz: There are some device-tree overlays with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- Changes: v2: Removed keyfile definitions which are

Re: [PATCH 1/2] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk to all images

2025-02-10 Thread Wadim Egorov
Hi Daniel, Am 10.02.25 um 14:36 schrieb Daniel Schultz: There are some device-tree overlays and firmwares with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 49 ++

Re: [PATCH 4/4] board: Phytec: phycore_am62x: Increase size for Image in SPI

2025-02-10 Thread Wadim Egorov
Am 10.02.25 um 22:25 schrieb Daniel Schultz: Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov

Re: [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI

2025-02-10 Thread Wadim Egorov
Am 10.02.25 um 22:25 schrieb Daniel Schultz: Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov

Re: [PATCH 2/4] configs: phycore_am62x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH

2025-02-10 Thread Wadim Egorov
: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/phycore_am62x_a53_defconfig b/configs/phycore_am62x_a53_defconfig index 0494fc408b7..d7aa59bf1dd 100644 --- a/configs/phycore_am62x_a53_defconfig +++ b/configs

Re: [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH

2025-02-10 Thread Wadim Egorov
: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/phycore_am64x_a53_defconfig b/configs/phycore_am64x_a53_defconfig index f0c7ee26384..4ee1bd829a3 100644 --- a/configs/phycore_am64x_a53_defconfig +++ b/configs

Re: [PATCH v2 2/3] board: phytec: phycore_am64x: Add support for 1 GB RAM variant and ECC

2025-02-10 Thread Wadim Egorov
Hi Dhruva, Am 05.02.25 um 12:55 schrieb Dhruva Gole: On Feb 05, 2025 at 05:30:12 +0100, Wadim Egorov wrote: Detect RAM size via EEPROM and adjust DDR size and banks accordingly. Include necessary fixups to handle ECC-enabled configurations. Signed-off-by: Wadim Egorov Tested-by: Daniel

[PATCH v2 1/3] arch: arm: dts: phyboard-electra-uboot.dtsi: Add bootph props to i2c

2025-02-04 Thread Wadim Egorov
Add bootph-all properties to I2C0 nodes to ensure the bus and EEPROM are accessible across all stages. This enables reading the SoM configuration at any point during the boot process. Signed-off-by: Wadim Egorov Tested-by: Daniel Schultz --- v2: Add Tested-by from Daniel --- arch/arm/dts/k3

[PATCH v2 2/3] board: phytec: phycore_am64x: Add support for 1 GB RAM variant and ECC

2025-02-04 Thread Wadim Egorov
Detect RAM size via EEPROM and adjust DDR size and banks accordingly. Include necessary fixups to handle ECC-enabled configurations. Signed-off-by: Wadim Egorov Tested-by: Daniel Schultz --- v2: Add Tested-by from Daniel --- board/phytec/phycore_am64x/Kconfig | 25 + board/phytec

[PATCH v2 3/3] configs: phycore_am64x_r5_defconfig: Enable PHYTEC_SOM_DETECTION

2025-02-04 Thread Wadim Egorov
Enable configs required for detecting and fixing up for different RAM variants. Also resync after savedefconfig. Signed-off-by: Wadim Egorov Tested-by: Daniel Schultz --- v1: https://lists.denx.de/pipermail/u-boot/2025-January/578618.html v2: - Rebase after 0e198ff1a911 ("configs: Resync

Re: [PATCH 4/8] ram: k3-ddrss: Add support for a partial inline ECC region

2025-01-27 Thread Wadim Egorov
Am 27.01.25 um 21:22 schrieb Neha Malcom Francis: Instead of defaulting to choosing the entire DDR region when enabling inline ECC, allow picking of a range within the DDR space using DT to enable. It expects such a node within the memory node, in the absence of which we resort to enabling inlin

Re: [PATCH 1/8] k3-ddr.c: Remove unwanted header files

2025-01-27 Thread Wadim Egorov
Hi Neha, Am 27.01.25 um 21:22 schrieb Neha Malcom Francis: This header file is not in use in these arch/board specific files, remove them. Signed-off-by: Neha Malcom Francis --- arch/arm/mach-k3/k3-ddr.c | 1 - board/ti/common/k3-ddr.c | 1 - 2 files changed, 2 deletions(-) diff --git a/

Re: [PATCH v3 1/2] board: phytec: common: Add product information to FTD

2025-01-27 Thread Wadim Egorov
* Return -EINVAL instead of -1. Reviewed-by: Wadim Egorov Tested-by: Wadim Egorov

Re: [PATCH 1/3] arch: arm: dts: phyboard-electra-uboot.dtsi: Add bootph props to i2c

2025-01-26 Thread Wadim Egorov
Hi Dhruva, Am 27.01.25 um 13:22 schrieb Dhruva Gole: Hi Wadim, On Jan 27, 2025 at 05:16:10 +0100, Wadim Egorov wrote: Add bootph-all properties to I2C0 nodes to ensure the bus and EEPROM are accessible across all stages. This enables reading the SoM configuration at any point during the boot

[PATCH 3/3] configs: phycore_am64x_r5_defconfig: Enable PHYTEC_SOM_DETECTION

2025-01-26 Thread Wadim Egorov
Enable configs required for detecting and fixing up for different RAM variants. Also resync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am64x_r5_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/phycore_am64x_r5_defconfig b

[PATCH 2/3] board: phytec: phycore_am64x: Add support for 1 GB RAM variant and ECC

2025-01-26 Thread Wadim Egorov
Detect RAM size via EEPROM and adjust DDR size and banks accordingly. Include necessary fixups to handle ECC-enabled configurations. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am64x/Kconfig | 25 + board/phytec/phycore_am64x/phycore-am64x.c | 105 - 2

[PATCH 1/3] arch: arm: dts: phyboard-electra-uboot.dtsi: Add bootph props to i2c

2025-01-26 Thread Wadim Egorov
Add bootph-all properties to I2C0 nodes to ensure the bus and EEPROM are accessible across all stages. This enables reading the SoM configuration at any point during the boot process. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am642-phyboard-electra-rdk-u-boot.dtsi | 8 1 file

Re: [PATCH 1/4] board: phytec: common: k3: Add missing boot source to env

2025-01-16 Thread Wadim Egorov
Am 16.01.25 um 18:29 schrieb Daniel Schultz: We set the boot source as environment variable 'boot'. Also include 'uart' and 'usbdfu' as possible boot sources. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- board/phytec/common/k3/board.c

Re: [PATCH 4/4] configs: phycore_am64x_a53_defconfig: Fix environment

2025-01-16 Thread Wadim Egorov
Reviewed-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/phycore_am64x_a53_defconfig b/configs/phycore_am64x_a53_defconfig index 4a91b72e700..3027a94b0d1 100644 --- a/configs/phycore_am64x_a53_defconfig +++ b/configs

Re: [PATCH 3/4] configs: phycore_am64x_a53_defconfig: Enable GPIO command

2025-01-16 Thread Wadim Egorov
Am 16.01.25 um 18:29 schrieb Daniel Schultz: Enable the GPIO command to allow access to the GPIO pins. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore_am64x_a53_defconfig

Re: [PATCH 2/4] configs: phycore_am64x_a53_defconfig: Fix GPIO controllers

2025-01-16 Thread Wadim Egorov
Reviewed-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/phycore_am64x_a53_defconfig b/configs/phycore_am64x_a53_defconfig index bc450004722..4b9dcceda45 100644 --- a/configs/phycore_am64x_a53_defconfig +++ b

[PATCH] board: phytec: phycore-am62x: Add DDR size fixups if ECC is enabled

2025-01-15 Thread Wadim Egorov
e OS. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore-am62x.c | 31 +++--- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/board/phytec/phycore_am62x/phycore-am62x.c b/board/phytec/phycore_am62x/phycore-am62x.c index a0e098e010e..b199fdaa59b 10064

Re: [PATCH v5 3/9] ram: k3-ddrss: Add k3_ddrss_ddr_bank_base_size_calc() to solve 'calculations restricted to 32 bits' issue

2024-12-19 Thread Wadim Egorov
by: Santhosh Kumar K Reviewed-by: Wadim Egorov --- drivers/ram/k3-ddrss/k3-ddrss.c | 72 ++--- 1 file changed, 57 insertions(+), 15 deletions(-) diff --git a/drivers/ram/k3-ddrss/k3-ddrss.c b/drivers/ram/k3-ddrss/k3-ddrss.c index c29eec62bd8f..29ce53453c1f 100644

Re: [PATCH v5 6/9] drivers: ram: Kconfig: Add CONFIG_K3_INLINE_ECC

2024-12-19 Thread Wadim Egorov
Am 13.12.24 um 17:31 schrieb Santhosh Kumar K: From: Neha Malcom Francis Add CONFIG_K3_INLINE_ECC so that ECC functions can be compiled into R5 SPL only when the config has been enabled. Signed-off-by: Neha Malcom Francis Reviewed-by: Wadim Egorov --- drivers/ram/Kconfig | 10

Re: [PATCH v5 7/9] ram: k3-ddrss: Remove 'ti,ecc-enable' support

2024-12-19 Thread Wadim Egorov
ned-off-by: Santhosh Kumar K Reviewed-by: Wadim Egorov --- drivers/ram/k3-ddrss/k3-ddrss.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/ram/k3-ddrss/k3-ddrss.c b/drivers/ram/k3-ddrss/k3-ddrss.c index e4f9891bee20..05ea61bbfe9a 100644 --- a/drivers/ram/k

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

2024-12-19 Thread Wadim Egorov
ecc() is agnostic to the number of DDR controllers present. Signed-off-by: Santhosh Kumar K Signed-off-by: Neha Malcom Francis Reviewed-by: Wadim Egorov --- arch/arm/mach-k3/Makefile | 2 +- arch/arm/mach-k3/include/mach/k3-ddr.h | 15 ++ arch/arm/mach-k3/k3-dd

Re: [PATCH v5 0/9] Inline ECC Series

2024-12-19 Thread Wadim Egorov
ange (8/8 in v4 to 1/9 in v5), use 'u64' Tested on a phycore-am62x with a 1 and 2 GB variant, so you can have my Tested-by: Wadim Egorov for this series. v4: https://lore.kernel.org/u-boot/20241021044024.835846-1-s...@ti.com/ Changes since v3: Pull redundant DDR functio

Re: [PATCH v4 2/8] ram: k3-ddrss: Add k3_ddrss_ddr_bank_base_size_calc() to solve 'calculations restricted to 32 bits' issue

2024-12-06 Thread Wadim Egorov
Am 24.10.24 um 18:19 schrieb Bryan Brattlof: On October 24, 2024 thus sayeth Neha Malcom Francis: Hi Bryan On 23/10/24 20:09, Bryan Brattlof wrote: On October 21, 2024 thus sayeth Santhosh Kumar K: As R5 is a 32 bit processor, the RAM banks' base and size calculation is restricted to 32 bits,

[PATCH 3/4] board: phytec: k3: Add EFI capsule update support

2024-11-27 Thread Wadim Egorov
. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 80 + include/configs/phycore_am62x.h | 4 ++ include/configs/phycore_am64x.h | 4 ++ 3 files changed, 88 insertions(+) diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c

[PATCH 2/4] arm: dts: k3-am642-phycore-som-binman: Provide capsule nodes

2024-11-27 Thread Wadim Egorov
Fill in phycore-am64x capsule GUID properties of the base binman capsule nodes. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am642-phycore-som-binman.dtsi | 38 +++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/dts/k3-am642-phycore-som-binman.dtsi b/arch/arm/dts/k3

[PATCH 4/4] configs: phycore_am6*_a53_defconfig: Enable capsule update

2024-11-27 Thread Wadim Egorov
Enable raw & on disk capsule updates and provide configs required for updating MTD devices. Also resync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 10 ++ configs/phycore_am64x_a53_defconfig | 8 2 files changed, 18 insert

[PATCH 0/4] Enable EFI capsule updates for PHYTEC K3 SoMs

2024-11-27 Thread Wadim Egorov
This implements capsule updates for all our K3 SoMs for eMMC, OSPI NOR and uSD cards. We can use capsule updates to update the bootloader on all our supported flash devices. Wadim Egorov (4): arm: dts: k3-am625-phycore-som-binman: Provide capsule nodes arm: dts: k3-am642-phycore-som-binman

[PATCH 1/4] arm: dts: k3-am625-phycore-som-binman: Provide capsule nodes

2024-11-27 Thread Wadim Egorov
Fill in phycore-am62x capsule GUID properties of the base binman capsule nodes. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/dts/k3-am625-phycore-som-binman.dtsi b/arch/arm/dts/k3

Re: [PATCH 2/2] doc: board: phytec: Add phyCORE-AM62ax

2024-11-18 Thread Wadim Egorov
ease make sure "make htmldocs" is working. Am 15.11.24 um 20:50 schrieb Garrett Giordano: Add documentation for PHYTEC phyCORE-AM62ax SoM. Signed-off-by: Garrett Giordano With that fixed, Reviewed-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/p

Re: [PATCH v2 3/3] board: phytec: imx93: Add phyCORE-i.MX 93 support for all SOM variants

2024-11-14 Thread Wadim Egorov
--- a/board/phytec/phycore_imx93/MAINTAINERS +++ b/board/phytec/phycore_imx93/MAINTAINERS @@ -9,5 +9,5 @@ F:  arch/arm/dts/imx93-phyboard-segin-u- boot.dtsi  F:  board/phytec/phycore_imx93/  F:  board/phytec/common/imx93_som_detection.c  F:  board/phytec/common/imx93_som_dete

Re: [PATCH v2 2/3] board: phytec: imx93: Add eeprom-based hardware introspection

2024-11-13 Thread Wadim Egorov
Am 13.11.24 um 19:29 schrieb Fabio Estevam: On Wed, Nov 13, 2024 at 1:16 PM Christoph Stoidner wrote: + + eeprom@50 { + bootph-pre-ram; + bootph-some-ram; + compatible = "atmel,24c32"; + reg = <0x50>; + pagesize = <

Re: [Upstream] [PATCH v2 0/3] Add support for all variants of the phyCORE-i.MX93 SOM

2024-11-13 Thread Wadim Egorov
Am 13.11.24 um 17:00 schrieb Christoph Stoidner: The phyCORE-i.MX 93 is available in various variants (e.g. different ram sizes, eMMC HS400 yes/no). It's eeprom contains information which features the existing module supports. Extend the existing board-code to support all the SOM variants. Th

  1   2   3   >