[PATCH 18/18] configs: am64: Fix booting of fitImage on AM64x

2023-07-13 Thread Manorit Chawdhry
From: Kamlesh Gurudasani Do not limit the maximum size of the buffer that is used to decompress the OS image in to, this causes issue while inflating the image, if image size is greater than the buffer. Remove CONFIG_SYS_BOOTM_LEN Signed-off-by: Kamlesh Gurudasani Signed-off-by: Manorit

[PATCH 16/18] lib: Kconfig: k3: Enable SHA512 for fit signature

2023-07-13 Thread Manorit Chawdhry
We are using our custMpk for signing that is a 4096 bit key, 4096 bit rsa key requires a SHA512 hashing algorithm to be enabled as per the source. Even though it is not mandated but this is how it works and is tested. Enables SHA512 if fit signature is enabled on K3 platforms. Signed-off-by:

[PATCH 17/18] Kconfig: Enable FIT_SIGNATURE if ARM64

2023-07-13 Thread Manorit Chawdhry
Enabling FIT_SIGNATURE required the old authentication method to be disabled so disable this for K3 SOCs and enable FIT_SIGNATURE for K3 Platforms. Signed-off-by: Kamlesh Gurudasani [ cleanup the patch ] Signed-off-by: Manorit Chawdhry --- arch/arm/Kconfig | 1 + boot/Kconfig | 3 +-- 2

[PATCH 15/18] k3-*-binman: dts: Pack u-boot.dtb instead of soc specific dtb

2023-07-13 Thread Manorit Chawdhry
FIT signature requires the updates to u-boot.dtb and the DTB that we pack don't get updates with the changes of the signature node. Pack u-boot.dtb as the default DTB so that the signature node changes can be reflected in them. (Note, this is only packaging the primary platform and the secondary

[PATCH 14/18] board: ti: keys: add .key and .crt for fit signature signing

2023-07-13 Thread Manorit Chawdhry
Fit signature mechanism through the standards require the presence of .key and .crt in the folder with the same name, since we are using our custMpk only for the signing, update the format to that of standards to be compatible for packaging easily. Signed-off-by: Manorit Chawdhry ---

[PATCH 13/18] configs: k3: make consistent bootcmd across all k3 socs

2023-07-13 Thread Manorit Chawdhry
From: Kamlesh Gurudasani Default to common bootcmd that is set across all k3 devices. Signed-off-by: Manorit Chawdhry Signed-off-by: Kamlesh Gurudasani --- configs/am62ax_evm_a53_defconfig | 1 + configs/am62x_evm_a53_defconfig | 3 +-- configs/am64x_evm_a53_defconfig | 2 +-

[PATCH 12/18] include: armv7: Enable distroboot across all configs

2023-07-13 Thread Manorit Chawdhry
Since K3 devices are moving towards distroboot, remove duplicates and add it in common file to import from. Signed-off-by: Manorit Chawdhry --- include/configs/am62ax_evm.h | 71 --- include/configs/am62x_evm.h | 27 ---

[PATCH 11/18] env: Make common bootcmd across all k3 devices

2023-07-13 Thread Manorit Chawdhry
This is helpful to go forward with distro_bootcmd as default boot. Signed-off-by: Manorit Chawdhry --- include/environment/ti/ti_armv7_common.env | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/environment/ti/ti_armv7_common.env

[PATCH 10/18] arm: k3: Add regex/gsub command handling

2023-07-13 Thread Manorit Chawdhry
From: Andrew Davis The 'gsub' setexpr sub command is using when creating the FIT image configuration string on K3 devices. Enable this for K3. Signed-off-by: Andrew Davis Signed-off-by: Manorit Chawdhry --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig

[PATCH 09/18] configs: Enable setexpr command on TI devices

2023-07-13 Thread Manorit Chawdhry
From: Andrew Davis This is used when building the FIT image configuration string. Enable it for all FIT using TI platforms. Signed-off-by: Andrew Davis [ extend to other k3 boards ] Signed-off-by: Manorit Chawdhry --- configs/am335x_hs_evm_defconfig | 1 -

[PATCH 08/18] environment: ti: Make get_fdt_mmc common

2023-07-13 Thread Manorit Chawdhry
From: Andrew Davis Since get_fdt_mmc is common, factor it out into mmc.env and remove it from each platform env file along with changing the directory path to reflect the standards. Use it in mmcloados but keep loadfdt defined in case it is still used by some external uEnv.txt script.

[PATCH 07/18] environment: ti: Prefix ARM64 DTB names with directory

2023-07-13 Thread Manorit Chawdhry
From: Andrew Davis In Linux the ARM64 DTSs are stored in vendor directories to help organize the files and prevent naming collisions. The deployed DTBs will mirror this and so the vendor prefix should be added to the variable used to locate these files. Suggested-by: Ryan Eatmon Signed-off-by:

[PATCH 06/18] configs: k3: Remove saved environments

