[PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-01-19 Thread Marek Vasut
Linux 6.6.y with KASLR enabled would print the following message on boot: " KASLR disabled due to lack of seed " Enable the 'kaslrseed' command so a random number seed can be pulled from CAAM and inserted into the /chosen node 'kaslr-seed' property of Linux kernel DT before boot, thus letting

Re: [PATCH 1/1] riscv: Support building with Clang

2024-01-19 Thread Tom Rini
On Sat, Jan 20, 2024 at 01:14:04AM +0100, kleines Filmröllchen wrote: > The -ffixed-gp option of GCC has an exact equivalent of -ffixed-x3 in > Clang. > > Signed-off-by: kleines Filmröllchen > --- > > arch/riscv/config.mk | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > >

[PATCH 1/1] riscv: Support building with Clang

2024-01-19 Thread kleines Filmröllchen
The -ffixed-gp option of GCC has an exact equivalent of -ffixed-x3 in Clang. Signed-off-by: kleines Filmröllchen --- arch/riscv/config.mk | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index 9cf2aef0a4..dc4f30d673

[PATCH 0/1] riscv: Support building with Clang

2024-01-19 Thread kleines Filmröllchen
Hello everyone! This is a minimal patchset for making U-Boot build with Clang on RISC-V, something I stumbled upon while writing U-Boot build scripts for SerenityOS's RISC-V port. The only change is a (for unclear reasons...) differently-named flag for fixing the global pointer. Notably, this

Re: [PATCH v1] net: sun8i-emac: Add support for fixed-link phy

2024-01-19 Thread Andre Przywara
On Fri, 19 Jan 2024 21:11:07 +0300 Maxim Kiselev wrote: Hi Maxim, > пт, 19 янв. 2024 г. в 20:35, Andre Przywara : > > > > On Tue, 16 Jan 2024 19:58:56 +0300 > > Maxim Kiselev wrote: > > > > Hi Maxim, > > > > > вт, 16 янв. 2024 г. в 03:18, Andre Przywara : > > > > > > > > On Thu, 15 Jun

[PATCH] env: sf: report malloc error to caller

2024-01-19 Thread Ralph Siemsen
In the non-redundant code for env_sf_save(), a failure to malloc() the temporary buffer produces the following output: Saving Environment to SPIFlash... OK This is misleading as the flash has neither been erased nor written. Fix it to return an error to the caller, so the output will be:

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Jens Maus
Hi, > Am 19.01.2024 um 17:53 schrieb Jens Maus : > >> Am 19.01.2024 um 17:29 schrieb Ivan T. Ivanov : >> >>> So you say with your own u-boot.bin you see serial U-Boot output after that >>> „NOTICE: BL31: …“ lines? On that special UART port on the rpi5 or on the >>> UART on the GPIO header?

[PATCH] pico-dwarf/hobbit-imx6ul: Convert to CONFIG_DM_SERIAL

2024-01-19 Thread Fabio Estevam
The conversion to CONFIG_DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- configs/pico-dwarf-imx6ul_defconfig | 1 + configs/pico-hobbit-imx6ul_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/pico-dwarf-imx6ul_defconfig

Re: [PATCH v8 09/16] board: ti: j784s4: Add board support for J784S4 EVM

2024-01-19 Thread Nishanth Menon
On 23:20-20240119, Apurva Nandan wrote: > Add board files for J784S4 EVM. > > SYS_DISABLE_DCACHE_OPS is selected in the Kconfig because > J784S4/AM69 are a coherent architecture at A72 level by > MSMC support. > > Signed-off-by: Hari Nagalla > [ add env and board specif

Re: [PATCH v8 02/16] arm: mach-k3: Add basic support for J784S4 SoC definition

2024-01-19 Thread Nishanth Menon
On 23:20-20240119, Apurva Nandan wrote: [...] > +void k3_spl_init(void) > +{ > + struct udevice *dev; > + int ret; > + > + /* > + * Cannot delay this further as there is a chance that > + * K3_BOOT_PARAM_TABLE_INDEX can be over writt

Re: [PATCH v8 04/16] arm: dts: Add bootph-all for memory node

2024-01-19 Thread Nishanth Menon
On 23:20-20240119, Apurva Nandan wrote: [...] > diff --git a/arch/arm/dts/k3-am69-sk.dts b/arch/arm/dts/k3-am69-sk.dts > index 9868c7049b..29884097b9 100644 > --- a/arch/arm/dts/k3-am69-sk.dts > +++ b/arch/arm/dts/k3-am69-sk.dts I think you mis-interpreted https://lore.kerne

Re: [PATCH v8 12/16] arm: dts: Introduce j784s4 u-boot dts files

2024-01-19 Thread Nishanth Menon
On 23:20-20240119, Apurva Nandan wrote: [...] > diff --git a/arch/arm/dts/k3-j784s4-binman.dtsi > b/arch/arm/dts/k3-j784s4-binman.dtsi > new file mode 100644 > index 00..d0d49b5bbe > --- /dev/null > +++ b/arch/arm/dts/k3-j784s4-binman.dtsi > @@ -0,0 +1,345

Re: [PATCH v8 15/16] configs: Add am69_sk_* defconfig fragments

2024-01-19 Thread Andrew Davis
On 1/19/24 11:50 AM, Apurva Nandan wrote: From: Dasnavis Sabiya Add config fragments for am69_sk A72 and R5 configuration. This applies on to: j784s4_evm_a72_defconfig -> am69_sk_a72.config j784s4_evm_r5_defconfig -> am69_sk_r5.config The usage model (with the fragment) would be: make

Re: [PATCH v1] net: sun8i-emac: Add support for fixed-link phy

2024-01-19 Thread Maxim Kiselev
Hi Andre, пт, 19 янв. 2024 г. в 20:35, Andre Przywara : > > On Tue, 16 Jan 2024 19:58:56 +0300 > Maxim Kiselev wrote: > > Hi Maxim, > > > вт, 16 янв. 2024 г. в 03:18, Andre Przywara : > > > > > > On Thu, 15 Jun 2023 00:44:06 +0300 > > > Maxim Kiselev wrote: > > > > > > Hi Maxim, > > > > > > >

Re: [PATCH] wdt: add HiSilicon watchdog driver support

2024-01-19 Thread Yang Xiwen
+static const struct udevice_id hisi_wdt_ids[] = { + { .compatible = "hisilicon,wdt" }, + { /* sentinel */ } +}; + +U_BOOT_DRIVER(hisi_wdt) = { + .name = "hisilicon_wdt", + .id = UCLASS_WDT, + .of_match = hisi_wdt_ids, + .of_to

[PATCH v8 16/16] doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation

2024-01-19 Thread Apurva Nandan
TI K3 J784S4 and AM69 are new additions to the K3 SoC family. Add documentation about the J784S4 EVM and AM69 SK. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 1 + doc/board/ti/j784s4_evm.rst | 299

[PATCH v8 15/16] configs: Add am69_sk_* defconfig fragments

2024-01-19 Thread Apurva Nandan
From: Dasnavis Sabiya Add config fragments for am69_sk A72 and R5 configuration. This applies on to: j784s4_evm_a72_defconfig -> am69_sk_a72.config j784s4_evm_r5_defconfig -> am69_sk_r5.config The usage model (with the fragment) would be: make j784s4_evm_a72_defconfig am69_sk_a72.config make

[PATCH v8 14/16] configs: j784s4_evm: Add defconfig for j784s4 evm board

2024-01-19 Thread Apurva Nandan
Add defconfigs for building R5 U-Boot SPL and A72 U-Boot. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 2 + configs/j784s4_evm_a72_defconfig | 158 +++ configs/j784s4_evm_r5_defconfig | 153

[PATCH v8 13/16] arm: dts: Introduce am69-sk u-boot dts files

2024-01-19 Thread Apurva Nandan
From: Dasnavis Sabiya Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-am69-r5-sk.dts |

[PATCH v8 11/16] board: ti: j784s4: Add boot environment variables

2024-01-19 Thread Apurva Nandan
Add env file with necessary boot variables. Signed-off-by: Apurva Nandan --- board/ti/j784s4/j784s4.env | 17 + 1 file changed, 17 insertions(+) create mode 100644 board/ti/j784s4/j784s4.env diff --git a/board/ti/j784s4/j784s4.env b/board/ti/j784s4/j784s4.env new file mode

[PATCH v8 09/16] board: ti: j784s4: Add board support for J784S4 EVM

2024-01-19 Thread Apurva Nandan
Add board files for J784S4 EVM. SYS_DISABLE_DCACHE_OPS is selected in the Kconfig because J784S4/AM69 are a coherent architecture at A72 level by MSMC support. Signed-off-by: Hari Nagalla [ add env and board specific yaml files for binman ] Signed-off-by: Neha Malcom Francis [ cleaned up the

[PATCH v8 08/16] drivers: dma: Add support for J784S4 SoC

2024-01-19 Thread Apurva Nandan
Add support for DMA in J784S4 SoC. Signed-off-by: Jayesh Choudhary Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 ++

[PATCH v8 07/16] arm: mach-k3: j784s4: Add clk and power support

2024-01-19 Thread Apurva Nandan
Add clk and device data which can be used by respective drivers to configure clocks and PSC. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Sean Anderson Reviewed-by: Nishanth Menon Reviewed-by: Bryan Brattlof --- arch/arm/mach-k3/r5/j784s4/Makefile| 7 +

[PATCH v8 06/16] soc: ti: k3-socinfo: Add entry for J784S4 SoC

2024-01-19 Thread Apurva Nandan
Add support for J784S4 SoC Identification. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon --- arch/arm/mach-k3/include/mach/hardware.h | 1 + drivers/soc/soc_ti_k3.c | 3 +++ 2 files changed, 4 insertions(+) diff --git

[PATCH v8 05/16] arm: mach-k3: Sort SoC JTAG_ID entries

2024-01-19 Thread Apurva Nandan
Sort JTAG_IDs for K3 SoCs in hardware.h in alphabetical order. Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon --- arch/arm/mach-k3/include/mach/hardware.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-k3/include/mach/hardware.h

[PATCH v8 04/16] arm: dts: Add bootph-all for memory node

2024-01-19 Thread Apurva Nandan
memory node is used by fdtdec_setup_mem_size_base() and fdtdec_setup_memory_banksize() during dram_init(), so use bootph-all to enable for all stages. Signed-off-by: Apurva Nandan --- arch/arm/dts/k3-am69-sk.dts| 1 + arch/arm/dts/k3-j784s4-evm.dts | 1 + 2 files changed, 2 insertions(+)

[PATCH v8 02/16] arm: mach-k3: Add basic support for J784S4 SoC definition

2024-01-19 Thread Apurva Nandan
Add J784S4 initialization files for initial SPL boot. config SYS_K3_MCU_SCRATCHPAD_BASE default value is same for J721E, J721S2, J784S4. So combined them into a single default. Signed-off-by: Hari Nagalla [ add firewall configurations and change the R5 MCU scratchpad ] Signed-off-by: Manorit

[PATCH v8 01/16] arm: mach-k3: Kconfig: Sort SOC_K3 config entries

2024-01-19 Thread Apurva Nandan
Sort SOC_K3 config entries in alphabetical order for clean up. Signed-off-by: Apurva Nandan --- arch/arm/mach-k3/Kconfig | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig index 03898424c9..f0ed5c6128 100644

[PATCH v8 00/16] Introduce initial TI's J784S4 and AM69 support

2024-01-19 Thread Apurva Nandan
Hello Everyone! This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM. The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree. All other patches are specific to

Re: [PATCH v1] net: sun8i-emac: Add support for fixed-link phy

2024-01-19 Thread Andre Przywara
On Tue, 16 Jan 2024 19:58:56 +0300 Maxim Kiselev wrote: Hi Maxim, > вт, 16 янв. 2024 г. в 03:18, Andre Przywara : > > > > On Thu, 15 Jun 2023 00:44:06 +0300 > > Maxim Kiselev wrote: > > > > Hi Maxim, > > > > > From: Maksim Kiselev > > > > > > Based on dt-specs fixed-link doesn't require

[PATCH] wandboard: Convert to watchdog driver model

2024-01-19 Thread Fabio Estevam
Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset. Signed-off-by: Fabio Estevam ---

Re: [PULL] Pull request for u-boot master / v2024.04 = u-boot-stm32-20240119

2024-01-19 Thread Tom Rini
On Fri, Jan 19, 2024 at 05:59:07PM +0100, Patrice CHOTARD wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot/master, v2024.04: > u-boot-stm32-20240119 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/19379 > >

Re: [PATCH] headers: don't depend on errno.h being available

2024-01-19 Thread Tom Rini
On Thu, Jan 18, 2024 at 07:10:47PM +0100, max.oss...@gmail.com wrote: > From: Max Krummenacher > > These headers follow the pattern: > > | #if CONFIG_IS_ENABLED(FANCY_FEATURE) > | void foo(void); > | #else > | static inline void foo(void) { return -ENOSYS; } > | #endif > > In the #else

[PULL] Pull request for u-boot master / v2024.04 = u-boot-stm32-20240119

2024-01-19 Thread Patrice CHOTARD
Hi Tom Please pull the STM32 related patches for u-boot/master, v2024.04: u-boot-stm32-20240119 CI status: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/19379 The following changes since commit f7cca7ccc5117eaafcc2bde91ad1bed6fee7cfc3: Revert "test: hush: dollar

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Jens Maus
> Am 19.01.2024 um 17:29 schrieb Ivan T. Ivanov : > >> So you say with your own u-boot.bin you see serial U-Boot output after that >> „NOTICE: BL31: …“ lines? On that special UART port on the rpi5 or on the >> UART on the GPIO header? >> > > Yes :-) See attached log file. Really strange

Re: Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Ivan T. Ivanov
On 01-19 17:12, Jens Maus wrote: > >> > >> On the HDMI port, right? But what about the serial UART output? > > > > Yes, I can see serial output from U-Boot. I am using one of these > > simple USB<->UART cables. You can see serial output when you boot > > with RPiOS, when you use "Raspberry Pi

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Jens Maus
> Am 19.01.2024 um 15:24 schrieb Ivan T. Ivanov : > >> On 19 Jan 2024, at 16:08, Jens Maus wrote: >> >> On the HDMI port, right? But what about the serial UART output? > > Yes, I can see serial output from U-Boot. I am using one of these > simple USB<->UART cables. You can see serial output

Re: [PATCH] getchar(): Correct usage

2024-01-19 Thread Tom Rini
On Tue, Jan 09, 2024 at 05:57:16PM -0500, Tom Rini wrote: > The function getchar() returns an 'int' and not a 'char'. Coverity notes > that "Assigning the return value of getchar to char ... truncates its value." > and so for the most part we can resolve this easily by using 'int' as > intended,

Re: [PATCH] cmd: license: Add CONFIG_GZIP dependency

2024-01-19 Thread Tom Rini
On Thu, Jan 11, 2024 at 12:58:19PM +, Ivan Orlov wrote: > 'License' command processing code could be successfully compiled only > when CONFIG_GZIP option is enabled, otherwise it can't find the 'gunzip' > function definition (it is defined in lib/gunzip.c). > > Add CONFIG_GZIP dependency to

Re: [PATCH] cmd: nvedit: Fix typo in 'illegal character' error

2024-01-19 Thread Tom Rini
On Mon, Jan 08, 2024 at 05:20:45PM +, Ivan Orlov wrote: > Fix a typo: add a space after the single quote in 'illegal character' > error message in 'env set' command > > Signed-off-by: Ivan Orlov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] image-host: refactor and protect for very long filenames

2024-01-19 Thread Tom Rini
On Mon, Jan 08, 2024 at 03:24:30PM +0100, Hugo Cornelis wrote: > This patch adds a function fit_image_read_key_iv_data that checks the > return value of snprintf and allows to generate a sensible error > message when generating binary images using filenames that are too > long for the OS to

Re: [PATCH v4] drivers: pci: Fix dm_pci_map_bar() to support 64b BARs

2024-01-19 Thread Tom Rini
On Wed, Jan 10, 2024 at 04:59:02AM +, Moritz Fischer wrote: > This enables 64b BARs if CONFIG_SYS_PCI_64BIT is enabled. > > Reviewed-by: Philip Oberfichtner > Reviewed-by: Simon Glass > Signed-off-by: Moritz Fischer Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH v2 RESEND 2/2] nvme: Update nvme_scan_namespace to keep trying on busy

