Re: [PATCH] test/py: reset: Add a test for reset command

2024-01-12 Thread Tom Rini
On Thu, Jan 11, 2024 at 11:10:01AM +0530, Love Kumar wrote: > Add a test for reset commands which performs resetting of CPU, It does > COLD reset by default and WARM reset with -w option. > > Signed-off-by: Love Kumar > --- > test/py/tests/test_reset.py | 50

[PATCH v5 8/8] fdt: get FDT from bloblist

2024-01-12 Thread Raymond Mao
Get device tree from a bloblist if it exists. If not, fallback to traditional way. Signed-off-by: Raymond Mao --- Changes in v2 - Refactor of board_fdt_blob_setup(). Changes in v4 - Move the logics from board custom function to fdt library. Changes in V5 - Rebase the changes on top of master. l

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

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

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

2024-01-12 Thread Raymond Mao
Add arch custom function to get bloblist from boot arguments. Check whether boot arguments aligns with the register conventions defined in FW Handoff spec v0.9. Add bloblist related options into qemu-arm default config. Signed-off-by: Raymond Mao --- Changes in v2 - Remove low level code for copy

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

2024-01-12 Thread Raymond Mao
Save boot arguments x[0-3] into an array for handover of bloblist from previous boot stage. Signed-off-by: Raymond Mao --- Changes in v2 - New patch file created for v2. Changes in V5 - Drop the dependence on OF_BOARD. arch/arm/cpu/armv8/start.S | 14 ++ 1 file changed, 14 insertion

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

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

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

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

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

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

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

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

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

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

Re: [PATCH V2 10/10] include: env: ti: Drop default_findfdt

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > We shouldn't need finfdt anymore. Drop the env script. > > Signed-off-by: Nishanth Menon > --- > Changes from V1: None. > > V1: https://lore.kernel.org/r/20240108173301.2692332-11...@ti.com > include/env/ti/default_findfdt.env | 12 > 1 file changed, 12 del

Re: [PATCH V2 09/10] board: beagle: beagleplay: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > Stop using the findfdt script and switch to setting the fdtfile from C > code. > > Signed-off-by: Nishanth Menon > --- > Changes from V1: > * Just macro name change s/TI_EVM_FDT_FOLDER_PATH/TI_FDT_FOLDER_PATH > * Commit message update to drop the "warning added to findfd

Re: [PATCH V2 08/10] board: beagle: beagleboneai64: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > Stop using the findfdt script and switch to setting the fdtfile from C > code. > > Signed-off-by: Nishanth Menon > --- > Changes from V1: > * Just macro name change s/TI_EVM_FDT_FOLDER_PATH/TI_FDT_FOLDER_PATH > * Commit message update to drop the "warning added to findfd

Re: [PATCH V2 07/10] board: ti: j721s2: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > We now can provide a map and have the standard fdtfile variable set from > code itself. This allows for bootstd to "just work". > > While at this, replace findfdt in environment with a warning as it is no > longer needed. > > Signed-off-by: Nishanth Menon > --- > Changes

Re: [PATCH V2 06/10] board: ti: j721e: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > We now can provide a map and have the standard fdtfile variable set from > code itself. This allows for bootstd to "just work". > > While at this, replace findfdt in environment with a warning as it is no > longer needed. > > Signed-off-by: Nishanth Menon > --- > Changes

Re: [PATCH V2 05/10] board: ti: am65x: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > We now can provide a map and have the standard fdtfile variable set from > code itself. This allows for bootstd to "just work". > > While at this, replace findfdt in environment with a warning as it is no > longer needed. > > Signed-off-by: Nishanth Menon > --- > Changes

Re: [PATCH V2 04/10] board: ti: am64x: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > We now can provide a map and have the standard fdtfile variable set from > code itself. This allows for bootstd to "just work". > > While at this, replace findfdt in environment with a warning as it is no > longer needed. > > Signed-off-by: Nishanth Menon > --- > Changes

Re: [PATCH V2 03/10] board: ti: am62x: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > Stop using the findfdt script and switch to setting the fdtfile from > C code. > > While at this, replace findfdt in environment with a warning as it is > no longer needed > > Signed-off-by: Nishanth Menon > --- > Changes from V1: None. > I have retained the central call

Re: [PATCH V2 02/10] board: ti: am62ax: Set fdtfile from C code instead of findfdt script

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > Stop using the findfdt script and switch to setting the fdtfile from > C code. > > While at this, replace findfdt in environment with a warning as it is > no longer needed > > Signed-off-by: Nishanth Menon > --- > Changes from V1: None. > I have retained the central call

Re: [PATCH V2 01/10] board: ti: common: Introduce a common fdt ops library

2024-01-12 Thread Jon Humphreys
Nishanth Menon writes: > Introduce a common fdt operations library for basic device tree > operations that are common between various boards. > > The first library to introduce here is the capability to set up > fdtfile as a standard variable as part of board identification rather > than depend o

