Re: [PATCH] xilinx: zynqmp: Add bootmenu support

2024-09-20 Thread Michal Simek
On 9/11/24 10:04, Michal Simek wrote: From: John Vicky Vykuntapu Popup the bootmenu for 5 sec with default boot options to CC on AMD CCs and default to SOM on others. Users can anytime disable the bootmenu by setting the variable enable_bootmenu=0 in zynqmp_kria.env or setup it up at run

Re: [PATCH 00/10] arm64: zynqmp: DT schema alignments

2024-09-20 Thread Michal Simek
On 9/13/24 11:28, Michal Simek wrote: Hi, I am sending some patches to fix issues reported by dt-schema checking. Thanks, Michal Michal Simek (10): arm64: zynqmp: Fix status property for m-a2197 boards arm64: zynqmp: Align gpio hogs with dt-schema xilinx: Fix axi and mmc node

Re: [PATCH] arm64: zynqmp: Define only one revision in zcu106-rev1.0

2024-09-20 Thread Michal Simek
On 9/13/24 11:58, Michal Simek wrote: zcu106 rev1.0 is sw compatible with revA but only one revision should be listed in compatible string that's why remove revA and keep only rev1.0. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu106-rev1.0.dts | 2 +- 1 file chang

Re: [PATCH] net: gem: Remove undocumented is-internal-pcspma dt flag