2023-07-13 Thread Manorit Chawdhry
Having saved environments usually causes inconsistencies while in development workflow. The saved environments conflict with the default ones that U-boot should be updating during development but that doesn't happen and the saved environments need to be reset during bootups to test the changes

[PATCH 05/18] include: j7*_evm.h: Cleanups to be done

2023-07-13 Thread Manorit Chawdhry
Some miscellaneous cleanups for boards. Signed-off-by: Manorit Chawdhry --- include/configs/j721e_evm.h | 1 - include/configs/j721s2_evm.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index de92cd48fb7d..07926e4f0eea 100644

[PATCH 04/18] mach-k3: common: correct the calculations for determining firewalls

2023-07-13 Thread Manorit Chawdhry
The background firewall calculations were wrong, fix that to determine both the background and foreground correctly. Fixes: 8bfce2f9989f ("arm: mach-k3: common: reorder removal of firewalls") Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/common.c | 3 +-- arch/arm/mach-k3/common.h | 2

[PATCH 03/18] board: ti: am64x: am64x.env: set fdtfile env variable

2023-07-13 Thread Manorit Chawdhry
From: Kamlesh Gurudasani Set fdtfile env variable similar to other k3 socs. Signed-off-by: Kamlesh Gurudasani Signed-off-by: Manorit Chawdhry --- board/ti/am64x/am64x.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ti/am64x/am64x.env b/board/ti/am64x/am64x.env index

[PATCH 02/18] Kconfig: j721s2: Fix the scratchpad base

2023-07-13 Thread Manorit Chawdhry
Fix the regression that occurred during the alignment of binman series merges along with these HS fixes that caused silent regression in this. Fixes: 30a7ee87fd1a ("Kconfig: j721s2: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region") Signed-off-by: Manorit Chawdhry ---

[PATCH 01/18] arch: mach-k3: security: fix the check for authentication

2023-07-13 Thread Manorit Chawdhry
Fix regression occurred during refactoring for the mentioned commit. Fixes: bd6a24759374 ("arm: mach-k3: security: separate out validating binary logic") Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/security.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 00/18] K3 HS Support along with fixes

2023-07-13 Thread Manorit Chawdhry
/ti_armv7_common.env | 11 +- lib/Kconfig| 1 + 43 files changed, 356 insertions(+), 202 deletions(-) --- base-commit: 26bd02c45a97f77cfb6afac4ee4f61fb9c5c7007 change-id: 20230713-b4-upstream-fit-image-support-9d3c113ebab7 Best regards, -- Manorit Chawdhry

[PATCH v2 6/6] efi_selftest: add EFI_RAM_DISK_PROTOCOL selftest

2023-07-13 Thread Masahisa Kojima
This adds the selftest for the EFI_RAM_DISK_PROTOCOL. Signed-off-by: Masahisa Kojima --- No update since v1 lib/efi_selftest/Makefile| 1 + lib/efi_selftest/efi_selftest_ram_disk.c | 511 +++ 2 files changed, 512 insertions(+) create mode 100644

[PATCH v2 5/6] cmd: efidebug: add RAM disk mount command

2023-07-13 Thread Masahisa Kojima
This commit implements the test commands for EFI_RAM_DISK_PROTOCOL. With the disk load/unload commands, user can mount the ISO image in the volatile memory through EFI_RAM_DISK_PROTOCOL. Currently the load command can load only one image at a time even if UEFI specification does not limit the

[PATCH v2 4/6] efi_loader: add EFI_RAM_DISK_PROTOCOL implementation

2023-07-13 Thread Masahisa Kojima
This commit adds the EFI_RAM_DISK_PROTOCOL implementation. User can mount the distro installer by registering the memory mapped ISO image through EFI_RAM_DISK_PROTOCOL. Note that the installation process may not proceed after the distro installer calls ExitBootServices() since there is no

[PATCH v2 3/6] cmd: ramdisk: add ramdisk control command

2023-07-13 Thread Masahisa Kojima
This introcudes the ramdisk command, to control the ramdisk devices. Signed-off-by: Masahisa Kojima --- Newly introcuded in v2 cmd/Kconfig | 7 cmd/Makefile | 1 + cmd/ramdisk.c | 92 +++ 3 files changed, 100 insertions(+) create mode

[PATCH v2 2/6] ramdisk: add ramdisk uclass and driver

2023-07-13 Thread Masahisa Kojima
This introcudes the ramdisk uclass and driver. Signed-off-by: Masahisa Kojima --- Newly introcuded in v2 disk/part.c | 3 + drivers/block/Kconfig| 7 +- drivers/block/Makefile | 2 + drivers/block/blk-uclass.c | 1 +

[PATCH v2 1/6] efi_loader: add RAM disk device path

2023-07-13 Thread Masahisa Kojima
This is a preparation to add the EFI_RAM_DISK_PROTOCOL. This commit adds the RAM disk device path structure and text conversion to Device Path to Text Protocol. Signed-off-by: Masahisa Kojima --- No update since v1 include/efi_api.h| 19 +++

[PATCH v2 0/6] introduce EFI_RAM_DISK_PROTOCOL