Re: [PATCH] defconfig: xea: Change default spi-nor memory bus to 2 (single binary)

2024-01-12 Thread Fabio Estevam
On Fri, Jan 12, 2024 at 1:02 PM Lukasz Majewski wrote: > > After the re-sync with Linux kernel (v6.0) of the XEA DTS > (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) the alias > for SPI bus, to which SPI-NOR memory is connected, has changed from > 'spi3' to 'spi2'. > > To be in sync with curren

Re: [PATCH 1/1] imx: imx9: fixup thermal trips from fuses

2024-01-12 Thread Fabio Estevam
On Thu, Jan 11, 2024 at 9:56 AM Primoz Fiser wrote: > > Read i.MX9 CPU temp grade from fuses and fixup thermal trips in Linux > device-tree accordingly. > > Based on commit 0543a1ed2787 ("imx8m: fixup thermal trips") > > Signed-off-by: Primoz Fiser Applied, thanks.

Re: [PATCH v2 0/3] This series adds support for the phyGATE-Tauri-L.

2024-01-12 Thread Fabio Estevam
On Wed, Jan 10, 2024 at 10:35 AM Yannic Moog wrote: > > The config is minimal and mostly a copy from the phycore-imx8mm. SPI > (flash) is disabled as it is not populated by default. > Also add documentation for the phyGATE-Tauri-L board. While at it, add > the other PHYTEC doc files to MAINTAINERS

Re: [PATCH 1/3] doc: imx93_var_som: Adjust the underline length

2024-01-12 Thread Fabio Estevam
On Mon, Jan 8, 2024 at 6:11 PM Fabio Estevam wrote: > > From: Fabio Estevam > > Adjust the underline length so that it matches the title length. > > Signed-off-by: Fabio Estevam Applied all, thanks.

Re: [PATCH v3 0/8] Suspend to RAM support for K3 J7200

2024-01-12 Thread Andrew Davis
On 1/10/24 3:34 AM, Thomas Richard wrote: On 1/9/24 18:32, Andrew Davis wrote: On 1/8/24 10:56 AM, Thomas Richard wrote: This series is the U-Boot part of the work to add the suspend to RAM support for the K3 J7200 EVM board. During the boot R5 SPL makes a copy of DM-Firmware and TF-A in memor

Re: Please pull u-boot-samsung master

2024-01-12 Thread Tom Rini
On Fri, Jan 12, 2024 at 06:52:54PM +, Stefan Bosch wrote: > Hi Tom, > > I have to apologize, unfortunately I haven't built it for microblaze. I will > submit a new, fixed version of the patch-series, should I? Yes please, thanks. > > Regards > Stefan > > > On 11.01.24 18:57, Tom Rini wro

Re: Please pull u-boot-samsung master

2024-01-12 Thread Stefan Bosch
Hi Tom, I have to apologize, unfortunately I haven't built it for microblaze. I will submit a new, fixed version of the patch-series, should I? Regards Stefan On 11.01.24 18:57, Tom Rini wrote: On Thu, Jan 11, 2024 at 05:52:33PM +, Stefan Bosch wrote: Hi Tom, is there any action requ

Re: [PATCH] arm: imx: imx8m: Enable the SError exception

2024-01-12 Thread Fabio Estevam
Hi Ye Li, On Fri, Jan 12, 2024 at 4:07 AM Ye Li wrote: > > To work with commit 2f3c920(imx8m: workaround ROM serror), > we need to enable the SError exception and install vector in SPL. > > Signed-off-by: Ye Li > Reviewed-by: Peng Fan This causes an image increase that makes SPL to not fit int

Re: [PATCH] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-12 Thread Fabio Estevam
Hi Yannic, On Thu, Jan 11, 2024 at 5:27 AM Yannic Moog wrote: > > Commit aa7858fe5e2e ("board: phytec: som_detection: move definitions to > source file") moved function definitions from header to source file. > Makefile however was not updated to unconditionally build the imx8 and > phytec som de

Re: [PATCH] test/py: saveenv: Add a test for saveenv command

2024-01-12 Thread Tom Rini
On Thu, Jan 11, 2024 at 06:12:25PM +0530, Love Kumar wrote: > Add test case for saveenv command in non-JTAG bootmode which saves the > u-boot environment variables in persistent storage. > > Signed-off-by: Love Kumar [snip] > +# Setup the env > +def setup_saveenv_env(u_boot_console): > +if u

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Tom Rini
On Fri, Jan 12, 2024 at 04:58:50PM +0100, Sjoerd Simons wrote: > On Fri, 2024-01-12 at 09:40 -0600, Nishanth Menon wrote: > > On 16:06-20240112, Sjoerd Simons wrote: > > [...] > > > > > > > > I am starting to wonder if > > > > https://lore.

[PATCH] defconfig: xea: Change default spi-nor memory bus to 2 (single binary)