2024-01-19 Thread Tom Rini
On Wed, Jan 10, 2024 at 05:04:48AM +, Moritz Fischer wrote: > A busy controller shouldn't be game-over for all controllers, > so keep trying on hitting -EBUSY. > > This change brings the actual behavior of the routine in line > with what the descriptions says. > > Fixes: 982388eaa991

Re: [PATCH v2 RESEND 1/2] nvme: Fix error code and log to indicate busy

2024-01-19 Thread Tom Rini
On Wed, Jan 10, 2024 at 05:04:47AM +, Moritz Fischer wrote: > Return -EBUSY if controller is found busy rather than -ENOMEM > and update the error message accordingly. > > Fixes: 982388eaa991 ("nvme: Add NVM Express driver support") > Reviewed-by: Simon Glass > Signed-off-by: Moritz Fischer

Re: [PATCH] iommu: dont fail silently

2024-01-19 Thread Tom Rini
On Thu, Jan 04, 2024 at 05:12:22PM +, Caleb Connolly wrote: > When attempting to probe a device which has an associated IOMMU, if the > IOMMU device can't be found (no driver, disabled driver, driver failed > to probe, etc) then we currently fail to probe the device with no > discernable

Re: [PATCH 2/2] lib: rsa: Allow legacy URI specification without "pkcs11:"