2024-09-20 Thread Michal Simek
On 9/13/24 09:37, Michal Simek wrote: Generic understanding/consideration is that phy-mode as sgmi means that the internal PCS(Physical Coding Sublayer) should be enabled by default. Xilinx GEM implementation allows configuration GEM (gmii mode) + PL PCS PMA (sgmii mode, Physical Medum

Re: [PATCH] mmc: zynq_sdhci: Remove device_is_compatible() function

2024-09-20 Thread Michal Simek
On 9/13/24 11:31, Padmarao Begari wrote: There are lot of device_is_compatible() present in the driver. Remove them and replace with a variables "SDHCI_COMPATIBLE_SDHCI_89A" and "SDHCI_COMPATIBLE_VERSAL_NET_EMMC" with match data. This change saves the space and reduce the execution time. Sign

Re: [PATCH] board: xilinx: Remove conditional check for Microblaze

2024-09-20 Thread Michal Simek
On 9/13/24 11:32, Padmarao Begari wrote: U-Boot is not picking boot.scr script address from device tree rather it's using default address for Microblaze platform, and it's picking for other platforms. Remove conditional check for Microblaze platform, so that u-boot pick up boot.scr script addr

Re: [PATCH] arm64: zynqmp: Fix status property for m-a2197 boards

2024-09-20 Thread Michal Simek
On 9/12/24 09:56, Michal Simek wrote: Status property should be missing or okay or disabled but not just disable. dt-validate is reporting it too. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm

Re: [PATCH] arm64: zynqmp: Add missing vc7_xin fixed clock to sc-vpk180-revA

2024-09-20 Thread Michal Simek
On 9/9/24 13:24, Michal Simek wrote: Add missing vc7_xin fixed clock as clock input for some clock generators. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sc-vpk180-revA.dtso | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/zynqmp-sc-vpk180-revA.dtso b

Re: [PATCH v2 0/2] fdtoverlay related changes

2024-09-20 Thread Michal Simek
On 9/6/24 09:08, Prasad Kummari wrote: Changes in v2: - Corrected commit description. Prasad Kummari (2): kbuild: cherry-pick kbuild fdtoverlay changes from linux arm64: zynqmp: Remove overlays and add new dtb entries for ZynqMP arch/arm/dts/Makefile | 78 +++

Re: [PATCH v13 0/8] spi-nor: Add parallel and stacked memories support

2024-09-20 Thread Michal Simek
On 9/20/24 00:05, Tom Rini wrote: On Wed, Sep 18, 2024 at 01:18:10PM +0200, Michal Simek wrote: Hi Tom, On 9/5/24 05:21, Venkatesh Yadav Abbarapu wrote: This series adds support for Xilinx qspi parallel and stacked memeories. In parallel mode, the current implementation assumes that a

Re: [PATCH v2 3/3] configs: versal2: Add support for AMD UFS platform driver

2024-09-19 Thread Michal Simek
+CONFIG_UFS_AMD_VERSAL2=y CONFIG_VIRTIO_MMIO=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_BLK=y Acked-by: Michal Simek Thanks, Michal

Re: [PATCH v13 0/8] spi-nor: Add parallel and stacked memories support

2024-09-18 Thread Michal Simek
device.c | 2 +- 50 files changed, 795 insertions(+), 231 deletions(-) Acked-by: Michal Simek Any comment about this series? It is around for a while. I pushed it to CI sometime ago and nothing has been reported. FYI: https://source.denx.de/u-boot/custodians/u-boot-microblaze/

Re: [PATCH 00/13] ufs: enhancements to support Qualcomm UFS controllers

2024-09-18 Thread Michal Simek
On 9/18/24 12:40, neil.armstr...@linaro.org wrote: Hi, On 18/09/2024 11:03, Michal Simek wrote: Hi Neil, On 9/18/24 10:06, Neil Armstrong wrote: Hi Marek, Manorit, Tom, Michal, On 10/09/2024 11:20, Neil Armstrong wrote: This serie regroups all the fixes and base enhancements required to

Re: [PATCH 00/13] ufs: enhancements to support Qualcomm UFS controllers

2024-09-18 Thread Michal Simek
Hi Neil, On 9/18/24 10:06, Neil Armstrong wrote: Hi Marek, Manorit, Tom, Michal, On 10/09/2024 11:20, Neil Armstrong wrote: This serie regroups all the fixes and base enhancements required to support the Qualcomm UFS controllers in U-Boot. This syncs headers & defines from Linux, and includes

Re: [PATCH] xilinx: zynqmp: Add bootmenu support

2024-09-16 Thread Michal Simek
On 9/12/24 03:00, Simon Glass wrote: Hi Michal, On Wed, 11 Sept 2024 at 02:04, Michal Simek wrote: From: John Vicky Vykuntapu Popup the bootmenu for 5 sec with default boot options to CC on AMD CCs and default to SOM on others. Users can anytime disable the bootmenu by setting the

Re: [PATCH v2 0/6] Miscellaneous FWU fixes

2024-09-13 Thread Michal Simek
changed, 108 insertions(+), 45 deletions(-) Tested-by: Michal Simek Thanks, Michal

[PATCH] arm64: zynqmp: Define only one revision in zcu106-rev1.0

2024-09-13 Thread Michal Simek
zcu106 rev1.0 is sw compatible with revA but only one revision should be listed in compatible string that's why remove revA and keep only rev1.0. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu106-rev1.0.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc

[PATCH 10/10] arm64: zynqmp: Rename ina226-vccint-io-bram-ps nodes

2024-09-13 Thread Michal Simek
Remove -ps suffix to avoid issues with dt-schema where -ps is allocated in property-units.yaml for pico seconds. Signed-off-by: Michal Simek --- The same behavior is if -ms or -us is used. --- arch/arm/dts/zynqmp-zcu208-revA.dts | 2 +- arch/arm/dts/zynqmp-zcu216-revA.dts | 2 +- arch/arm/dts

[PATCH 09/10] arm64: zynqmp: Use generic spi@ name in zcu111-revA

2024-09-13 Thread Michal Simek
DT schema requires to use spi@ name for SPI devices that's why fix it. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu111-revA.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/zynqmp-zcu111-revA.dts b/arch/arm/dts/zynqmp-zcu111-revA.dts

[PATCH 08/10] arm64: zynqmp: Define phy-mode in zcu1275-revB

2024-09-13 Thread Michal Simek
Add missing required phy-mode property. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu1275-revB.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/zynqmp-zcu1275-revB.dts b/arch/arm/dts/zynqmp-zcu1275-revB.dts index 4060dc3613a2..ed83ba327916 100644 --- a/arch/arm

[PATCH 07/10] arm64: zynqmp: Align mini-qspi DT with dt-schema

2024-09-13 Thread Michal Simek
ned-off-by: Michal Simek --- arch/arm/dts/zynqmp-mini-qspi.dts | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/dts/zynqmp-mini-qspi.dts b/arch/arm/dts/zynqmp-mini-qspi.dts index a02a3d68dd52..917603dec61d 100644 --- a/arch/arm/dts/zynqmp-mini-qspi.dts

[PATCH 06/10] arm64: zynqmp: fix i2c mux bus description for m-a2197 platforms

2024-09-13 Thread Michal Simek
Uncomment reg property for bus 3 in i2c mux. It is better option than removing the whole node. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files changed, 3

[PATCH 05/10] arm64: zynqmp: Fix comment style around gpio line-names

2024-09-13 Thread Michal Simek
Just fix description to be aligned with other comments. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-dlc21-revA.dts | 2 +- arch/arm/dts/zynqmp-g-a2197-00-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts

[PATCH 04/10] arm64: zynqmp: Fix gpio-line-name size for m-a2197 platforms

2024-09-13 Thread Michal Simek
There were 3 additional empty strings which shouldn't be there. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)

[PATCH 02/10] arm64: zynqmp: Align gpio hogs with dt-schema

2024-09-13 Thread Michal Simek
As was done in past for zcu102 append -hog to node name to pass dt-schema. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts| 8 arch/arm/dts/zynqmp-m-a2197-02-revA.dts| 8 arch/arm/dts/zynqmp-m-a2197-03-revA.dts

[PATCH 03/10] xilinx: Fix axi and mmc node names in mini configuration

2024-09-13 Thread Michal Simek
(paths in /proc/ for example). Signed-off-by: Michal Simek --- arch/arm/dts/versal-mini-emmc0.dts | 2 +- arch/arm/dts/versal-mini-emmc1.dts | 2 +- arch/arm/dts/versal-mini-ospi.dtsi | 2 +- arch/arm/dts/versal-mini-qspi.dtsi | 2 +- arch/arm/dts/zynq-cse-nand.dts | 2 +- arch/arm/dts/z

[PATCH 01/10] arm64: zynqmp: Fix status property for m-a2197 boards

2024-09-13 Thread Michal Simek
Status property should be missing or okay or disabled but not just disable. dt-validate is reporting it too. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files

[PATCH 00/10] arm64: zynqmp: DT schema alignments

2024-09-13 Thread Michal Simek
Hi, I am sending some patches to fix issues reported by dt-schema checking. Thanks, Michal Michal Simek (10): arm64: zynqmp: Fix status property for m-a2197 boards arm64: zynqmp: Align gpio hogs with dt-schema xilinx: Fix axi and mmc node names in mini configuration arm64: zynqmp: Fix

Re: [PATCH v4] cmd: sf: prevent overwriting the reserved memory

2024-09-13 Thread Michal Simek
On 9/13/24 09:32, Prasad Kummari wrote: Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does not use LMB APIs for loading data into memory addresses. To resolve this, LMB APIs were added to check the load address of an SF command and ensure it d

[PATCH] net: gem: Remove undocumented is-internal-pcspma dt flag

2024-09-13 Thread Michal Simek
phy mode have this flag enabled that's why there is no need/reason to just duplicate information. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-dlc21-revA.dts | 1 - arch/arm/dts/zynqmp-e-a2197-00-revA.dts| 1 - arch/arm/dts/zynqmp-g-a2197-00-revA.dts| 1 - arch/ar

[PATCH] arm64: zynqmp: Fix status property for m-a2197 boards

2024-09-12 Thread Michal Simek
Status property should be missing or okay or disabled but not just disable. dt-validate is reporting it too. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files

Re: [PATCH v3] cmd: sf: prevent overwriting the reserved memory

2024-09-11 Thread Michal Simek
On 9/11/24 13:29, Sughosh Ganu wrote: On Wed, 11 Sept 2024 at 16:53, Michal Simek wrote: On 9/11/24 13:20, Sughosh Ganu wrote: On Tue, 10 Sept 2024 at 21:14, Prasad Kummari wrote: Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does

Re: [PATCH v3] cmd: sf: prevent overwriting the reserved memory

2024-09-11 Thread Michal Simek
On 9/11/24 13:20, Sughosh Ganu wrote: On Tue, 10 Sept 2024 at 21:14, Prasad Kummari wrote: Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does not use LMB APIs for loading data into memory addresses. To resolve this, LMB APIs were added to c

[PATCH] xilinx: zynqmp: Add bootmenu support

2024-09-11 Thread Michal Simek
ith if). Signed-off-by: John Vicky Vykuntapu Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp_kria.env | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/board/xilinx/zynqmp/zynqmp_kria.env b/board/xilinx/zynqmp/zynqmp_kria.env index 49ef3e7d7532..d0e43