2024-01-12 Thread Lukasz Majewski
After the re-sync with Linux kernel (v6.0) of the XEA DTS (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) the alias for SPI bus, to which SPI-NOR memory is connected, has changed from 'spi3' to 'spi2'. To be in sync with current u-boot's xea dts, the default bus number (which allows running 'sf

Re: [PATCH] arm: sunxi: Reduce inrush current on Olimex A20-OLinuXino_MICRO

2024-01-12 Thread Andre Przywara
On Sat, 6 Jan 2024 23:21:34 +0100 Philippe Coval wrote: (CC:ing Olliver, can you confirm that this quirk applies to the Micro too?) Hi Philippe, thanks for taking care of upstreaming this! > This change fix reboot, it was tested on debian-12 So I am wondering why this only comes up now. Was

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 09:40 -0600, Nishanth Menon wrote: > On 16:06-20240112, Sjoerd Simons wrote: > [...] > > > > > > I am starting to wonder if > > > https://lore.kernel.org/u-boot/20231101170519.39627-1-...@ti.com/ > > > will help us here. > >

Re: [PATCH] arm: imx: imx8m: Enable the SError exception

2024-01-12 Thread Fabio Estevam
On Fri, Jan 12, 2024 at 4:07 AM Ye Li wrote: > > To work with commit 2f3c920(imx8m: workaround ROM serror), > we need to enable the SError exception and install vector in SPL. > > Signed-off-by: Ye Li > Reviewed-by: Peng Fan Reported-by: Thomas Schaefer Reviewed-by: Fabio Estevam

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

2024-01-12 Thread Tom Rini
On Fri, Jan 12, 2024 at 03:31:25PM +0530, Love Kumar wrote: > Add tests for booting image using tftpboot/pxe boot commands, tftpboot > boot case loads the FIT image into DDR and boots using bootm command > whereas pxe boot cases downloads the pxe configuration file from the > TFTP server and inter

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Nishanth Menon
On 16:06-20240112, Sjoerd Simons wrote: [...] > > > > I am starting to wonder if > > https://lore.kernel.org/u-boot/20231101170519.39627-1-...@ti.com/ > > will help us here. > > Yes absolutely that would be perfect. Can i suggest we land it as is > for now (

Re: [PATCH v4 8/9] fdt: update the document and Kconfig description

2024-01-12 Thread Raymond Mao
Hi Ilias, On Wed, 10 Jan 2024 at 09:12, Ilias Apalodimas wrote: > I think this isn't needed anymore after > > https://lore.kernel.org/u-boot/CAC_iWjJ6=NjqwcFzVvV4DzMWy5nY_QAeD=vfqrrsjodlbvq...@mail.gmail.com/ > > I think Simon's patch is missing the description on OF_BOARD, a FDT from the previo

Re: [PATCH 1/2] MAINTAINERS: add Mattijs for Android AB

2024-01-12 Thread Igor Opaniuk
On Fri, Jan 12, 2024 at 9:41 AM Mattijs Korpershoek wrote: > > Igor has not been active for quite some time on lore: > https://lore.kernel.org/all/?q=igor.opan...@gmail.com > > I'm interested in helping with maintaining the android_ab > command. I'm a long time android/aosp developer and my daily

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 07:19 -0600, Nishanth Menon wrote: > On 14:09-20240112, Sjoerd Simons wrote: > [...] > > > > > diff --git a/configs/am62x_evm_a53_defconfig > > > > b/configs/am62x_evm_a53_defconfig > > > > index aa96c1b3125..f335eb11e63 100644

Re: [PATCH v4 2/7] usb: dwc3: Switch to device mode on gadget start

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 14:56 +0200, Roger Quadros wrote: > > > On 12/01/2024 13:06, Sjoerd Simons wrote: > > On Fri, 2024-01-12 at 12:39 +0200, Roger Quadros wrote: > > > > > > > > > On 12/01/2024 10:52, Sjoerd Simons wrote: > > > > When dr_mode is "otg" the dwc3 is initially configured in _OTG

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

2024-01-12 Thread Jens Maus
Hi Ivan, first of all, thanks for the updated rpi5 patchset. However, I am unable to reproduce that it is actually working as you suggest. Could you please quickly elaborate on your test environment and the test config.txt for the RaspberryPi5? Here I have compiled U-Boot 2024.01 with your patc

Re: [PATCH 0/2] MAINTAINERS: add Mattijs for Android AB / AVB

2024-01-12 Thread Tom Rini
On Fri, Jan 12, 2024 at 09:40:43AM +0100, Mattijs Korpershoek wrote: > Igor has not been active for quite some time on lore: > https://lore.kernel.org/all/?q=igor.opan...@gmail.com > > It seems that Android AB and AVB could use some help maintaining. > > I'm interested in helping with maintainin

Re: [PATCH 2/2] MAINTAINERS: add Mattijs for Android AVB

