Re: [PATCH] env: ti: ti_common.env: Fix get_overlaystring for FIT Image

2023-09-21 Thread Manorit Chawdhry
Hi On 10:28-20230919, Manorit Chawdhry wrote: > After the refactor with conf- nodes in fitImage, overlaystring wasn't > didn't handle the new conf- nodes in FIT Booting. Fix get_overlaystring > to handle conf- nodes. > > Fixes: 837833a724b7 ("environment: ti: Add get_fit_config command to get

Re: [PATCH v2 0/2] Fix issues for small sized data reads

2023-09-21 Thread Michal Simek
On 9/15/23 05:17, Venkatesh Yadav Abbarapu wrote: Change flush cache to invalidate cache and also fix cache related issues are seen with small sized data reads. Due to this, proper data is not read. Also some times sf probe fails randomly. Ashok Reddy Soma (1): spi: zynqmp_qspi: Change

Re: [PATCH] arm64: versal: Add SelectMAP boot mode identification

2023-09-21 Thread Michal Simek
On 9/19/23 14:47, Polak, Leszek wrote: Add missing SelectMAP bootmode for proper identification during boot. The SelectMAP configuration interface provides an 8-bit, 16-bit or 32-bit bidirectional data bus interface to the Versal FPGA configuration logic that can be used for both

[PATCH v7 1/2] configs: Add support in Kconfig and convert for armada boards

2023-09-21 Thread Venkatesh Yadav Abbarapu
From: Algapally Santosh Sagar Move the DEFAULT_ENV_IS_RW to Kconfig for easier configuration. Hence, add the CONFIG_DEFAULT_ENV_IS_RW config to the defconfig files to allow enabling them for armada boards. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Venkatesh Yadav Abbarapu

[PATCH v3 2/8] sandbox: add sandbox sm uclass driver

2023-09-21 Thread Alexey Romanov
This patch adds sandbox secure monitor driver. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- drivers/sm/Makefile | 1 + drivers/sm/sandbox-sm.c | 76 + include/sandbox-sm.h| 18 ++ 3 files changed, 95 insertions(+) create

[PATCH v7 2/2] serial: zynqmp: Fetch baudrate from dtb and update

2023-09-21 Thread Venkatesh Yadav Abbarapu
From: Algapally Santosh Sagar The baudrate configured in .config is taken by default by serial. If change of baudrate is required then the .config needs to changed and u-boot recompilation is required or the u-boot environment needs to be updated. To avoid this, support is added to fetch the

[PATCH v3 1/8] drivers: introduce Secure Monitor uclass

2023-09-21 Thread Alexey Romanov
At the moment, we don't have a common API for working with SM, only the smc_call() function. This approach is not generic and difficult to configure and maintain. This patch adds UCLASS_SM with the generic API: - sm_call() - sm_call_write() - sm_call_read() These functions operate with struct

[PATCH v7 0/2] Add support to fetch baudrate from dtb

2023-09-21 Thread Venkatesh Yadav Abbarapu
In this patch series - Add support in Kconfig and convert for armada boards - Fetch baudrate from the dtb and update Changes in v7: - Updated the commit message. Changes in v6: - Changed Kconfig OF_SERIAL_DT_BAUD to OF_SERIAL_BAUD. - Added IS_ENABLED() in place of #ifdef CONFIG_OF_SERIAL_AUD

[PATCH v3 0/8] Add SM uclass and Meson SM driver

2023-09-21 Thread Alexey Romanov
Hello! At the moment, there is no single general approach to using secure monitor in U-Boot, there is only the smc_call() function, over which everyone builds their own add-ons. This patchset is designed to solve this problem by adding a new uclass - SM_UCLASS. This UCLASS export following

Re: [PATCH v7 2/2] serial: zynqmp: Fetch baudrate from dtb and update

2023-09-21 Thread Michal Simek
On 9/21/23 06:21, Venkatesh Yadav Abbarapu wrote: From: Algapally Santosh Sagar The baudrate configured in .config is taken by default by serial. If change of baudrate is required then the .config needs to changed and u-boot recompilation is required or the u-boot environment needs to be

[PATCH v3 6/8] drivers: introduce Meson Secure Monitor driver

2023-09-21 Thread Alexey Romanov
This patch adds an implementation of the Meson Secure Monitor driver based on UCLASS_SM. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- MAINTAINERS | 1 + drivers/sm/Kconfig| 7 ++ drivers/sm/Makefile | 1 + drivers/sm/meson-sm.c | 198

[PATCH] usbarmory: Add DM_I2C and DM_SERIAL support

2023-09-21 Thread Andrej Rosano
From: Andrej Rosano Use DM_I2C and DM_SERIAL as it is now mandatory. Signed-off-by: Andrej Rosano --- configs/usbarmory_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/usbarmory_defconfig b/configs/usbarmory_defconfig index 66c969f95e..277f055aef 100644

[PATCH v3 3/8] sandbox: dts: add meson secure monitor node

2023-09-21 Thread Alexey Romanov
We need this to test UCLASS_SM. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- arch/sandbox/dts/test.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index dffe10adbf..4475aa58a6 100644 --- a/arch/sandbox/dts/test.dts

[PATCH v3 4/8] sandbox: add tests for UCLASS_SM

2023-09-21 Thread Alexey Romanov
This patchs adds simple tests for Secure Monitor uclass. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- test/dm/Makefile | 1 + test/dm/sm.c | 65 2 files changed, 66 insertions(+) create mode 100644 test/dm/sm.c diff --git

[PATCH v3 8/8] arch: meson: use secure monitor driver

2023-09-21 Thread Alexey Romanov
Now we have to use UCLASS_SM driver instead of raw smc_call() function call. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- arch/arm/mach-meson/Kconfig | 1 + arch/arm/mach-meson/sm.c| 110 +++- 2 files changed, 58 insertions(+), 53

[PATCH v3 7/8] arch: meson: sm: set correct order of the includes

2023-09-21 Thread Alexey Romanov
The common.h header should always be first, followed by other headers in order, then headers with directories, then local files. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- arch/arm/mach-meson/sm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v3 5/8] sandbox: defconfig: enable CONFIG_SM option