[PATCH] arm64: zynqmp: Add missing vc7_xin fixed clock to sc-vpk180-revA

2024-09-09 Thread Michal Simek
Add missing vc7_xin fixed clock as clock input for some clock generators. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sc-vpk180-revA.dtso | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/zynqmp-sc-vpk180-revA.dtso b/arch/arm/dts/zynqmp-sc-vpk180-revA.dtso index

Re: [PATCH] mtd: spi-nor-ids: Deduplicate w25q16dw entry

2024-09-08 Thread Michal Simek
Cc: Andre Przywara Cc: Ashok Reddy Soma Cc: Dhruva Gole Cc: Jagan Teki Cc: Jim Liu Cc: Jonas Karlman Cc: Michal Simek Cc: Neal Frager Cc: Prasad Kummari Cc: Teik Heng Chong Cc: Tom Rini Cc: Vignesh R Cc: u-boot@lists.denx.de --- drivers/mtd/spi/spi-nor-ids.c | 8 ++-- 1 file changed, 2

Re: [PATCH] mtd: spi-nor-ids: Deduplicate mx25u25635f entry

2024-09-08 Thread Michal Simek
e Przywara Cc: Ashok Reddy Soma Cc: Dhruva Gole Cc: Jagan Teki Cc: Jim Liu Cc: Jonas Karlman Cc: Michal Simek Cc: Neal Frager Cc: Prasad Kummari Cc: Teik Heng Chong Cc: Tom Rini Cc: Vignesh R Cc: u-boot@lists.denx.de --- drivers/mtd/spi/spi-nor-ids.c | 1 - 1 file changed, 1 deletio

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-06 Thread Michal Simek
On 9/6/24 11:47, Sughosh Ganu wrote: On Fri, 6 Sept 2024 at 12:05, Michal Simek wrote: On 9/5/24 11:17, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 14:07, Michal Simek wrote: On 9/5/24 10:12, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:20, Michal Simek wrote: On 9/5/24 09:43