2023-07-13 Thread Masahisa Kojima
This series introduces the EFI_RAM_DISK_PROTOCOL implementation. The major purpose of this series is a preparation for EFI HTTP(S) boot. Now U-Boot can download the distro installer ISO image via wget or tftpboot commands, but U-Boot can not mount the downloaded ISO image. By calling

Re: [PATCH v1 1/2] drivers: firmware: introduce Meson Secure Monitor driver

2023-07-13 Thread AKASHI Takahiro
On Tue, Jul 11, 2023 at 01:13:29PM -0600, Simon Glass wrote: > +AKASHI Takahiro Me? > Hi Alexey, > > On Tue, 11 Jul 2023 at 04:25, Alexey Romanov wrote: > > > > Hi Simon, > > > > On Mon, Jul 10, 2023 at 01:45:53PM -0600, Simon Glass wrote: > > > Hi Alexey, > > > > > > On Mon, 10 Jul 2023 at

Re: [PATCH 1/3] arm: dts: imx8mm: Sync with Linux 6.3

2023-07-13 Thread Stefano Babic
Hi Tim, Fabio, On 14.07.23 02:42, Tim Harvey wrote: On Wed, May 3, 2023 at 9:11 AM Tim Harvey wrote: On Fri, Apr 28, 2023 at 11:19 AM Fabio Estevam wrote: Hi Tim, On Fri, Apr 28, 2023 at 2:59 PM Tim Harvey wrote: I believe the fix we need is the following which moves phy setup before

Re: [PATCH] clk: scmi: claim the dependency on CONFIG_CLK

