Re: [PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-06-07 Thread Michal Simek
On 5/24/24 12:07, Ilias Apalodimas wrote: Hi Michal On Fri, 24 May 2024 at 12:45, Michal Simek wrote: Hi Ilias, On 4/26/24 15:38, Michal Simek wrote: Hi, currently only DT way is supported and it is added directly to lib/smbios.c but I think DT and env is only one way how information

Re: [PATCH 1/3] xilinx: Enable SMBIOS command

2024-06-07 Thread Michal Simek
On 4/26/24 15:38, Michal Simek wrote: It is good to be aware what information is shared via smbios interface that's why enable it by default. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 1 + configs/xilinx_versal_virt_defconfig | 1 + configs

Re: [PATCH] arm64: zynqmp: Update rproc node

2024-06-07 Thread Michal Simek
On 5/30/24 12:39, Michal Simek wrote: remoteproc node should be updated to be aligned with the latest dt-schema. Signed-off-by: Michal Simek --- Once we push all dts to Linux we can change to OF_UPSTREAM but till that time we need to keep DTSes in sync. --- arch/arm/dts/zynqmp.dtsi

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

[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

[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 v3 7/7] drivers: misc: Add driver to access ZynqMP efuses

2024-06-06 Thread Michal Simek
(CONFIG_ZYNQMP_EFUSE) += zynqmp_efuse.o diff --git a/drivers/misc/zynqmp_efuse.c b/drivers/misc/zynqmp_efuse.c new file mode 100644 index 000..d12de7494d2 --- /dev/null +++ b/drivers/misc/zynqmp_efuse.c @@ -0,0 +1,360 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2014 - 2015 Xil

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

2024-06-06 Thread Michal Simek
ode, - idcode2); + u32 idcode2 = version >> ZYNQMP_CSU_VERSION_EMPTY_SHIFT; + + dev_dbg(dev, "IDCODE: 0x%0x, IDCODE2: 0x%0x\n", idcode, idcode2); ret = soc_xilinx_zynqmp_detect_machine(dev, idcode, idcode2); if (r

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

2024-06-06 Thread Michal Simek
load[2]); + priv->revision = FIELD_GET(PS_VERSION_MASK, version); return 0; } Reviewed-by: Michal Simek Thanks, Michal

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

2024-06-06 Thread Michal Simek
int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id); int zynqmp_mmio_read(const u32 address, u32 *value); int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value); Reviewed-by: Michal Simek Thanks, Michal

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

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

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

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

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

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

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

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