Re: [PATCH v2 0/2] arm: zynqmp: Initialize some registers at boot

2024-09-06 Thread Michal Simek
On 9/5/24 19:18, Sean Anderson wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. These patches are independent in intent, but they modify adjacent lines so I hav

Re: [PATCH] xilinx: Enable SIMPLE_PM_BUS

2024-09-05 Thread Michal Simek
On 9/3/24 09:48, Michal Simek wrote: Enable simple-pm-bus driver to handle case where axi bus coming between PS (fixed) part to PL (programmable) part has own clock or power domain. That's why enable driver to be ready for this configuration. Signed-off-by: Michal Simek --- co

Re: [PATCH] arm64: zynqmp: Add u-boot command to boot into recovery image

2024-09-05 Thread Michal Simek
> zynqmp reboot Co-develop-by: Michal Simek Signed-off-by: Michal Simek Co-develop-by: Prasad Kummari Signed-off-by: Prasad Kummari --- arch/arm/mach-zynqmp/include/mach/hardware.h | 6 - arch/arm/mach-zynqmp/zynqmp.c| 26 2 files changed,

Re: [PATCH] xilinx: versal-net: fix no previous prototype for function warning.

2024-09-05 Thread Michal Simek
On 9/5/24 13:57, Prasad Kummari wrote: Included the SPI header to resolve the no previous prototypes for function. Removed unused mode variable. sparse warnings warning: no previous prototype for 'spi_get_env_dev' [-Wmissing-prototypes] warning: variable 'mode' set but not used [-Wunused-but-s

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-05 Thread Michal Simek
On 9/6/24 08:35, Michal Simek wrote: On 9/5/24 11:17, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 14:07, Michal Simek wrote: On 9/5/24 10:12, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:20, Michal Simek wrote: On 9/5/24 09:43, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:09

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-05 Thread Michal Simek
On 9/5/24 11:17, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 14:07, Michal Simek wrote: On 9/5/24 10:12, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:20, Michal Simek wrote: On 9/5/24 09:43, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:09, Michal Simek wrote: On 9/5/24 09:38

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-05 Thread Michal Simek
On 9/5/24 10:12, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:20, Michal Simek wrote: On 9/5/24 09:43, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:09, Michal Simek wrote: On 9/5/24 09:38, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:03, Michal Simek wrote: On 9/5/24 08:24

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-05 Thread Michal Simek
On 9/5/24 09:43, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:09, Michal Simek wrote: On 9/5/24 09:38, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:03, Michal Simek wrote: On 9/5/24 08:24, Sughosh Ganu wrote: On Wed, 4 Sept 2024 at 17:30, Michal Simek wrote: On 8/30/24 13

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-05 Thread Michal Simek
On 9/5/24 09:38, Sughosh Ganu wrote: On Thu, 5 Sept 2024 at 13:03, Michal Simek wrote: On 9/5/24 08:24, Sughosh Ganu wrote: On Wed, 4 Sept 2024 at 17:30, Michal Simek wrote: On 8/30/24 13:40, Sughosh Ganu wrote: The following set of patches are miscellaneous fixes and some

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-05 Thread Michal Simek
On 9/5/24 08:24, Sughosh Ganu wrote: On Wed, 4 Sept 2024 at 17:30, Michal Simek wrote: On 8/30/24 13:40, Sughosh Ganu wrote: The following set of patches are miscellaneous fixes and some hardening of the FWU update logic. Sughosh Ganu (6): fwu: v2: perform some checks before

Re: [PATCH 4/6] fwu: check all images for transitioning out of Trial State

2024-09-04 Thread Michal Simek
*mdata = data->fwu_mdata; + if (!trial_state && !fwu_bank_accepted(data, bank)) + return 0; + mdata->bank_state[bank] = data->bank_state[bank] = trial_state ? FWU_BANK_VALID : FWU_BANK_ACCEPTED; Tested-by: Michal Simek Thanks, Michal

Re: [PATCH 6/6] fwu: do not allow capsule processing on exceeding Trial Counter threshold

2024-09-04 Thread Michal Simek
e(NULL); if (!ret) boottime_check = 1; Tested-by: Michal Simek Thanks, Michal

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-04 Thread Michal Simek
On 8/30/24 13:40, Sughosh Ganu wrote: The following set of patches are miscellaneous fixes and some hardening of the FWU update logic. Sughosh Ganu (6): fwu: v2: perform some checks before reading metadata fwu: v2: try reading both copies of metadata fwu: v1: do a version check for

Re: [PATCH 1/6] fwu: v2: perform some checks before reading metadata

2024-09-04 Thread Michal Simek
On 8/30/24 13:40, Sughosh Ganu wrote: The version 2 of the FWU metadata has a top level structure, followed by optional information on the updatable images. Perform some sanity checks on some of the fields in the top level structure to determine if the rest of the structure has to be read. Si

Re: [PATCH 0/6] Miscellaneous FWU fixes

2024-09-04 Thread Michal Simek
On 8/30/24 13:40, Sughosh Ganu wrote: The following set of patches are miscellaneous fixes and some hardening of the FWU update logic. Sughosh Ganu (6): fwu: v2: perform some checks before reading metadata fwu: v2: try reading both copies of metadata fwu: v1: do a version check for

Re: [PATCH 5/6] fwu: add dependency checks for selecting FWU metadata version

2024-09-04 Thread Michal Simek
@@ config FWU_MDATA_V1 config FWU_MDATA_V2 bool "Enable support FWU Metadata version 2" + depends on !FWU_MDATA_V1 help The FWU specification supports two versions of the metadata structure. This option enables support for FWU Reviewed-

Re: [PATCH 2/6] fwu: v2: try reading both copies of metadata

2024-09-04 Thread Michal Simek
On 8/30/24 13:40, Sughosh Ganu wrote: In the version 2 of the FWU metadata, the metadata is broken into two parts, a top-level structure, which provides information on the total size of the structure among other things. Try reading the primary partition first, and if that fails, try reading th

Re: [PATCH 2/6] fwu: v2: try reading both copies of metadata

2024-09-03 Thread Michal Simek
On 8/30/24 13:40, Sughosh Ganu wrote: In the version 2 of the FWU metadata, the metadata is broken into two parts, a top-level structure, which provides information on the total size of the structure among other things. Try reading the primary partition first, and if that fails, try reading th

Re: [GIT PULL] usb hub changes for 2025.01 next

2024-09-03 Thread Michal Simek
On 9/3/24 16:56, Tom Rini wrote: On Mon, Sep 02, 2024 at 11:53:46AM +0200, Michal Simek wrote: Hi, please pull these changes to your next branch. Changes have been sent for a while and there was no reply to them. Here is the thread. https://lore.kernel.org/all/20240605100221.3571-1

Re: [PATCH 1/6] fwu: v2: perform some checks before reading metadata

2024-09-03 Thread Michal Simek
On 8/30/24 13:40, Sughosh Ganu wrote: The version 2 of the FWU metadata has a top level structure, followed by optional information on the updatable images. Perform some sanity checks on some of the fields in the top level structure to determine if the rest of the structure has to be read. Si

Re: [PATCH v12 0/9] spi-nor: Add parallel and stacked memories support

2024-09-03 Thread Michal Simek
On 9/2/24 12:26, Venkatesh Yadav Abbarapu wrote: This series adds support for Xilinx qspi parallel and stacked memeories. In parallel mode, the current implementation assumes that a maximum of two flashes are connected. The QSPI controller splits the data evenly between both the flashes so, b

Re: [PATCH v2] cmd: setexpr: fix no matching string in gsub return empty value

2024-09-03 Thread Michal Simek
HI, čt 8. 2. 2024 v 16:00 odesílatel Massimiliano Minella napsal: > > From: Massimiliano Minella > > In gsub, when the destination string is empty, the string 't' is > provided and the regular expression doesn't match, then the final result > is an empty string. > > Example: > > => echo ${foo} >

[PATCH] xilinx: Enable SIMPLE_PM_BUS

2024-09-03 Thread Michal Simek
Enable simple-pm-bus driver to handle case where axi bus coming between PS (fixed) part to PL (programmable) part has own clock or power domain. That's why enable driver to be ready for this configuration. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 1 + co

Re: [PATCH] versal2: Update the sys prompt name

2024-09-02 Thread Michal Simek
On 8/9/24 07:05, Love Kumar wrote: versal2 refers as "Versal Gen 2" as a generic approved name so using the same as u-boot prompt name for all versal2 defconfig We have discussed this together and using different word than versal2 is not productive. That's why keep only versal2 is enough.

Re: [u-boot-test-hooks][PATCH] travis-ci: Skip the saveenv and reset test cases on xilinx zynq qemu

2024-09-02 Thread Michal Simek
t is bug in Qemu and we have already asked our Qemu team to fix this but hard to say when fix reach upstream and then there is CI pipeline update too. That's why the most sensible thing to do is disable these tests to be able to pass CI for dual stacked/parallel configurations. Acked-by: Micha

[GIT PULL] usb hub changes for 2025.01 next

2024-09-02 Thread Michal Simek
Hi, please pull these changes to your next branch. Changes have been sent for a while and there was no reply to them. Here is the thread. https://lore.kernel.org/all/20240605100221.3571-1-venkatesh.abbar...@amd.com/ We are doing the same changes on Linux side and they should be merged soon htt

Re: [PATCH 2/2] arm: zynqmp: Enable non-invasive CCI-400 PMU debug

2024-09-02 Thread Michal Simek
ay is required for clocks to be propagated */ udelay(100); -- 2.35.1.1320.gc452695387.dirty Reviewed-by: Michal Simek Thanks, Michal

Re: [PATCH 1/2] zynqmp: Disable secure access for boot devices

2024-09-02 Thread Michal Simek
On 8/13/24 00:07, Sean Anderson wrote: Boot devices (QSPI, MMC, NAND, and Ethernet) use secure access for DMA by default. As this causes problems when using the SMMU [1], configure them for normal access instead. [1] https://support.xilinx.com/s/article/72164 Signed-off-by: Sean Anderson -

Re: [u-boot-test-hooks PATCH v4 3/3] Provide some basic scripts for Labgrid integration

2024-08-30 Thread Michal Simek
+Kevin, On 8/29/24 00:27, Simon Glass wrote: Hi Tom, On Wed, 28 Aug 2024 at 15:33, Tom Rini wrote: On Wed, Aug 28, 2024 at 03:25:00PM -0600, Simon Glass wrote: Hi Tom, On Wed, 28 Aug 2024 at 14:19, Tom Rini wrote: On Wed, Aug 28, 2024 at 10:45:23AM -0600, Simon Glass wrote: With Labgr

Re: [PATCH] test/py: spi: Set the expected error message

2024-08-29 Thread Michal Simek
On 8/29/24 09:33, Love Kumar wrote: If erase/write/read size is 0 then it throws the mentioned error message when debug message ie enabled as per "899fb5aa8becc159b1eb086d8828c4e8eb28f121" you should use this format not just sha1. 899fb5aa8bec ("cmd: sf/nand: Print and return failure when 0

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

2024-08-28 Thread Michal Simek
-off-by: Tom Rini --- It's possible we could solve this instead by getting addr / size again from our environment file, and then also noting that order-wise the unstash test follows the stash test. However, this felt more clean to me. It looks good to me. Acked-by: Michal Simek Thanks, Michal

Re: [PATCH 05/10] armv8: Add arch-specific sysinfo driver

2024-08-26 Thread Michal Simek
On 8/16/24 17:46, Raymond Mao wrote: Add common sysinfo driver for armv8 platforms containing all necessary SMBIOS information (Type 1 to 4). Signed-off-by: Raymond Mao --- arch/arm/cpu/armv8/Makefile | 5 + arch/arm/cpu/armv8/sysinfo.c | 203 +++ 2 fil

Re: [PATCH 02/10] sysinfo: Add sysinfo driver and data structure for SMBIOS

2024-08-26 Thread Michal Simek
On 8/16/24 17:46, Raymond Mao wrote: Add sysinfo interface and definitions to support SMBIOS type 0 to type 4. Signed-off-by: Raymond Mao --- drivers/sysinfo/Makefile | 1 + drivers/sysinfo/smbios_plat.c | 270 ++ drivers/sysinfo/smbios_plat.h | 104

Re: [PATCH 04/10] smbios: ignore the non-existence of platform sysinfo detect

2024-08-26 Thread Michal Simek
On 8/16/24 17:46, Raymond Mao wrote: During writing SMBIOS table, implementation of sysinfo detect function for a specific platform is not mandatory. Thus we should not return an error when platform sysinfo detect function does not exist. first of all you should avoid we and use imperative m

Re: [PATCH 03/10] smbios: Refactor SMBIOS library

2024-08-26 Thread Michal Simek
On 8/16/24 17:46, Raymond Mao wrote: Current SMBIOS library does not fully match to the specification. It hardcodes values instead of exposing values from the device. It does not support dynamic length for contained object handles or elements and misses the handling of a few fields. The refac

Re: [PATCH 02/10] sysinfo: Add sysinfo driver and data structure for SMBIOS

2024-08-26 Thread Michal Simek
On 8/16/24 17:46, Raymond Mao wrote: Add sysinfo interface and definitions to support SMBIOS type 0 to type 4. Signed-off-by: Raymond Mao --- drivers/sysinfo/Makefile | 1 + drivers/sysinfo/smbios_plat.c | 270 ++ drivers/sysinfo/smbios_plat.h | 104

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-26 Thread Michal Simek
Hi Simon, On 8/9/24 17:58, Simon Glass wrote: Hi Michal, On Fri, 9 Aug 2024 at 08:47, Michal Simek wrote: On 8/9/24 16:44, Simon Glass wrote: Hi Michal, On Thu, 8 Aug 2024 at 23:39, Michal Simek wrote: Hi Simon, On 8/8/24 16:28, Simon Glass wrote: Hi Michal, On Wed, 7 Aug 2024 at

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-09 Thread Michal Simek
On 8/9/24 16:44, Simon Glass wrote: Hi Michal, On Thu, 8 Aug 2024 at 23:39, Michal Simek wrote: Hi Simon, On 8/8/24 16:28, Simon Glass wrote: Hi Michal, On Wed, 7 Aug 2024 at 23:31, Michal Simek wrote: On 8/7/24 16:36, Simon Glass wrote: Hi Prasad, On Tue, 6 Aug 2024 at 23:05

Re: [PATCH] cmd: add a fetch utility

2024-08-08 Thread Michal Simek
On 8/8/24 18:24, Caleb Connolly wrote: While U-Boot does a pretty good job at printing information at startup about what hardware it's running on, it can be hard to take pretty pictures of this to show off on the internet (by far the most important aspect of porting a device in 2024!). Add a

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-08 Thread Michal Simek
Hi Simon, On 8/8/24 16:28, Simon Glass wrote: Hi Michal, On Wed, 7 Aug 2024 at 23:31, Michal Simek wrote: On 8/7/24 16:36, Simon Glass wrote: Hi Prasad, On Tue, 6 Aug 2024 at 23:05, Kummari, Prasad wrote: Hi Glass, -Original Message- From: Simon Glass Sent: Wednesday

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-08 Thread Michal Simek
Hi Tom, On 8/8/24 17:46, Tom Rini wrote: On Thu, Aug 08, 2024 at 01:18:44PM +0200, Michal Simek wrote: On 8/8/24 08:22, Sughosh Ganu wrote: On Thu, 8 Aug 2024 at 11:05, Michal Simek wrote: On 8/7/24 23:12, Tom Rini wrote: On Tue, Aug 06, 2024 at 05:37:00PM +0530, Prasad Kummari wrote

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-08 Thread Michal Simek
On 8/8/24 08:22, Sughosh Ganu wrote: On Thu, 8 Aug 2024 at 11:05, Michal Simek wrote: On 8/7/24 23:12, Tom Rini wrote: On Tue, Aug 06, 2024 at 05:37:00PM +0530, Prasad Kummari wrote: Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-07 Thread Michal Simek
On 8/7/24 23:12, Tom Rini wrote: On Tue, Aug 06, 2024 at 05:37:00PM +0530, Prasad Kummari wrote: Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does not use LMB APIs for loading data into memory addresses. To resolve this, LMB APIs were added

Re: [PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-07 Thread Michal Simek
On 8/7/24 16:36, Simon Glass wrote: Hi Prasad, On Tue, 6 Aug 2024 at 23:05, Kummari, Prasad wrote: Hi Glass, -Original Message- From: Simon Glass Sent: Wednesday, August 7, 2024 3:21 AM To: Kummari, Prasad Cc: u-boot@lists.denx.de; git (AMD-Xilinx) ; Simek, Michal ; Abbarapu, V

Re: [PATCH 05/14] initcall: Adjust the failure message and return value

2024-08-06 Thread Michal Simek
On 8/6/24 23:50, Simon Glass wrote: Hi Michal, On Fri, 2 Aug 2024 at 03:21, Michal Simek wrote: Hi Simon, On 3/22/24 11:22, Michal Simek wrote: Hi Simon, út 22. 8. 2023 v 5:18 odesílatel Simon Glass mailto:s...@chromium.org>> napsal: Move the failure message outside the lo

[GIT PULL] xilinx patches for v2024.07-rc3

2024-08-05 Thread Michal Simek
arm64: zynqmp: dts: Add rts delay property for rs485 mode on KD240 Michal Simek (7): arm64: versal2: Remove UARTLITE from defconfig arm64: versal-net: Align node names with dt-schema arm64: versal: Remove undocumented cadence,qspi compatible arm64: xilinx: Descri

Re: [PATCH] soc: zynqmp: Add support for zu1eg_lr device

2024-08-05 Thread Michal Simek
On 7/30/24 16:53, Michal Simek wrote: There is new chip coming which is using new _lr suffix that's why record it in the list to enable bitstream in bit format loading. Signed-off-by: Michal Simek --- drivers/soc/soc_xilinx_zynqmp.c | 8 1 file changed, 8 insertions(+)

Re: [PATCH] ARM: zynq: Add support for 7z010_lr and 7z020_lr

2024-08-05 Thread Michal Simek
On 7/30/24 15:50, Michal Simek wrote: Add support for *_lr SOCs. Without this change chips are not going to be properly identified and bitstream programming won't work. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/cpu.c | 2 ++ include/zynqpl.h | 6 ++ 2 files ch

Re: [PATCH] arm64: zynqmp: Remove PM firmware checking

2024-08-05 Thread Michal Simek
On 7/30/24 12:42, Michal Simek wrote: Having zynqmp firmware is actually only one valid configuration. In QEMU case for example there is no PMU that's why this checking can't end up in panic that's why code remove this code completely. Signed-off-by: Michal Simek --- boar

Re: [PATCH] arm64: zynqmp: Fix pwm-fan polarity

2024-08-05 Thread Michal Simek
On 7/29/24 10:18, Michal Simek wrote: From: Vishal Patel The correct operating mode for the fan is inversed (1). The previous pwm driver implementation had a bug and the polarity information was propagated incorrectly to the kernel. The normal (0) polarity specified in the device tree was

Re: [PATCH 05/14] initcall: Adjust the failure message and return value

2024-08-02 Thread Michal Simek
Hi Simon, On 3/22/24 11:22, Michal Simek wrote: Hi Simon, út 22. 8. 2023 v 5:18 odesílatel Simon Glass <mailto:s...@chromium.org>> napsal: Move the failure message outside the loop, so it is easier to follow the code. Avoid swallowing the error code - just pass it along.

Re: [PATCH] i2c: mux: Fix error path in i2c-arb-gpio

2024-08-01 Thread Michal Simek
On 8/1/24 12:27, Heiko Schocher wrote: Hello Michal, On 01.08.24 10:01, Michal Simek wrote: There is no reason to use goto and just call return. Better is to call return directly which is done for some if/else parts. Also make no sense to setup ret to -ETIMEDOUT and then to 0. Return

[PATCH] i2c: mux: Fix error path in i2c-arb-gpio

2024-08-01 Thread Michal Simek
There is no reason to use goto and just call return. Better is to call return directly which is done for some if/else parts. Also make no sense to setup ret to -ETIMEDOUT and then to 0. Return timeout directly. Signed-off-by: Michal Simek --- drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 11

[PATCH] i2c: pca954x: Remove pointer to GD

2024-08-01 Thread Michal Simek
There is no reason to have any pointer to GD that's why remove it. Signed-off-by: Michal Simek --- drivers/i2c/muxes/pca954x.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index b4e3e16a9764..795288fe2e94 100644 --- a/dr

[PATCH] soc: zynqmp: Add support for zu1eg_lr device

2024-07-30 Thread Michal Simek
There is new chip coming which is using new _lr suffix that's why record it in the list to enable bitstream in bit format loading. Signed-off-by: Michal Simek --- drivers/soc/soc_xilinx_zynqmp.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/soc_xilinx_zynqm

[PATCH] ARM: zynq: Add support for 7z010_lr and 7z020_lr

2024-07-30 Thread Michal Simek
Add support for *_lr SOCs. Without this change chips are not going to be properly identified and bitstream programming won't work. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/cpu.c | 2 ++ include/zynqpl.h | 6 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm

[PATCH] arm64: zynqmp: Remove PM firmware checking

2024-07-30 Thread Michal Simek
Having zynqmp firmware is actually only one valid configuration. In QEMU case for example there is no PMU that's why this checking can't end up in panic that's why code remove this code completely. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 13 -

Re: [PATCH v2] test/py: spi: Add tests for SPI flash device

2024-07-30 Thread Michal Simek
On 7/28/24 21:36, Simon Glass wrote: Hi Love, On Wed, 24 Jul 2024 at 05:07, Love Kumar wrote: Add test cases for sf commands to verify various SPI flash operations such as erase, write and read. It also adds qspi lock unlock cases. This test relies on boardenv_* configurations to run it fo

[PATCH] arm64: zynqmp: Fix pwm-fan polarity

2024-07-29 Thread Michal Simek
counter control register. After the bug fix, setting the polarity to inversed (1) in the device tree will clear the polarity bit. Signed-off-by: Vishal Patel Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sm-k26-revA.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v5 02/20] net: introduce alternative implementation as net-lwip/

2024-07-26 Thread Michal Simek
čt 25. 7. 2024 v 15:28 odesílatel Jerome Forissier napsal: > > 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 t

Re: [PATCH] arm64: zynqmp: dts: Add rts delay property for rs485 mode on KD240

2024-07-26 Thread Michal Simek
On 7/18/24 12:15, Michal Simek wrote: From: Manikanta Guntupalli Add "rs485-rts-delay" property to uartps node with delay_rts_before_send and delay_rts_after_send values as 10ms for rs485 mode on KD240. 10ms rts delay values have been chosen based on testing with rs485 temperat

Re: [PATCH] arm64: xilinx: Describe TPM reset for Kria CCs

2024-07-26 Thread Michal Simek
On 7/16/24 15:29, Michal Simek wrote: Describe carrier card TPM reset behavior and show message about it on boot console to let users know what to expect from it. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp_kria.env | 9 ++--- 1 file changed, 6 insertions(+), 3

  1   2   3   4   5   6   7   8   9   10   >