2024-01-19 Thread Tom Rini
On Fri, Jan 05, 2024 at 03:08:04PM +0100, Csókás Bence wrote: > But emit a warning for it. Then we can remove support when > everyone had time to update their scripts, docs, CI etc. > > Fixes: ece85cc020 rsa: use pkcs11 uri as defined in rfc7512 > > Signed-off-by: Csókás Bence Applied to

Re: [PATCH 1/2] lib: rsa: Fix PKCS11 URI if one is not given in `keydir`

2024-01-19 Thread Tom Rini
On Fri, Jan 05, 2024 at 03:08:03PM +0100, Csókás Bence wrote: > If `keydir` is not present, we need to build a PKCS11 URI > from just the key name. In this case, we *do* need 'pkcs11:' > > Fixes: ece85cc020 rsa: use pkcs11 uri as defined in rfc7512 > > Signed-off-by: Csókás Bence Applied to

Re: [PATCH 1/1] test: Skip cleanup test if not built out of tree

2024-01-19 Thread Tom Rini
On Mon, Jan 08, 2024 at 10:11:00PM +0100, Tobias Deiminger wrote: > 42c0e5bb054d ("test: Find leftovers after clean/mrproper") assumes out > of tree builds. test_clean and test_mrproper fail if the assumption > isn't met. > > However there are valid scenarios where tests run with in source