Re: [PATCH 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

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

2024-06-06 Thread Michal Simek
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 --- cmd/fwu_mdata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd

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

2024-06-06 Thread Michal Simek
It is useful when structure is also used for saving vendor data covered by CRC32. Signed-off-by: Michal Simek --- Changes in v2: - print it only in mdata v2 version cmd/fwu_mdata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c index 6d91935b9b54

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

2024-06-05 Thread Michal Simek
It is useful when structure is also used for saving vendor data covered by CRC32. Signed-off-by: Michal Simek --- cmd/fwu_mdata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c index 3c8be576ac7a..9c048d69a131 100644 --- a/cmd/fwu_mdata.c +++ b/cmd

[RFC PATCH] cmd: fwu: Dump custom fields from mdata structure

2024-06-05 Thread Michal Simek
The commit cb9ae40a16f0 ("tools: mkfwumdata: add logic to append vendor data to the FWU metadata") added support for adding vendor data to mdata structure but it is not visible anywhere that's why extend fwu command to dump it. Signed-off-by: Michal Simek --- I am using this for

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

2024-06-04 Thread Michal Simek
On 6/4/24 11:12, Lukas Funke wrote: On 03.06.2024 17:08, Michal Simek wrote: On 6/3/24 16:50, Lukas Funke wrote: On 03.06.2024 16:32, Michal Simek wrote: On 6/3/24 15:34, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This commit enables SPL to reset the CPU via PMU

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

2024-06-03 Thread Michal Simek
On 6/3/24 16:50, Lukas Funke wrote: On 03.06.2024 16:32, Michal Simek wrote: On 6/3/24 15:34, 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

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

2024-06-03 Thread Michal Simek
On 6/3/24 15:34, 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 --- board/xilinx/zynqmp/zynqmp.c | 9

Re: [PATCH 1/2] arm64: zynqmp: Add 'SPL_ZYNQMP_FIRMWARE' to Kconfig

2024-06-03 Thread Michal Simek
On 6/3/24 15:34, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke In order to make CONFIG_IS_ENABLED() work with 'ZYNQMP_FIRMWARE' introduce an additional Kconfig 'SPL_ZYNQMP_FIRMWARE' which is selected if and only if ZYNQMP_FIRMWARE is enabled. Driver are adapted such that they

[PATCH] arm64: zynqmp: Setup multiboot register to 0

2024-06-03 Thread Michal Simek
(start of QSPI) and call early bootloader every reboot that's why clear multiboot register to 0 by default to go that route all the time. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp_kria.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/xilinx/zynqmp/zynqmp_kria.env b

Re: [PATCH] xilinx: Add option to load environment from outside of boot media

2024-05-31 Thread Michal Simek
On 5/31/24 12:09, Vasileios Amoiridis wrote: Currently, if the environment is not in the current boot media, the env_get_location() is returning ENVL_UNKNOWN or ENVL_NOWHERE which is not true (i.e booting from FLASH with environment in eMMC). This commit adds an extra check to find the

Re: [PATCH v3 05/25] md5: Remove md5 non-watchdog API

2024-05-31 Thread Michal Simek
((u8 *)start_addr, len, [0], MD5_DEF_CHUNK_SZ); if (!memcmp(checksum, calchecksum, MD5_CHECKSUM_SIZE)) return 0; Reviewed-by: Michal Simek # zynq M

Re: [PATCH] arm64: zynqmp: Update rproc node

2024-05-31 Thread Michal Simek
On 5/31/24 00:16, Tanmay Shah wrote: On 5/30/24 5:39 AM, Michal Simek wrote: remoteproc node should be updated to be aligned with the latest dt-schema. Signed-off-by: Michal Simek --- Once we push all dts to Linux we can change to OF_UPSTREAM but till that time we need to keep DTSes

Re: [PATCH 0/4] arm64: versal2: Add support for new AMD Versal Gen 2 SoC

2024-05-30 Thread Michal Simek
On 5/30/24 16:08, Tom Rini wrote: On Thu, May 30, 2024 at 08:04:07AM +0200, Michal Simek wrote: Hi Tom, On 5/29/24 18:13, Tom Rini wrote: On Wed, May 29, 2024 at 04:47:57PM +0200, Michal Simek wrote: Hi, I am sending patches for adding initial support for new AMD Versal Gen 2 SoC

Re: [PATCH 0/4] arm64: versal2: Add support for new AMD Versal Gen 2 SoC

2024-05-30 Thread Michal Simek
Hi Tom, On 5/29/24 18:13, Tom Rini wrote: On Wed, May 29, 2024 at 04:47:57PM +0200, Michal Simek wrote: Hi, I am sending patches for adding initial support for new AMD Versal Gen 2 SoC. If you want to find out more information please take a look at this page: https://www.amd.com/en/products

Re: [PATCH v3 0/2] Introduce spl_soc_init() for SoC specific initialization

2024-05-30 Thread Michal Simek
Hi, pá 3. 5. 2024 v 8:10 odesílatel Lukas Funke napsal: > > Hi Michal, > > On 10.04.2024 09:06, Michal Simek wrote: > > Hi, > > > > On 4/8/24 14:59, Michal Simek wrote: > >> > >> > >> On 3/27/24 13:11, lukas.funke-...@weidmueller.com wr

[PATCH] arm64: zynqmp: Update rproc node

2024-05-30 Thread Michal Simek
remoteproc node should be updated to be aligned with the latest dt-schema. Signed-off-by: Michal Simek --- Once we push all dts to Linux we can change to OF_UPSTREAM but till that time we need to keep DTSes in sync. --- arch/arm/dts/zynqmp.dtsi | 67

[PATCH] efi_loader: Fix capsule_esl.dtsi.in comment style

2024-05-30 Thread Michal Simek
Comment is not kernel-doc format that's why don't label it like that and also fix indentation to have proper multiline comment. Signed-off-by: Michal Simek --- lib/efi_loader/capsule_esl.dtsi.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader

[PATCH 1/4] arm64: versal2: Add support for AMD Versal Gen 2

2024-05-29 Thread Michal Simek
Add support for AMD Versal Gen 2. SoC is based on Cortex-a78ae 4 cluster/2 cpu core each. A lot of IPs are shared with previous families. There are couple of new IP blocks where the most interesting from user point of view is UFS. Signed-off-by: Michal Simek --- arch/arm/Kconfig

[PATCH 0/4] arm64: versal2: Add support for new AMD Versal Gen 2 SoC

2024-05-29 Thread Michal Simek
Hi, I am sending patches for adding initial support for new AMD Versal Gen 2 SoC. If you want to find out more information please take a look at this page: https://www.amd.com/en/products/adaptive-socs-and-fpgas/versal.html Thanks, Michal Michal Simek (4): arm64: versal2: Add support for AMD

Re: [RFC PATCH v1 1/1] mmc: zynq_sdhci: Only evaluate card-stable signal if card was detected

2024-05-29 Thread Michal Simek
On 4/24/24 10:23, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke On ZynqMp there seems to be a dependency between the card-stable bit and the card-detect bit. The card-stable bit is set *if and only if* the card-detect bit was set before, indicating that the signal was stable and

[PATCH 4/4] spi: versal2: Enable spi drivers for Versal Gen 2

2024-05-29 Thread Michal Simek
Enable and update OSPI/QSPI/GQSPI drivers to support Versal Gen 2 SoCs. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 4 +++- drivers/spi/Kconfig| 2 +- drivers/spi/cadence_qspi.c | 3 ++- drivers/spi/zynqmp_gqspi.c | 6 -- 4 files

[PATCH 3/4] mmc: versal2: Update zynq_sdhci driver to support AMD Versal Gen 2

2024-05-29 Thread Michal Simek
Enable tap delay programming for new SoC and also enable it via defconfig. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 2 ++ drivers/mmc/zynq_sdhci.c | 22 ++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/configs

[PATCH 2/4] soc: versal2: Add SoC driver for AMD Versal Gen 2

2024-05-29 Thread Michal Simek
Communication is happening via firmware interface (SMC) or via direct register reading if firmware driver is not available. Also enable it via defconfig. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 1 + drivers/soc/Kconfig| 8 drivers/soc

Re: [PATCH v2 2/2] drivers: misc: Add driver to access ZynqMP efuses

2024-05-29 Thread Michal Simek
use.c @@ -0,0 +1,324 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2014 - 2015 Xilinx, Inc. + * Michal Simek + * + * (C) Copyright 2024 Weidmueller Interface GmbH + * Lukas Funke + */ + +#include +#include +#include +#include +#include +#include +#include +

Re: [PATCH v2 0/2] Add eFuse access for ZynqMP

2024-05-29 Thread Michal Simek
On 5/15/24 14:41, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This series adds a driver to read and write ZynqMP eFuses [1]. The driver can be accessed by the 'fuse read' and 'fuse write' commands Example: => fuse read 0 0xc 3 Reading bank 0: Word 0x000c: 3cb16685

Re: [PATCH v2 1/2] firmware: zynqmp: Add support to access efuses

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

Re: [PATCH] xilinx: versal: Do not prioritize boot device if driver is not enabled

2024-05-29 Thread Michal Simek
On 5/10/24 08:22, Michal Simek wrote: From: Venkatesh Yadav Abbarapu SOC can boot out of the device which is not accessible from APU and running this is detected as a warning, as the device is not accessible.For example getting below warning when the boot mode is OSPI and OSPI

Re: [PATCH ] mtd: spi-nor: Add SPI_NOR_OCTAL_READ flag for mx66uw2g345gx0 flash part

2024-05-29 Thread Michal Simek
On 5/8/24 07:27, Prasad Kummari wrote: Added SPI_NOR_OCTAL_READ flag for Macronix mx66uw2g345gx0 2Gb(256MB) NOR Flash memory has been added. Initial testing was conducted on the I fixed this commit message. Versal NET board using SDR mode, which included basic erase, write, and read-back

Re: [PATCH v2] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-29 Thread Michal Simek
On 5/29/24 12:01, Kory Maincent wrote: Once the environment was saved, the current multiboot image information became unreachable. When dealing with firmware updates, this information is necessary alongside the saved environment to know the booted image. Move the multiboot environment set

Re: [PATCH] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-29 Thread Michal Simek
On 5/28/24 17:11, Kory Maincent wrote: On Tue, 28 May 2024 16:53:42 +0200 Michal Simek wrote: On 5/28/24 16:36, Kory Maincent wrote: Once the environment was saved, we could not retrieve information about nit: use imperative mood. Ah indeed. the multiboot image used. When dealing

Re: [PATCH] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-28 Thread Michal Simek
On 5/28/24 16:36, Kory Maincent wrote: Once the environment was saved, we could not retrieve information about nit: use imperative mood. the multiboot image used. When dealing with firmware updates, this information is necessary alongside the saved environment. what exactly are you

Re: [PATCH v4] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-27 Thread Michal Simek
). It gets weeded out from the DTB that gets handed over via efi_install_fdt() as it would also mess up the measured boot DTB TPM measurements as well. Signed-off-by: Tim Harvey Cc: Michal Simek Cc: Andy Yan Cc: Akash Gajjar Cc: Ilias Apalodimas Cc: Simon Glass Cc: Patrick Delaunay Cc: Patrice