2024-01-12 Thread Sam Protsenko
On Fri, Jan 12, 2024 at 2:40 AM Mattijs Korpershoek wrote: > > Igor has not been active for quite some time on lore: > https://lore.kernel.org/all/?q=igor.opan...@gmail.com > > I'm interested in helping with maintaining the android_avb > command. I'm a long time android/aosp developer and my daily

Re: [PATCH v2] arm: spl: Use separate fault handlers instead of a single common one

2024-01-12 Thread Tom Rini
On Tue, Dec 19, 2023 at 02:33:18PM +0100, Csókás Bence wrote: > It may be necessary to set breakpoints etc. on a specific fault handler in > SPL. > Add a Kconfig option to separate the different handlers into their own > individual infinite loops. > > Signed-off-by: Csókás Bence Applied to u-

Re: [PATCH v2] android_ab: don't ignore ab_control_store return code

2024-01-12 Thread Tom Rini
On Mon, Dec 25, 2023 at 01:22:45PM +0300, Alexey Romanov wrote: > ab_control_store() can return an error if writing to disk fails. > In this case, we have to pass the error code to the caller. > > Signed-off-by: Alexey Romanov > Reviewed-by: Mattijs Korpershoek Applied to u-boot/master, thanks

Re: [PATCH v3 2/2] tools: fix build without LIBCRYPTO support

2024-01-12 Thread Tom Rini
On Thu, Dec 21, 2023 at 08:26:11AM +0100, Alexander Dahl wrote: > From: Paul-Erwan Rio > > Commit cb9faa6f98ae ("tools: Use a single target-independent config to > enable OpenSSL") introduced a target-independent configuration to build > crypto features in host tools. > > But since commit 2c212

Re: [PATCH] test: fs: fs-test: Move the tests to use sha256sum

2024-01-12 Thread Tom Rini
On Tue, Dec 19, 2023 at 10:01:50PM +, Peter Robinson wrote: > Move the use of md5s for recording filesystem file integrity > checks to sha256 hashes as they're preferred due to being > less likely to produce clashing hashes. In the process > generalise some of the wording to use the more gener

Re: [PATCH v3 1/2] tools: kwbimage: Allow disabling build on non-mvebu platforms

2024-01-12 Thread Tom Rini
On Thu, Dec 21, 2023 at 08:26:10AM +0100, Alexander Dahl wrote: > Some users want to build with CONFIG_TOOLS_LIBCRYPTO disabled, which in > general is possible for at least some boards. 32-bit mvebu however > requires kwbimage for building SPL, and kwbimage has a hard dependency > to host OpenSSL

Re: [PATCH 1/1] test: CONFIG_UT_BOOTSTD must depend on CONFIG_BOOTSTD

2024-01-12 Thread Tom Rini
On Sat, Dec 16, 2023 at 04:46:31PM +0100, Heinrich Schuchardt wrote: > Building sandbox_defconfig with > > CONFIG_BOOTSTD=n > CONFIG_UT_BOOTSTD=y > > leads to an error > > /usr/bin/ld: test/cmd_ut.o:(.data.rel.cmd_ut_sub+0xc0): > undefined reference to `do_ut_bootstd' > > Add t

Re: [PATCH 1/2] MAINTAINERS: add Mattijs for Android AB

2024-01-12 Thread Sam Protsenko
On Fri, Jan 12, 2024 at 2:40 AM Mattijs Korpershoek wrote: > > Igor has not been active for quite some time on lore: > https://lore.kernel.org/all/?q=igor.opan...@gmail.com > > I'm interested in helping with maintaining the android_ab > command. I'm a long time android/aosp developer and my daily

Re: [PATCH 1/1] boot: CONFIG_CEDIT must depend on CONFIG_EXPO

2024-01-12 Thread Tom Rini
On Sat, Dec 16, 2023 at 04:38:36PM +0100, Heinrich Schuchardt wrote: > Building sandbox_defconfig with > > CONFIG_CMD_CEDIT=y > CONFIG_EXPO=n > > fails with > > cmd/cedit.c:258:(.text.do_cedit_run+0x4c): > undefined reference to `expo_apply_theme > > Fix the dependencies. > >

Re: [PATCH 1/1] test: build test/boot for CONFIG_UT_BOOTSTD=n

