[RFC PATCH] i2c: mvtwsi: reinitialize controller to clear bus errors

2023-06-09 Thread Sam Edwards
Hi I²C maintainers, My target has the following devices sharing one bus: - 24C02 EEPROM - Realtek 8370 Ethernet switch - Allwinner T113-s3 (running U-Boot, interfacing via MVTWSI) The RTL8370 is configured in "EEPROM autoload" mode, so on reset it will load the full contents of the EEPROM. During

Re: [PATCH 2/3] drivers: musb-new: add allwinner f1c100s

2023-06-09 Thread Andre Przywara
On Fri, 9 Jun 2023 14:11:53 + 路辉 wrote: Hi, > From fe7d48e84bb3c72d219f37eed51ea766f83b4bec Mon Sep 17 00:00:00 2001 > From: Lu Hui > Date: Fri, 9 Jun 2023 22:05:23 +0800 > Subject: [PATCH 2/3] drivers: musb-new: add allwinner f1c100s configuration thanks for sending this. If this patch sh

Re: [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode

2023-06-09 Thread Andre Przywara
On Fri, 9 Jun 2023 14:12:31 + 路辉 wrote: Hi, > From fff53ba354c8eca33cb9901888778420db637073 Mon Sep 17 00:00:00 2001 > From: Lu Hui > Date: Fri, 9 Jun 2023 22:05:53 +0800 > Subject: [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode thanks for sending this, but this snippet was me

Re: [PATCH v2 0/6] corstone1000: fwu metadata and GPT

2023-06-09 Thread Tom Rini
On Mon, May 29, 2023 at 03:02:23PM +0100, Rui Miguel Silva wrote: > Now that the nvmxip block driver is merged we can add on top > of it the platform code to use GPT and FWU metadata in the > Corstone1000. > > But first, push 2 fixes that are needed to make all this work: > - move nvmxip header

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

2023-06-09 Thread Tom Rini
On Wed, 31 May 2023 00:28:04 -0500, jaswinder.si...@linaro.org wrote: > 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.ke

Re: [PATCH v6 0/7] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-06-09 Thread Tom Rini
On Mon, 06 Mar 2023 17:17:47 -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > The patchset reduces ~400 lines of code, while keeping the functionality same > and making > meta-data operations much faster (by using cached structures). > > Issue: > meta-data copies (primary and sec

Re: [PATCH 1/3] phy: phy-sun4i-usb: add allwinner f1c100s configuration

2023-06-09 Thread Andre Przywara
On Fri, 9 Jun 2023 14:11:07 + 路辉 wrote: Hi, > From 09a85536f92cfd22f2a6feba8ea91fae4bc41ed8 Mon Sep 17 00:00:00 2001 > From: Lu Hui > Date: Fri, 9 Jun 2023 22:04:56 +0800 > Subject: [PATCH 1/3] phy: phy-sun4i-usb: add allwinner f1c100s configuration I sent a similar patch literally just a

Re: [PATCH 3/5] sunxi: H616: dram: split struct dram_para

2023-06-09 Thread Andre Przywara
On Fri, 09 Jun 2023 22:26:21 +0200 Jernej Škrabec wrote: Hi, > Dne sreda, 07. junij 2023 ob 02:07:43 CEST je Andre Przywara napisal(a): > > Currently there is one DRAM parameter struct for the Allwinner H616 DRAM > > "driver". It contains many fields that are compile time constants > > (set by K

Re: [RFC PATCH 00/17] sunxi: rework pinctrl and add T113s support

2023-06-09 Thread Sam Edwards
Hi Andre, On 12/5/22 17:45, Andre Przywara wrote: Please let me know if you have any opinions! I believe I promised you last month I'd let you know once I had a build I'm happy with, and I'm pleased to say that I think I've reached that point. I'm running quite rapidly out of sharp edges to

[PATCH v2 2/2] usb: musb-new: sunxi: clarify the purpose of SRAM initialization

2023-06-09 Thread Sam Edwards
This is largely a cosmetic change, with one functional distinction: We are now only setting BIT(0), and no longer clearing BIT(1). The A20 manual confirms the purpose and bitwidth of this field, and we have also been doing it this way for a while in Linux-land: The prior narrative about this initi

[PATCH v2 1/2] usb: musb-new: sunxi: only perform SRAM initialization when necessary

2023-06-09 Thread Sam Edwards
Only the older (ca. A10, A20) sunxis need this poke for the MUSB to function. Mimic the Linux kernel and add a `has_sram` flag to the config structure that is only set for the specific compatibles that require this initialization. Signed-off-by: Sam Edwards Reviewed-by: Andre Przywara Tested-by:

[PATCH v2 0/2] sunxi, usb: Clean up SRAM initialization code

2023-06-09 Thread Sam Edwards
Hi list, This is the second version of cleaning up the SRAM initialization code in the musb-new variant for sunxis. Patch 1 ("only perform ... when necessary") has not changed since v1. Patch 2 has had the following changes: - Remove one-off bit/reg #defines, per feedback from Andre. - Switch to

Re: [PATCH 5/5] sunxi: H616: add LPDDR3 DRAM support

2023-06-09 Thread Andre Przywara
On Fri, 09 Jun 2023 22:38:38 +0200 Jernej Škrabec wrote: Hi, > Dne sreda, 07. junij 2023 ob 02:07:45 CEST je Andre Przywara napisal(a): > > From: iuncuim > > > > The H616 SoC has support for several types of DRAM: DDR3, LPDDR3, > > DDR4 and LPDDR4. > > At the moment, the driver only supports D

Re: [PATCH 3/3] sunxi: Kconfig: rework PHY_USB_SUN4I selection

2023-06-09 Thread Jernej Škrabec
Dne petek, 09. junij 2023 ob 12:56:21 CEST je Andre Przywara napisal(a): > At the moment we use "select" in each Allwinner SoC's Kconfig section to > include the USB PHY driver in the build. This means it cannot be disabled > via Kconfig, although USB is not really a strictly required core > functi

Re: [PATCH 2/3] phy: sun4i-usb: add Allwinner F1C100s support

2023-06-09 Thread Jernej Škrabec
Dne petek, 09. junij 2023 ob 12:56:20 CEST je Andre Przywara napisal(a): > The Allwinner F1C100s implements a single USB PHY, connected to its MUSB > OTG controller. The USB PHY is of the simpler, older type (like the A10), > the only real difference is that it's indeed only one PHY. > > Add a str

Re: [PATCH 1/3] phy: sun4i-usb: Fix of_xlate() argument check

2023-06-09 Thread Jernej Škrabec
Dne petek, 09. junij 2023 ob 12:56:19 CEST je Andre Przywara napisal(a): > In its of_xlate() function, the Allwinner USB PHY driver compares the > args_count variable against the number of implemented USB PHYs, although > this is the *number of arguments* to the DT phandle property. Per the DT > bi

Re: [PATCH 5/5] sunxi: H616: add LPDDR3 DRAM support

2023-06-09 Thread Jernej Škrabec
Dne sreda, 07. junij 2023 ob 02:07:45 CEST je Andre Przywara napisal(a): > From: iuncuim > > The H616 SoC has support for several types of DRAM: DDR3, LPDDR3, > DDR4 and LPDDR4. > At the moment, the driver only supports DDR3 memory. > Let's extend the driver to support the LPDDR3 memory. All "mag

Re: [PATCH 4/5] sunxi: H616: add DRAM type selection

2023-06-09 Thread Jernej Škrabec
Dne sreda, 07. junij 2023 ob 02:07:44 CEST je Andre Przywara napisal(a): > From: iuncuim > > Allwinner H616 SoC supports several types of DRAM memory. To further > integrate other types of memory, we need to add this delimitation. > --- > arch/arm/mach-sunxi/Kconfig | 10 +-

Re: [PATCH 3/5] sunxi: H616: dram: split struct dram_para

2023-06-09 Thread Jernej Škrabec
Dne sreda, 07. junij 2023 ob 02:07:43 CEST je Andre Przywara napisal(a): > Currently there is one DRAM parameter struct for the Allwinner H616 DRAM > "driver". It contains many fields that are compile time constants > (set by Kconfig variables), though there are also some fields that are > probed a

Re: [PATCH 2/5] sunxi: H616: dram: const-ify DRAM function parameters

2023-06-09 Thread Jernej Škrabec
Dne sreda, 07. junij 2023 ob 02:07:42 CEST je Andre Przywara napisal(a): > There are quite some functions in the Allwinner H616 DRAM "driver", some > of them actually change the parameters in the structure passed to them, > but many are actually not. > To increase the optimisation potential for the

Re: [PATCH 1/5] sunxi: dram: make MBUS configuration functions static

2023-06-09 Thread Jernej Škrabec
Dne sreda, 07. junij 2023 ob 02:07:41 CEST je Andre Przywara napisal(a): > The usage of the C keyword "inline" seems to be a common > misunderstanding: it's a *hint* only, and modern compilers will inline > (or not) functions based on their own judgement and provided compiler > options. > So while

Re: [PATCH 2/2] usb: musb-new: sunxi: clarify the purpose of SRAM initialization

2023-06-09 Thread Andre Przywara
On Fri, 9 Jun 2023 13:16:00 -0600 Sam Edwards wrote: Hi Sam, > I've applied most of this feedback (most of which comes as a relief; I > dislike inventing names for mystery bits) in preparation to send a v2, > but had two questions: > > On 6/9/23 04:13, Andre Przywara wrote: > >> The new comme

Re: [PATCH 2/2] usb: musb-new: sunxi: clarify the purpose of SRAM initialization

2023-06-09 Thread Sam Edwards
Hi Andre, I've applied most of this feedback (most of which comes as a relief; I dislike inventing names for mystery bits) in preparation to send a v2, but had two questions: On 6/9/23 04:13, Andre Przywara wrote: The new comments and function name are not from any official source, but are u

Re: [SPAM] Re: [PATCH] cmd: usb: Prevent reset in usb tree/info command

2023-06-09 Thread Xavier Drudis Ferran
Sorry, I replied to Marek only but meant to reply to all. El Fri, Jun 09, 2023 at 03:20:33AM +0200, Marek Vasut deia: > > No. Well, in some tests yes and some no, but I got the error in all cases. > > This is doubtful. It is mandatory to run 'usb start' or 'usb reset' before > you would get any

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

2023-06-09 Thread Tom Rini
On Fri, Jun 09, 2023 at 12:03:06AM +0200, Marek Vasut wrote: > The following changes since commit 0a8a4b86422650d6955a2382796089735453902d: > > Merge tag 'u-boot-amlogic-20230607' of > https://source.denx.de/u-boot/custodians/u-boot-amlogic (2023-06-07 12:17:06 > -0400) > > are available in

Re: [PATCH 2/2] sunxi: H616: add LPDDR3 DRAM support

2023-06-09 Thread Iun Cuim
Signed-off-by: Mikhail Kalashnikov From: iuncuim > > The H616 SoC has support for several types of DRAM: DDR3, LPDDR3, > DDR4 and LPDDR4. > At the moment, the driver only supports DDR3 memory. > Let's extend the driver to support the LPDDR3 memory. All "magic" > values obtained from the boot0. >

Re: [PATCH 1/2] sunxi: H616: add DRAM type selection

2023-06-09 Thread Iun Cuim
Signed-off-by: Mikhail Kalashnikov сб, 3 июн. 2023 г. в 16:55, Mikhail Kalashnikov : > From: iuncuim > > Allwinner H616 SoC supports several types of DRAM memory. To further > integrate other types of memory, we need to add this delimitation. > --- > arch/arm/mach-sunxi/Kconfig |

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

2023-06-09 Thread Tim Harvey
Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. Signed-off-by: Tim Harvey Reviewed-by: Adam Ford --- v2: - protect ret with __maybe_unused in case CONFIG_CLK and CONFIG_DM_REGULATOR not defined - add error pri

[PATCH] board: gateworks: venice: add imx8mp-gw7905-2x support

2023-06-09 Thread Tim Harvey
The Gateworks imx8mp-venice-gw7905-2x consists of a SOM + baseboard. The GW702x SOM contains the following: - i.MX8M Plus SoC - LPDDR4 memory - eMMC Boot device - Gateworks System Controller (GSC) with integrated EEPROM, button controller, and ADC's - PMIC - SOM connector providing: - e

[PATCH] board: gateworks: venice: display dram speed

2023-06-09 Thread Tim Harvey
Display dram speed during configuration. Signed-off-by: Tim Harvey --- board/gateworks/venice/spl.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c index 50056da3ee0f..c81498e830d6 100644 --- a/board/gateworks

[PATCH] board: gateworks: venice: assume emmc device for USB boot

2023-06-09 Thread Tim Harvey
When booting from USB (SDP) setup firmware-update environment for emmc device. Signed-off-by: Tim Harvey --- board/gateworks/venice/venice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index 803582c55b99..3067480e6ac7 1006

Re: [PULL] u-boot-sh/next_soc/v3x

2023-06-09 Thread Tom Rini
On Thu, Jun 08, 2023 at 11:32:22PM +0200, Marek Vasut wrote: > The following changes since commit 3aa4fb12f4abd31bce7fe6294dd47fd0966a791a: > > Merge tag 'efi-next-20230608' of > https://source.denx.de/u-boot/custodians/u-boot-efi into next (2023-06-08 > 11:19:27 -0400) > > are available in

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

2023-06-09 Thread Tim Harvey
On Thu, Jun 8, 2023 at 8:12 PM Adam Ford wrote: > > On Thu, Jun 8, 2023 at 8:29 PM Tim Harvey wrote: > > > > Add support for enabling and disabling vbus-supply regulator found > > on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. > > > > Without this I suspect U-Boot usb does not wor

[PATCH 2/2] renesas: rcar3: Load the correct device tree

2023-06-09 Thread Detlev Casanova
The Renesas R-Car Gen3 H3e (Starter Kit Premier) uses a different device tree than the default one. This uses the sysinfo's board id to determine if the board needs a specific device tree. Signed-off-by: Detlev Casanova --- board/renesas/ulcb/ulcb.c| 34 ++ c

[PATCH 1/2] renesas: rcar3: Expose the board id in sysinfo

2023-06-09 Thread Detlev Casanova
This is a preparation commit for selecting the correct device tree name to be loaded depending on the board id. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 31 ++- drivers/sysinfo/rcar3.h | 21 + 2 files changed, 39 insertions(+),

[PATCH 0/2] rcar: Select the correct device tree

2023-06-09 Thread Detlev Casanova
The R-Car Starter Kit Premier(H3e WS3.0) uses the r8a779m1-ulcb.dtb. As u-boot can detect the board id, let's use this to set the correct device tree for that board when using pxe. Detlev Casanova (2): renesas: rcar3: Expose the board id in sysinfo renesas: rcar3: Load the correct device tree

[PATCH] renesas: rcar: Apply ATF overlay for reserved-memory

2023-06-09 Thread Detlev Casanova
The function fdtdec_board_setup() is called early and adds the overlay from ATF to the u-boot device tree. That is necessary so that u-boot doesn't use reserved memory. Linux also needs to know about that reserved memory so the overlay from ATF needs to be aplied on the linux device tree as well.

[PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode

2023-06-09 Thread 路辉
>From fff53ba354c8eca33cb9901888778420db637073 Mon Sep 17 00:00:00 2001 From: Lu Hui Date: Fri, 9 Jun 2023 22:05:53 +0800 Subject: [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode --- arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 15 +++ 1 file changed, 15 insertions(+)

[PATCH 2/3] drivers: musb-new: add allwinner f1c100s

2023-06-09 Thread 路辉
>From fe7d48e84bb3c72d219f37eed51ea766f83b4bec Mon Sep 17 00:00:00 2001 From: Lu Hui Date: Fri, 9 Jun 2023 22:05:23 +0800 Subject: [PATCH 2/3] drivers: musb-new: add allwinner f1c100s configuration --- drivers/usb/musb-new/sunxi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/driver

[PATCH 1/3] phy: phy-sun4i-usb: add allwinner f1c100s configuration

2023-06-09 Thread 路辉
>From 09a85536f92cfd22f2a6feba8ea91fae4bc41ed8 Mon Sep 17 00:00:00 2001 From: Lu Hui Date: Fri, 9 Jun 2023 22:04:56 +0800 Subject: [PATCH 1/3] phy: phy-sun4i-usb: add allwinner f1c100s configuration --- drivers/phy/allwinner/phy-sun4i-usb.c | 14 +- 1 file changed, 13 insertions(+),

[PATCH] drivers: pinctrl-sunxi: add suniv spi1 function

2023-06-09 Thread 路辉
>From 570b40e19de75511d9ce066e1a28333ada04baf2 Mon Sep 17 00:00:00 2001 From: Lu Hui Date: Mon, 29 May 2023 22:26:25 +0800 Subject: [PATCH] drivers: pinctrl-sunxi: add suniv spi1 function --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctr

Re: [PATCH V2 6/8] drivers: video: Kconfig: Add config remove video

2023-06-09 Thread Tom Rini
On Fri, Jun 09, 2023 at 05:21:20PM +0530, Nikhil M Jain wrote: > This is required since user may want to either call the remove method > of video driver and reset the display or not call the remove method > to continue displaying until next stage. > > Signed-off-by: Nikhil M Jain > Reviewed-by: D

Re: [PATCH V2 4/8] include: video: Reserve video using blob

2023-06-09 Thread Tom Rini
On Fri, Jun 09, 2023 at 05:21:18PM +0530, Nikhil M Jain wrote: > Add method to reserve video framebuffer information using blob, > recieved from previous stage. > > Signed-off-by: Nikhil M Jain > --- > V2: > - Remove #if CONFIG_IS_ENABLED(VIDEO) in video_reserve_from_blob. > > drivers/video/vi

Re: [PATCH V2 1/8] common: spl: spl: Update stack pointer address

2023-06-09 Thread Tom Rini
On Fri, Jun 09, 2023 at 05:21:15PM +0530, Nikhil M Jain wrote: > At SPL stage when stack is relocated, the stack pointer needs to be > updated, the stack pointer may point to stack in on chip memory even > though stack is relocated. > > Signed-off-by: Nikhil M Jain Reviewed-by: Tom Rini -- T

[PATCH] bootstd: Fix relative path use in extlinux bootmeth

2023-06-09 Thread Jonas Karlman
Using relative path in a /boot/extlinux/extlinux.conf file fails to load linux kernel. Using a /boot/extlinux/extlinux.conf file: LABEL test LINUX ../linux/Image Result in following error: Retrieving file: ../linux/Image Skipping test for failure retrieving kernel Boot failed (err=-

Re: [PATCH v2] dt-bindings: riscv: deprecate riscv,isa

2023-06-09 Thread Conor Dooley
On Fri, Jun 09, 2023 at 08:03:44AM -0600, Rob Herring wrote: > Nope, vendor prefixes don't go in node names. That's not explicit > anywhere, but goes against using generic node names. Yeah, that makes sense. > Also, note that looking at the DT spec, there's already prior art here > with PPC. See

Re: [PATCH v2] dt-bindings: riscv: deprecate riscv,isa

2023-06-09 Thread Rob Herring
On Thu, Jun 8, 2023 at 12:05 PM Conor Dooley wrote: > > On Thu, Jun 08, 2023 at 11:49:08AM -0600, Rob Herring wrote: > > On Thu, 08 Jun 2023 17:54:05 +0100, Conor Dooley wrote: > > > > As a result of implementing Sean's suggestion, I believe I need to add > > > riscv,isa-extensions as an exception

Re: [PULL] u-boot-sh/master_soc/fixes

2023-06-09 Thread Tom Rini
On Thu, Jun 08, 2023 at 11:33:12PM +0200, Marek Vasut wrote: > The following changes since commit 661332a0744dad6a1a4bfbbdea2a4e5ae9835e52: > > Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2023-06-07 > 22:05:16 -0400) > > are available in the Git repository at: > > https://

Re: [PULL] u-boot-sh/master_soc/fixes

2023-06-09 Thread Tom Rini
On Thu, Jun 08, 2023 at 11:33:12PM +0200, Marek Vasut wrote: > The following changes since commit 661332a0744dad6a1a4bfbbdea2a4e5ae9835e52: > > Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2023-06-07 > 22:05:16 -0400) > > are available in the Git repository at: > > https://

Re: [PATCH V2 8/8] configs: am62x_evm_a53: Add bloblist address

2023-06-09 Thread Nishanth Menon
On 17:21-20230609, Nikhil M Jain wrote: > Define bloblist address. > > Updated Memory map > 0x8000┌─┐ > │Empty 512 KB │ > │ │ > 0x8008├─┤ >

[PATCH V2 8/8] configs: am62x_evm_a53: Add bloblist address

2023-06-09 Thread Nikhil M Jain
Define bloblist address. Updated Memory map 0x8000┌─┐ │Empty 512 KB │ │ │ 0x8008├─┤ │ Text Base │ │ 352 KB│

[PATCH V2 3/8] board: ti: am62x: evm: Update function calls for splash screen

2023-06-09 Thread Nikhil M Jain
Use spl_dcache_enable, in place of setup_dram, arch_reserve_mmu to set up pagetable, initialise DRAM and enable Dcache. Signed-off-by: Nikhil M Jain --- V2: - Use CONFIG_SPL_VIDEO in place of CONFIG_SPL_VIDEO_TIDSS to reserve video and call splash at SPL. - Check SPL_SPLASH_SCREEN and SPL_BMP

[PATCH V2 6/8] drivers: video: Kconfig: Add config remove video

2023-06-09 Thread Nikhil M Jain
This is required since user may want to either call the remove method of video driver and reset the display or not call the remove method to continue displaying until next stage. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- V2: - Add Reviewed-by tag. drivers/video/Kconfig | 13

[PATCH V2 5/8] common: board_f: Pass frame buffer info from SPL to u-boot

2023-06-09 Thread Nikhil M Jain
U-boot proper can use frame buffer address passed from SPL to reserve the memory area used by framebuffer set in SPL so that splash image set in SPL continues to get displayed while u-boot proper is running. Put the framebuffer address and size in a bloblist to make them available at u-boot proper

[PATCH V2 7/8] common: spl: spl: Remove video driver

2023-06-09 Thread Nikhil M Jain
Use config SPL_VIDEO_REMOVE to remove video driver at SPL stage before jumping to next stage, in place of CONFIG_SPL_VIDEO, to allow user to remove video if required. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- v2: - Add Reviewed-by tag. common/spl/spl.c | 2 +- 1 file change

[PATCH V2 2/8] arch: arm: mach-k3: common: Return a pointer after setting page table

2023-06-09 Thread Nikhil M Jain
In spl_dcache_enable after setting up page table, set gd->relocaddr pointer to tlb_addr, to get next location to reserve memory. Align tlb_addr with 64KB address. Signed-off-by: Nikhil M Jain --- V2: - Perform 64KB alignment on tlb_addr. arch/arm/mach-k3/common.c | 2 ++ 1 file changed, 2 inser

[PATCH V2 1/8] common: spl: spl: Update stack pointer address

2023-06-09 Thread Nikhil M Jain
At SPL stage when stack is relocated, the stack pointer needs to be updated, the stack pointer may point to stack in on chip memory even though stack is relocated. Signed-off-by: Nikhil M Jain --- V2: - No change. common/spl/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/s

[PATCH V2 4/8] include: video: Reserve video using blob

2023-06-09 Thread Nikhil M Jain
Add method to reserve video framebuffer information using blob, recieved from previous stage. Signed-off-by: Nikhil M Jain --- V2: - Remove #if CONFIG_IS_ENABLED(VIDEO) in video_reserve_from_blob. drivers/video/video-uclass.c | 11 +++ include/video.h | 9 + 2 file

[PATCH V2 0/8] Update SPL splashscreen framework for AM62x

2023-06-09 Thread Nikhil M Jain
This patch series aims at updating SPL splashscreen framework for AM62x. This patch series depends on https://lore.kernel.org/u-boot/20230504225829.2537050-1-...@chromium.org/ This series: - Fixes compilation issues in case splash related configs are not defined in SPL. - Does page table setup,

[PATCH 3/3] sunxi: Kconfig: rework PHY_USB_SUN4I selection

2023-06-09 Thread Andre Przywara
At the moment we use "select" in each Allwinner SoC's Kconfig section to include the USB PHY driver in the build. This means it cannot be disabled via Kconfig, although USB is not really a strictly required core functionality, and a particular board might not even include USB ports. Rework the Kco

[PATCH 2/3] phy: sun4i-usb: add Allwinner F1C100s support

2023-06-09 Thread Andre Przywara
The Allwinner F1C100s implements a single USB PHY, connected to its MUSB OTG controller. The USB PHY is of the simpler, older type (like the A10), the only real difference is that it's indeed only one PHY. Add a struct describing those F1C100s USB PHY properties, and connect it to the new compatib

[PATCH 1/3] phy: sun4i-usb: Fix of_xlate() argument check

2023-06-09 Thread Andre Przywara
In its of_xlate() function, the Allwinner USB PHY driver compares the args_count variable against the number of implemented USB PHYs, although this is the *number of arguments* to the DT phandle property. Per the DT binding for this PHY device, this number is always one, so this check will always f

[PATCH 0/3] phy: sun4i: Allwinner F1C100s support and cleanup

2023-06-09 Thread Andre Przywara
This mini series adds support for the Allwinner F1C100s USB PHY. There is really not much to it, we just need to connect the compatible string to a description that says we have one "old-style" PHY (patch 2/3). Doing this revealed a bug, which is fixed in patch 1/3. Also use the opportunity to fix

Re: [PATCH 2/2] usb: musb-new: sunxi: clarify the purpose of SRAM initialization

2023-06-09 Thread Andre Przywara
On Wed, 7 Jun 2023 17:16:44 -0600 Sam Edwards wrote: Hi Sam, > This is largely a cosmetic change, with one functional distinction: > We are now only setting BIT(0), and no longer clearing BIT(1). > > The new comments and function name are not from any official source, > but are updated to mirr

Re: [PATCH 1/2] usb: musb-new: sunxi: only perform SRAM initialization when necessary

2023-06-09 Thread Andre Przywara
On Wed, 7 Jun 2023 17:16:43 -0600 Sam Edwards wrote: Hi, > Only the older (ca. A10, A20) sunxis need this poke for the MUSB to > function. Mimic the Linux kernel and add a `has_sram` flag to the config > structure that is only set for the specific compatibles that require > this initialization.

Re: [PATCH 0/1] virtio: add driver for virtio_console devices

2023-06-09 Thread Bin Meng
Hi, On Tue, Jun 6, 2023 at 9:26 PM Ying-Chun Liu (PaulLiu) wrote: > > This is an implementation of single-character virtio-console. Part of the > patch is based on barebox implementations. > > To test the patch, we can build qemu_arm64_defconfig target. Enable > CONFIG_VIRTIO_CONSOLE. And run qem

[PATCH 6/6] xilinx: zynq: Add the missing function prototypes

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add the missing prototypes for the functions pointed by the below sparse warnings warning: no previous prototype for 'set_dfu_alt_info' [-Wmissing-prototypes] warning: no previous prototype for 'board_debug_uart_init' [-Wmissing-prototypes] Signed-off-by: Algapally

[PATCH 5/6] arm: zynq: Pass the missing argument type in function definition

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Pass missing argument type in the function definition to fix the sparse warning, warning: old-style function definition [-Wold-style-definition] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/zynq/zynq-zc706/ps7_init_gpl.

[PATCH 4/6] mtd: nand: zynq_nand: Change datatype of status and ecc_status to int

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar status and ecc_status are of unsigned type where they are compared for negative value. This is pointed by below sparse warning. Change datatype to int to fix this. warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits] Signed-off-by: Alg

[PATCH 3/6] spi: zynq_qspi: Add missing prototype for zynq_qspi_mem_exec_op

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynq_qspi_mem_exec_op' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynq_qspi.c | 4 ++-- 1 file changed, 2 ins

[PATCH 2/6] xilinx: zynq: Add missing prototype for zynqmp_mmio_write

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-zynq/include/mach/sys_proto.h | 1 + 1 file c

[PATCH 1/6] spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the below sparse warning warning: no previous prototype for 'xilinx_qspi_mem_exec_op' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/spi/xilinx_spi.c | 4 ++-- 1 file changed

[PATCH 0/6] Fix sparse warnings in zynq platform

2023-06-09 Thread Ashok Reddy Soma
Fix below sparse warnings - Add missing prototype for zynqmp_mmio_write - Add missing prototype for zynq_qspi_mem_exec_op - Change datatype of status and ecc_status from u32 to int - Pass the missing argument type in function definition - Add the missing function prototypes - Add missing prot

[PATCH 2/2] arm64: versal: Add missing prototypes

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototypes to fix the below sparse warnings 1. warning: no previous prototype for 'set_r5_halt_mode' [-Wmissing-prototypes] 2. warning: no previous prototype for 'set_r5_tcm_mode' [-Wmissing-prototypes] 3. warning: no previous prototype for 'release_r5_re

[PATCH 1/2] arm64: versal: Add missing prototype for initialize_tcm

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add the missing prototype pointed by below sparse warning warning: no previous prototype for 'initialize_tcm' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/include/mach/sys_proto.h | 1 + 1

[PATCH 0/2] Fix sparse warnings

2023-06-09 Thread Ashok Reddy Soma
In this patch series, fix sparse warnings in below files - arch/arm/mach-versal/mp.c - arch/arm/mach-versal/include/mach/sys_proto.h Algapally Santosh Sagar (2): arm64: versal: Add missing prototype for initialize_tcm arm64: versal: Add missing prototypes arch/arm/mach-versal/include/mac

Re: rk3328 efuse return just 0

2023-06-09 Thread Belisko Marek
Hi Jonas, On Fri, Jun 9, 2023 at 1:06 AM Jonas Karlman wrote: > Hi Marek, > > On 2023-06-08 15:06, Belisko Marek wrote: > > Hi, > > > > I'm using tip of actual master and with this small patches: > > --- a/configs/rock-pi-e-rk3328_defconfig > > +++ b/configs/rock-pi-e-rk3328_defconfig > > @@ -73

Re: [PATCH] spl: spl_fit: add weak prototype for fpga_load

2023-06-09 Thread Eugen Hristev
On 2/27/23 12:27, Eugen Hristev wrote: In case OPTIMIZE_DEBUG is set, unused code will not be optimized out, hence the reference to fpga_load will be compiled. if DM_FPGA and SPL_FPGA are not set, the build will fail with : aarch64-none-linux-gnu-ld.bfd: common/spl/spl_fit.o: in function `spl_f

Re: [PATCH v6 1/7] dt/bindings: fwu-mdata-mtd: drop changes outside FWU

2023-06-09 Thread Ilias Apalodimas
On Mon, Mar 06, 2023 at 05:18:14PM -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > Any requirement of FWU should not require changes to bindings > of other subsystems. For example, for mtd-backed storage we > can do without requiring 'fixed-partitions' children to also > carry 'uuid

Re: [lwip-devel] [RFC PATCH 0/5] LWIP stack integration

2023-06-09 Thread Peter Robinson
On Thu, Jun 8, 2023 at 6:56 PM Ilias Apalodimas wrote: > > Thanks Maxim, > > On Thu, 8 Jun 2023 at 13:14, Maxim Uvarov wrote: > > > > Ilias asked to make more clear results to compare the original stack and > > LWIP stack. So the difference between the current U-boot stack and the LWIP > > stac