Re: [PATCH] xilinx: Add option to load environment from outside of boot media

2024-05-27 Thread Michal Simek
On 5/22/24 19:47, Vasileios Amoiridis wrote: From: Vasileios Amoiridis Currently, if the environment is not in the current boot media, the env_get_location() is returning ENVL_UNKNOWN or ENVL_NOWHERE which is not true (i.e booting from FLASH with environment in eMMC). This commit adds an

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

2024-05-24 Thread Michal Simek
On 5/7/24 17:48, Tom Rini wrote: On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu, Venkatesh wrote: + Tom Rini Do you have any comments for this series? Seems likely fine. Jagan, do you have time to put this in a PR for -next? Thanks. No reaction for quite a long time. Can you take

Re: [PATCH v3 00/20] FWU: Add support for FWU metadata version 2

2024-05-24 Thread Michal Simek
deletions(-) create mode 100644 lib/fwu_updates/fwu_v1.c create mode 100644 lib/fwu_updates/fwu_v2.c I tested it on Kria and I can't see any issue that's why Tested-by: Michal Simek Thanks, Michal

Re: [PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-05-24 Thread Michal Simek
Hi Ilias, On 4/26/24 15:38, Michal Simek wrote: Hi, currently only DT way is supported and it is added directly to lib/smbios.c but I think DT and env is only one way how information can be found that's why this series is improving handling with using sysinfo driver which can be platform

Re: [PATCH v3] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-22 Thread Michal Simek
st 22. 5. 2024 v 17:19 odesílatel Tim Harvey napsal: > > On Wed, May 22, 2024 at 12:47 AM Michal Simek wrote: > > > > > > > > On 5/21/24 22:59, Tim Harvey wrote: > > > If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to > > > randomi

Re: [PATCH v3] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-22 Thread Michal Simek
). It gets weeded out from the DTB that gets handed over via efi_install_fdt() as it would also mess up the measured boot DTB TPM measurements as well. Signed-off-by: Tim Harvey Cc: Michal Simek Cc: Andy Yan Cc: Akash Gajjar Cc: Ilias Apalodimas Cc: Simon Glass Cc: Patrick Delaunay Cc: Patrice