2024-01-12 Thread Tom Rini
On Sat, Dec 16, 2023 at 04:19:54PM +0100, Heinrich Schuchardt wrote: > Building sandbox_defconfig with > > CONFIG_UT_BOOTSTD=n > CONFIG_MEASURMENT=y > > results in an error: > > /usr/bin/ld: test/cmd_ut.o:(.data.rel.cmd_ut_sub+0x408): > undefined reference to `do_ut_measurement

Re: [PATCH] boot: Support decompressing non-kernel OS images

2024-01-12 Thread Tom Rini
On Fri, Dec 15, 2023 at 04:54:16PM -0700, Simon Glass wrote: > Sometimes the kernel is built as an EFI application rather than a > binary. We still want to support compression for this case. > > For arm64 the entry point is set later in the bootm_load_os() function, > since these images are typic

Re: [PATCH RESEND 2/2] phy: phy-mtk-tphy: add properties for phy tuning

2024-01-12 Thread Tom Rini
On Wed, Dec 13, 2023 at 02:41:34PM +0800, Chunfeng Yun wrote: > Add properties to improve eye diagram which sometimes need adjust > some parameters of u2phy; > Add a property to tune disconnect threshold; > > Signed-off-by: Chunfeng Yun Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH RESEND 1/2] dt-bindings: phy-mtk-tphy: add properties for phy tuning

2024-01-12 Thread Tom Rini
On Wed, Dec 13, 2023 at 02:41:33PM +0800, Chunfeng Yun wrote: > Add properties to improve eye diagram which sometimes need adjust > some parameters of u2phy; > Add a property to tune disconnect threshold; > > Signed-off-by: Chunfeng Yun Applied to u-boot/master, thanks! -- Tom signature.asc

[PATCH v2 1/2] arm: mvebu: clearfog gtr: add config option to select serdes0 interface

2024-01-12 Thread Josua Mayer
Clearfog GTR has an assembly option for a SATA connector, CON18. It shares the serdes with mini-pcie connector CON3. Add new kconfig option to select betweenata and pci, defaulting to pci as it was previously configured in board-file. Clearfog GTR connects eth2 / serdes 1 to a 2.5Gbps capable eth

[PATCH v2 2/2] board: solidrun: clearfog: fix serdes 1 / eth2 speed for clearfog gtr

2024-01-12 Thread Josua Mayer
Clearfog GTR connects eth2 / serdes 1 to a 2.5Gbps capable ethernet switch port. Linux already configures a fixed-link at speed 2500 from device-tree. Upgrade serdes 1 rate to 3.125Gbps to support a 2.5Gbps link. Additionally add comments documenting each serdes' function of clearfog gtr, which a

[PATCH v2 0/2] board: solidrun: clearfog gtr: add serdes configuration

2024-01-12 Thread Josua Mayer
Add missing configuration options for clearog gtr serdes: 1. select between sata and pci-e for serdes 0 2. configure serdes 2 for 2.5Gbps link with managed switch Signed-off-by: Josua Mayer --- Changes in v2: - change choice default logic to remove kconfig warning - Link to v1: https://lore.ker

Re: [PATCH 1/2] arm: mvebu: clearfog gtr: add config option to select serdes0 interface

2024-01-12 Thread Josua Mayer
Hi Stefan, Am 09.01.24 um 12:45 schrieb Stefan Roese: >>   +choice CLEARFOG_GTR_SERDES0 >> +    prompt "Select Clearfog GTR SerDes 0 Function" >> +    help >> +  Select function for SerDes 0 which is shared between CON3 and CON18 >> +  for either pci-e or sata. >> + >> +config CLEARFOG_GTR

Re: [PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-01-12 Thread Tom Rini
On Fri, Jan 12, 2024 at 12:17:50PM +0530, Siddharth Vadapalli wrote: > From: Kishon Vijay Abraham I > > Call dram_init_banksize() from spl_board_init() otherwise TFTP download > fails with error "TFTP error: trying to overwrite reserved memory..." > due to lmb_get_free_size() not able to find un

Re: [PATCH 4/5] arm: dts: k3-j721e-beagleboneai64: Fix USB operation

2024-01-12 Thread Tom Rini
On Fri, Jan 12, 2024 at 07:14:50AM -0600, Nishanth Menon wrote: > On 15:06-20240112, Roger Quadros wrote: > > > > > > On 12/01/2024 15:02, Nishanth Menon wrote: > > > On 14:49-20240112, Roger Quadros wrote: > > >> Without correct SERDES MUX and Lane c

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Nishanth Menon
On 14:09-20240112, Sjoerd Simons wrote: [...] > > > diff --git a/configs/am62x_evm_a53_defconfig > > > b/configs/am62x_evm_a53_defconfig > > > index aa96c1b3125..f335eb11e63 100644 > > > --- a/configs/am62x_evm_a53_defconfig > > > +++ b/configs/am62x_

Re: [PATCH v4 7/7] doc: board: Add document for DFU boot on am62x SoCs

2024-01-12 Thread Mattijs Korpershoek
Hi Sjoerd, Nishanth, On Fri, Jan 12, 2024 at 13:58, Sjoerd Simons wrote: > On Fri, 2024-01-12 at 06:36 -0600, Nishanth Menon wrote: >> On 09:52-20240112, Sjoerd Simons wrote: >> > >> > +DFU based boot >> > +-- >> > + >> > +

Re: [PATCH 4/5] arm: dts: k3-j721e-beagleboneai64: Fix USB operation

2024-01-12 Thread Nishanth Menon
On 15:06-20240112, Roger Quadros wrote: > > > On 12/01/2024 15:02, Nishanth Menon wrote: > > On 14:49-20240112, Roger Quadros wrote: > >> Without correct SERDES MUX and Lane control settings > >> USB0 will be broken. Set the MUX and Lane control devices &

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 06:37 -0600, Nishanth Menon wrote: > On 09:52-20240112, Sjoerd Simons wrote: > > Enable USB host as well as USB gadget and DFU support for a53; For > > the > > r5 due to the smaller available size create a config fragment for > > DFU > > su

Re: [PATCH 4/5] arm: dts: k3-j721e-beagleboneai64: Fix USB operation

2024-01-12 Thread Roger Quadros
On 12/01/2024 15:02, Nishanth Menon wrote: > On 14:49-20240112, Roger Quadros wrote: >> Without correct SERDES MUX and Lane control settings >> USB0 will be broken. Set the MUX and Lane control devices >> to be auto probed so they are configured correctly. >> >

Re: [PATCH 4/5] arm: dts: k3-j721e-beagleboneai64: Fix USB operation

2024-01-12 Thread Nishanth Menon
On 14:49-20240112, Roger Quadros wrote: > Without correct SERDES MUX and Lane control settings > USB0 will be broken. Set the MUX and Lane control devices > to be auto probed so they are configured correctly. > > Signed-off-by: Roger Quadros > --- > arch/arm/dts/k3-j

Re: [PATCH 00/10] Add support for Ethernet Boot on SK-AM62

2024-01-12 Thread Nishanth Menon
On 18:17-20240112, Siddharth Vadapalli wrote: > > > On 12/01/24 18:12, Nishanth Menon wrote: > > On 18:06-20240112, Siddharth Vadapalli wrote: > >> > >> > >> On 12/01/24 18:02, Nishanth Menon wrote: > >>> On 12:17-20240112, Siddharth Va

Re: [PATCH v4 7/7] doc: board: Add document for DFU boot on am62x SoCs

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 06:36 -0600, Nishanth Menon wrote: > On 09:52-20240112, Sjoerd Simons wrote: > > > > +DFU based boot > > +-- > > + > > +To boot the board over DFU, ensure there is no SD card inserted > > with a > > +bootloader. Hold

Re: [PATCH v4 2/7] usb: dwc3: Switch to device mode on gadget start

2024-01-12 Thread Roger Quadros
On 12/01/2024 13:06, Sjoerd Simons wrote: > On Fri, 2024-01-12 at 12:39 +0200, Roger Quadros wrote: >> >> >> On 12/01/2024 10:52, Sjoerd Simons wrote: >>> When dr_mode is "otg" the dwc3 is initially configured in _OTG >>> mode; >>> However in this mode the gadget functionality doesn't work witho

Re: [PATCH v4 2/7] usb: dwc3: Switch to device mode on gadget start

2024-01-12 Thread Caleb Connolly
Hi Sjoerd, On 12/01/2024 08:52, Sjoerd Simons wrote: > When dr_mode is "otg" the dwc3 is initially configured in _OTG mode; > However in this mode the gadget functionality doesn't work without > further configuration. To resolve that on gadget start switch to _DEVICE > mode globally and go back to

[PATCH 5/5] configs/j721e_beagleboneai64_a72_defconfig: Enable Sierra PHY

2024-01-12 Thread Roger Quadros
This is required for USB Super-Speed operation. Signed-off-by: Roger Quadros --- configs/j721e_beagleboneai64_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_beagleboneai64_a72_defconfig b/configs/j721e_beagleboneai64_a72_defconfig index 959f86844d..f66206f6e3

[PATCH 4/5] arm: dts: k3-j721e-beagleboneai64: Fix USB operation

2024-01-12 Thread Roger Quadros
Without correct SERDES MUX and Lane control settings USB0 will be broken. Set the MUX and Lane control devices to be auto probed so they are configured correctly. Signed-off-by: Roger Quadros --- arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 3/5] arm: dts: k3-j721e: Fix USB0 operation

2024-01-12 Thread Roger Quadros
Without correct SERDES MUX and Lane control settings USB0 will be broken. Set the MUX and Lane control devices to be auto probed so they are configured correctly. Fixes: 69b19ca67bcb ("arm: dts: k3-j721e: Sync with v6.6-rc1") Signed-off-by: Roger Quadros --- arch/arm/dts/k3-j721e-common-proc-boa

[PATCH 2/5] usb: cdns3: avoid error messages if phys don't exist

2024-01-12 Thread Roger Quadros
The phys property is optional so don't complain if it doesn't exist in device tree. Signed-off-by: Roger Quadros --- drivers/usb/cdns3/core.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c ind

[PATCH 1/5] board: ti: j721e: Drop SERDES PHY init from board file

2024-01-12 Thread Roger Quadros
Since commit 69b19ca67bcb ("arm: dts: k3-j721e: Sync with v6.6-rc1"), the following error message is seen at u-boot "Sierra init failed:-19" Probing and initializing the SERDES PHY from board file is not a clean solution so drop it. Proper use case should be via PHY_UCLASS APIs. Signed-o

[PATCH 0/5] k3-j721e: beagleboneai: Fix USB

2024-01-12 Thread Roger Quadros
Hi, This series fixes USB operation on k3-j721e based boards. CI testing: https://github.com/u-boot/u-boot/pull/468 cheers, -roger Roger Quadros (5): board: ti: j721e: Drop SERDES PHY init from board file usb: cdns3: avoid error messages if phys don't exist arm: dts: k3-j721e: Fix USB0 op

Re: [PATCH 00/10] Add support for Ethernet Boot on SK-AM62

2024-01-12 Thread Siddharth Vadapalli
On 12/01/24 18:12, Nishanth Menon wrote: > On 18:06-20240112, Siddharth Vadapalli wrote: >> >> >> On 12/01/24 18:02, Nishanth Menon wrote: >>> On 12:17-20240112, Siddharth Vadapalli wrote: >>>> Hello, >>>> >>>> This series

Re: [PATCH 00/10] Add support for Ethernet Boot on SK-AM62

2024-01-12 Thread Nishanth Menon
On 18:06-20240112, Siddharth Vadapalli wrote: > > > On 12/01/24 18:02, Nishanth Menon wrote: > > On 12:17-20240112, Siddharth Vadapalli wrote: > >> Hello, > >> > >> This series enables Ethernet Boot on SK-AM62 device. > >> Product Link: htt

Re: [PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-01-12 Thread Nishanth Menon
On 18:01-20240112, Siddharth Vadapalli wrote: > Hello Nishanth, > > On 12/01/24 17:56, Nishanth Menon wrote: > > On 12:17-20240112, Siddharth Vadapalli wrote: > >> From: Kishon Vijay Abraham I > >> > >> Call dram_init_banksize() from spl_board_init() oth

Re: [PATCH 09/10] configs: am62x_evm_a53_defconfig: Enable configs required for Ethboot

2024-01-12 Thread Siddharth Vadapalli
On 12/01/24 18:03, Nishanth Menon wrote: > On 12:17-20240112, Siddharth Vadapalli wrote: >> From: Kishon Vijay Abraham I >> >> Enable config options needed to support Ethernet boot on AM62x SK. >> >> Signed-off-by: Kishon Vijay Abraham I >

Re: [PATCH 08/10] configs: am62: Add configs for enabling ETHBOOT in R5SPL

2024-01-12 Thread Siddharth Vadapalli
On 12/01/24 18:01, Nishanth Menon wrote: > On 12:17-20240112, Siddharth Vadapalli wrote: >> From: Kishon Vijay Abraham I >> >> Add configs for enabling ETHBOOT in R5SPL. Adding a separate config >> minimizes the risk of going past the R5-SPL size limit for any

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Nishanth Menon
On 09:52-20240112, Sjoerd Simons wrote: > Enable USB host as well as USB gadget and DFU support for a53; For the > r5 due to the smaller available size create a config fragment for DFU > supports which disables support for persistent storage to free up space > for USB support >

Re: [PATCH v4 7/7] doc: board: Add document for DFU boot on am62x SoCs

2024-01-12 Thread Nishanth Menon
On 09:52-20240112, Sjoerd Simons wrote: > Both AM62 SK and beagleplay support DFU boot in a similar way now; > Document how to actually run DFU boot for both boards > > Signed-off-by: Sjoerd Simons > > --- > > Changes in v4: > - New patch > > doc/board

Re: [PATCH 00/10] Add support for Ethernet Boot on SK-AM62

2024-01-12 Thread Siddharth Vadapalli
On 12/01/24 18:02, Nishanth Menon wrote: > On 12:17-20240112, Siddharth Vadapalli wrote: >> Hello, >> >> This series enables Ethernet Boot on SK-AM62 device. >> Product Link: https://www.ti.com/tool/SK-AM62 >> User Guide: https://www.ti.com/lit/pdf/spruj40 >&

Re: [PATCH v4 6/7] beagleplay: Add DFU support

2024-01-12 Thread Nishanth Menon
On 09:52-20240112, Sjoerd Simons wrote: > DFU mode on a beagleplay can be used via the Type-C connector by holding > the USR switch while powering on. > > Configuration is only added for the A53 u-boot parts, for R5 the > am62x_r5_usbdfu.config fragment should be used. > >

Re: [PATCH 09/10] configs: am62x_evm_a53_defconfig: Enable configs required for Ethboot

2024-01-12 Thread Nishanth Menon
On 12:17-20240112, Siddharth Vadapalli wrote: > From: Kishon Vijay Abraham I > > Enable config options needed to support Ethernet boot on AM62x SK. > > Signed-off-by: Kishon Vijay Abraham I > Signed-off-by: Siddharth Vadapalli > --- > configs/am62x_evm_a53_defconfi

Re: [PATCH 00/10] Add support for Ethernet Boot on SK-AM62

2024-01-12 Thread Nishanth Menon
On 12:17-20240112, Siddharth Vadapalli wrote: > Hello, > > This series enables Ethernet Boot on SK-AM62 device. > Product Link: https://www.ti.com/tool/SK-AM62 > User Guide: https://www.ti.com/lit/pdf/spruj40 > > Ethernet Boot flow is as follows: > 1. The BOOT MODE

Re: [PATCH 08/10] configs: am62: Add configs for enabling ETHBOOT in R5SPL

2024-01-12 Thread Nishanth Menon
On 12:17-20240112, Siddharth Vadapalli wrote: > From: Kishon Vijay Abraham I > > Add configs for enabling ETHBOOT in R5SPL. Adding a separate config > minimizes the risk of going past the R5-SPL size limit for any future > config additions. > > Signed-off-by: Kishon Vija

Re: [PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-01-12 Thread Siddharth Vadapalli
Hello Nishanth, On 12/01/24 17:56, Nishanth Menon wrote: > On 12:17-20240112, Siddharth Vadapalli wrote: >> From: Kishon Vijay Abraham I >> >> Call dram_init_banksize() from spl_board_init() otherwise TFTP download >> fails with error "TFTP error: trying to over

Re: [PATCH 07/10] arm: mach-k3: am625_init: Probe AM65 CPSW NUSS

2024-01-12 Thread Nishanth Menon
On 12:17-20240112, Siddharth Vadapalli wrote: > From: Kishon Vijay Abraham I > > In order to support Ethernet boot on AM62x, probe AM65 CPSW NUSS driver > in board_init_f(). Why? doesn't the DM framework handle this? > > Signed-off-by: Kishon Vijay Abraham I >

Re: [PATCH 06/10] arm: mach-k3: am62: Update SoC autogenerated data to enable Ethernet Boot

2024-01-12 Thread Nishanth Menon
On 12:17-20240112, Siddharth Vadapalli wrote: > From: Andreas Dannenberg > > In order to enable Ethernet Boot using CPSW, update the clock data. There is too many changes in the patch - including ownership change etc.. and the actual data addition itself is not clear - what is added

Re: [PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-01-12 Thread Nishanth Menon
On 12:17-20240112, Siddharth Vadapalli wrote: > From: Kishon Vijay Abraham I > > Call dram_init_banksize() from spl_board_init() otherwise TFTP download > fails with error "TFTP error: trying to overwrite reserved memory..." > due to lmb_get_free_size() not able to f

Re: [PATCH v4 2/7] usb: dwc3: Switch to device mode on gadget start

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 12:39 +0200, Roger Quadros wrote: > > > On 12/01/2024 10:52, Sjoerd Simons wrote: > > When dr_mode is "otg" the dwc3 is initially configured in _OTG > > mode; > > However in this mode the gadget functionality doesn't work without > > further configuration. To resolve that on

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Roger Quadros
On 12/01/2024 12:44, Sjoerd Simons wrote: > On Fri, 2024-01-12 at 11:58 +0200, Roger Quadros wrote: >> Hi Sjoerd, >> >> On 12/01/2024 10:52, Sjoerd Simons wrote: >>> Enable USB host as well as USB gadget and DFU support for a53; For >>> the >>> r5 due to the smaller available size create a confi

Re: [PATCH v4 6/7] beagleplay: Add DFU support

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 12:41 +0200, Roger Quadros wrote: > > > On 12/01/2024 10:52, Sjoerd Simons wrote: > > DFU mode on a beagleplay can be used via the Type-C connector by > > holding > > the USR switch while powering on. > > > > Configuration is only added for the A53 u-boot parts, for R5 the

Re: [PATCH v4 5/7] configs: am62x_evm_*: Enable USB and DFU support

2024-01-12 Thread Sjoerd Simons
On Fri, 2024-01-12 at 11:58 +0200, Roger Quadros wrote: > Hi Sjoerd, > > On 12/01/2024 10:52, Sjoerd Simons wrote: > > Enable USB host as well as USB gadget and DFU support for a53; For > > the > > r5 due to the smaller available size create a config fragment for > > DFU > > supports which disable

Re: [PATCH v4 6/7] beagleplay: Add DFU support

2024-01-12 Thread Roger Quadros
On 12/01/2024 10:52, Sjoerd Simons wrote: > DFU mode on a beagleplay can be used via the Type-C connector by holding > the USR switch while powering on. > > Configuration is only added for the A53 u-boot parts, for R5 the > am62x_r5_usbdfu.config fragment should be used. > > Signed-off-by: Sjo

Re: [PATCH v4 2/7] usb: dwc3: Switch to device mode on gadget start

2024-01-12 Thread Roger Quadros
On 12/01/2024 10:52, Sjoerd Simons wrote: > When dr_mode is "otg" the dwc3 is initially configured in _OTG mode; > However in this mode the gadget functionality doesn't work without > further configuration. To resolve that on gadget start switch to _DEVICE > mode globally and go back to _OTG on

  1   2   >