Re: [PATCH v2 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Leo Liang
Hi Chanho, On Mon, Aug 28, 2023 at 06:49:37PM +0900, Chanho Park wrote: > timer_get_boot_us function is required to record the boot stages as > us-based timestamp. > > Signed-off-by: Chanho Park > --- > drivers/timer/riscv_timer.c | 21 + > 1 file changed, 21 insertions(+) >

Re: [PATCH v2 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Leo Liang
Hi Chanho, On Mon, Aug 28, 2023 at 06:49:38PM +0900, Chanho Park wrote: > timer_get_boot_us function is required to record the boot stages as > us-based timestamp. > > Signed-off-by: Chanho Park > --- > drivers/timer/riscv_aclint_timer.c | 22 ++ > 1 file changed, 22 inserti

Re: [PATCH] spl: add __noreturn attribute to spl_invoke_opensbi function

2023-09-04 Thread Leo Liang
On Tue, Aug 29, 2023 at 10:20:14AM +0900, Chanho Park wrote: > spl_invoke_opensbi function is not returned to SPL. Thus, we need to > set __noreturn function attribute. > > Signed-off-by: Chanho Park > --- > common/spl/spl_opensbi.c | 7 --- > include/spl.h| 2 +- > 2 files chang

Re: [PATCH v2 05/17] cmd: rockusb: Use plain udevice for UDC controller interaction

2023-09-04 Thread Mattijs Korpershoek
On ven., sept. 01, 2023 at 11:49, Marek Vasut wrote: > Convert to plain udevice interaction with UDC controller > device, avoid the use of UDC uclass dev_array . > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek > --- > Cc: Angus Ainslie > Cc: Dmitrii Merkurev > Cc: Eddie Cai

Re: [PATCH v2 07/17] cmd: thordown: Reorder variable declaration

2023-09-04 Thread Mattijs Korpershoek
On ven., sept. 01, 2023 at 11:49, Marek Vasut wrote: > Move the variable declaration around to improve code readability. > No functional change. > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek > --- > Cc: Angus Ainslie > Cc: Dmitrii Merkurev > Cc: Eddie Cai > Cc: Kever Yang

RE: [PATCH v2 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Chanho Park
Hi, > -Original Message- > From: Leo Liang > Sent: Monday, September 4, 2023 4:01 PM > To: Chanho Park > Cc: Rick Chen ; Simon Glass ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2 2/3] riscv: timer: add timer_get_boot_us for > BOOTSTAGE > > Hi Chanho, > > On Mon, Aug 28, 2023 at 06

RE: [PATCH v2 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-09-04 Thread Chanho Park
Hi, > -Original Message- > From: Leo Liang > Sent: Monday, September 4, 2023 4:02 PM > To: Chanho Park > Cc: Rick Chen ; Simon Glass ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2 3/3] timer: riscv_aclint_timer: add > timer_get_boot_us for BOOTSTAGE > > Hi Chanho, > > On Mon, Aug 2

Re: [PATCH v2 13/17] thordown: Use plain udevice for UDC controller interaction

2023-09-04 Thread Mattijs Korpershoek
On ven., sept. 01, 2023 at 11:49, Marek Vasut wrote: > Convert to plain udevice interaction with UDC controller > device, avoid the use of UDC uclass dev_array . > > Signed-off-by: Marek Vasut > --- > Cc: Angus Ainslie > Cc: Dmitrii Merkurev > Cc: Eddie Cai > Cc: Kever Yang > Cc: Lukasz Maje

Re: [PATCH v2 14/17] usb: gadget: acm: Use plain udevice for UDC controller interaction

2023-09-04 Thread Mattijs Korpershoek
On ven., sept. 01, 2023 at 11:50, Marek Vasut wrote: > Convert to plain udevice interaction with UDC controller > device, avoid the use of UDC uclass dev_array . > > Signed-off-by: Marek Vasut Reviewed-by: Mattijs Korpershoek > --- > Cc: Angus Ainslie > Cc: Dmitrii Merkurev > Cc: Eddie Cai

Re: [PATCH v2 15/17] usb: gadget: ether: Use plain udevice for UDC controller interaction

2023-09-04 Thread Mattijs Korpershoek
On ven., sept. 01, 2023 at 11:50, Marek Vasut wrote: > Convert to plain udevice interaction with UDC controller > device, avoid the use of UDC uclass dev_array . > > Signed-off-by: Marek Vasut > --- > Cc: Angus Ainslie > Cc: Dmitrii Merkurev > Cc: Eddie Cai > Cc: Kever Yang > Cc: Lukasz Maje

Re: [PATCH v2 15/17] usb: gadget: ether: Use plain udevice for UDC controller interaction

2023-09-04 Thread Marek Vasut
On 9/4/23 09:56, Mattijs Korpershoek wrote: On ven., sept. 01, 2023 at 11:50, Marek Vasut wrote: Convert to plain udevice interaction with UDC controller device, avoid the use of UDC uclass dev_array . Signed-off-by: Marek Vasut --- Cc: Angus Ainslie Cc: Dmitrii Merkurev Cc: Eddie Cai Cc:

Re: [PATCH 7/8] spl: x86: Avoid starting up PCI automatically in SPL

2023-09-04 Thread Bin Meng
Hi Simon, On Thu, Aug 24, 2023 at 10:11 AM Heinrich Schuchardt wrote: > > > > Am 24. August 2023 01:57:55 MESZ schrieb Simon Glass : > >Hi Heinrich, > > > >On Wed, 23 Aug 2023 at 14:19, Heinrich Schuchardt wrote: > >> > >> On 8/23/23 20:47, Simon Glass wrote: > >> > For x86 platforms, PCI is cor

Re: [PATCH 1/8] x86: broadwell: Show the memory delay

2023-09-04 Thread Bin Meng
On Thu, Aug 24, 2023 at 2:47 AM Simon Glass wrote: > > Samus only takes 7 seconds but it is long enough to think it has hung. Add > a message about what it is doing, similar to the approach on coral. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/intel_common/mrc.c | 18

Re: [PATCH 2/8] x86: Add some log categories

2023-09-04 Thread Bin Meng
On Thu, Aug 24, 2023 at 2:47 AM Simon Glass wrote: > > Add some missing log categories to a few files. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/broadwell/sdram.c | 2 ++ > arch/x86/lib/tpl.c | 2 ++ > 2 files changed, 4 insertions(+) > Reviewed-by: Bin Meng

Re: [PATCH 3/8] x86: samus_tpl: Correct text base and alloc sizes

2023-09-04 Thread Bin Meng
Hi Simon, On Thu, Aug 24, 2023 at 2:48 AM Simon Glass wrote: > > Make sure that CONFIG_TEXT_BASE is the same as CONFIG_X86_OFFSET_U_BOOT The commit message should say: Make sure that CONFIG_X86_OFFSET_U_BOOT is the same as CONFIG_TEXT_BASE as it is changing CONFIG_X86_OFFSET_U_BOOT. > since th

Re: [PATCH 4/8] x86: spl: Change the condition for copying U-Boot to RAM

2023-09-04 Thread Bin Meng
On Thu, Aug 24, 2023 at 2:48 AM Simon Glass wrote: > > Make this depend on whether the address matches the offset, rather than > a particular board build. For samus_tpl we don't need to copy, for > example. > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/spl.c | 2 +- > 1 file changed, 1 i

Re: [PATCH 5/8] x86: broadwell: Avoid initing the CPU twice

2023-09-04 Thread Bin Meng
On Thu, Aug 24, 2023 at 2:48 AM Simon Glass wrote: > > When TPL has already set up the CPU, don't do it again. This existing > code actually has this backwards, so fix it. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/broadwell/cpu.c | 10 +- > 1 file changed, 5 insertions(+), 5

Re: [PATCH 6/8] x86: broadwell: Set up MTRRs

2023-09-04 Thread Bin Meng
Hi Simon, On Thu, Aug 24, 2023 at 2:48 AM Simon Glass wrote: > > The current condition does not handle the samus_tpl case where it sets > up the RAM in SPL but needs to commit the MTRRs in U-Boot proper. > > Add another case to handle this and update the comment. > > Signed-off-by: Simon Glass >

Re: [PATCH 8/8] x86: doc: Update the list of supported Chromebooks

2023-09-04 Thread Bin Meng
On Thu, Aug 24, 2023 at 2:48 AM Simon Glass wrote: > > One is missing, so add it. Also mention the SoC used in each. > > Signed-off-by: Simon Glass > --- > > doc/arch/x86.rst | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng

Re: [PATCH] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-04 Thread Fabrice Gasnier
On 9/2/23 11:06, Xavier Drudis Ferran wrote: > Is the change of behaviour intended when a clock or reset is not found ? > (see below) Hi Xavier, I'd say yes, although I haven't seen that... please find my answers below. > > El Wed, Aug 30, 2023 at 10:01:49AM +0200, Fabrice Gasnier deia: >> Make

RE: [PATCH 2/2] risc-v: implement DBCN based debug console

2023-09-04 Thread Chanho Park
Hi, > -Original Message- > From: U-Boot On Behalf Of Heinrich > Schuchardt > Sent: Saturday, August 19, 2023 10:13 PM > To: Rick Chen ; Leo > Cc: Bin Meng ; Anup Patel ; > u-boot@lists.denx.de; Heinrich Schuchardt > > Subject: [PATCH 2/2] risc-v: implement DBCN based debug console > >

Re: [PATCH 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-04 Thread Ilias Apalodimas
Hi Simon, On Fri, 1 Sept 2023 at 18:51, Simon Glass wrote: > > Hi Ilias, > > On Fri, 1 Sept 2023 at 01:50, Ilias Apalodimas > wrote: > > > > [...] > > > > > > > > > > > +config OF_BLOBLIST > > > > > + bool "DTB is provided by a bloblist" > > > > > + help > > > > > + Select this to

Re: [PATCH 4/5] xilinx: zynqmp: add Beckhoff CX8200

2023-09-04 Thread Michal Simek
On 9/1/23 17:03, Steffen Dirkwinkel wrote: Am 01.09.23 um 13:16 schrieb Michal Simek: On 9/1/23 11:00, Steffen Dirkwinkel wrote: Am 01.09.23 um 09:36 schrieb Michal Simek: On 8/30/23 16:03, Steffen Dirkwinkel wrote: From: Steffen Dirkwinkel This adds support for the Beckhoff CX82

Re: [PATCH 2/2] risc-v: implement DBCN based debug console

2023-09-04 Thread Heinrich Schuchardt
On 9/4/23 11:30, Chanho Park wrote: Hi, -Original Message- From: U-Boot On Behalf Of Heinrich Schuchardt Sent: Saturday, August 19, 2023 10:13 PM To: Rick Chen ; Leo Cc: Bin Meng ; Anup Patel ; u-boot@lists.denx.de; Heinrich Schuchardt Subject: [PATCH 2/2] risc-v: implement DBCN base

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

2023-09-04 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.5-rc1 along with addition of the documentation for J721S2 that had been previously missing. MCU Ringacc [0] and DM

[PATCH v4 1/6] configs: j721s2_evm_r5_defconfig: Increase malloc pool size in DRAM

2023-09-04 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 Chawdhr

[PATCH v4 2/6] arm: mach-k3: j721s2: Add mcu_timer0 id to the dev list

2023-09-04 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 insertion

[PATCH v4 3/6] k3-j721s2: Sync from Linux tag v6.5-rc1

2023-09-04 Thread Manorit Chawdhry
The following commit syncs the device tree from Linux tag v6.5-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 k3-j721s2-common-proc-boar

[PATCH v4 4/6] k3-am68: Sync from Linux tag v6.5-rc1

2023-09-04 Thread Manorit Chawdhry
The following commit syncs the device tree from Linux tag v6.5-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 Li

[PATCH v4 5/6] docs: board: ti: Add j721s2_evm documentation

2023-09-04 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 Signed-off-by: Manorit Chawdhry --- d

[PATCH v4 6/6] board: ti: j721s2: MAINTAINERS: Update the MAINTAINERS File.

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

[PATCH v2 0/2] risc-v: implement DBCN based debug console

2023-09-04 Thread Heinrich Schuchardt
Currently we only offer an SBI based debug UART for SBI v0.1. With OpenSBI 1.3 the Debug Console Extension (DBCN) has become available. This allows us to implement a debug UART in a device independent manor. v2: In the driver check that we are in S-mode. Heinrich Schuchardt (2): risc-v:

[PATCH v2 1/2] risc-v: implement DBCN write byte

2023-09-04 Thread Heinrich Schuchardt
The DBCN extension provides a Console Write Byte call. Implement function sbi_dbcn_write_byte to invoke it. Signed-off-by: Heinrich Schuchardt Reviewed-by: Leo Yu-Chi Liang --- v2: no change --- arch/riscv/include/asm/sbi.h | 1 + arch/riscv/lib/sbi.c | 16 2 f

[PATCH v2 2/2] risc-v: implement DBCN based debug console

2023-09-04 Thread Heinrich Schuchardt
Use the DBCN SBI extension to implement a debug console. Make it the default for S-mode RISC-V. Signed-off-by: Heinrich Schuchardt --- v2: check that we are in S-mode --- drivers/serial/Kconfig | 5 - drivers/serial/serial_sbi.c | 20 2 files changed, 24 in

Updates for RPi for 2023.10:

2023-09-04 Thread Peter Robinson
The following changes since commit 8999257f219d1e371c2fd66f255b8782897944d9: Merge tag 'doc-2023-10-rc4-2' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-09-02 09:08:54 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-raspberrypi/ t

[PATCH v2] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-04 Thread Fabrice Gasnier
Make usage of clock and reset bulk API in order to simplify the code Reviewed-by: Marek Vasut Signed-off-by: Fabrice Gasnier --- Changes in v2: - fix copy/paste on dev_err message since Marek's review comment - add Marek's review tag --- drivers/usb/host/ohci-generic.c | 92 +++---

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-04 Thread Fabrice Gasnier
On 9/1/23 18:00, Marek Vasut wrote: > On 9/1/23 14:12, Fabrice Gasnier wrote: >> On 9/1/23 12:48, Marek Vasut wrote: >>> On 9/1/23 11:52, Fabrice Gasnier wrote: EHCI is usually used with companion controller (like OHCI) as companion controller. This information on the companion is missing

Re: [PATCH] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-04 Thread Xavier Drudis Ferran
El Mon, Sep 04, 2023 at 11:25:06AM +0200, Fabrice Gasnier deia: > > IMHO, the OHCI should have failed too in this example, instead of > silently ignoring the error. Hopefully it has probed. > > The clk_get_bulk() code does a similar job compared to ohci current > code. It counts all clock entries.

Re: [PATCH v5 05/11] spl: Convert mmc to spl_load

2023-09-04 Thread Xavier Drudis Ferran
El Sun, Sep 03, 2023 at 08:17:26AM +, Jonas Karlman deia: > > Fundamentally, we can't really deal with unaligned images without a > > bounce-buffer. The method used by SPL_LOAD_FIT_IMAGE_BUFFER_SIZE will > > continue working, since we call into the FIT routines to load the image. Yes > > I w

Re: [PATCH] verdin-imx8mp: drop unused tdx easy installer ifdef

2023-09-04 Thread Marcel Ziswiler
Hi Hiago Thanks! On Mon, 2023-09-04 at 10:24 -0300, Hiago De Franco wrote: > From: Hiago De Franco > > Drop unused code related to CONFIG_TDX_EASY_INSTALLER, that existed only on > toradex downstream branch. > > Signed-off-by: Hiago De Franco Acked-by: Marcel Ziswiler > --- >  include/conf

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-04 Thread Marek Vasut
On 9/4/23 14:34, Fabrice Gasnier wrote: On 9/1/23 18:00, Marek Vasut wrote: On 9/1/23 14:12, Fabrice Gasnier wrote: On 9/1/23 12:48, Marek Vasut wrote: On 9/1/23 11:52, Fabrice Gasnier wrote: EHCI is usually used with companion controller (like OHCI) as companion controller. This information

Re: [PATCH v2] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-04 Thread Marek Vasut
On 9/4/23 14:20, Fabrice Gasnier wrote: Make usage of clock and reset bulk API in order to simplify the code Reviewed-by: Marek Vasut Signed-off-by: Fabrice Gasnier --- Changes in v2: - fix copy/paste on dev_err message since Marek's review comment - add Marek's review tag Likely still need

[PATCH v2 0/2] Fix dependencies of USB Kconfig options

2023-09-04 Thread Venkatesh Yadav Abbarapu
When USB device driver CONFIG_USB and CONFIG_CMD_USB are disabled, some compilation issues are seen. Also CMD_THOR_DOWNLOAD should depend on USB_GADGET_DOWNLOAD. Add dependencies to resolve those issues and compile properly. Also remove unused config CONFIG_ZYNQMP_USB. Changes in v2: - Added the d

[PATCH v2 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD

2023-09-04 Thread Venkatesh Yadav Abbarapu
When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors are seen as below. cmd/thordown.o: in function `usb_gadget_initialize': include/linux/usb/gadget.h:981: undefined reference to `board_usb_init' cmd/thordown.o: in function `do_thor_down': cmd/thordown.c:68: undefined referenc

[PATCH v2 2/2] zynqmp: config: Add proper dependencies for USB

2023-09-04 Thread Venkatesh Yadav Abbarapu
When CONFIG_CMD_USB and CONFIG_USB are disabled, still some compilation errors are seen as below. In file included from include/configs/xilinx_zynqmp.h:173, from include/config.h:3, from include/common.h:16, from env/common.c:10: include/config_di

[PATCH 0/3] Do not setup boot_targets if driver is not enabled

2023-09-04 Thread Venkatesh Yadav Abbarapu
Fixing the boot_targets for versal-net, versal and zynqmp platforms. Venkatesh Yadav Abbarapu (3): xilinx: versal-net: Do not setup boot_targets if driver is not enabled xilinx: versal: Do not setup boot_targets if driver is not enabled xilinx: zynqmp: Do not setup boot_targets if driver is

[PATCH 1/3] xilinx: versal-net: Do not setup boot_targets if driver is not enabled

2023-09-04 Thread Venkatesh Yadav Abbarapu
SOC can boot in the device which is not accessible from APU and running this is detected as error which ends up in stopping boot process. Boot mode detection and logic around is present to setup priority on boot devices that SOC boot device is likely also used for booting OS. Change logic to detect

[PATCH 3/3] xilinx: zynqmp: Do not setup boot_targets if driver is not enabled

2023-09-04 Thread Venkatesh Yadav Abbarapu
SOC can boot in the device which is not accessible from APU and running this is detected as error which ends up in stopping boot process. Boot mode detection and logic around is present to setup priority on boot devices that SOC boot device is likely also used for booting OS. Change logic to detect

[PATCH 2/3] xilinx: versal: Do not setup boot_targets if driver is not enabled

2023-09-04 Thread Venkatesh Yadav Abbarapu
SOC can boot in the device which is not accessible from APU and running this is detected as error which ends up in stopping boot process. Boot mode detection and logic around is present to setup priority on boot devices that SOC boot device is likely also used for booting OS. Change logic to detect

[PATCH] verdin-imx8mp: drop unused tdx easy installer ifdef

2023-09-04 Thread Hiago De Franco
From: Hiago De Franco Drop unused code related to CONFIG_TDX_EASY_INSTALLER, that existed only on toradex downstream branch. Signed-off-by: Hiago De Franco --- include/configs/verdin-imx8mp.h | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/configs/verdin-

[PATCH] Adjust gitignore for /build

2023-09-04 Thread Rong Tao
From: Rong Tao /build-* can't ignore /build. Signed-off-by: Rong Tao --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 002f95de4feb..9697f0088f80 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ *.tab.[ch] # Build tre

[PATCH] binman: Fix SyntaxWarning: invalid escape sequence '\('

2023-09-04 Thread Rong Tao
From: Rong Tao Reproduct warning: $ sudo git clean -dfx $ make CROSS_COMPILE="" qemu-x86_64_defconfig $ sudo make -j8 ... u-boot/tools/binman/etype/section.py:25: SyntaxWarning: invalid escape sequence '\(' """Entry that contains other entries Signed-off-by: Rong Tao

Re: Updates for RPi for 2023.10:

2023-09-04 Thread Tom Rini
On Mon, Sep 04, 2023 at 01:10:09PM +0100, Peter Robinson wrote: > The following changes since commit 8999257f219d1e371c2fd66f255b8782897944d9: > > Merge tag 'doc-2023-10-rc4-2' of > https://source.denx.de/u-boot/custodians/u-boot-efi (2023-09-02 > 09:08:54 -0400) > > are available in the Git r

[ANN] U-Boot v2023.10-rc4 released

2023-09-04 Thread Tom Rini
Hey all, Once again it's release day and I've tagged and pushed -rc4, and will merge that to next as well shortly. We are firmly in the stabilization period at this point and I really want to see PRs for -next for things that aren't fixes. Adding Fixes tags would be great and helpful, but not req

[PATCH v3 01/20] lib: rational: Move the Kconfigs into the correct place

2023-09-04 Thread Simon Glass
These should not be part of the 'system tables' menu. Move them outside on their own. Signed-off-by: Simon Glass Fixes: 7d0f3fbb93c ("lib: rational: copy the rational fraction lib...") --- (no changes since v1) lib/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v3 00/20] Kconfig: Tidy up some options

2023-09-04 Thread Simon Glass
The view from 'make menuconfig' is confusing in places. This series aims to improve the top-level menu and also the boot menu. It also groups FDT-fixup options tegether, at least the ones I could fine. Finally this series marks the distro scripts as deprecated, so people have a pointer to standar

[PATCH v3 02/20] Kconfig: Move API into general setup

2023-09-04 Thread Simon Glass
This is perhaps not a commonly used feature so should not have its own option in the main menu. Move it under general setup. Signed-off-by: Simon Glass --- (no changes since v1) Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 91170bf8d223

[PATCH v3 03/20] video: Move bmp code to drivers/video

2023-09-04 Thread Simon Glass
This relates to graphics which is only active when CONFIG_VIDEO is enabled. Move it into that directory. There is no harm in compiling it always, since it if not used it will be dropped by the linker. So drop use of the BMP Kconfig. Signed-off-by: Simon Glass --- (no changes since v2) Changes

[PATCH v3 04/20] video: Move the BMP options

2023-09-04 Thread Simon Glass
These appear prominently in the main menu at present. Move them to the video Kconfig where they belong. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Just move these options to driver/video for later consideration common/Kconfig| 11 --- drivers/video/K

[PATCH v3 05/20] video: Move BMP options and code to video directory

2023-09-04 Thread Simon Glass
Put the options and the common BMP code with the other related Kconfig options in the drivers/video directory. Signed-off-by: Simon Glass --- (no changes since v1) drivers/video/Kconfig | 11 +++ drivers/video/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/drivers/v

[PATCH v3 06/20] FWU: Avoid showing an unselectable menu option

2023-09-04 Thread Simon Glass
Use a menuconfig to avoid showing a menu which cannot be selected in many cases. Signed-off-by: Simon Glass Acked-by: Sughosh Ganu Reviewed-by: Tom Rini --- Changes in v3: - Drop comment about an update/ directory Changes in v2: - Fix FMU typo in the subject - Drop now-unnecessary depends on

[PATCH v3 07/20] test: Move POST under a renamed Testing section

2023-09-04 Thread Simon Glass
Rename Unit tests to Testing, since it is a stretch to describe some of the tests as unit tests. Move POST there as well, so it doesn't show up by itself in the top-level menu. Signed-off-by: Simon Glass --- (no changes since v1) test/Kconfig | 12 ++-- 1 file changed, 6 insertions(+),

[PATCH v3 08/20] boot: Move fdt_support to boot/

2023-09-04 Thread Simon Glass
This relates to booting since it fixes up the devicetree for the OS. Move it into the boot/ directory. Signed-off-by: Simon Glass --- (no changes since v1) boot/Makefile | 3 +++ {common => boot}/fdt_support.c | 0 common/Makefile| 2 -- 3 files changed, 3 inse

[PATCH v3 09/20] Move fdt_simplefb to boot/

2023-09-04 Thread Simon Glass
This relates to booting, so move it there. Create a new Kconfig menu for things related to devicetree fixup. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig| 16 boot/Makefile | 1 + {common => boot}/fdt_simplefb.c | 0

[PATCH v3 10/20] boot: Move some other fdt-fixup options to the same menu

2023-09-04 Thread Simon Glass
Move more options relating to fixing up a device tree into the new devicetree-fixup menu. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 55 +--- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/boot/Kconfig b/

[PATCH v3 11/20] boot: Rename Android-boot text

2023-09-04 Thread Simon Glass
Phrases like 'Enable support for' are pointless since this is an option which enables things. Drop that part so it is easier to follow. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kcon

[PATCH v3 12/20] Kconfig: Create a menu for FIT

2023-09-04 Thread Simon Glass
This is a major feature with a lot of options. Give it its own menu to tidy up the 'make menuconfig' display. Drop the 'depends on FIT' pieces which are now unnecessary, since they are now bracketed by an 'if FIT'. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 18

[PATCH v3 13/20] Kconfig: Move SPL_FIT under FIT

2023-09-04 Thread Simon Glass
This option already depends on FIT, so put it under the same umbrella, so that it appears in the FIT menu. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 467bca7067

[PATCH v3 14/20] spl: Tidy up load address in spl_ram

2023-09-04 Thread Simon Glass
This CONFIG is used but is not given a value by some boards. Use a default value of 0 explicitly, rather than relying on the 0 value provided by CONFIG_SPL_LOAD_FIT_ADDRESS This will allow us to make SPL_LOAD_FIT_ADDRESS depend on SPL_LOAD_FIT as it should. Signed-off-by: Simon Glass --- (no ch

[PATCH v3 15/20] boot: Make standard boot a menu

2023-09-04 Thread Simon Glass
Collect these options into a menu for easier viewing. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index c9b7d3f710b6..17f54b926f05 100644 --- a/boot/Kconfig +++ b/bo

[PATCH v3 16/20] Kconfig: Move TEXT_BASE et al under general setup

2023-09-04 Thread Simon Glass
These don't relate to booting. Move them out of there and into the same place as the other related settings. Signed-off-by: Simon Glass --- (no changes since v1) Kconfig | 65 boot/Kconfig | 65 --

[PATCH v3 17/20] Mark DISTRO_DEFAULTS as deprecated

2023-09-04 Thread Simon Glass
Standard boot has been in place for a while now. Quite a few problems have been found and fixed. It seems like a good time to mark the script-based approach as deprecated and encourage people to use standard boot. Update the DISTRO_DEFAULTS Kconfig to encourage people to move to standard boot, whi

[PATCH v3 18/20] boot: Join FDT_FIXUP_PARTITIONS with related options

2023-09-04 Thread Simon Glass
Move this to be with the other devicetree-fixup options. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 8 lib/Kconfig | 9 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index 08efecb13ef6..a7dcd6b0ae07 10064

[PATCH v3 19/20] boot: Drop CMD_MTDPARTS condition for FDT_FIXUP_PARTITIONS

2023-09-04 Thread Simon Glass
This is not needed, so drop it. Also use a capital 'O' for the option, while we are here. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- Changes in v3: - Add new patch to drop CMD_MTDPARTS condition for FDT_FIXUP_PARTITIONS boot/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

[PATCH v3 20/20] boot: Join ARCH_FIXUP_FDT_MEMORY with related options

2023-09-04 Thread Simon Glass
Move this to be with the other devicetree-fixup options. Signed-off-by: Simon Glass --- Changes in v3: - Drop patch 'Move SYS_RX_ETH_BUFFER into the network menu' boot/Kconfig | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/boot/Kconfig b/boot/Kconfig index

Re: [PATCH v2] usb: host: ohci-generic: Make usage of clock/reset bulk() API

2023-09-04 Thread Xavier Drudis Ferran
El Mon, Sep 04, 2023 at 02:20:21PM +0200, Fabrice Gasnier deia: > Make usage of clock and reset bulk API in order to simplify the code > > Reviewed-by: Marek Vasut Reviewed-by: Xavier Drudis Ferran Sorry. I don't know why I used the wrong address before. > Signed-off-by: Fabrice Gasnier > --

Re: [PATCH v2 19/19] boot: Join ARCH_FIXUP_FDT_MEMORY with related options

2023-09-04 Thread Simon Glass
Hi Tom, On Thu, 31 Aug 2023 at 08:01, Tom Rini wrote: > > On Wed, Aug 30, 2023 at 09:53:13PM -0600, Simon Glass wrote: > > Move this to be with the other devicetree-fixup options. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > boot/Kconfig | 16

Re: [PATCH 1/3] xilinx: versal-net: Do not setup boot_targets if driver is not enabled

2023-09-04 Thread Simon Glass
Hi Venkatesh, On Mon, 4 Sept 2023 at 07:58, Venkatesh Yadav Abbarapu wrote: > > SOC can boot in the device which is not accessible from APU and running > this is detected as error which ends up in stopping boot process. > Boot mode detection and logic around is present to setup priority > on boot

Re: [PATCH v2 19/19] boot: Join ARCH_FIXUP_FDT_MEMORY with related options

2023-09-04 Thread Tom Rini
On Mon, Sep 04, 2023 at 08:43:12AM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 31 Aug 2023 at 08:01, Tom Rini wrote: > > > > On Wed, Aug 30, 2023 at 09:53:13PM -0600, Simon Glass wrote: > > > Move this to be with the other devicetree-fixup options. > > > > > > Signed-off-by: Simon Glass > >

Re: [PATCH v2 02/14] lmb: Rename interior piece to area

2023-09-04 Thread Simon Glass
Hi Heinrich, On Fri, 1 Sept 2023 at 08:29, Simon Glass wrote: > > Hi Heinrich, > > On Fri, 1 Sept 2023 at 00:16, Heinrich Schuchardt wrote: > > > > On 9/1/23 03:13, Simon Glass wrote: > > > The lmb data structures use the word 'region' to describe the region in > > > which the allocations happen

Binman how to build using Rockchip BL32 binary as OP-TEE

2023-09-04 Thread Massimo Pegorer
Hi, Is there any way for binman to package FIT with U-Boot TF-A and OP-TEE, using bl32 binary provided by Rockchip as TEE? I've tried with TEE=/path/to/rkbin/bin/rk33/xxx_bl32_vX.YZ.bin, but binman failed. In my poor understanding of Python code, it seems binman accepts only ELF format or a bina

[PATCH 1/6] board: gateworks: venice: fix gw7904

2023-09-04 Thread sbabic
> Add missing imx8mm-venice-gw7904 to CONFIG_OF_LIST > Fixes commit 61e7f9732565 ("board: gateworks: venice: add imx8mm-gw7904 > support") > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] ARM: imx: Select 2 DRAM banks on Data Modul i.MX8M Mini eDM SBC

2023-09-04 Thread sbabic
> U-Boot splits DRAM bank spanning addresses below and above the 32bit > boundary into two DRAM banks. Since this platform may come with 4GiB > of DRAM, increase the DRAM bank count to 2. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

[PATCH] ARM: imx: Use default SAVED_DRAM_TIMING_BASE on DH i.MX8M Plus DHCOM

2023-09-04 Thread sbabic
> Use default SAVED_DRAM_TIMING_BASE as that is what upstream TFA expects. > Without this change, the board will fail to suspend/resume e.g. in Linux. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 1/2] ARM: imx: Use default SAVED_DRAM_TIMING_BASE on Data Modul i.MX8M Mini eDM SBC

2023-09-04 Thread sbabic
> Use default SAVED_DRAM_TIMING_BASE as that is what upstream TFA expects. > Without this change, the board will fail to suspend/resume e.g. in Linux. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 2/2] ARM: imx: Use default SAVED_DRAM_TIMING_BASE on Data Modul i.MX8M Plus eDM SBC

2023-09-04 Thread sbabic
> Use default SAVED_DRAM_TIMING_BASE as that is what upstream TFA expects. > Without this change, the board will fail to suspend/resume e.g. in Linux. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] ARM: imx: Drop CONFIG_USE_BOOTCOMMAND=n on i.MX6 DHSOM

2023-09-04 Thread sbabic
> This board certainly does use default 'run distro_bootcmd' boot command, > make sure this is set in 'bootcmd' variable. > Fixes: 970bf8603b8 ("Convert CONFIG_USE_BOOTCOMMAND et al to Kconfig") > Signed-off-by: Marek Vasut > Reviewed-by: Tom Rini Applied to u-boot-imx, master, thanks ! Best reg

[PATCH v2] arm: imx: imx8m: imx9: Fix DRAM size calculation due to rom_pointer

2023-09-04 Thread sbabic
> If dram_init_banksize() is called from SPL, the rom_pointer, at that > point, is not correctly initialized. This causes wrong calculation of > DRAM start and size in dram_init_banksize(). The issue became apparent > only in Falcon Mode. Added an extra condition to prevent using > rom_pointer in S

[PATCH] event.h: Documented some newly added portions better

2023-09-04 Thread Tom Rini
After the merge of v2023.10-rc4 to next include/event.h needs to be fully documented in order for documentation builds to complete. Rewords two of the event_t descriptions to be docbook style and better match the rest of this enum. Fix two typos (flag->flags) in other comments. Signed-off-by: To

Re: [PATCH] event.h: Documented some newly added portions better

2023-09-04 Thread Tom Rini
On Mon, Sep 04, 2023 at 11:21:20AM -0400, Tom Rini wrote: > After the merge of v2023.10-rc4 to next include/event.h needs to be > fully documented in order for documentation builds to complete. Rewords > two of the event_t descriptions to be docbook style and better match the > rest of this enum.

Re: [PATCHv7 04/15] net/lwip: implement dhcp cmd

2023-09-04 Thread Maxim Uvarov
On Wed, 23 Aug 2023 at 00:58, Simon Glass wrote: > Hi Maxim, > > On Tue, 22 Aug 2023 at 03:39, Maxim Uvarov > wrote: > > > > U-Boot recently got support for an alternative network stack using LWIP. > > Replace dhcp command with the LWIP variant while keeping the output and > > error messages ide

Re: [PATCH v2 15/17] usb: gadget: ether: Use plain udevice for UDC controller interaction

2023-09-04 Thread Mattijs Korpershoek
On lun., sept. 04, 2023 at 11:10, Marek Vasut wrote: > On 9/4/23 09:56, Mattijs Korpershoek wrote: >> On ven., sept. 01, 2023 at 11:50, Marek Vasut wrote: >> >>> Convert to plain udevice interaction with UDC controller >>> device, avoid the use of UDC uclass dev_array . >>> >>> Signed-off-by: M

[PATCH] buildman: Fix full help for Python 3.8

2023-09-04 Thread Simon Glass
With Python versions older than 3.9 Buildman produces an error on start-up. Fix this with a workaround for importlib. There is already a workaround for v3.6 but I am not sure if that is still functioning. Signed-off-by: Simon Glass --- tools/buildman/main.py | 10 -- 1 file changed, 8

Re: [PATCH] arm: dts: k3-j7*: ddr: Update to 0.10 version of DDR config tool

2023-09-04 Thread Bryan Brattlof
Hi Neha! On August 28, 2023 thus sayeth Neha Malcom Francis: > Update the DDR settings to those generated using 0.10 version of Jacinto > 7 DDRSS Register Configuration tool. > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/k3-j721e-ddr-evm-lp4-4266.dtsi | 98 ++-- > arch/arm/dts/k

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-04 Thread Fabrice Gasnier
On 9/4/23 15:54, Marek Vasut wrote: > On 9/4/23 14:34, Fabrice Gasnier wrote: >> On 9/1/23 18:00, Marek Vasut wrote: >>> On 9/1/23 14:12, Fabrice Gasnier wrote: On 9/1/23 12:48, Marek Vasut wrote: > On 9/1/23 11:52, Fabrice Gasnier wrote: >> EHCI is usually used with companion controll

Re: [PATCH v2] usb: check for companion controller in uclass

2023-09-04 Thread Marek Vasut
On 9/4/23 18:21, Fabrice Gasnier wrote: On 9/4/23 15:54, Marek Vasut wrote: On 9/4/23 14:34, Fabrice Gasnier wrote: On 9/1/23 18:00, Marek Vasut wrote: On 9/1/23 14:12, Fabrice Gasnier wrote: On 9/1/23 12:48, Marek Vasut wrote: On 9/1/23 11:52, Fabrice Gasnier wrote: EHCI is usually used wi

Re: [PATCH 3/3] Azure: Add sandbox64 to CI

2023-09-04 Thread Simon Glass
On Fri, 1 Sept 2023 at 14:42, Tom Rini wrote: > > Now that sandbox64 can run and pass the regular test.py suite, add it > here as well. > > Signed-off-by: Tom Rini > --- > .azure-pipelines.yml | 5 + > 1 file changed, 5 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH v2 2/4] cmd: gpt: use UUID accessor more consistently

2023-09-04 Thread Simon Glass
On Sat, 2 Sept 2023 at 01:34, Heinrich Schuchardt wrote: > > disk_partition_uuid() and disk_partition_set_uuid() were introduced to let > us avoid the usage of #ifdef when dealing with the field uuid of > struct disk_partition. > > In allocate_disk_part() commit c5f1d005f517 ("part: Add accessors

Re: [PATCH v2 3/4] cmd: gpt: fix calc_parts_list_len()

2023-09-04 Thread Simon Glass
Hi Heinrich, On Sat, 2 Sept 2023 at 01:34, Heinrich Schuchardt wrote: > > * Avoid incrementing by moving comma into strlen("uuid_disk=,") and > considering NUL byte. > * Appending a UUID only adds UUID_STR_LEN bytes. > Don't count the terminating NUL. > * The length of the hexadecimal represen

Re: [PATCH 08/19] boot: Move fdt_support to boot/

2023-09-04 Thread Simon Glass
Hi Devarsh, On Thu, 31 Aug 2023 at 00:02, Devarsh Thakkar wrote: > > Hi Simon, > > On 25/08/23 01:28, Simon Glass wrote: > > This relates to booting since it fixes up the devicetree for the OS. Move > > it into the boot/ directory. > > > > Signed-off-by: Simon Glass > > --- > > > > boot/Makefil

  1   2   >