Re: [PATCH] test/py: bootstage: Add test for bootstage command

2024-01-19 Thread Tom Rini
On Tue, Jan 09, 2024 at 02:39:57PM +0530, Love Kumar wrote: > Add test cases for bootstage command to print the bootstage report, to > stash the data into memory and to unstash the data from memory. > > Signed-off-by: Love Kumar Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH 1/1] get_maintainer.pl: slightly modify penguin_chief

2024-01-19 Thread Tom Rini
On Thu, Jan 11, 2024 at 05:51:27PM +0100, Anthony Loiseau wrote: > From: Anthony Loiseau > > Penguin chiefs are actually stripped out from get_maintainer results unless > --git-chief-penguins is provided, which appends them to all results instead. > > This is a issue for U-Boot since Tom Rini

Re: [PATCH 2/2] smbios: fix matching issues for table types

2024-01-19 Thread Tom Rini
On Thu, Jan 11, 2024 at 04:39:36PM +0200, Ilias Apalodimas wrote: > commit 738b34668f28 ("smbios: Fallback to the default DT if sysinfo nodes are > missing") > allowed the code to fallback and fill in SMBIOS tables with properties > from the compatible and product nodes of the DT, in case the >

Re: [PATCH 1/2] smbios: shorten sysinfo_str declarations and use