2023-07-13 Thread Sean Anderson
On 6/11/23 21:14, AKASHI Takahiro wrote: Without CONFIG_CLK, the build fails with the following message: LD u-boot aarch64-none-linux-gnu-ld.bfd: drivers/firmware/scmi/scmi_agent-uclass.o: \ in function `scmi_bind_protocols':

Re: [PATCH] firmware: scmi: return a right errno for SCMI status code

2023-07-13 Thread AKASHI Takahiro
Hi Tom, Can you pick up this patch, please? It's an easy bugfix. -Takahiro Akashi On Tue, Jun 13, 2023 at 10:30:45AM +0900, AKASHI Takahiro wrote: > scmi_to_linux_errno() is set to return an appropriate errno > which corresponds to a given SCMI status code. > But the current implementation

Reminder, Re: [PATCH] clk: scmi: claim the dependency on CONFIG_CLK

2023-07-13 Thread AKASHI Takahiro
Hi Lukasz, Sean, Can you review this patch, please? -Takahiro Akashi On Mon, Jun 12, 2023 at 10:14:49AM +0900, AKASHI Takahiro wrote: > Without CONFIG_CLK, the build fails with the following message: > LD u-boot > aarch64-none-linux-gnu-ld.bfd: drivers/firmware/scmi/scmi_agent-uclass.o:

Re: [PATCH 1/3] arm: dts: imx8mm: Sync with Linux 6.3

2023-07-13 Thread Tim Harvey
On Wed, May 3, 2023 at 9:11 AM Tim Harvey wrote: > > On Fri, Apr 28, 2023 at 11:19 AM Fabio Estevam wrote: > > > > Hi Tim, > > > > On Fri, Apr 28, 2023 at 2:59 PM Tim Harvey wrote: > > > > > I believe the fix we need is the following which moves phy setup > > > before the register access (where

Re: [PATCH 2/3] arm: dts: imx8mn: Sync with Linux 6.3

2023-07-13 Thread Tim Harvey
On Wed, May 3, 2023 at 9:12 AM Tim Harvey wrote: > > On Thu, Apr 27, 2023 at 11:08 AM Fabio Estevam wrote: > > > > From: Fabio Estevam > > > > Sync imx8mn.dtsi with Linux 6.3. > > > > Signed-off-by: Fabio Estevam > > --- > > arch/arm/dts/imx8mn.dtsi | 46

Re: [PATCH 07/10] test: dm: add SCMI base protocol test

2023-07-13 Thread AKASHI Takahiro
Hi Simon, On Tue, Jul 11, 2023 at 12:41:58PM -0600, Simon Glass wrote: > Hi Takahiro, > > On Mon, 10 Jul 2023 at 19:02, AKASHI Takahiro > wrote: > > > > Hi Simon, > > > > On Mon, Jul 10, 2023 at 01:45:58PM -0600, Simon Glass wrote: > > > Hi, > > > > > > On Sun, 9 Jul 2023 at 20:04, AKASHI

[PATCH 4/5] CI: Update to gcc-13.1.0

2023-07-13 Thread Tom Rini
As this is the current version of the public cross toolchains we use, upgrade to this now. Suggested-by: Alexey Brodkin Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt Heinrich, at this point is there a newer grub we should be testing? There's now 2 changes for RISC-V that we're

[PATCH 5/5] CI: Update to the latest "Jammy" tag

2023-07-13 Thread Tom Rini
Move to the latest "Jammy" tag from Ubuntu. Signed-off-by: Tom Rini --- .azure-pipelines.yml| 2 +- .gitlab-ci.yml | 2 +- tools/docker/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index

[PATCH 3/5] spl: Correct spl_board_boot_device function prototype

2023-07-13 Thread Tom Rini
With gcc-13.1 we get a warning about enum vs int here, so correct the declaration to match the implementation. Signed-off-by: Tom Rini --- include/spl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spl.h b/include/spl.h index 658d36481dee..92bcaa90a4af 100644

[PATCH 2/5] arm: mx5: Correct mxc_set_clock function prototype

2023-07-13 Thread Tom Rini
With gcc-13.1 we get a warning about enum vs int here, so correct the declaration to match the implementation. Signed-off-by: Tom Rini --- arch/arm/include/asm/arch-mx5/clock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-mx5/clock.h

[PATCH 1/5] mips: octeon: Correct types in cvmx-pko3-queue

2023-07-13 Thread Tom Rini
When building with gcc-13.1 we see that the prototype for cvmx_pko3_sq_config_children does not match the declaration. Make these match and correct a typo in the function's version of the docs that the prototype did not have, as part of keeping those in-sync. Signed-off-by: Tom Rini --- Cc:

Re: [RFC PATCH 1/3] scripts: kconfig: Add config fragment support in board/../

2023-07-13 Thread Tom Rini
On Wed, Jul 12, 2023 at 08:00:28AM -0600, Simon Glass wrote: > Hi Jason, > > On Tue, 11 Jul 2023 at 16:29, Jason Kacines wrote: > > > > Add support to config fragments (.config) located in the /board > > directory. This will allow only base defconfigs to live in /configs and > > Does this mean

Re: [RFC PATCH 0/3] Minimal platform configuration

2023-07-13 Thread Nishanth Menon
On 08:00-20230712, Simon Glass wrote: > Hi Jason, > > On Tue, 11 Jul 2023 at 16:28, Jason Kacines wrote: > > > > When someone attempts to bring up a custom board using TI SoCs (am62x in > > this case), it often takes several days for someone to reduce the > > current configuration from the TI

Re: [PATCH v2 5/9] pci: pcie_dw_rockchip: Hide BARs of the root complex

2023-07-13 Thread Jonas Karlman
Hi Kever, On 2023-06-29 12:25, Kever Yang wrote: > Hi Jonas, > >     Sorry for reply late for this patch. > >     I have check internally again for this BAR issue, the BAR alloce > fail for RC would not affect other process, and it always works on > vendor U-Boot tree. The issue is not that

Re: [PATCH] CI: Add automatic retry for test.py jobs

2023-07-13 Thread Tom Rini
On Thu, Jul 13, 2023 at 03:03:57PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 12 Jul 2023 at 14:38, Tom Rini wrote: > > > > On Wed, Jul 12, 2023 at 02:32:18PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 12 Jul 2023 at 11:09, Tom Rini wrote: > > > > > > > > On Wed, Jul 12,

Re: [PATCH 2/2] CI: Update to the latest "Jammy" tag

2023-07-13 Thread Tom Rini
On Thu, Jul 13, 2023 at 02:51:44PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 12 Jul 2023 at 20:04, Tom Rini wrote: > > > > Move to the latest "Jammy" tag from Ubuntu. > > > > Signed-off-by: Tom Rini > > --- > > .azure-pipelines.yml| 2 +- > > .gitlab-ci.yml | 2 +- > >

Re: [PATCH] CI: Add automatic retry for test.py jobs

2023-07-13 Thread Simon Glass
Hi Tom, On Wed, 12 Jul 2023 at 14:38, Tom Rini wrote: > > On Wed, Jul 12, 2023 at 02:32:18PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 12 Jul 2023 at 11:09, Tom Rini wrote: > > > > > > On Wed, Jul 12, 2023 at 08:00:23AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH] arm: mach-k3: *: dev-data: Update to use ARRAY_SIZE

2023-07-13 Thread Bryan Brattlof
On July 13, 2023 thus sayeth Nishanth Menon: > Instead of hard-coding the count of entries manually, use ARRAY_SIZE > to keep the count updates appropriately. > > Cc: Bryan Brattlof > Suggested-by: Ravi Gunasekaran > Signed-off-by: Nishanth Menon > --- > That looks good to me :) Reviewed-by:

Re: [PATCH 2/2] CI: Update to the latest "Jammy" tag

2023-07-13 Thread Simon Glass
Hi Tom, On Wed, 12 Jul 2023 at 20:04, Tom Rini wrote: > > Move to the latest "Jammy" tag from Ubuntu. > > Signed-off-by: Tom Rini > --- > .azure-pipelines.yml| 2 +- > .gitlab-ci.yml | 2 +- > tools/docker/Dockerfile | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH] cyclic: Add ratelimiting schedule() via CYCLIC_RATELIMIT_US

2023-07-13 Thread Simon Glass
Hi Stefan, On Thu, 13 Jul 2023 at 08:17, Stefan Roese wrote: > > This patch adds the new Kconfig option CONFIG_CYCLIC_RATELIMIT_US which > defines the min allowed time after with a new call into the cyclic > infrastructure is allowed. This results in a ratelimiting of the all > functions hooked

Re: [PATCH v2] xilinx: board: Add support to pick bootscr address from DT

2023-07-13 Thread Simon Glass
Hi Michal, On Thu, 13 Jul 2023 at 06:54, Michal Simek wrote: > > From: Algapally Santosh Sagar > > The bootscript is expected at a default address specific to each > platform. > When high speed memory like Programmable Logic Double Data Rate RAM > (PL DDR RAM) or Higher Bandwidth Memory RAM

[PATCH] arm: dts: Fix build of am62a7 dtbs

2023-07-13 Thread Nishanth Menon
am62a7 should be built with CONFIG_SOC_K3_AM62A7 not CONFIG_SOC_K3_AM625 Fixes: 6bdfa69155d8 ("arm: dts: introduce am62a7 u-boot dtbs") Cc: Bryan Brattlof Cc: Vignesh Raghavendra Cc: Francesco Dolcini Cc: Sjoerd Simons Cc: Wadim Egorov Reviewed-by: Bryan Brattlof Reviewed-by: Mattijs

Re: [RFC PATCH 3/4] arm: dts: Fix build of am62a7 dtbs

2023-07-13 Thread Nishanth Menon
On 14:00-20230713, Bryan Brattlof wrote: > On July 13, 2023 thus sayeth Nishanth Menon: > > am62a7 should be built with CONFIG_SOC_K3_AM62A7 not CONFIG_SOC_K3_AM625 > > > > Fixes: 6bdfa69155d8 ("arm: dts: introduce am62a7 u-boot dtbs") > > Cc: Bryan Brattlof

[PATCH] arm: mach-k3: *: dev-data: Update to use ARRAY_SIZE

2023-07-13 Thread Nishanth Menon
Instead of hard-coding the count of entries manually, use ARRAY_SIZE to keep the count updates appropriately. Cc: Bryan Brattlof Suggested-by: Ravi Gunasekaran Signed-off-by: Nishanth Menon --- Link to discussion that triggered this:

Re: [PATCH v7 2/2] phy: phy-imx8mq-usb: clean up clock code

2023-07-13 Thread Marek Vasut
On 7/13/23 20:56, Tim Harvey wrote: use CONFIG_IS_ENABLED for clock enable/disable and change printf's to dev_err. Additionlly remove the comment that does not make sense. Signed-off-by: Tim Harvey Reviewed-by: Marek Vasut Thanks!

Re: [RFC PATCH 3/4] arm: dts: Fix build of am62a7 dtbs

2023-07-13 Thread Bryan Brattlof
On July 13, 2023 thus sayeth Nishanth Menon: > am62a7 should be built with CONFIG_SOC_K3_AM62A7 not CONFIG_SOC_K3_AM625 > > Fixes: 6bdfa69155d8 ("arm: dts: introduce am62a7 u-boot dtbs") > Cc: Bryan Brattlof > Cc: Vignesh Raghavendra > Cc: Francesco Dolcini > Cc: Sjoerd Simons > Cc: Wadim

Re: [RFC PATCH 2/4] arm: mach-k3: am62: Add timer0 id to the dev list

2023-07-13 Thread Bryan Brattlof
On July 13, 2023 thus sayeth Nishanth Menon: > On 17:08-20230713, Ravi Gunasekaran wrote: > > > > > > On 7/13/23 12:50 PM, Nishanth Menon wrote: > > > From: Sjoerd Simons > > > > > > Timer0 is used by u-boot as the tick timer; Add it to the

[PATCH v7 2/2] phy: phy-imx8mq-usb: clean up clock code

2023-07-13 Thread Tim Harvey
use CONFIG_IS_ENABLED for clock enable/disable and change printf's to dev_err. Additionlly remove the comment that does not make sense. Signed-off-by: Tim Harvey --- v7: protect against CLK being undefined in error path v6: new patch --- drivers/phy/phy-imx8mq-usb.c | 38

[PATCH v7 1/2] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-13 Thread Tim Harvey
Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. Signed-off-by: Tim Harvey Reviewed-by: Adam Ford Reviewed-by: Marek Vasut --- v7: - add #ifdef protection around clk_disable error path v6: - move changes to clk

Re: [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework

2023-07-13 Thread Nishanth Menon
On 15:29-20230711, Roger Quadros wrote: > Hi Simon, > > On 10/07/2023 22:45, Simon Glass wrote: > > Hi Roger, > > > > On Mon, 10 Jul 2023 at 08:51, Roger Quadros wrote: > >> > >> Support the Expansion cards via Extension framework. > >> This should make 'expansion' command work to scan > >> for

Re: [RFC PATCH 2/4] arm: mach-k3: am62: Add timer0 id to the dev list

2023-07-13 Thread Nishanth Menon
On 17:08-20230713, Ravi Gunasekaran wrote: > > > On 7/13/23 12:50 PM, Nishanth Menon wrote: > > From: Sjoerd Simons > > > > Timer0 is used by u-boot as the tick timer; Add it to the soc devices > > list so it can be enabled via the k3 power controller. >

Re: [PATCH v5] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-13 Thread Marek Vasut
On 7/13/23 18:55, Tim Harvey wrote: On Wed, Jul 12, 2023 at 6:55 PM Marek Vasut wrote: On 7/13/23 02:40, Tim Harvey wrote: Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. While we are at it replace '#if

Re: [PATCH v6 2/2] phy: phy-imx8mq-usb: clean up clock code

2023-07-13 Thread Marek Vasut
On 7/13/23 19:11, Tim Harvey wrote: use CONFIG_IS_ENABLED for clock enable/disable and change printf's to dev_err. Additionlly remove the comment that does not make sense. Signed-off-by: Tim Harvey --- v6: new patch drivers/phy/phy-imx8mq-usb.c | 33 +++-- 1

Re: [PATCH v6 1/2] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-13 Thread Marek Vasut
On 7/13/23 19:11, Tim Harvey wrote: Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. Signed-off-by: Tim Harvey Reviewed-by: Adam Ford Reviewed-by: Marek Vasut --- v6: - move changes to clk to separate patch

Re: [PATCH] usb: ehci-mx6: remove unnecessary regulator enable from probe

2023-07-13 Thread Marek Vasut
On 7/13/23 19:14, Tim Harvey wrote: On Fri, May 19, 2023 at 11:59 AM Tim Harvey wrote: Remove the regulator_set_enable() call from device probe which resolves a regulator imbalance. This is unnecessary as regulator_set_enable() will be called when ehci_register calls the init_after_reset

Re: [PATCH v3 00/12] Remove unnecessary USBx dr_mode configuration.

2023-07-13 Thread Roger Quadros
On 13/07/2023 16:45, Julien Panis wrote: > For all TI platforms handled in this series, USBx dr_mode > was configured as peripheral in '-u-boot.dtsi'. > This series removes these fragments, and modifies dwc3 and > cdns3 USB drivers so that they override 'otg' to 'peripheral' > mode. > > This

Re: [PATCH] usb: ehci-mx6: remove unnecessary regulator enable from probe

2023-07-13 Thread Tim Harvey
On Fri, May 19, 2023 at 11:59 AM Tim Harvey wrote: > > Remove the regulator_set_enable() call from device probe which > resolves a regulator imbalance. This is unnecessary as > regulator_set_enable() will be called when ehci_register calls the > init_after_reset hook. > > Suggested-by: Marek

[PATCH v6 2/2] phy: phy-imx8mq-usb: clean up clock code

2023-07-13 Thread Tim Harvey
use CONFIG_IS_ENABLED for clock enable/disable and change printf's to dev_err. Additionlly remove the comment that does not make sense. Signed-off-by: Tim Harvey --- v6: new patch drivers/phy/phy-imx8mq-usb.c | 33 +++-- 1 file changed, 15 insertions(+), 18

[PATCH v6 1/2] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-13 Thread Tim Harvey
Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. Signed-off-by: Tim Harvey Reviewed-by: Adam Ford Reviewed-by: Marek Vasut --- v6: - move changes to clk to separate patch - sort new vars in reverse christmas

Re: [PATCH v5] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-13 Thread Tim Harvey
On Wed, Jul 12, 2023 at 6:55 PM Marek Vasut wrote: > > On 7/13/23 02:40, Tim Harvey wrote: > > Add support for enabling and disabling vbus-supply regulator found > > on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. > > > > While we are at it replace '#if CONFIG_IS_ENABLED(CLK)' with

Pull request: u-boot-spi/master

2023-07-13 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - Add xtxtech spi-nor chip parts (Bruce Suen) - Add bcm63xx-hsspi driver fixes (William Zhang) CI: https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/16886 thanks! Jagan. The following changes since commit

Re: [PATCH 0/8] Some fixes for the rockchip dw_mipi_dsi driver

2023-07-13 Thread Ondřej Jirman
On Thu, Jul 13, 2023 at 05:47:47PM +0200, Anatolij Gustschin wrote: > > On Thu, 13 Jul 2023 16:51:36 +0200 > Ondřej Jirman m...@xff.cz wrote: > > > Hi, > > > > On Mon, May 22, 2023 at 11:47:00PM +0200, megi xff wrote: > > > > > > > > > From: Ondrej Jirman > > > > > > These are just random

Re: [PATCH] fwu: mtd: Fix dfu_alt_info generation for 2 images per bank

2023-07-13 Thread Jassi Brar
On Thu, 13 Jul 2023 at 09:36, Michal Simek wrote: > > Code rewrites the last char of size with adding &. It is visible from > dfu_alt_info print before this patch: > > Make dfu_alt_info: 'mtd nor0=bank0 raw 232 8;bank1 raw 27a > 8000 nor0=bank0 raw 23a 400;bank1 raw 282

Re: [PATCH u-boot 0/3] Revert broken Bootmenu commits

2023-07-13 Thread Stefan Roese
Hi, (added Jaehoon Chung to Cc) On 7/10/23 18:03, Stefan Roese wrote: On 7/10/23 17:17, Tom Rini wrote: On Mon, Jul 10, 2023 at 04:10:39PM +0200, Pali Rohár wrote: On Sunday 25 June 2023 21:08:19 Tom Rini wrote: On Sun, Jun 25, 2023 at 05:15:34PM +0200, Pali Rohár wrote: On Sunday 25 June

Re: [PATCH 1/1] doc: riscv: running SiFive Unleashed image in QEMU

2023-07-13 Thread Bin Meng
On Thu, Jul 13, 2023 at 9:28 PM Heinrich Schuchardt wrote: > > Describe how to run the SiFive Unleashed image in QEMU. > > Signed-off-by: Heinrich Schuchardt > --- > doc/board/sifive/unleashed.rst | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git

Re: [PATCHv2 1/2] CI: Update to QEMU 8.0.3

2023-07-13 Thread Bin Meng
On Thu, Jul 13, 2023 at 10:16 PM Tom Rini wrote: > > Move up to the latest tagged release of QEMU > > Signed-off-by: Tom Rini > --- > Changes in v2: > - Drop --enable-slirp, per Bin > --- > tools/docker/Dockerfile | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > Reviewed-by: Bin

Re: [PATCH 0/8] Some fixes for the rockchip dw_mipi_dsi driver

2023-07-13 Thread Ondřej Jirman
Hi, On Mon, May 22, 2023 at 11:47:00PM +0200, megi xff wrote: > > > From: Ondrej Jirman > > These are just random fixes for bugs I found while eyeballing the code and > porting > it to work with RK3399. It would be nice if somebody merged this. I'd like to add display support for a few

Re: [PATCH] buildman: Switch ARC toolchain to the upstream version

2023-07-13 Thread Tom Rini
On Thu, Jul 13, 2023 at 02:07:32PM +, Alexey Brodkin wrote: > Hi Tom, > > > > Back in the day we relied a lot on Synopsys own build of the GNU tools > > > for ARC processors, but since then we worked hard on getting all our > > > changes > > > upstream and for a couple of years now we have

[PATCH] fwu: mtd: Fix dfu_alt_info generation for 2 images per bank

2023-07-13 Thread Michal Simek
Code rewrites the last char of size with adding &. It is visible from dfu_alt_info print before this patch: Make dfu_alt_info: 'mtd nor0=bank0 raw 232 8;bank1 raw 27a 8000 nor0=bank0 raw 23a 400;bank1 raw 282 400' And after it: Make dfu_alt_info: 'mtd nor0=bank0 raw

[PATCH] efi_loader: Allow also empty capsule to be process

2023-07-13 Thread Michal Simek
Empty capsule are also allowed to be process. Without it updated images can't change their Image Acceptance state from no to yes. Signed-off-by: Michal Simek --- lib/efi_loader/efi_capsule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_capsule.c

Re: [GIT PULL] Please pull fsl-qoirq-2023-7-6 for next

2023-07-13 Thread Tom Rini
On Thu, Jul 13, 2023 at 03:09:07PM +0800, Peng Fan wrote: > Hi Tom, > > > > > Hi Tom, > > > > Please pull fsl-qoriq-2023-7-6 for next > > > > - > > Enable DM Serial for ls1043ardb and ls1046ardb/afrwy > > Fixed secure boot on LS-CH2 platforms > >

[PATCH] fwu: Allow code to properly decode trial state

2023-07-13 Thread Michal Simek
Current code after capsule update (mtd write) is not changing active_index in mdata to previous_active_index. On the reboot this is shown but showing message "Boot idx 1 is not matching active idx 0, changing active_idx" which is changing active_idx and writing mdata to flash. But when this

[PATCH] cyclic: Add ratelimiting schedule() via CYCLIC_RATELIMIT_US

2023-07-13 Thread Stefan Roese
This patch adds the new Kconfig option CONFIG_CYCLIC_RATELIMIT_US which defines the min allowed time after with a new call into the cyclic infrastructure is allowed. This results in a ratelimiting of the all functions hooked into the cyclic interface. As it's been noticed that on some platforms,

[PATCHv2 1/2] CI: Update to QEMU 8.0.3

2023-07-13 Thread Tom Rini
Move up to the latest tagged release of QEMU Signed-off-by: Tom Rini --- Changes in v2: - Drop --enable-slirp, per Bin --- tools/docker/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index

Re: [PATCH] buildman: Switch ARC toolchain to the upstream version

2023-07-13 Thread Alexey Brodkin
Hi Tom, > > Back in the day we relied a lot on Synopsys own build of the GNU tools > > for ARC processors, but since then we worked hard on getting all our changes > > upstream and for a couple of years now we have ARCompact (AKA ARCv1) > > and ARCv2 processors supported very well in upstream

Please pull u-boot-marvell/master

2023-07-13 Thread Stefan Roese
Hi Tom, please pull the following Marvell MVEBU related patches into master: - mvebu: Thecus: Misc enhancement and cleanup (Tony) - mvebu: Add AC5X Allied Telesis x240 board support incl NAND controller enhancements for this SoC

Re: [PATCH v2 0/6] Support for AC5X NAND and AT-x240 board

2023-07-13 Thread Stefan Roese
On 7/10/23 00:47, Chris Packham wrote: This series adds support for the NAND flash controller on the AC5X SoC and adds support for the Allied Telesis x240 board. I've also included 2 unrelated changes. "arm: mvebu: Remove unused alias from RC AC5X dts" removes an unused alias from the dts. This

Re: [PATCH] arm: mvebu: Enable gpio-fan for Thecus N2350 board

2023-07-13 Thread Stefan Roese
On 6/21/23 01:20, Tony Dinh wrote: Add gpio-fan in the DTS and enable the GPIO in board file to start the fan during boot. Note that this patch depends on https://patchwork.ozlabs.org/project/uboot/patch/20230606214539.4229-1-mibo...@gmail.com/ Signed-off-by: Tony Dinh Applied to

Re: [PATCH] arm: mvebu: Clean up Thecus N2350 board DTS

2023-07-13 Thread Stefan Roese
On 6/6/23 23:45, Tony Dinh wrote: - Update the Thecus N2350 DTS to conform with latest device-tree binding and styles. - Correct typo in mdio node. Signed-off-by: Tony Dinh Applied to u-boot-marvell/master Thanks, Stefan --- arch/arm/dts/armada-385-thecus-n2350.dts | 210

Re: [PATCH v2 6/6] arm: mvebu: Remove unused alias from RC AC5X dts

2023-07-13 Thread Stefan Roese
On 7/10/23 00:47, Chris Packham wrote: The sar-reg0 alias was left over from an earlier iteration of the patches adding support for this board. Remove the unused alias. Fixes: 6cc8b5db40 ("arm: mvebu: Add RD-AC5X board") Signed-off-by: Chris Packham Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH v2 5/6] arm: mvebu: Add Allied Telesis x240 board

2023-07-13 Thread Stefan Roese
On 7/10/23 00:47, Chris Packham wrote: The x240 and SE240 are a series of L2+ switches from Allied Telesis. There are a number of them in the range but as far as U-Boot is concerned all the CPU block components are the same so there's only one board defined. Signed-off-by: Chris Packham

[PATCH v3 12/12] arm: dts: k3-j721e-common-proc-board-u-boot: Remove usb0 mode configuration

2023-07-13 Thread Julien Panis
USB0 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v3 11/12] arm: dts: k3-j7200-common-proc-board-u-boot: Remove usb0 mode configuration

2023-07-13 Thread Julien Panis
USB0 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v3 10/12] arm: dts: k3-am642-evm-u-boot: Remove usb0 mode configuration

2023-07-13 Thread Julien Panis
USB0 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi

[PATCH v3 09/12] usb: cdns3: Handle otg mode as peripheral

2023-07-13 Thread Julien Panis
Override 'otg' to 'peripheral' mode, since 'otg' mode is not yet supported by u-boot. Signed-off-by: Julien Panis Suggested-by: Roger Quadros --- drivers/usb/cdns3/core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index

[PATCH v3 08/12] arm: dts: k3-am654-r5-base-board-u-boot: Remove usb mode configuration

2023-07-13 Thread Julien Panis
USB0 and USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/k3-am654-r5-base-board-u-boot.dtsi | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH v3 07/12] arm: dts: keystone-k2e-evm-u-boot: Remove usb1 mode configuration

2023-07-13 Thread Julien Panis
USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/keystone-k2e-evm-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/keystone-k2e-evm-u-boot.dtsi

[PATCH v3 06/12] arm: dts: dra76-evm-u-boot: Remove usb1 mode configuration

2023-07-13 Thread Julien Panis
USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/dra76-evm-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/dra76-evm-u-boot.dtsi

[PATCH v3 04/12] arm: dts: dra72-evm-revc-u-boot: Remove usb1 mode configuration

2023-07-13 Thread Julien Panis
USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/dra72-evm-revc-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/dra72-evm-revc-u-boot.dtsi

[PATCH v3 05/12] arm: dts: dra72-evm-u-boot: Remove usb1 mode configuration

2023-07-13 Thread Julien Panis
USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/dra72-evm-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/dra72-evm-u-boot.dtsi

[PATCH v3 03/12] arm: dts: dra71-evm-u-boot: Remove usb1 mode configuration

2023-07-13 Thread Julien Panis
USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/dra71-evm-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/dra71-evm-u-boot.dtsi

[PATCH v3 02/12] arm: dts: dra7-evm-u-boot: Remove usb1 mode configuration

2023-07-13 Thread Julien Panis
USB1 dual-role feature is already handled as peripheral only in dwc3-generic driver. Signed-off-by: Julien Panis Acked-by: Roger Quadros --- arch/arm/dts/dra7-evm-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/dra7-evm-u-boot.dtsi

  1   2   >