Re: [PATCH] xilinx: Enable virtio mmio transport and devices

2023-03-27 Thread Michal Simek
On 3/23/23 15:52, Michal Simek wrote: Qemu can create virtio mmio transports and passing devices through it that's why enable virtio by default on all arm64 based SoCs. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 7 ++- configs/xilinx_versal_virt_defcon

Re: [PATCH v4 4/5] mkeficapsule: add FMP Payload Header

2023-03-27 Thread Ilias Apalodimas
On Thu, 23 Mar 2023 at 13:09, Masahisa Kojima wrote: > > Current mkeficapsule tool does not provide firmware > version management. EDK II reference implementation inserts > the FMP Payload Header right before the payload. > It coutains the fw_version and lowest supported version. > > This commit a

Re: [PATCH v4 3/5] efi_loader: check lowest supported version in capsule update

2023-03-27 Thread Ilias Apalodimas
On Thu, 23 Mar 2023 at 13:09, Masahisa Kojima wrote: > > The FMP Payload Header which EDK II capsule generation scripts > insert contains lowest supported version. > This commit reads the lowest supported version stored in the > "FmpState" EFI non-volatile variable, then check if the > firmwar

Re: [PATCH v4 2/5] efi_loader: versioning support in GetImageInfo

2023-03-27 Thread Ilias Apalodimas
On Thu, 23 Mar 2023 at 13:09, Masahisa Kojima wrote: > > Current FMP->GetImageInfo() always return 0 for the firmware > version, user can not identify which firmware version is currently > running through the EFI interface. > > This commit reads the "FmpState" EFI variable, then fills the > fi

[PATCH v2] sysreset: gpio: fix gpio_reboot_request return value

2023-03-27 Thread Jonathan Liu
It should return -EINPROGRESS if successful otherwise sysreset-uclass will continue to the next sysreset device. Signed-off-by: Jonathan Liu Reviewed-by: Simon Glass --- drivers/sysreset/sysreset_gpio.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/sysreset/s

Re: [PATCH v1 1/1] arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode

2023-03-27 Thread Michal Simek
On 3/23/23 09:25, Neal Frager wrote: The "zynqmp tcminit split" command should halt both cores and not just RPU1 when configuring the TCM memory for split mode. Signed-off-by: Neal Frager --- arch/arm/mach-zynqmp/mp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-zyn

Re: [PATCH v2] net: phy: gmii2rgmii: Support external rgmii-id phy

2023-03-27 Thread Michal Simek
On 3/22/23 09:42, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Read the phy mode of the external phy from the device tree if available and check that it is a RGMII variant. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v2: - Check that the external phy mode is a RGMI

Re: [PATCH] soc: soc_ti_k3: fix revision array bounds checks

2023-03-27 Thread Bryan Brattlof
Hi Rasmus! On March 24, 2023 thus sayeth Rasmus Villemoes: > If rev is equal to the array size, we'll access the array > one-past-the-end. > > Signed-off-by: Rasmus Villemoes > --- > drivers/soc/soc_ti_k3.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Oops! good catch! Revie

[PATCH] buildman: Correct overwriting of settings file

2023-03-27 Thread Simon Glass
The toolchain test causes the settings file to be overwritten, which is annoying for local development. Fix it by passing None as the filename. Signed-off-by: Simon Glass --- tools/buildman/toolchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/buildman/toolchain

[PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-03-27 Thread jassisinghbrar
From: Masami Hiramatsu Add 'mkfwumdata' tool to generate FWU metadata image for the meta-data partition to be used in A/B Update imeplementation. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- tools/Kconfig | 9 ++ tools/Makefile | 4 +

[PATCH v4 6/6] fwu: DeveloperBox: add support for FWU

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Jassi Brar --- board/socionext/developerbox/Makefile | 1 + board/socionext/dev

[PATCH v4 2/6] FWU: mtd: Add helper functions for accessing FWU metadata

2023-03-27 Thread jassisinghbrar
From: Masami Hiramatsu Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- include/fwu.h | 34 lib/fwu_updates/Makefile | 1 + lib/fwu_updates/fwu_

[PATCH v4 4/6] dt: fwu: developerbox: enable fwu banks and mdata regions

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Jassi Brar --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 49 +-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi b/arch/ar

[PATCH v4 5/6] configs: move to new flash layout and boot flow

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Towards enabling FWU and supporting new firmware layout in NOR flash, make u-boot PIC and adjust uboot env offset in flash. Signed-off-by: Jassi Brar --- configs/synquacer_developerbox_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/sy

[PATCH v4 1/6] FWU: Add FWU metadata access driver for MTD storage regions

2023-03-27 Thread jassisinghbrar
From: Masami Hiramatsu In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate region. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a raw MTD region. Si

[PATCH v4 0/6] FWU: Add support for mtd backed feature on DeveloperBox

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Introduce support for mtd backed storage for FWU feature and enable it on Synquacer platform based DeveloperBox. This revision is rebased onto patchset that trims the FWU api https://lore.kernel.org/u-boot/20230306231747.1888513-1-jassisinghb...@gmail.com/ Changes since v3:

[PATCH v2 u-boot-mvebu] arm: mvebu: Cleanup get_boot_device() code

2023-03-27 Thread Pali Rohár
Show correct information in debug() output and use correct names for variables. No functional change. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/cpu.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.

Re: How to add eth1 to test device tree?

2023-03-27 Thread Simon Glass
Hi Ehsan, On Tue, 28 Mar 2023 at 08:58, Ehsan Mohandesi wrote: > > Hi All, > > When running the sandbox tests, I want to know how to enable eth1 in > order to be able to test network features. > > The following command is used to run sandbox tests. > > ./test/py/test.py -k testname.py > > I am sp

How to add eth1 to test device tree?

2023-03-27 Thread Ehsan Mohandesi
Hi All, When running the sandbox tests, I want to know how to enable eth1 in order to be able to test network features. The following command is used to run sandbox tests. ./test/py/test.py -k testname.py I am specifically interested in running the network tests. ./test/py/test.py -k test_n

Re: [PATCH v2 9/9] arm: Migrate Apple M1 to save_prev_bl_data

2023-03-27 Thread Mark Kettenis
> From: Simon Glass > Date: Tue, 28 Mar 2023 08:32:45 +1300 > > Hi Mark, > > On Tue, 28 Mar 2023 at 08:19, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Tue, 28 Mar 2023 08:02:24 +1300 > > > > > > Hi, > > > > > > On Mon, 27 Mar 2023 at 23:47, Konrad Dybcio > > > wrote: > > > >

[RESEND PATCH v3 2/2] cli: Correct handling of invalid escape sequences in cread_line()

2023-03-27 Thread Simon Glass
The second call to cli_ch_process() is in the wrong place, meaning that the one of the characters of an invalid escape sequence is swallowed instead of being returned. Fix the bug and add a test to cover this. This behaviour matches that of the code before cli_getch() was introduced. This was ver

[RESEND PATCH v3 1/2] cli: Correct several bugs in cli_getch()

2023-03-27 Thread Simon Glass
This function does not behave as expected when unknown escape sequences are sent to it: - it fails to store (and thus echo) the last character of the invalid sequence - it fails to set esc_len to 0 when it finishes emitting the invalid sequence, meaning that the following character will appear

Re: [PATCH v2 9/9] arm: Migrate Apple M1 to save_prev_bl_data

2023-03-27 Thread Simon Glass
Hi Mark, On Tue, 28 Mar 2023 at 08:19, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Tue, 28 Mar 2023 08:02:24 +1300 > > > > Hi, > > > > On Mon, 27 Mar 2023 at 23:47, Konrad Dybcio > > wrote: > > > > > > Mark's and Dzmitry's approaches come down to the same thing.. Let's > > > unify t

Re: [PATCH 7/7] arm: Migrate Apple M1 to save_prev_bl_data

2023-03-27 Thread Mark Kettenis
> From: Konrad Dybcio > Date: Fri, 24 Mar 2023 01:40:40 +0100 Hi Konrad, > Mark's and Dzmitry's approaches come down to the same thing.. Let's > unify them by first removing the static keyword from the common file > to allow the variable to be reused, then renaming "reg0" to the more > sensible

[RESEND PATCH v3 1/2] cli: Correct several bugs in cli_getch()

2023-03-27 Thread Simon Glass
This function does not behave as expected when unknown escape sequences are sent to it: - it fails to store (and thus echo) the last character of the invalid sequence - it fails to set esc_len to 0 when it finishes emitting the invalid sequence, meaning that the following character will appear

[PATCH 24/30] ide: Move all blk_desc init into ide_ident()

2023-03-27 Thread Simon Glass
Rather than having the caller fill some of this in, do it all in the ide_ident() function, since it knows all the values. Signed-off-by: Simon Glass --- drivers/block/ide.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c

[PATCH 25/30] ide: Use a single local blk_desc for ide_ident()

2023-03-27 Thread Simon Glass
We only use one member of the ide_dev_desc[] array at a time and it does not stick around outside ide_probe(). Use a single element instead. Copy over the missing members of blk_desc at the same, since this was missing from the previous code. Signed-off-by: Simon Glass Fixes: 68e6f221ed0 ("block

Re: [PATCH v2 9/9] arm: Migrate Apple M1 to save_prev_bl_data

2023-03-27 Thread Mark Kettenis
> From: Simon Glass > Date: Tue, 28 Mar 2023 08:02:24 +1300 > > Hi, > > On Mon, 27 Mar 2023 at 23:47, Konrad Dybcio wrote: > > > > Mark's and Dzmitry's approaches come down to the same thing.. Let's > > unify them by first removing the static keyword from the common file > > to allow the variab

[tom.r...@gmail.com: Fwd: New Defects reported by Coverity Scan for Das U-Boot]

2023-03-27 Thread Tom Rini
Here's the latest report. -- Forwarded message - From: Date: Mon, Mar 27, 2023 at 2:36 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 6 new defect(s) in

[PATCH 23/30] ide: Make ide_ident() return an error code

2023-03-27 Thread Simon Glass
Update ide_ident() to indicate whether it finds a device or not. Use that to decide whether to create a block device for it, rather than looking DEV_TYPE_UNKNOWN. Signed-off-by: Simon Glass --- drivers/block/ide.c | 101 +++- 1 file changed, 53 insertions

[PATCH 28/30] ide: Convert to use log_debug()

2023-03-27 Thread Simon Glass
Avoid the use of the function name in a few of the debug() calls, since this causes a checkpatch warning. Convert all other calls too. Use lower-case hex consistently. Signed-off-by: Simon Glass --- drivers/block/ide.c | 80 ++--- 1 file changed, 40 inse

[PATCH 27/30] ide: Tidy up ide_reset()

2023-03-27 Thread Simon Glass
Avoid using #ifdef and use a single function declaration, so it is easier to read. Signed-off-by: Simon Glass --- drivers/block/ide.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 72216540d040..fb40933

[PATCH 08/30] ide: Drop weak functions

2023-03-27 Thread Simon Glass
These are not used from outside this file anymore. Make them static and remove them from the header file. Signed-off-by: Simon Glass --- drivers/block/ide.c | 14 +++--- include/ide.h | 13 - 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/block

[RESEND PATCH v3 2/2] cli: Correct handling of invalid escape sequences in cread_line()

2023-03-27 Thread Simon Glass
The second call to cli_ch_process() is in the wrong place, meaning that the one of the characters of an invalid escape sequence is swallowed instead of being returned. Fix the bug and add a test to cover this. This behaviour matches that of the code before cli_getch() was introduced. This was ver

[PATCH 30/30] ide: Make use of U-Boot types

2023-03-27 Thread Simon Glass
Use standard U-Boot types in the file to make the code less verbose. Signed-off-by: Simon Glass --- drivers/block/ide.c | 79 + 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index af0c951eb89

Re: [PATCH v2 9/9] arm: Migrate Apple M1 to save_prev_bl_data

2023-03-27 Thread Simon Glass
Hi, On Mon, 27 Mar 2023 at 23:47, Konrad Dybcio wrote: > > Mark's and Dzmitry's approaches come down to the same thing.. Let's > unify them by first removing the static keyword from the common file > to allow the variable to be reused, then renaming "reg0" to the more > sensible fw_dtb_pointer co

[PATCH 29/30] ide: Simplify expressions and hex values

2023-03-27 Thread Simon Glass
The code has quite a few unnecessary brackets and comparisons to zero, etc. Fix these up as well as some upper-case hex values and use of 0x in printf() strings. Signed-off-by: Simon Glass --- drivers/block/ide.c | 115 +--- 1 file changed, 56 insertions(

[PATCH 26/30] ide: Correct LBA setting

2023-03-27 Thread Simon Glass
Fix a longstanding bug where the LBA is calculated as the size of the media instead of the number of blocks. This was perhaps not noticed earlier since it prints the correct value first, before setting the wrong value. Drop the unnecessary blksz variable while we are here. Signed-off-by: Simon Gl

[PATCH 22/30] ide: Use desc consistently for struct blk_desc

2023-03-27 Thread Simon Glass
Most of the code uses 'desc' as the variable name for a blk descriptor. Change ide to do the same. Tidy up some extra brackets and types while we are here. Leave the code in ide_probe() alone since it is about to be refactored. Signed-off-by: Simon Glass --- drivers/block/ide.c | 101

[PATCH 21/30] ide: Combine the two loops in ide_probe()

2023-03-27 Thread Simon Glass
The two loops in this function operate on the same ide_dev_desc[] array. Combine them to reduce duplication. Signed-off-by: Simon Glass --- drivers/block/ide.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 5fbf14

[PATCH 20/30] ide: Move ide_init() entirely within ide_probe()

2023-03-27 Thread Simon Glass
Now that ide_probe() is the only caller of ide_init(), move all the code into the probe function, so it is easier to refactor it. Move ide_dev_desc[] into ide_probe() to, since it is the only user. Signed-off-by: Simon Glass --- drivers/block/ide.c | 84

[PATCH 19/30] ide: Move setting of vendor strings into ide_probe()

2023-03-27 Thread Simon Glass
The current implementation adds this information in the block device's probe() function, which is called in the blk_probe_or_unbind() in ide_probe(). It is simpler to do this in ide_probe() itself, since the effect is the same. This helps to consolidate use of ide_dev_desc[] which we would like to

[PATCH 18/30] ide: Make ide_bus_ok[] a local variable

2023-03-27 Thread Simon Glass
This is only used in one place now, so make it a local variable. Signed-off-by: Simon Glass --- drivers/block/ide.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index aac4462f57b9..36c726225d0e 100644 --- a/drivers/bl

[PATCH 17/30] ide: Move bus init into a function

2023-03-27 Thread Simon Glass
Move this code into a separate function which returns whether the bus was found, or not. Signed-off-by: Simon Glass --- drivers/block/ide.c | 87 + 1 file changed, 48 insertions(+), 39 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide

[PATCH 14/30] ide: Simplify success condition

2023-03-27 Thread Simon Glass
Change the if() to remove extra brackets and check for the positive case first, i.e. when a device is found. Exit the loop in that case, with the retry logic in the 'else' part. Signed-off-by: Simon Glass --- drivers/block/ide.c | 36 +--- 1 file changed, 17 inse

[PATCH 16/30] ide: Avoid preprocessor for CONFIG_LBA48

2023-03-27 Thread Simon Glass
Use IS_ENABLED() instead for all conditions. Add the 'lba48' flag into struct blk_desc always, since it uses very little space. Use a bool so the meaning is clearer. Signed-off-by: Simon Glass --- drivers/block/ide.c | 57 - include/blk.h | 4 +

[PATCH 15/30] ide: Avoid preprocessor for CONFIG_ATAPI

2023-03-27 Thread Simon Glass
Use IS_ENABLED() instead for all conditions. Signed-off-by: Simon Glass --- drivers/block/ide.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index a51a0008cae4..6c5227a5c0e2 100644 --- a/drivers/block/ide.c +++ b/dr

[PATCH 13/30] ide: Refactor confusing loop code

2023-03-27 Thread Simon Glass
This code is hard to follow as it uses #ifdef in a strange way. Adjust it to avoid the preprocessor. Drop the special return for the non-ATAPI case since we can rely on tries becoming 0 and exiting the loop. Signed-off-by: Simon Glass --- drivers/block/ide.c | 43 +++

[PATCH 10/30] ide: Correct use of ATAPI

2023-03-27 Thread Simon Glass
The use of atapi_read() was incorrect dropped. Fix this so that it will be used when needed. Use a udevice for the first argument of atapi_read() so it is consistent with ide_read(). This requires much of the ATAPI code to be brought out from behind the existing #ifdef. It will still be removed by

[PATCH 12/30] ide: Change the retries variable

2023-03-27 Thread Simon Glass
Use a 'tries' variable which starts at the number of tries we want to do, rather than a 'retries' one that stops at either 1 or 2. This will make it easier to refactor the code to avoid the horrible #ifdefs Signed-off-by: Simon Glass --- drivers/block/ide.c | 10 +- 1 file changed, 5 in

[PATCH 05/30] ide: Move ide_init() into probing

2023-03-27 Thread Simon Glass
At present the code does ide_init() as a separate operation, then calls device_probe() to copy over the information. We can call ide_init() from probe just as easily. The only difference is that using 'ide init' twice will do nothing. However it already fails to copy over the new data in that case

[PATCH 06/30] ide: Drop ide_device_present()

2023-03-27 Thread Simon Glass
This function is not used anymore. Drop it. Signed-off-by: Simon Glass --- drivers/block/ide.c | 9 - include/ide.h | 4 2 files changed, 13 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 13770484b36a..b5be022a0673 100644 --- a/drivers/block/ide.c

[PATCH 11/30] ide: Make function static

2023-03-27 Thread Simon Glass
Only one function is called from outside this file. Make all the others static. Signed-off-by: Simon Glass --- drivers/block/ide.c | 23 +++ include/ide.h | 11 --- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/drivers/block/ide.c b/drivers/b

[PATCH 09/30] ide: Create a prototype for ide_set_reset()

2023-03-27 Thread Simon Glass
This is used by a board so should be in the header file. Add it. Signed-off-by: Simon Glass --- drivers/block/ide.c | 2 -- include/ide.h | 10 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 46e110fec5e8..fa5f68f

[PATCH 04/30] ide: Drop init for not using BLK

2023-03-27 Thread Simon Glass
ALl boards use CONFIG_BLK now so this code is not used. Drop it and the header-file #ifdef Signed-off-by: Simon Glass --- common/board_r.c | 12 include/ide.h| 7 --- 2 files changed, 19 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 7076af64f5de..d79

[PATCH 03/30] ide: Drop CONFIG_START_IDE

2023-03-27 Thread Simon Glass
This is not used by any board. Drop it. Signed-off-by: Simon Glass --- common/board_r.c | 5 - include/ide.h| 7 --- 2 files changed, 12 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 6b4180b3ecde..7076af64f5de 100644 --- a/common/board_r.c +++ b/common/board_r

[PATCH 02/30] ide: Use mdelay() for long delays

2023-03-27 Thread Simon Glass
Rather than using very large numbers with udelay(), use mdelay(), which is easier to follow. Signed-off-by: Simon Glass --- drivers/block/ide.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index f36bec8

Re: [RESEND PATCH v3 1/2] cli: Correct several bugs in cli_getch()

2023-03-27 Thread Simon Glass
+Tom Rini Hi, On Tue, 28 Mar 2023 at 08:04, Simon Glass wrote: > > This function does not behave as expected when unknown escape sequences > are sent to it: > > - it fails to store (and thus echo) the last character of the invalid > sequence > - it fails to set esc_len to 0 when it finishes em

[PATCH 01/30] ide: Move ATA_CURR_BASE to C file

2023-03-27 Thread Simon Glass
This is not used outside one C file. Move it out of the header to reduce its visbility. Signed-off-by: Simon Glass --- drivers/block/ide.c | 3 +++ include/ide.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 1ad9b6c

[PATCH 00/30] ide: Clean up code and fix a few bugs

2023-03-27 Thread Simon Glass
This code was converted to driver model a long time again but it was a pretty rough conversion. It introduced a few minor bugs, e.g. the device capacity is incorrect and some flags are lost (such as lba48). This series tidies up the code and fixes these bugs. This involves quite a bit of refactori

Re: [v4 0/7] Fix Rockchip RK3399 bootstd migration

2023-03-27 Thread Simon Glass
Hi Peter, On Tue, 28 Mar 2023 at 06:50, Peter Robinson wrote: > > On Mon, Mar 27, 2023 at 5:02 AM Simon Glass wrote: > > > > Hi Tom, > > > > On Sat, 25 Mar 2023 at 09:58, Tom Rini wrote: > > > > > > Hey all, > > > > > > I took a look at Simon's v3 series to fix the rk3399 bootstd migration, > >

Re: [RFC 1/7] dm: add get_dp_node() to struct uclass_driver

2023-03-27 Thread Simon Glass
Hi Heinrich, On Mon, 27 Mar 2023 at 22:41, Heinrich Schuchardt wrote: > > On 3/27/23 10:24, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 27 Mar 2023 at 19:48, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 3/27/23 06:00, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Mon, 27

Re: [RFC 3/7] dm: implement get_dp_node for block devices

2023-03-27 Thread Simon Glass
Hi Heinrich, On Mon, 27 Mar 2023 at 22:31, Heinrich Schuchardt wrote: > > On 3/27/23 10:24, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 27 Mar 2023 at 19:13, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 3/27/23 06:00, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Mon, 27

Re: [PATCH v3 1/3] rockchip: misc: fix misc_read() return check

2023-03-27 Thread Simon Glass
On Tue, 28 Mar 2023 at 00:01, John Keeping wrote: > > misc_read() is documented to return the number of bytes read or a > negative error value. The Rockchip drivers currently do not implement > this correctly and instead return zero on success or a negative error > value. > > In preparation for f

[PATCH 5/5] configs: am62ax: enable ymodem support for a53 spl

2023-03-27 Thread Bryan Brattlof
Automated testing inside TI currently relies on loading the boot-loaders into the SoC via UART. Enable SPL_YMODEM_SUPPORT so our testing infrastructure can boot (and test) our boards. Fixes: 719bd650c30e8 ("configs: introduce configs for the am62a") Signed-off-by: Bryan Brattlof --- configs/am62

[PATCH 2/5] arm: dts: sync am62ax dtbs with linux v6.3-rc4

2023-03-27 Thread Bryan Brattlof
To enable Ethernet support at the uboot level, pull the device tree files from the v6.3-rc4 version of the Linux kernel. Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am62a-main.dtsi | 365 ++ arch/arm/dts/k3-am62a-mcu.dtsi| 51 + arch/arm/dts/k3-am62a-

[PATCH 0/5] enable DMA and CPSW nodes for am62ax SoC family

2023-03-27 Thread Bryan Brattlof
Hello everyone! This patch series syncs TI's am62ax device tree files with what has been merged in the v6.3-rc4 of the Linux Kernel. This series will also enable YMODEM support to make automated testing (which uses the UART boot method to load the bootloaders) Thanks for reviewing ~Bryan Bryan B

[PATCH 1/5] dma: ti: k3-udma: Introduce DMA support for the am62ax

2023-03-27 Thread Bryan Brattlof
From: Vignesh Raghavendra In preparation for enabling ethernet for the am62ax family of SoCs, introduce the initial DMA channel settings for the am62ax Signed-off-by: Vignesh Raghavendra [b...@ti.com: expanded on commit message] Signed-off-by: Bryan Brattlof --- drivers/dma/ti/Makefile

[PATCH 3/5] arm: dts: add DMA and CPSW nodes for uboot

2023-03-27 Thread Bryan Brattlof
Update the uboot dtsi to enable DMA and CPSW at the uboot level Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am62a7-r5-sk.dts | 8 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 26 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm/dt

[PATCH 4/5] configs: enable net features for am62ax

2023-03-27 Thread Bryan Brattlof
Enable DMA and CPSW options we now support for the am62ax SoC family Signed-off-by: Bryan Brattlof --- configs/am62ax_evm_a53_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/am62ax_evm_a53_defconfig b/configs/am62ax_evm_a53_defconfig index 8d6428f22eb11

[ANN] U-Boot v2023.04-rc5 released

2023-03-27 Thread Tom Rini
Hey all, It's the scheduled day for -rc5, and here it is. I've pulled in the fixes for Rockchip rk3399 platforms, and also some x86 BayTrail fixes today, and a few other fixes since the last -rc. At this point, I expect anything that comes in to be very obviously correct (typo fixes) or very isol

Re: [v4 0/7] Fix Rockchip RK3399 bootstd migration

2023-03-27 Thread Peter Robinson
On Mon, Mar 27, 2023 at 5:02 AM Simon Glass wrote: > > Hi Tom, > > On Sat, 25 Mar 2023 at 09:58, Tom Rini wrote: > > > > Hey all, > > > > I took a look at Simon's v3 series to fix the rk3399 bootstd migration, > > and it changed too much for everything else. I took about half of that > > series a

Re: Please pull u-boot-x86

2023-03-27 Thread Tom Rini
On Mon, Mar 27, 2023 at 09:42:25AM +0800, Bin Meng wrote: > Hi Tom, > > This PR contains the following x86 changes for v2023.04 release: > > - x86: Bug fixes of previous BayTrail platform CONFIG_TEXT_BASE changes > > The following changes since commit 8be7b4629e87ff8db08dd087c81d58129d029bad: >

Re: [v4 0/7] Fix Rockchip RK3399 bootstd migration

2023-03-27 Thread Tom Rini
On Fri, 24 Mar 2023 16:58:09 -0400, Tom Rini wrote: > Hey all, > > I took a look at Simon's v3 series to fix the rk3399 bootstd migration, > and it changed too much for everything else. I took about half of that > series and then reworked a few things. Now only rk3399 platforms change > at all an

[PATCHv8 3/3] doc: boards: amlogic: add documentation for Beelink GT1 Ultimate

2023-03-27 Thread Karl Chan
Add build instructions for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  board/amlogic/q200/MAINTAINERS |   2 +  doc/board/amlogic/beelink-gt1-ultimate.rst | 110 +  2 files changed, 112 insertions(+)  create mode 10

[PATCHv8 2/3] boards: amlogic: add Beelink GT1 Ultimate defconfig

2023-03-27 Thread Karl Chan
Add configuration for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  configs/beelink-gt1-ultimate_defconfig | 78 ++  1 file changed, 78 insertions(+)  create mode 100644 configs/beelink-gt1-ultimate_defconfig diff --git a/c

[PATCHv8 1/3] ARM: dts: add support for Beelink GT1 Ultimate

2023-03-27 Thread Karl Chan
Import the device-tree from linux-amlogic/for-next (Linux 6.3-rc1). Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  arch/arm/dts/Makefile |  1 +  .../dts/meson-gxm-gt1-ultimate-u-boot.dtsi    |  7 ++  arch/arm/dts/meson-gxm-gt1-ultimate.dts   | 91 +

[RESENT][PATCHv7 3/3] doc: boards: amlogic: add documentation for Beelink GT1 Ultimate

2023-03-27 Thread Karl Chan
Add build instructions for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  board/amlogic/q200/MAINTAINERS |   2 +  doc/board/amlogic/beelink-gt1-ultimate.rst | 110 +  2 files changed, 112 insertions(+)  create mode 10

[RESENT][PATCHv7 2/3] boards: amlogic: add Beelink GT1 Ultimate defconfig

2023-03-27 Thread Karl Chan
Add configuration for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  configs/beelink-gt1-ultimate_defconfig | 78 ++  1 file changed, 78 insertions(+)  create mode 100644 configs/beelink-gt1-ultimate_defconfig diff --git a/c

[RESENT][PATCHv7 1/3] ARM: dts: add support for Beelink GT1 Ultimate

2023-03-27 Thread Karl Chan
Import the device-tree from linux-amlogic/for-next (Linux 6.3-rc1). Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  arch/arm/dts/Makefile |  1 +  .../dts/meson-gxm-gt1-ultimate-u-boot.dtsi    |  7 ++  arch/arm/dts/meson-gxm-gt1-ultimate.dts   | 91 +

[PATCHv7 3/3] doc: boards: amlogic: add documentation for Beelink GT1 Ultimate

2023-03-27 Thread exkc
Add build instructions for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  board/amlogic/q200/MAINTAINERS |   2 +  doc/board/amlogic/beelink-gt1-ultimate.rst | 110 +  2 files changed, 112 insertions(+)  create mode 10

[PATCHv7 2/3] boards: amlogic: add Beelink GT1 Ultimate defconfig

2023-03-27 Thread exkc
Add configuration for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  configs/beelink-gt1-ultimate_defconfig | 78 ++  1 file changed, 78 insertions(+)  create mode 100644 configs/beelink-gt1-ultimate_defconfig diff --git a/c

[PATCHv7 2/3] boards: amlogic: add Beelink GT1 Ultimate defconfig

2023-03-27 Thread exkc
Add configuration for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by:  Karl Chan ---  configs/beelink-gt1-ultimate_defconfig | 78 ++  1 file changed, 78 insertions(+)  create mode 100644 configs/beelink-gt1-ultimate_defconfig diff --git a/

[PATCHv7 1/3] ARM: dts: add support for Beelink GT1 Ultimate

2023-03-27 Thread exkc
Import the device-tree from linux-amlogic/for-next (Linux 6.3-rc1). Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan ---  arch/arm/dts/Makefile |  1 +  .../dts/meson-gxm-gt1-ultimate-u-boot.dtsi    |  7 ++  arch/arm/dts/meson-gxm-gt1-ultimate.dts   | 91 +

[PATCHv6 3/3] doc: boards: amlogic: add documentation for Beelink GT1 Ultimate

2023-03-27 Thread Karl Chan
Add build instructions for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan --- board/amlogic/q200/MAINTAINERS | 2 + doc/board/amlogic/beelink-gt1-ultimate.rst | 110 + 2 files changed, 112 insertions(+) create mode 100

[PATCHv6 2/3] boards: amlogic: add Beelink GT1 Ultimate defconfig

2023-03-27 Thread Karl Chan
Add configuration for the Beelink GT1 Ultimate board. Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan --- configs/beelink-gt1-ultimate_defconfig | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 configs/beelink-gt1-ultimate_defconfig diff --git a/co

[PATCHv6 1/3] ARM: dts: add support for Beelink GT1 Ultimate

2023-03-27 Thread Karl Chan
 Import the device-tree from linux-amlogic/for-next (Linux 6.3-rc1). Signed-off-by: Christian Hewitt Signed-off-by: Karl Chan --- arch/arm/dts/Makefile | 1 + .../dts/meson-gxm-gt1-ultimate-u-boot.dtsi| 7 ++ arch/arm/dts/meson-gxm-gt1-ultimate.dts | 91 +++

Re: [PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-03-27 Thread Tom Rini
On Mon, Mar 27, 2023 at 11:15:21AM -0500, Judith Mendez wrote: > List some common boot modes and their corresponding switch > settings for AM62 SK. > > Signed-off-by: Judith Mendez > --- > doc/board/ti/am62x_sk.rst | 29 + > 1 file changed, 29 insertions(+) Please s

[PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-03-27 Thread Judith Mendez
List some common boot modes and their corresponding switch settings for AM62 SK. Signed-off-by: Judith Mendez --- doc/board/ti/am62x_sk.rst | 29 + 1 file changed, 29 insertions(+) diff --git a/doc/board/ti/am62x_sk.rst b/doc/board/ti/am62x_sk.rst index b1b7d99befb..

Re: [PATCH 2/2] spi: cadence-quadspi: Use STIG mode for all ops with small payload

2023-03-27 Thread Pratyush Yadav
On Thu, Mar 23 2023, Dhruva Gole wrote: > OSPI controller supports all types of op variants in STIG mode, > only limitation being that the data payload should be less than > 8 bytes when not using memory banks. > > STIG mode is more stable for operations that send small data > payload and is more

Re: [PATCH 1/2] spi: cadence-quadspi: Fix check condition for DTR ops

2023-03-27 Thread Pratyush Yadav
On Thu, Mar 23 2023, Dhruva Gole wrote: > buswidth and dtr fields in spi_mem_op are only valid when the > corresponding spi_mem_op phase has a non-zero length. For example, Right. > SPI NAND core doesn't set buswidth when using SPI_MEM_OP_NO_ADDR > phase. > > Fix the dtr checks in set_protocol()

[PATCH] mtd: cfi: respect reg address length

2023-03-27 Thread Nuno Sá
flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device mappable region (eg: devicetree reg property) might be lower than the device full size which means that the above cycle will result in a data bus exception

Re: [PATCH 4/7] arch: snapdragon: clock: Always bind before relocation

2023-03-27 Thread Tom Rini
On Mon, Mar 27, 2023 at 11:07:06AM +0530, Sumit Garg wrote: > On Fri, 24 Mar 2023 at 20:54, Tom Rini wrote: > > > > On Fri, Mar 24, 2023 at 11:36:24AM +0530, Sumit Garg wrote: > > > On Fri, 24 Mar 2023 at 07:27, Konrad Dybcio > > > wrote: > > > > > > > > In preparation for supporting upstream Li

Re: [v4 0/7] Fix Rockchip RK3399 bootstd migration

2023-03-27 Thread Tom Rini
On Mon, Mar 27, 2023 at 05:00:31PM +1300, Simon Glass wrote: > Hi Tom, > > On Sat, 25 Mar 2023 at 09:58, Tom Rini wrote: > > > > Hey all, > > > > I took a look at Simon's v3 series to fix the rk3399 bootstd migration, > > and it changed too much for everything else. I took about half of that > >

Re: [PATCH] regulator: implement basic reference counter

2023-03-27 Thread Eugen Hristev
On 3/18/23 22:20, Simon Glass wrote: Hi Eugen, On Thu, 16 Mar 2023 at 07:53, Eugen Hristev wrote: Some devices share a regulator supply, when the first one will request regulator disable, the second device will have it's supply cut off before graciously shutting down. Hence there will be time

Re: Status of dma-range issues with BCM2711

2023-03-27 Thread Peter Robinson
On Mon, Jan 9, 2023 at 12:16 PM Antoine Mazeas wrote: > > Dear all, > > Last time Peter tested this patch, he raised the issue of also copying the > CMA range of set by the firmware, this task being still outstanding today. > > I’m happy to resume refining this patch accordingly, unless it could

Re: [PATCH] boards: amlogic: switch LibreTech-CC v2 and WeTek Core2 to EE powerdomain

2023-03-27 Thread Neil Armstrong
On 26/03/2023 08:06, Christian Hewitt wrote: The LibreTech-CC (LePotato) v2 and WeTek Core2 boards are still using the older GX VPU powerdomain driver. Update their configs to use the newer EE driver like other Amlogic boards [0]. [0] https://lore.kernel.org/all/20201106101901.2472557-5-narmstr

Re: [PATCH v6 2/4] configs: j721e: Merge the HS and non-HS defconfigs

2023-03-27 Thread Bryan Brattlof
Hi Manorit! On March 24, 2023 thus sayeth Manorit Chawdhry: > K3 devices have runtime type board detection. Make the default defconfig > include the secure configuration. Then remove the HS specific config. > > Non-HS devices will continue to boot due to runtime device type detection. > If TI_SEC

[PATCH v2 3/3] configs: tqma6: enable DM_THERMAL

2023-03-27 Thread Markus Niebel
Enabling this gives some informal output at boot time. Signed-off-by: Markus Niebel --- configs/tqma6dl_mba6_mmc_defconfig | 2 ++ configs/tqma6dl_mba6_spi_defconfig | 2 ++ configs/tqma6q_mba6_mmc_defconfig | 2 ++ configs/tqma6q_mba6_spi_defconfig | 2 ++ configs/tqma6s_mba6_mmc_defconfig |

[PATCH v2 2/3] configs: tqma6: enable DM for MDIO / PHY

2023-03-27 Thread Markus Niebel
Since this works with current device trees, enabled these. Signed-off-by: Markus Niebel --- configs/tqma6dl_mba6_mmc_defconfig | 3 +++ configs/tqma6dl_mba6_spi_defconfig | 3 +++ configs/tqma6q_mba6_mmc_defconfig | 3 +++ configs/tqma6q_mba6_spi_defconfig | 3 +++ configs/tqma6s_mba6_mmc_defc

  1   2   >