2024-01-19 Thread Tom Rini
On Thu, Jan 11, 2024 at 04:39:35PM +0200, Ilias Apalodimas wrote: > sysinfo_str is a bit too long and makes indentation weird. Shorten it > to si_str. > > Signed-off-by: Ilias Apalodimas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] smbios: buffer overflow when zeroing entry point

2024-01-19 Thread Tom Rini
On Thu, Jan 11, 2024 at 07:34:08AM +0100, Heinrich Schuchardt wrote: > A SMBIOS 3 entry point has a different length than an SMBIOS 2.1 entry > point. > > Fixes: 70924294f375 ("smbios: Use SMBIOS 3.0 to support an address above 4GB") > Fixes: 1c5f6fa3883d ("smbios: Drop support for SMBIOS2

Re: [PATCH] arch: mach-k3: Fix incorrect mapping of higher DDR addresses as device memory

2024-01-19 Thread Tom Rini
On Tue, Jan 09, 2024 at 02:15:51PM +0530, Sekhar Nori wrote: > Entry for physical address 0x5 in memory map table for MMU > configuration is spilling over and inadvertently making DDR available at > higher address (above 4GB address space) get mapped as device memory > (nGnRnE). > > Fix

Re: [PATCH] board: ti: am64: Support TMDS64EVM

2024-01-19 Thread Tom Rini
On Mon, Jan 08, 2024 at 03:16:50PM +0200, Roger Quadros wrote: > The TMDS64EVM [1] ships with AM64X SR2.0 HS-FS chip > and a slightly different board name in the board information > EEPROM header. Support this board. > > [1] https://www.ti.com/tool/TMDS64EVM > > Gets rid of below message at

Re: [PATCH 2/2] include: env: ti: add default for do_main_cpsw0_qsgmii_phyinit

2024-01-19 Thread Tom Rini
On Mon, Jan 08, 2024 at 01:48:49PM +0530, Manorit Chawdhry wrote: > By default this variable is unset and this causes the test condition to > fail on devices that don't have this defined. Set a default value for > this. > >=> boot >## Error: "main_cpsw0_qsgmii_phyinit" not defined >

Re: [PATCH 1/2] include: env: ti: ti_common: Fix a missing semicolon

2024-01-19 Thread Tom Rini
On Mon, Jan 08, 2024 at 01:48:48PM +0530, Manorit Chawdhry wrote: > Fix a missing semicolon that leads to syntax error while booting j721s2. > > Importing environment from mmc1 ... > syntax error at 'run'HUSH died! > > Fixes: 0d72b0f2f83b ("include: env: ti: ti_common: Run >

[PATCH v2] ARM: imx: Configure GIC clock parent on Data Modul i.MX8M Plus eDM SBC

2024-01-19 Thread Marek Vasut
The CONFIG_SPL_BOARD_INIT lets SPL common code call spl_board_init() during the SPL start up. On this particular system, spl_board_init() is used to reconfigure GIC clock parent to PLL2 500M, which is the configuration expected by the Linux kernel. Enable SPL_BOARD_INIT and fill in the GIC clock

Re: [PATCH v2 1/2] board: ti: *-cfg.yaml: Adhere to yamllint rules

2024-01-19 Thread Tom Rini
On Fri, Jan 05, 2024 at 05:09:16PM +0530, Neha Malcom Francis wrote: > Clean up all configuration files to adhere to yamllint rules. > > Signed-off-by: Neha Malcom Francis > Suggested-by: Nishanth Menon After fixing more yamllint problems on newly merged platforms, Applied to u-boot/master,

Re: [PATCH v2 2/2] tools: binman: ti_board_cfg: Check for linting problems

2024-01-19 Thread Tom Rini
On Fri, Jan 05, 2024 at 05:09:17PM +0530, Neha Malcom Francis wrote: > Use yamllint for checking whether YAML configuration files are adhering > to default yamllint rules. > > Signed-off-by: Neha Malcom Francis > Suggested-by: Nishanth Menon Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/1] cmd: bootflow: remove dead code in do_bootflow_cmdline()

2024-01-19 Thread Tom Rini
On Thu, Jan 11, 2024 at 09:14:33AM +0100, Heinrich Schuchardt wrote: > Checking argc < 3 twice is redundant. > > Addresses-Coverity-ID: 477198 Logically dead code > Fixes: 921f63e57238 ("bootflow: Allow setting a cmdline arg with no value") > Signed-off-by: Heinrich Schuchardt Applied to

Re: [PATCH 1/1] boot: superfluous assignment in bootflow_menu_new()

2024-01-19 Thread Tom Rini
On Sun, Jan 07, 2024 at 10:01:07AM +0100, Heinrich Schuchardt wrote: > ret is assigned a value 0 which is never used but > is immediately overwritten in the next statement. > > Addresses-Coverity-ID: 453304 ("Unused value") > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks!

Re: [PATCH 1/1] boot: remove dead code in bootflow_check()

2024-01-19 Thread Tom Rini
On Sun, Jan 07, 2024 at 09:43:40AM +0100, Heinrich Schuchardt wrote: > The 'return 0;' statement is not reachable. Remove it. > 'else' is superfluous after an if statement with return. > > Addresses-Coverity-ID: 352451 ("Logically dead code") > Signed-off-by: Heinrich Schuchardt Applied to

Re: [resend PATCH] bootdev: avoid infinite probe loop

2024-01-19 Thread Tom Rini
On Thu, Jan 04, 2024 at 04:03:35PM +, Caleb Connolly wrote: > Sometimes, when only one bootdev is available, and it fails to probe, we > end up in an infinite loop calling probe() on the same device over and > over. With only debug level log output. > > Break the loop if we fail to probe the

[PATCH v2] ARM: imx: Enable SPL_BOARD_INIT on DH i.MX8M Plus DHCOM

2024-01-19 Thread Marek Vasut
The CONFIG_SPL_BOARD_INIT lets SPL common code call spl_board_init() during the SPL start up. On this particular system, spl_board_init() is used to reconfigure GIC clock parent to PLL2 500M, which is the configuration expected by the Linux kernel. Enable SPL_BOARD_INIT . Set GIC clock to 500 MHz

Re: Pull request: u-boot-rockchip-20240119

2024-01-19 Thread Tom Rini
behavior" (2024-01-18 11:38:25 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20240119 > > for you to fetch changes up to c16c7ac2fe69f3cebbfc921c5b023dccc12cd198: > >

Re: [PATCH v4 00/11] An effort to bring DT bindings compliance within U-Boot

2024-01-19 Thread Nishanth Menon
On 16:05-20240110, Sumit Garg wrote: [...] > Prerequisite > > > This patch series requires devicetree-rebasing git repo to be added as a > subtree to the main U-Boot repo via: > > $ git subtree add --prefix dts/upstream \ > >

Re: [PATCH v2 1/2] part: Add a function to find ESP partition

2024-01-19 Thread mchitale
Hi Heinrich, On Tue, 2024-01-16 at 17:14 +0100, Heinrich Schuchardt wrote: > On 16.01.24 14:45, Heinrich Schuchardt wrote: > > On 16.01.24 13:36, Mayuresh Chitale wrote: > > > If a disk has an EFI system partition (ESP) then it can be used > > > to > > > locate the boot files. Add a function to

[PATCH v7 5/8] arm: armv8: save boot arguments

2024-01-19 Thread Raymond Mao
Save boot arguments x[0-3] into an array for handover of bloblist from previous boot stage. Signed-off-by: Raymond Mao --- Changes in v2 - New patch file created for v2. Changes in V5 - Drop the dependence on OF_BOARD. Changes in V7 - Exclude the saved_args when BLOBLIST is disabled.

[PATCH v7 RESEND 0/8] Handoff bloblist from previous boot stage

2024-01-19 Thread Raymond Mao
This patch set adds/adapts a few bloblist APIs and implements Arm arch custom function to retrieve the bloblist (aka. Transfer List) from previous loader via boot arguments when BLOBLIST option is enabled and all boot arguments are compliant to the register conventions defined in the Firmware

[PATCH v7 8/8] dts: OF_HAS_PRIOR_STAGE should depend on !BLOBLIST

2024-01-19 Thread Raymond Mao
When BLOBLIST is enabled, FDT is expected to be from bloblist carried from previous stage, instead of from OF_BOARD, therefore only enable OF_HAS_PRIOR_STAGE when BLOBLIST is disabled. Signed-off-by: Raymond Mao --- Changes in V7 - Initial patch . dts/Kconfig | 1 + 1 file changed, 1

[PATCH v7 7/8] bloblist: Load the bloblist from the previous loader

2024-01-19 Thread Raymond Mao
During bloblist initialization, load the bloblist via boot arguments from the previous loader. If a valid bloblist exists in boot arguments, relocate it into the fixed bloblist memory region. If not, fallback to support BLOBLIST_ADDR or BLOBLIST_ALLOC. Signed-off-by: Raymond Mao --- Changes in

[PATCH v7 6/8] arm: Get bloblist from boot arguments

2024-01-19 Thread Raymond Mao
Add arch custom function to get bloblist from boot arguments. Check whether boot arguments aligns with the register conventions defined in FW Handoff spec v0.9. Signed-off-by: Raymond Mao --- Changes in v2 - Remove low level code for copying boot arguments. - Refactor board_fdt_blob_setup() and

[PATCH v7 5/8] arm: armv8: save boot arguments

2024-01-19 Thread Raymond Mao
Save boot arguments x[0-3] into an array for handover of bloblist from previous boot stage. Signed-off-by: Raymond Mao --- Changes in v2 - New patch file created for v2. Changes in V5 - Drop the dependence on OF_BOARD. Changes in V7 - Exclude the saved_args when BLOBLIST is disabled.

[PATCH v7 4/8] arm: armv7: save boot arguments

2024-01-19 Thread Raymond Mao
Save boot arguments r[0-3] into an array for handover of bloblist from previous boot stage. Signed-off-by: Raymond Mao --- Changes in v2 - New patch file created for v2. Changes in v3 - Swap value of r0 with r2. Changes in v4 - Fix a bug when saving the boot args. Changes in V5 - Drop the

[PATCH v7 3/8] bloblist: refactor of bloblist_reloc()

2024-01-19 Thread Raymond Mao
The current bloblist pointer and size can be retrieved from global data, so we don't need to pass them from the function arguments. This change also help to remove all external access of gd->bloblist outside of bloblist module. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas ---

[PATCH v7 2/8] bloblist: check bloblist with specified buffer size

2024-01-19 Thread Raymond Mao
Instead of expecting the bloblist total size to be the same as the pre-allocated buffer size, practically we are more interested in whether the pre-allocated buffer size is bigger than the bloblist total size. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - New

[PATCH v7 1/8] bloblist: add API to check the register conventions

2024-01-19 Thread Raymond Mao
Add bloblist_check_reg_conv() to check whether the bloblist is compliant to the register conventions defined in Firmware Handoff specification. This API can be used for all Arm platforms. Signed-off-by: Raymond Mao --- Changes in v2 - Refactor of bloblist_check_reg_conv(). Changes in v3 -

[PATCH v7 0/7] Handoff bloblist from previous boot stage

2024-01-19 Thread Raymond Mao
This patch set adds/adapts a few bloblist APIs and implements Arm arch custom function to retrieve the bloblist (aka. Transfer List) from previous loader via boot arguments when BLOBLIST option is enabled and all boot arguments are compliant to the register conventions defined in the Firmware

Re: [PATCH] stm32mp2: Fix CONFIG_STM32MP25X flag usage

2024-01-19 Thread Patrice CHOTARD
On 1/19/24 15:45, Patrick DELAUNAY wrote: > Hi > > On 1/9/24 15:00, Patrice Chotard wrote: >> "#if" was used instead of "#ifdef" >> >> Fixes: 01a701994b05 ("stm32mp2: initial support") >> Signed-off-by: Patrice Chotard >> --- >> >>   arch/arm/mach-stm32mp/include/mach/stm32.h | 2 +- >>   1

Re: [PATCH] stm32mp2: Fix CONFIG_STM32MP25X flag usage

2024-01-19 Thread Patrick DELAUNAY
Hi On 1/9/24 15:00, Patrice Chotard wrote: "#if" was used instead of "#ifdef" Fixes: 01a701994b05 ("stm32mp2: initial support") Signed-off-by: Patrice Chotard --- arch/arm/mach-stm32mp/include/mach/stm32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/2] arm: dts: Add Itap Delay Value For High Speed DDR