Re: [PATCH v3] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-22 Thread Michal Simek
). It gets weeded out from the DTB that gets handed over via efi_install_fdt() as it would also mess up the measured boot DTB TPM measurements as well. Signed-off-by: Tim Harvey Cc: Michal Simek Cc: Andy Yan Cc: Akash Gajjar Cc: Ilias Apalodimas Cc: Simon Glass Cc: Patrick Delaunay Cc: Patrice

Re: [PATCH v2] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-21 Thread Michal Simek
On 5/20/24 18:37, Tim Harvey wrote: On Mon, May 20, 2024 at 1:29 AM Michal Simek wrote: Hi Tim, On 5/16/24 17:58, Tim Harvey wrote: On Wed, May 15, 2024 at 1:50 PM Tim Harvey wrote: If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to randomize the virtual address

Re: [PATCH v2] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-20 Thread Michal Simek
track if error happens. I think it would be good if you can extend your code with it. Because if this fails people have to start tracking if issue is that there is RNG device or reading fails or issue with setting up property. In v1 it was said that you won't update it if the kaslr-seed property

[PATCH] xilinx: versal: Do not prioritize boot device if driver is not enabled

2024-05-10 Thread Michal Simek
-off-by: Venkatesh Yadav Abbarapu Signed-off-by: Michal Simek --- board/xilinx/versal/board.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index 4f6d56119db1..f00605da7825 100644 --- a/board/xilinx/versal/board.c