2023-09-21 Thread Alexey Romanov
We use this option to test UCLASS_SM. Signed-off-by: Alexey Romanov Reviewed-by: Simon Glass --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index be46cae7aa..0745a4ecca 100644 ---

[GIT PULL] xilinx patches for v2024.01-rc1 v2

2023-09-21 Thread Michal Simek
Hi Tom, please pull these patches to your next branch. I am sending it as v2 in spite of v1 didn't really went through. I created tag but CI failed because of sandbox CI trace failure. After fixing it and reviewing by Simon I am adding it to be able to extend ofnode functions for getting

Re: [PATCH] ARM: vexpress_ca9x4: Add missing flash width config option

2023-09-21 Thread Kristian Amlie
On 20/09/2023 09:41, Patryk Biel wrote: Allow for a proper configuration of CFI flash banks avaialble on the vexpress_ca9x4 board. Without this option, the CFI flash incorrectly detects that the board has two banks of 32MB flash devices, while in reality, the board provides two flash banks,

[PATCH 1/1] cmd/exception: test RISC-V 16 bit aligned instruction

2023-09-21 Thread Heinrich Schuchardt
A 16 bit aligned instruction should generated an exception if the C extension is not available. Provide an 'extension ialign16' command for testing exception handling. For testing build qemu-riscv64_defconfig with CONFIG_RISCV_ISA_C=n and run with qemu-system-riscv64 -M virt -bios u-boot

[PATCH v2] env: ti: ti_common.env: Fix get_overlaystring for FIT Image

2023-09-21 Thread Manorit Chawdhry
After the refactor with conf- nodes in fitImage, overlaystring wasn't didn't handle the new conf- nodes in FIT Booting. Fix get_overlaystring to handle conf- nodes. Fixes: 837833a724b7 ("environment: ti: Add get_fit_config command to get FIT config string") Reported-by: Aniket Limaye

Re: [PATCH v2] cmd: sf: Fix the flash_is_unlocked api size parameter

2023-09-21 Thread Michal Simek
On 9/20/23 04:54, Venkatesh Yadav Abbarapu wrote: When flash erase is called with size parameter, code is checking if sectors are locked or not. But for checking, the whole device length minus offset is used instead of actual size which should be erased. That's why when only some sectors are

Re: [PATCH v1] fs: Fix SPL build if FS_LOADER is enabled