2024-01-19 Thread Nishanth Menon
On 07:20-20240110, Bryan Brattlof wrote: > On January 10, 2024 thus sayeth Bhavya Kapoor: > > > > On 08/01/24 7:35 pm, Bryan Brattlof wrote: > > > Hi Bhavya! > > > > > > On January 8, 2024 thus sayeth Bhavya Kapoor: > > > > This Series adds Itap Delay Value for DDR52 speed mode for eMMC in > >

[PATCH] test/py: scsi: Add test for scsi commands

2024-01-19 Thread Love Kumar
Add a following test cases for scsi commands: scsi_reset - To reset SCSI controller scsi_info - To show available SCSI devices scsi_scan - To (re-)scan SCSI bus scsi_device - To show or set surrent device scsi_part - To print partition table of selected SCSI device Signed-off-by: Love Kumar ---

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

2024-01-19 Thread Love Kumar
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 for different SPI flash family such as single SPI, QSPI, and OSPI. Signed-off-by: Love Kumar ---

[PATCH] test/py: nand: Add tests for NAND flash device

2024-01-19 Thread Love Kumar
Add tests for nand commands to test various NAND flash operations such as erase, write and read. Signed-off-by: Love Kumar --- test/py/tests/test_nand.py | 201 + 1 file changed, 201 insertions(+) create mode 100644 test/py/tests/test_nand.py diff --git