Re: [PATCH v4] test/py: net_boot: Add test cases for net boot

2024-05-07 Thread Michal Simek
e as it > uses > > 'bootm ' command to boot, below change in fit image should work. > > > > configurations { > > default = "conf-852"; > > > > test_net_tftpboot_boot_config - This case will boot from the given > config: > > 'bootm 20#con

Re: [PATCH] clk: zynq: Fix EMIO clock use detection for gem0

2024-04-29 Thread Michal Simek
On 4/25/24 17:18, Ondřej Jirman wrote: On Thu, Apr 25, 2024 at 12:59:29PM GMT, Michal Simek wrote: Well, it doesn't help that the code is almost all refering to CLK_CTRL while actually accessing gem1_rclk_ctrl in the struct. In any case it can't detect the case when sourcing the clock from

[PATCH 3/3] lib: smbios: Detect system properties via SYSINFO IDs

2024-04-26 Thread Michal Simek
separate SYSINFO macros which can be used in sysinfo driver and passed to smbios structure. Signed-off-by: Michal Simek --- include/sysinfo.h | 9 + lib/smbios.c | 34 ++ 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/include

[PATCH 1/3] xilinx: Enable SMBIOS command

2024-04-26 Thread Michal Simek
It is good to be aware what information is shared via smbios interface that's why enable it by default. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 1 + configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynqmp_kria_defconfig | 1 + configs

[PATCH 2/3] lib: smbios: Let detect the system via sysinfo

2024-04-26 Thread Michal Simek
Currently code looks like that it sysinfo drivers are supported but actually none checking that system is detected. That's why call sysinfo_detect() to make sure that priv->detected in sysinfo uclass is setup hence information from driver can be passed to smbios. Signed-off-by: Michal Si

[PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-04-26 Thread Michal Simek
smbios.c and put to sysinfo DT driver instead of implementing it directly in this generic file. Thanks, Michal Michal Simek (3): xilinx: Enable SMBIOS command lib: smbios: Let detect the system via sysinfo lib: smbios: Detect system properties via SYSINFO IDs configs

Re: [PATCH] clk: zynq: Fix EMIO clock use detection for gem0

2024-04-25 Thread Michal Simek
On 4/25/24 10:23, Ondřej Jirman wrote: On Wed, Apr 24, 2024 at 04:34:05PM GMT, Michal Simek wrote: On 4/16/24 10:44, Ondřej Jirman wrote: From: Ondrej Jirman According to TRM, the bit that differentiates between MIO and EMIO clocks is bit 6. This resolves failure to set clock when using

Re: Capsule GUIDs and LVFS

2024-04-25 Thread Michal Simek
Hi, On 4/25/24 08:19, Ilias Apalodimas wrote: Hi, Richard maintains LVFS & fwupd, commonly used for firmware upgrades. We recently discussed the U-Boot status and supported devices since fwupd supports capsule updates. In order to be able to support capsule updates via LVFS manufacturers

Re: [PATCH] clk: zynq: Fix EMIO clock use detection for gem0

2024-04-24 Thread Michal Simek
On 4/16/24 10:44, Ondřej Jirman wrote: From: Ondrej Jirman According to TRM, the bit that differentiates between MIO and EMIO clocks is bit 6. This resolves failure to set clock when using EMIO clock for ethernet. Not sure which TRM you are using but here

Re: [PATCH v3 00/20] FWU: Add support for FWU metadata version 2

2024-04-24 Thread Michal Simek
On 3/22/24 11:57, Sughosh Ganu wrote: The following patch series adds support for version 2 of the FWU metadata. The version 2 metadata structure is defined in the latest revision of the FWU specification [1]. The earlier versions of these patches were migrating to a version 2 only support

Re: [PATCH v2 0/1] arch: zynqmp: Make zynqmp command more accessible.

2024-04-24 Thread Michal Simek
On 4/10/24 21:50, Charlie Johnston wrote: While working on a third-party board using a ZynqMP, I was unable to use the zynqmp command even with the proper config definitions. While that command appears tied to the architecture, it was being included based on the board selection instead. This

Re: [PATCH] xilinx: zynqmp: Clean up xilinx_zynqmp.h

2024-04-24 Thread Michal Simek
On 4/15/24 09:55, Michal Simek wrote: Options are moving to Kconfig by running sed and comments are staying in that's why do clean up and remove useless comments. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp.h | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH] xilinx: zynqmp: Clean up xilinx_zynqmp.h

2024-04-24 Thread Michal Simek
On 4/15/24 09:55, Michal Simek wrote: Options are moving to Kconfig by running sed and comments are staying in that's why do clean up and remove useless comments. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp.h | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-17 Thread Michal Simek
On 4/16/24 18:19, Heinrich Schuchardt wrote: On 16.04.24 18:06, Tom Rini wrote: On Tue, Apr 16, 2024 at 08:55:19AM +0200, Michal Simek wrote: Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or names are converted. Signed-off-by: Michal Simek Reviewed-by: Tom Rini

[PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-16 Thread Michal Simek
Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or names are converted. Signed-off-by: Michal Simek --- Changes in v2: - New patch in series .../armv8/fsl-layerscape/fsl_lsch2_serdes.c | 2 +- .../armv8/fsl-layerscape/fsl_lsch3_serdes.c | 2 +- arch/arm/mach-imx

[PATCH v2 0/5] Kconfig: some cleanups

2024-04-16 Thread Michal Simek
ure as deg C instead of just C - Update commit message to explain the reason - New patch in series Michal Simek (5): Kconfig: Remove trailing whitespace in its prompt Kconfig: Add missing quotes around source file Kconfig: Add missing quotes around default string value Kconfig: Make all Kcon

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Michal Simek
On 4/16/24 08:59, Francesco Dolcini wrote: On Tue, Apr 16, 2024 at 02:36:12AM +0200, Tom Rini wrote: On Mon, Apr 15, 2024 at 02:22:02PM +0200, Heinrich Schuchardt wrote: On 15.04.24 13:35, Michal Simek wrote: Some of Kconfigs are using utf-8 encoding because of used chars. Convert all

[PATCH v2 4/5] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Michal Simek
Some of Kconfigs are using utf-8 encoding because of used chars. Convert all of them to ascii enconging. Based on discussion ASCII should be used in general with the exception of names. Signed-off-by: Michal Simek --- Changes in v2: - Describe temperature as deg C instead of just C - Update

[PATCH v2 3/5] Kconfig: Add missing quotes around default string value

2024-04-16 Thread Michal Simek
All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: warning: style: quotes recommended around default value for string symbol EFI_VAR_SEED_FILE (defined at lib/efi_loader/Kconfig:130) Signed-off-by: Michal Simek Reviewed-by: Heinrich Schuchardt

[PATCH v2 2/5] Kconfig: Add missing quotes around source file

2024-04-16 Thread Michal Simek
All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: drivers/crypto/Kconfig:9: warning: style: quotes recommended around 'drivers/crypto/nuvoton/Kconfig' in 'source drivers/crypto/nuvoton/Kconfig' Signed-off-by: Michal Simek --- (no changes since v1) arch

[PATCH v2 1/5] Kconfig: Remove trailing whitespace in its prompt

2024-04-16 Thread Michal Simek
All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: warning: SPL_CLK_CCF (defined at drivers/clk/Kconfig:59) has leading or trailing whitespace in its prompt Signed-off-by: Michal Simek --- (no changes since v1) drivers/clk/Kconfig | 10

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Michal Simek
On 4/16/24 02:36, Tom Rini wrote: On Mon, Apr 15, 2024 at 02:49:13PM +0200, Michal Simek wrote: On 4/15/24 14:22, Heinrich Schuchardt wrote: On 15.04.24 13:35, Michal Simek wrote: Some of Kconfigs are using utf-8 encoding because of used chars. Convert all of them to ascii enconging

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-15 Thread Michal Simek
On 4/15/24 14:22, Heinrich Schuchardt wrote: On 15.04.24 13:35, Michal Simek wrote: Some of Kconfigs are using utf-8 encoding because of used chars. Convert all of them to ascii enconging. Signed-off-by: Michal Simek --- There are other files which are using utf-8 enconding and pretty

Re: [PATCH 2/4] Kconfig: Add missing quotes around source file

2024-04-15 Thread Michal Simek
On 4/15/24 14:44, Heinrich Schuchardt wrote: On 15.04.24 13:35, Michal Simek wrote: All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: drivers/crypto/Kconfig:9: warning: style: quotes recommended around 'drivers/crypto/nuvoton/Kconfig' in 'source drivers

[PATCH 0/4] Kconfig: some cleanups

2024-04-15 Thread Michal Simek
) warning: the choice symbol EFI_APP (defined at lib/efi/Kconfig:15) is selected by the following symbols, but select/imply has no effect on choice symbols - TARGET_EFI_APP32 (defined at board/efi/Kconfig:7) - TARGET_EFI_APP64 (defined at board/efi/Kconfig:16) Michal Simek (4): Kconfig

[PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-15 Thread Michal Simek
Some of Kconfigs are using utf-8 encoding because of used chars. Convert all of them to ascii enconging. Signed-off-by: Michal Simek --- There are other files which are using utf-8 enconding and pretty much I think we should convert all of them because there is no reason to use utf-8 encoding

[PATCH 3/4] Kconfig: Add missing quotes around default string value

2024-04-15 Thread Michal Simek
All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: warning: style: quotes recommended around default value for string symbol EFI_VAR_SEED_FILE (defined at lib/efi_loader/Kconfig:130) Signed-off-by: Michal Simek --- lib/efi_loader/Kconfig | 2 +- 1 file

[PATCH 2/4] Kconfig: Add missing quotes around source file

2024-04-15 Thread Michal Simek
All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: drivers/crypto/Kconfig:9: warning: style: quotes recommended around 'drivers/crypto/nuvoton/Kconfig' in 'source drivers/crypto/nuvoton/Kconfig' Signed-off-by: Michal Simek --- arch/arm/mach-rockchip/rk3588

[PATCH 1/4] Kconfig: Remove trailing whitespace in its prompt

2024-04-15 Thread Michal Simek
All errors are generated by ./tools/qconfig.py -b -j8 -i whatever. Error look like this: warning: SPL_CLK_CCF (defined at drivers/clk/Kconfig:59) has leading or trailing whitespace in its prompt Signed-off-by: Michal Simek --- drivers/clk/Kconfig | 10 +- drivers/ddr/imx

[PATCH] Kconfig: Remove all default n options

2024-04-15 Thread Michal Simek
default n doesn't need to be specified. It is default option anyway. Similar changes have been done by commit 18370f14975c ("Kconfig: Remove all default n/no options"). Signed-off-by: Michal Simek --- boot/Kconfig | 1 - cmd/Kconfig | 2 -- 2 files changed, 3 deletions(-) diff --

[PATCH] xilinx: zynqmp: Clean up xilinx_zynqmp.h

2024-04-15 Thread Michal Simek
Options are moving to Kconfig by running sed and comments are staying in that's why do clean up and remove useless comments. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/configs/xilinx_zynqmp.h b/include

[PATCH] xilinx: Enable NVMEM framework for all platforms

2024-04-11 Thread Michal Simek
<1>; mac: mac-address@f0 { reg = <0xf0 6>; }; }; For getting it work above DT changes are required but also CONFIG_NVMEM should be enabled. That's why enable it by default in generic defconfigs to be able to use it directly by changing DT only. Signed-o

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

2024-04-10 Thread Michal Simek
ukas Funke (1): arm64: zynqmp: Add label to pmu fwnode Manikanta Guntupalli (1): arm64: zynqmp: dts: Add required properties for rs485 support for KD240 Michal Simek (15): arm64: zynqmp: Remove snps,enable_guctl1_ipd_quirk property riscv: mbv: Align addresses with

Re: [PATCH] xilinx: common: Fix MAC address read from EEPROM

2024-04-10 Thread Michal Simek
nx_legacy_format, eth_mac) && > + i < offsetof(struct xilinx_legacy_format, unused1)) { > + continue; > + } > + > + /* Remove all non printable chars */ > + if (byte < '!' || byte > '~') { >

Re: [PATCH v3 0/2] Introduce spl_soc_init() for SoC specific initialization

2024-04-10 Thread Michal Simek
Hi, On 4/8/24 14:59, Michal Simek wrote: On 3/27/24 13:11, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Currently some vendors use spl_board_init() for their SoC specific initialization. This prohibits board developers from adding board init code using said function

Re: [PATCH 1/2] board: zynqmp: Move zynqmp commands from board/ to cmd/

2024-04-10 Thread Michal Simek
On 4/8/24 22:13, Charlie Johnston wrote: The zynqmp cmds.c is currently tied to the board but the commands contained within are more closely tied to the architecture. To allow usage of those commands when the architecture is ZynqMP but the board is not, this change moves the cmds into the

Re: [PATCH v2] configs: zynqmp_kria: Deactivate CONFIG_SPI_FLASH_BAR

2024-04-10 Thread Michal Simek
On 4/9/24 11:48, Tejas Bhumkar wrote: The Kria board features a recovery application that activates when the FW_EN button is pressed. Upon power-up flash operates in 3B mode, However, the recovery application changes it back to 4B mode. Currently, after a reset, u-boot activates

Re: [PATCH v3 0/2] Introduce spl_soc_init() for SoC specific initialization

2024-04-08 Thread Michal Simek
On 3/27/24 13:11, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Currently some vendors use spl_board_init() for their SoC specific initialization. This prohibits board developers from adding board init code using said function. This series introduces a new function in order to

Re: [PATCH] soc: zynqmp: Add the IDcode for TEG variant

2024-04-04 Thread Michal Simek
On 4/2/24 16:23, Venkatesh Yadav Abbarapu wrote: ID code is added for zu3teg variant. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/soc/soc_xilinx_zynqmp.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c

Re: [PATCH v2 1/1] xilinx: zynq: add FDT_FIXUP_PARTITIONS support

2024-04-03 Thread Michal Simek
On 4/2/24 17:37, James Hilliard wrote: On Tue, Apr 2, 2024 at 6:41 AM Michal Simek wrote: On 4/1/24 01:28, James Hilliard wrote: There are situations where we may want to let U-Boot modify the FDT nand partitions for the kernel, such as when supporting multiple sizes of NAND chips

Re: [PATCH 0/3] Add support for jtag disable/enable and multiboot get/set for zynq

2024-04-02 Thread Michal Simek
Hi, On 3/28/24 10:01, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This series adds support to enable/disable/lock the jtag interface from u-boot. This becomes handy if secure boot is used but debugging should be poissible for non-productions builds. The series also adds support

Re: [PATCH v3 2/2] arm64: zynq(mp): Rename spl_board_init() to spl_soc_init()

2024-04-02 Thread Michal Simek
L_SOC_INIT +void spl_soc_init(void) { preloader_console_init(); ps_mode_reset(MODE_RESET); Acked-by: Michal Simek Thanks, Michal

Re: [PATCH] arm64: dts: zynqmp: make hw-ecc as the default ecc mode

2024-04-02 Thread Michal Simek
On 3/25/24 10:50, Venkatesh Yadav Abbarapu wrote: Except for Linux no other component (i.e., u-boot, fsbl or BootRom) of the software stack supports software ecc engine. So, make hw-ecc as the default ecc mode. Update the same for mini u-boot nand configuration as well. Signed-off-by:

  1   2   3   4   5   6   7   8   9   10   >