2023-09-21 Thread mchitale
On Thu, 2023-09-14 at 12:39 -0400, Tom Rini wrote: > On Thu, Sep 14, 2023 at 09:35:15PM +0530, Mayuresh Chitale wrote: > > > If FS_LOADER is enabled for the SPL then the build fails with the > > error: > > > > fs/fs.o:(.data.rel.fstypes+0x128): > > undefined reference to `smh_fs_set_blk_dev' > >

Re: [PATCH 1/4] mkimage: also honour -B even without external data

2023-09-21 Thread Rasmus Villemoes
On 21/09/2023 03.02, Simon Glass wrote: > Hi Rasmus, > > On Tue, 19 Sept 2023 at 05:37, Rasmus Villemoes > wrote: >> >> In some cases, using the "external data" feature is impossible or >> undesirable, but one may still want (or need) the FIT image to have a >> certain alignment. Also, given the

[PATCH v6 5/7] arm: dts: k3-am68: Sync from Linux tag v6.6-rc1

2023-09-21 Thread Manorit Chawdhry
The following commit syncs the device tree from Linux tag v6.6-rc1 to U-boot and fixes the following to be compatible with the future syncs - - Include k3-am68-sk-base-board.dts file Remove the duplicated pinmuxes from r5 and -u-boot.dtsi files and include k3-am68-sk-base-board.dts for

[PATCH v6 6/7] docs: board: ti: Add j721s2_evm documentation

2023-09-21 Thread Manorit Chawdhry
Add the documentation for J721S2-EVM and SK-AM68 TRM for J721S2/AM68: https://www.ti.com/lit/pdf/spruj28 Product Page for J721S2: https://www.ti.com/tool/J721S2XSOMXEVM Product Page for AM68: https://www.ti.com/tool/SK-AM68 Reviewed-by: Neha Malcom Francis Reviewed-by: Nishanth Menon

[PATCH v6 7/7] board: ti: j721s2: MAINTAINERS: Update the MAINTAINERS File.

2023-09-21 Thread Manorit Chawdhry
Update the MAINTAINERS file and propose a new MAINTAINER for j721s2 due to the previous MAINTAINER not being associated with TI. Reviewed-by: Nishanth Menon Signed-off-by: Manorit Chawdhry --- board/ti/j721s2/MAINTAINERS | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

Re: [PATCH v1 2/2] spl: Add support for booting from ESP

2023-09-21 Thread mchitale
On Thu, 2023-09-14 at 12:29 -0400, Tom Rini wrote: > On Thu, Sep 14, 2023 at 03:38:21PM +0530, Mayuresh Chitale wrote: > > > Some platforms as described by EBBR specification may store images > > in > > the FIRMWARE directory of the UEFI system partition(ESP). Add > > support > > to boot from the

[PATCH v6 4/7] arm: dts: k3-j721s2: Sync from Linux tag v6.6-rc1

2023-09-21 Thread Manorit Chawdhry
The following commit syncs the device tree from Linux tag v6.6-rc1 to U-boot and fixes the following to be compatible with the future syncs - - Include k3-j721s2-common-proc-board.dts file Remove the duplicated pinmuxes from r5 and -u-boot.dtsi files and include

[PATCH v6 1/7] configs: j721s2_evm_r5_defconfig: Increase malloc pool size in DRAM

2023-09-21 Thread Manorit Chawdhry
From: Udit Kumar The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't sufficient to load the new tispl.bin to enable loading of tispl.bin the size is increased by 256KB to 1.25MB. Cc: Nikhil M Jain Signed-off-by: Udit Kumar Reviewed-by: Nishanth Menon Signed-off-by: Manorit

[PATCH v6 2/7] Revert "arm: dts: k3-j7*: ddr: Update to 0.10 version of DDR config tool"

2023-09-21 Thread Manorit Chawdhry
The update causes instability in am68-sk boards so revert the patch in the meantime till fix is available. This reverts commit f1edf4bb6aa19732574ac23ca90cb9a0ba395ec1. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721e-ddr-evm-lp4-4266.dtsi | 98 +++---

[PATCH v6 0/7] J721S2 DTS Sync from v6.6-rc1 to u-boot

2023-09-21 Thread Manorit Chawdhry
The sync tries to ensure that U-boot remains functional with the updated Linux DTS and all the fixes from Linux move to U-boot during the sync. The series tries to sync from Linux v6.6-rc1 along with addition of the documentation for J721S2 that had been previously missing. DMA fixes [0] are

[PATCH v6 3/7] arm: mach-k3: j721s2: Add mcu_timer0 id to the dev list

2023-09-21 Thread Manorit Chawdhry
mcu_timer0 is used by u-boot as the tick-timer. Add it to the soc devices lsit so it an be enabled via the k3 power controller. Reviewed-by: Neha Malcom Francis Reviewed-by: Nishanth Menon Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/j721s2/dev-data.c | 1 + 1 file changed, 1

[PATCH v8 2/2] serial: zynqmp: Fetch baudrate from dtb and update

2023-09-21 Thread Venkatesh Yadav Abbarapu
From: Algapally Santosh Sagar The baudrate configured in .config is taken by default by serial. If change of baudrate is required then the .config needs to changed and u-boot recompilation is required or the u-boot environment needs to be updated. To avoid this, support is added to fetch the

[PATCH v8 0/2] Add support to fetch baudrate from dtb

2023-09-21 Thread Venkatesh Yadav Abbarapu
In this patch series - Add support in Kconfig and convert for armada boards - Fetch baudrate from the dtb and update Changes in v8: - Added test to cover fetch_baud_from_dtb. - Changed this check_valid_baudrate() to static and removed from serial.h - Fixed the compilation error. Changes in

[PATCH v8 1/2] configs: Add support in Kconfig and convert for armada boards

2023-09-21 Thread Venkatesh Yadav Abbarapu
From: Algapally Santosh Sagar Move the DEFAULT_ENV_IS_RW to Kconfig for easier configuration. Hence, add the CONFIG_DEFAULT_ENV_IS_RW config to the defconfig files to allow enabling them for armada boards. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Venkatesh Yadav Abbarapu

Re: [PATCH v5 00/20] x86: efi: Fixes and improvements for coreboot

2023-09-21 Thread Simon Glass
Hi Bin, On Thu, 21 Sept 2023 at 00:31, Bin Meng wrote: > > Hi Simon, > > On Thu, Sep 21, 2023 at 1:27 PM Bin Meng wrote: > > > > Hi Simon, > > > > On Wed, Sep 20, 2023 at 11:00 AM Simon Glass wrote: > > > > > > This little series fixes various bugs and annoyances in coreboot and > > >

Re: [PATCH] net: phy: xilinx-gmii2rgmii: Removed hardcoded phy address 0 for bridge

2023-09-21 Thread Michal Simek
On 9/15/23 06:50, Tejas Bhumkar wrote: Current code expects bridge phy address at 0 which is not correct expectation because bridge phy address is configurable. That's why update the code to read reg property to figure it out where bridge is and use it in phy creation code. Signed-off-by:

Re: [PATCH v2 0/3] trace: Fix flyrecord alignment issue

2023-09-21 Thread Michal Simek
On 9/15/23 14:12, Michal Simek wrote: Hi, sandbox is getting bigger and bigger and I have reached the case that adding some more functions ends up in CI loop failure. After some investigation I found that flyrecord header have incorrect information about data offset which is caused by

[PATCH v2 00/32] spl: Preparation for Universal Payload

2023-09-21 Thread Simon Glass
This series tidies up SPL a little and adds some core ofnode functions needed to support Universal Payload. It also includes a few minor fix-ups for sandbox. For SPL the changes include CONFIG naming, removing various #ifdefs and tidying up the FIT code. One notable piece of the ofnode

[PATCH 1/1] cmd/exception: support RISC-V compressed instruction

2023-09-21 Thread Heinrich Schuchardt
Eliminating the C extension on application processors is under discussion. Support emitting a compressed instruction. This will lead to an illegal instruction exception if the C extension is not implemented. For testing build qemu-riscv64_defconfig with CONFIG_RISCV_ISA_C=n and run with

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

2023-09-21 Thread mchitale
On Thu, 2023-09-14 at 12:29 -0400, Tom Rini wrote: > On Thu, Sep 14, 2023 at 03:38:20PM +0530, 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 find the ESP. > > > > Signed-off-by: Mayuresh Chitale > >

Re: [PULL] u-boot-riscv/master

2023-09-21 Thread Tom Rini
On Thu, Sep 21, 2023 at 09:36:01AM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit b9b83a86f0e84e837191db120c279a9cc0e3434b: > > Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh > (2023-09-17 09:25:42 -0400) > > are available in the Git

Re: [PATCH] RFT: mips: implement __udivdi3

2023-09-21 Thread Linus Walleij
On Thu, Sep 21, 2023 at 3:42 PM Daniel Schwierzeck wrote: > I played around a bit and following simplified code compiles on various > MIPS32 and MIPS64 boards. (E.g. "echo CONFIG_FS_SQUASHFS=y >> > configs/malta[|64|el|64el]_defconfig && make malta[|64|el|64el]_defconfig") > > > > /*

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-21 Thread Tom Rini
On Thu, Sep 21, 2023 at 04:00:24PM +0200, Daniel Schwierzeck wrote: [snip] > I just tested it, you can simply add an empty board/inteno/xg6846/Makefile and > remove board/inteno/xg6846/xg6846.c. But you can also remove the Makefile. > Just the Kconfig and MAINTAINERS file are needed. An empty

[PATCH 2/5] arm64: dts: imx8mp: Switch to DT overlays for i.MX8MP DHCOM SoM

2023-09-21 Thread Marek Vasut
Add DT overlays to support additional DH i.MX8MP DHCOM SoM 660-100 population options with 1x or 2x RMII PHY mounted on PDK2 or PDK3 carrier boards. Use SPL DTO support to apply matching SoM specific DTO to cater for the SoM differences. Remove ad-hoc patching of control DT from

[PATCH 3/5] arm64: dts: imx8mp: Update i.MX8MP DHCOM SoM DT to production rev.200

2023-09-21 Thread Marek Vasut
The current imx8mp-dhcom-som.dtsi describes prototype rev.100 SoM, update the DT to describe production rev.200 SoM which brings the following changes: - Fast SoC GPIOs exposed on the SoM edge connector - Slow GPIOs like component resets moved to I2C GPIO expander - ADC upgraded from TLA2024 to

[PATCH] dt-bindings: mtd: Add a schema for binman

2023-09-21 Thread Simon Glass
Binman[1] is a tool for creating firmware images. It allows you to combine various binaries and place them in an output file. Binman uses a DT schema to describe an image, in enough detail that it can be automatically built from component parts, disassembled, replaced, listed, etc. Images are

[PATCH 5/5] arm64: dts: imx8mp: Add DT overlay describing i.MX8MP DHCOM SoM rev.100

2023-09-21 Thread Marek Vasut
The current imx8mp-dhcom-som.dtsi describes production rev.200 SoM, add DT overlay which reinstates rev.100 SoM description to permit prototype rev.100 SoMs to be used until they get phased out. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Algapally Santosh Sagar Cc: Fabio

[PATCH 1/5] spl: fit: Add board level function to decide application of DTO

2023-09-21 Thread Marek Vasut
Add board-specific function used to indicate whether a DTO from fitImage configuration node 'fdt' property DT and DTO list should be applied onto the base DT or not applied. This is useful in case of DTOs which implement e.g. different board revision details, where such DTO should be applied on

[PATCH 4/5] arm64: dts: imx8mp: Drop i.MX8MP DHCOM rev.100 PHY address workaround from PDK3 DT

2023-09-21 Thread Marek Vasut
In case the i.MX8MP DHCOM rev.100 has been populated on the PDK3 carrier board, the on-SoM PHY PHYAD1 signal has been pulled high by the carrier board and changed the PHY MDIO address from 5 to 7. This has been fixed on production rev.200 SoM by additional buffer on the SoM PHYAD/LED signals,

Re: [PATCH 1/1] riscv: set fdtfile on VisionFive 2

2023-09-21 Thread Milan P . Stanić
On Thu, 2023-09-07 at 13:21, Heinrich Schuchardt wrote: > Multiple revisions of the StarFive VisionFive 2 board exist. They can be > identified by reading their EEPROM. > > Linux uses two differently named device-tree files. To load the correct > device-tree we need to set $fdtfile to the

[PATCH 1/4] configs: at91: sam9x60_curiosity: update sam9x60_curiosity_mmc_defconfig

2023-09-21 Thread Durai Manickam KR
- Enable Device model supported NAND driver configs in SDMMC defconfig. - Enable SYSRESET for Atmel/Microchip's platforms. Signed-off-by: Durai Manickam KR --- configs/sam9x60_curiosity_mmc_defconfig | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 2/4] configs: at91: sam9x60_curiosity: Add sam9x60_curiosity_nandflash_defconfig

2023-09-21 Thread Durai Manickam KR
Add boot from NAND flash support for sam9x60_curiosity. Signed-off-by: Durai Manickam KR --- board/atmel/sam9x60_curiosity/MAINTAINERS | 1 + configs/sam9x60_curiosity_nandflash_defconfig | 92 +++ 2 files changed, 93 insertions(+) create mode 100644

[PATCH 4/4] ARM: dts: at91: sam9x60_curiosity: fix eeprom compatible

2023-09-21 Thread Durai Manickam KR
The EEPROM memory on this board is microchip 24aa025e48 which is compatible with at24c02 with a page size of 16. Fix the compatible accordingly. Fixes: a79714f268 ("ARM: dts: Add device tree files for sam9x60_curiosity") Signed-off-by: Durai Manickam KR ---

[PATCH 3/4] ARM: dts: at91: sam9x60_curiosity: Enable NAND support

2023-09-21 Thread Durai Manickam KR
Enable the EBI and NAND flash controller. Define the pinctrl and partition table. Signed-off-by: Durai Manickam KR --- arch/arm/dts/at91-sam9x60_curiosity.dts | 104 1 file changed, 104 insertions(+) diff --git a/arch/arm/dts/at91-sam9x60_curiosity.dts

Re: [GIT PULL] xilinx patches for v2024.01-rc1 v2

2023-09-21 Thread Tom Rini
On Thu, Sep 21, 2023 at 02:56:59PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these patches to your next branch. > I am sending it as v2 in spite of v1 didn't really went through. I created > tag but CI failed because of sandbox CI trace failure. After fixing it and > reviewing by

Re: [PULL] u-boot-riscv/next

2023-09-21 Thread Tom Rini
On Thu, Sep 21, 2023 at 09:28:46AM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit c58ee1c9946a1550b1f6fee2b25da9ecc89baf71: > > Merge branch '2023-09-19-tidy-up-some-kconfig-options' into next > (2023-09-19 17:44:18 -0400) > > are available in the Git repository

[PATCH 0/4] Add support for sam9x60 curiosity

2023-09-21 Thread Durai Manickam KR
This patch series adds boot from NAND support, configs update and fixes. The changes has been done on top of u-boot version 2023.07. Durai Manickam KR (4): configs: at91: sam9x60_curiosity: update sam9x60_curiosity_mmc_defconfig configs: at91: sam9x60_curiosity: Add

Re: [RFC PATCH 0/5] Allow for removal of DT nodes and properties

2023-09-21 Thread Simon Glass
Hi Rob, On Thu, 21 Sept 2023 at 07:59, Rob Herring wrote: > > On Tue, Sep 19, 2023 at 3:26 PM Simon Glass wrote: > > > > Hi Rob, > > > > On Mon, 18 Sept 2023 at 11:00, Rob Herring wrote: > > > > > > On Thu, Sep 14, 2023 at 5:42 PM Simon Glass wrote: > > > > > > > > Hi Rob, > > > > > > > > On

[PATCH v7 0/3] x86: efi: Fixes and improvements for coreboot

2023-09-21 Thread Simon Glass
This little series fixes various bugs and annoyances in coreboot and coreboot64. With this both coreboot and coreboot64 start up and work reasonably well on Brya (x86 Chromebook) and U-Boot can boot common Linux distros. - Make coreboot64 debug UART start reliably - Avoid the long USB-init delay

[PATCH v7 1/3] fixup: Move python control earlier in Makefile

2023-09-21 Thread Simon Glass
Move this control into the common area of the main Makefile, so it applies to non-build rules as well. This allows 'make mrproper' to handle python files as it should. This should be squashed into: 65a33eba10d Allow Python packages to be dropped Signed-off-by: Simon Glass --- Changes in

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-21 Thread Daniel Schwierzeck
On 9/20/23 20:55, Tom Rini wrote: On Wed, Sep 20, 2023 at 08:51:07PM +0200, Linus Walleij wrote: On Wed, Sep 20, 2023 at 4:22 PM Tom Rini wrote: + * This is a diet version of the device tree from Linux, + * suitable for U-Boot. + */ We shouldn't need a diet version of the tree. If it's

Re: [PATCHv9 01/15] submodule: add lwIP as git submodule

2023-09-21 Thread Tom Rini
On Wed, Sep 20, 2023 at 07:03:07PM -0600, Simon Glass wrote: > Hi Maxim, > > On Thu, 14 Sept 2023 at 10:20, Maxim Uvarov wrote: > > > > add external lwIP library as a git submodule. > > Oh dear...what is the motivation for using a submodule? That we don't have a better alternative. Using "git

Re: [SPAM] [PATCH] clk: fix count parameter type for clk_release_all

2023-09-21 Thread Xavier Drudis Ferran
El Mon, Jun 19, 2023 at 01:47:52PM +0300, Eugen Hristev deia: > The second parameter for clk_release_all is used as an unsigned > (which makes sense) but the function prototype declares it as an int. > This causes warnings/error like such below: > > include/clk.h:422:48: error: conversion to

Re: [PATCH] RFT: mips: implement __udivdi3

2023-09-21 Thread Daniel Schwierzeck
Hi Linus, On 9/18/23 08:11, Linus Walleij wrote: Squashfs wasn't compiling because the lldiv() directives turn into __udivdi3 and we are using private libgcc. This is just copied from the Linux kernel v6.6-rc1 arch/mips/include/asm/div64.h and then adjusted for U-Boot. After this squashfs

Re: [PATCH] clk: fix count parameter type for clk_release_all

2023-09-21 Thread Eugen Hristev
On 6/19/23 13:47, Eugen Hristev wrote: The second parameter for clk_release_all is used as an unsigned (which makes sense) but the function prototype declares it as an int. This causes warnings/error like such below: include/clk.h:422:48: error: conversion to ‘int’ from ‘unsigned int’ may

[Question] TI's u-boot.img is built twice

2023-09-21 Thread Masahiro Yamada
Hi. Since the TI platform migrated to binman, u-boot.img is built twice. It is created by "mkimage -E", then overwritten by binman. So, the data are embedded in the FIT structure instead of being appended. Is this intentional? To me, it looks weird. To confirm it, apply the following

Re: [PATCH v1 2/2] spl: Add support for booting from ESP

2023-09-21 Thread Tom Rini
On Thu, Sep 21, 2023 at 05:03:37PM +0530, mchit...@ventanamicro.com wrote: > On Thu, 2023-09-14 at 12:29 -0400, Tom Rini wrote: > > On Thu, Sep 14, 2023 at 03:38:21PM +0530, Mayuresh Chitale wrote: > > > > > Some platforms as described by EBBR specification may store images > > > in > > > the

Re: Question about boot failure of AM64-SK

2023-09-21 Thread Masahiro Yamada
On Fri, Sep 22, 2023 at 12:03 AM Masahiro Yamada wrote: > > Hi. > > I am seeing a boot failure on AM64-SK. > > > I got the following error in SPL of the main core. > Do you have any clue? As a side-topic, I downloaded a prebuilt image from https://www.ti.com/tool/SK-AM64 It failed too (but in

Re: [RFC PATCH 0/5] Allow for removal of DT nodes and properties

2023-09-21 Thread Rob Herring
On Tue, Sep 19, 2023 at 3:26 PM Simon Glass wrote: > > Hi Rob, > > On Mon, 18 Sept 2023 at 11:00, Rob Herring wrote: > > > > On Thu, Sep 14, 2023 at 5:42 PM Simon Glass wrote: > > > > > > Hi Rob, > > > > > > On Wed, 13 Sept 2023 at 16:39, Rob Herring wrote: > > > > > > > > On Fri, Sep 8, 2023

Re: [PATCH v6 1/2] schemas: Add some common reserved-memory usages

2023-09-21 Thread Simon Glass
Hi Rob, On Thu, 21 Sept 2023 at 08:25, Rob Herring wrote: > > On Thu, Sep 7, 2023 at 4:40 PM Simon Glass wrote: > > > > It is common to split firmware into 'Platform Init', which does the > > initial hardware setup and a "Payload" which selects the OS to be booted. > > Thus an handover

Re: [PATCH v2 RESEND] mmc: dw_mmc: reset controller after data error

2023-09-21 Thread Eugen Hristev
On 6/19/23 13:33, Eugen Hristev wrote: From: Ziyuan Xu Per dw_mmc databook, it's recommended to reset the host controller if some data-related error occurred. Implement a reset mechanism. Signed-off-by: Ziyuan Xu Co-developed-by: Jason Zhu Signed-off-by: Jason Zhu

Re: [PATCH] arm64: versal: Add SelectMAP boot mode identification

2023-09-21 Thread Stefan Roese
On 9/21/23 13:14, Michal Simek wrote: On 9/19/23 14:47, Polak, Leszek wrote: Add missing SelectMAP bootmode for proper identification during boot. The SelectMAP configuration interface provides an 8-bit, 16-bit or 32-bit bidirectional data bus interface to the Versal FPGA configuration logic

Re: [PATCH 09/32] spl: Avoid an #ifdef when printing gd->malloc_ptr

2023-09-21 Thread Tom Rini
On Wed, Sep 20, 2023 at 07:03:34PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 30 Aug 2023 at 15:39, Tom Rini wrote: > > > > On Wed, Aug 30, 2023 at 12:04:40PM -0600, Simon Glass wrote: > > > Use an accessor in the header file to avoid this. > > > > > > Signed-off-by: Simon Glass > > > ---

[PATCH v7 2/3] x86: coreboot: Drop USB init on startup

2023-09-21 Thread Simon Glass
This is very annoying as it is quite slow on many machines. Also, U-Boot has an existing 'preboot' mechanism to enable this feature if desired. Drop this code so that it is possible to choose whether to init USB or not. Use the existing USE_PREBOOT mechanism instead. Signed-off-by: Simon Glass

[PATCH v7 3/3] x86: doc: Update summaries and add links

2023-09-21 Thread Simon Glass
Refresh the summary information so it is more up-to-date. Add links to the coreboot and slimbootloader docs. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v7: - Drop patches previously applied - Rebase to x86/next Changes in v2: - Add new patch - Add new patch

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-21 Thread Daniel Schwierzeck
On 9/20/23 09:42, Linus Walleij wrote: This adds support for the Inteno XG6846 board based on the Broadcom MIPS 6328 SoC. The default boot will read a uImage from flash and boot it. Cc: Daniel Schwierzeck Signed-off-by: Linus Walleij --- arch/mips/dts/Makefile | 1 +

Re: [PATCH v6 1/2] schemas: Add some common reserved-memory usages

2023-09-21 Thread Rob Herring
On Thu, Sep 7, 2023 at 4:40 PM Simon Glass wrote: > > It is common to split firmware into 'Platform Init', which does the > initial hardware setup and a "Payload" which selects the OS to be booted. > Thus an handover interface is required between these two pieces. > > This aims to provide an

Re: [PATCH v2 00/10] rockchip: rk3588: add support for DFU in SPL

2023-09-21 Thread Eugen Hristev
On 8/1/23 10:28, Eugen Hristev wrote: This series adds support for DFU in SPL for rockchip rk3588 on rock5b board. Namely, when SPL is loaded via rockusb (thus via USB), having the `same-as-spl` boot order item, after having detected that it was loaded from USB, it will lookup the gadget USB

Question about boot failure of AM64-SK

2023-09-21 Thread Masahiro Yamada
Hi. I am seeing a boot failure on AM64-SK. I got the following error in SPL of the main core. Do you have any clue? Error reading cluster fit read sector 0, sectors=985528, dst=, count=18446744073709551615, size=0xf09b8 The resulting count looks crazy, but I imagine it was just that the

Re: [PATCHv8 00/15] net/lwip: add lwip library for the network stack

2023-09-21 Thread Simon Glass
Hi, On Wed, 13 Sept 2023 at 07:35, Maxim Uvarov wrote: > > > > On Wed, 13 Sept 2023 at 19:14, Tom Rini wrote: >> >> On Wed, Sep 13, 2023 at 11:06:13AM +0100, Peter Robinson wrote: >> > > >> Then if for development you need to pull he history of lwip, you can >> > > >> do it with: >> > > >>

Re: [PATCH 1/2] common: add prototype for populate_serial_number()

2023-09-21 Thread Simon Glass
Hi Artur, On Thu, 21 Sept 2023 at 09:44, Artur Rojek wrote: > > Provide function prototype for populate_serial_number(). > This is useful for boards that wish to read their serial number from > EEPROM at init. > > Signed-off-by: Artur Rojek > --- > include/init.h | 1 + > 1 file changed, 1

Re: [PATCH v6 1/2] schemas: Add some common reserved-memory usages

2023-09-21 Thread Simon Glass
Hi Rob, On Thu, 21 Sept 2023 at 09:20, Rob Herring wrote: > > On Thu, Sep 21, 2023 at 9:38 AM Simon Glass wrote: > > > > Hi Rob, > > > > On Thu, 21 Sept 2023 at 08:25, Rob Herring wrote: > > > > > > On Thu, Sep 7, 2023 at 4:40 PM Simon Glass wrote: > > > > > > > > It is common to split

[PATCH v4] clk: ti: clk-k3: Notify AVS driver upon setting clock rate

2023-09-21 Thread Udit Kumar
AVS is enabled at R5 SPL stage, on few platforms like J721E and J7200 clk-k3 is used instead if clk-sci driver. Add support in clk-k3 driver as well to notify AVS driver on setting clock rate so that voltage is changed accordingly. Cc: Keerthy Signed-off-by: Udit Kumar --- Boot logs with v4:

Re: [PATCH v6 1/2] schemas: Add some common reserved-memory usages

2023-09-21 Thread Rob Herring
On Thu, Sep 21, 2023 at 9:38 AM Simon Glass wrote: > > Hi Rob, > > On Thu, 21 Sept 2023 at 08:25, Rob Herring wrote: > > > > On Thu, Sep 7, 2023 at 4:40 PM Simon Glass wrote: > > > > > > It is common to split firmware into 'Platform Init', which does the > > > initial hardware setup and a

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-21 Thread Tom Rini
On Thu, Sep 21, 2023 at 04:00:24PM +0200, Daniel Schwierzeck wrote: > > > On 9/20/23 20:55, Tom Rini wrote: > > On Wed, Sep 20, 2023 at 08:51:07PM +0200, Linus Walleij wrote: > > > On Wed, Sep 20, 2023 at 4:22 PM Tom Rini wrote: > > > > > > > > + * This is a diet version of the device tree

Re: [PATCH] common: Drop linux/printk.h from common header

2023-09-21 Thread Tom Rini
On Wed, Sep 20, 2023 at 07:03:25PM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 15 Sept 2023 at 15:54, Tom Rini wrote: > > > > On Fri, Sep 15, 2023 at 02:01:33PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 15 Sept 2023 at 13:48, Tom Rini wrote: > > > > > > > > On Thu, Sep 14,

[PATCH 2/2] board: Add support for Conclusive KSTR-SAMA5D27

2023-09-21 Thread Artur Rojek
Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer. Co-developed-by: Jakub Klama Signed-off-by: Jakub Klama Co-developed-by: Marcin Jabrzyk Signed-off-by: Marcin Jabrzyk Signed-off-by: Artur Rojek --- arch/arm/dts/Makefile | 3 +

[PATCH] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-09-21 Thread Michel Alex
Calculate the maximum length of the buffer when writing accross the page boundary. If the buffer length exceeds the page boundary, split it. Use this length instead of comparing the length with the pagesize, because the write start address can be somewhere in the middle of a page. Signed-off-by:

[PATCH 0/2] Conclusive KSTR-SAMA5D27 support

2023-09-21 Thread Artur Rojek
Hi all, this series adds support for Conclusive KSTR-SAMA5D27, a Microchip SAMA5D27 SoC based Single Board Computer by Conclusive Engineering. Patch [1/2] adds a missing prototype for populate_serial_number(), which is used by KSTR-SAMA5D27 in order to read its serial number embedded in EEPROM

[PATCH 1/2] common: add prototype for populate_serial_number()

2023-09-21 Thread Artur Rojek
Provide function prototype for populate_serial_number(). This is useful for boards that wish to read their serial number from EEPROM at init. Signed-off-by: Artur Rojek --- include/init.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/init.h b/include/init.h index

Re: [PATCH v2] env: ti: ti_common.env: Fix get_overlaystring for FIT Image

2023-09-21 Thread Andrew Davis
On 9/21/23 5:49 AM, Manorit Chawdhry wrote: After the refactor with conf- nodes in fitImage, overlaystring wasn't didn't handle the new conf- nodes in FIT Booting. Fix get_overlaystring to handle conf- nodes. Fixes: 837833a724b7 ("environment: ti: Add get_fit_config command to get FIT config

[PATCH] clk: ti: clk-sci: Notify AVS driver based upon clock rate

2023-09-21 Thread Udit Kumar
AVS driver needs to be notified before or after clock change, depending upon new rate is greater or less than current clock rate. Fixes: 1e0aa873bc7cd ("clk: clk-ti-sci: Notify AVS driver upon setting clock rate") Cc: Keerthy Signed-off-by: Udit Kumar --- Boot logs

Re: [PATCH v2 00/10] rockchip: rk3588: add support for DFU in SPL

2023-09-21 Thread Kever Yang
On 2023/9/21 22:47, Eugen Hristev wrote: On 8/1/23 10:28, Eugen Hristev wrote: This series adds support for DFU in SPL for rockchip rk3588 on rock5b board. Namely, when SPL is loaded via rockusb (thus via USB), having the `same-as-spl` boot order item, after having detected that it was

Re: [PATCH v7 1/3] fixup: Move python control earlier in Makefile

2023-09-21 Thread Bin Meng
On Thu, Sep 21, 2023 at 9:37 PM Simon Glass wrote: > > Move this control into the common area of the main Makefile, so it > applies to non-build rules as well. This allows 'make mrproper' to handle > python files as it should. > > This should be squashed into: > >65a33eba10d Allow Python

Re: [NEW FEATURE] RFC: Add Intel GMBUS support

2023-09-21 Thread Bin Meng
+Simon Hi Eric, On Fri, Sep 22, 2023 at 6:10 AM Eric Schikschneit wrote: > > I have begun working on adding support for the Intel Graphics Management bus > to U-Boot. Currently the x86 bring up process (as explored on the Baytrail > series of Atom SOCs) relys on the Intel Video BIOS to do all

[PATCH] net: zynq_gem: Update the MDC clock divisor in the probe function

2023-09-21 Thread Venkatesh Yadav Abbarapu
MDC clock change needs to be done when the driver probe function is called as mdio is enabled at probe and not when the ethernet starts. Setup the MDC clock at the probe itself. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/net/zynq_gem.c | 73 +++--- 1

Re: [PATCH v7 2/3] x86: coreboot: Drop USB init on startup

2023-09-21 Thread Bin Meng
On Thu, Sep 21, 2023 at 9:37 PM Simon Glass wrote: > > This is very annoying as it is quite slow on many machines. Also, U-Boot > has an existing 'preboot' mechanism to enable this feature if desired. > > Drop this code so that it is possible to choose whether to init USB or > not. > > Use the

[PATCH 2/3] board: Remove essentially empty board files and Makefiles

2023-09-21 Thread Tom Rini
As part of reviewing a new platform, Daniel Schwierzeck noted that we can have an empty Makefile in the board directory and don't need an empty board.c file as well. Further with further cleanup in the Makefile we can now omit the Makefile entirely. Remove a number of now unnecessary board.c and

  1   2   >