[PATCH] test/py: usb: Add tests for USB device

2024-01-19 Thread Love Kumar
Add the test cases for usb commands to test its various functionality such as start, stop, reset, info, tree, storage, dev, part, ls, load, and save. It also adds different file systems cases such as fat32, ext2 and ext4. Signed-off-by: Love Kumar --- test/py/tests/test_usb.py | 626

[PATCH] test/py: mmc: Add tests for MMC device

2024-01-19 Thread Love Kumar
Add the test cases for mmc commands to test its various functionality such as mmc list, dev, info, rescan, part, ls, load, and save. It also adds different file systems cases such as fat32, ext2 and ext4. Signed-off-by: Love Kumar --- test/py/tests/test_mmc.py | 671

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Ivan T. Ivanov
> On 19 Jan 2024, at 16:08, Jens Maus wrote: > > >> Am 19.01.2024 um 15:06 schrieb Ivan T. Ivanov : >> >> On 01-19 14:54, Jens Maus wrote: >>> Am 19.01.2024 um 14:46 schrieb Ivan T. Ivanov : Same here, expect that they are more memory banks, of course. It is really

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Jens Maus
> Am 19.01.2024 um 15:06 schrieb Ivan T. Ivanov : > > On 01-19 14:54, Jens Maus wrote: >> >>> Am 19.01.2024 um 14:46 schrieb Ivan T. Ivanov : >>> >>> Same here, expect that they are more memory banks, of course. >>> It is really strange that you don't seen even single message >>> from the

Re: [PATCH] ARM: stm32: Set stdio to serial on DH STM32MP15xx DHSOM

2024-01-19 Thread Patrice CHOTARD
On 1/16/24 08:19, Patrice CHOTARD wrote: > Hi Marek > > On 1/13/24 18:57, Marek Vasut wrote: >> In case CONSOLE_MUX and SYS_CONSOLE_IS_IN_ENV are enabled, the console >> stdin, stdout, stderr must be defined in environment. Define the default >> settings to fix the following warning on boot:

Re: Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Ivan T. Ivanov
Hi, On 01-19 14:54, Jens Maus wrote: > > > Am 19.01.2024 um 14:46 schrieb Ivan T. Ivanov : > > > > Same here, expect that they are more memory banks, of course. > > It is really strange that you don't seen even single message > > from the U-Boot.. > > Indeed. Not a single line, nor any U-Boot

Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Jens Maus
> Am 19.01.2024 um 14:46 schrieb Ivan T. Ivanov : > > Same here, expect that they are more memory banks, of course. > It is really strange that you don't seen even single message > from the U-Boot.. Indeed. Not a single line, nor any U-Boot logo or anything on HDMI. Do you see any debug

Re: [PATCH v2 06/32] serial: msm: add debug UART

2024-01-19 Thread Caleb Connolly
On 18/01/2024 21:54, Ramon Fried wrote: > On Tue, Dec 19, 2023 at 6:04 PM Caleb Connolly > wrote: >> >> Introduce support for early debugging. >> >> Signed-off-by: Caleb Connolly >> --- >> drivers/serial/Kconfig | 8 >> drivers/serial/serial_msm.c | 32

Re: Re: [PATCH v4 0/6] rpi5: initial support

2024-01-19 Thread Ivan T. Ivanov
+ u-boot@lists.denx.de I am not sure how I drop the list in my last email, sorry. On 01-19 12:56, Jens Maus wrote: > Hi Ivan, > > > Am 19.01.2024 um 12:22 schrieb Ivan T. Ivanov : > > > > On 01-19 11:49, Jens Maus wrote: > >>> Am 19.01.2024 um 10:20 schrieb Stefan Wahren : > >>> > >>> Another

[PATCH RFC 2/2] clk: add clock framework for HiSilicon SoCs

2024-01-19 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen Hi3798 Series SoCs have a CRG (Clock Reset Generator) module which manages all clocks and resets of the SoC. The first supported chip is Hi3798MV200. The unused clocks are not registered to save space and time. Only necessary clocks are implemented right now. Signed-off-by:

[PATCH RFC 0/2] clk: add HiSilicon CLK framework

2024-01-19 Thread Yang Xiwen via B4 Relay
| 55 + include/dt-bindings/clock/histb-clock.h | 4 + include/linux/clk-provider.h| 6 + 9 files changed, 410 insertions(+) --- base-commit: f7cca7ccc5117eaafcc2bde91ad1bed6fee7cfc3 change-id: 20240119-b4-hisi-clk-88075b46c359 Best regards, -- Yang Xiwen

[PATCH RFC 1/2] clk: ccf: Export clk_register_mux_table() in linux/clk-provider.h

2024-01-19 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen This function is used by HiSilicon Clock Framework. Signed-off-by: Yang Xiwen --- include/linux/clk-provider.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index b8acacd49e..952439ad39 100644 ---

[PATCH RFC 2/2] clk: add clock framework for HiSilicon SoCs

2024-01-19 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen Hi3798 Series SoCs have a CRG (Clock Reset Generator) module which manages all clocks and resets of the SoC. The first supported chip is Hi3798MV200. The unused clocks are not registered to save space and time. Only necessary clocks are implemented right now. Signed-off-by:

[PATCH RFC 0/2] clk: add HiSilicon CLK framework

2024-01-19 Thread Yang Xiwen via B4 Relay
| 55 + include/dt-bindings/clock/histb-clock.h | 4 + include/linux/clk-provider.h| 6 + 9 files changed, 410 insertions(+) --- base-commit: f7cca7ccc5117eaafcc2bde91ad1bed6fee7cfc3 change-id: 20240119-b4-hisi-clk-88075b46c359 Best regards, -- Yang Xiwen

[PATCH RFC 1/2] clk: ccf: Export clk_register_mux_table() in linux/clk-provider.h

2024-01-19 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen This function is used by HiSilicon Clock Framework. Signed-off-by: Yang Xiwen --- include/linux/clk-provider.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index b8acacd49e..952439ad39 100644 ---

  1   2   >