[PATCH 2/2] ARM: stm32: Make PWR regulator driver available on STM32MP13xx

2024-03-18 Thread Marek Vasut
This patch makes STM32 PWR regulators available on stm32mp13xx. This requires TFA to clear RCC_SECCFGR, is disabled by default on stm32mp13xx and can only be enabled on board config level. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini Cc:

[PATCH 1/2] ARM: dts: stm32: add PWR regulators support on stm32mp131

2024-03-18 Thread Marek Vasut
This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear RCC_SECCFGR, is disabled by default and can only be enabled on board DT level. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini Cc: u-b...@dh-electronics.com Cc:

[PATCH] ARM: stm32: Default dfu_alt_info for STM32MP13xx SPI NOR

2024-03-18 Thread Marek Vasut
Define dfu_alt_info with SPI NOR layout to make it easy to install or update bootloader in the SPI NOR using dfu-util. Use the following U-Boot commands to start DFU mode: " => sf probe && dfu 0 mtd " Use the following dfu-util invocation on Host PC to install binaries: " $ dfu-util -w -a 0 -D

[PATCH v3] arm: dts: armada-37xx: update devicetrees from linux

2024-03-18 Thread Benjamin Schneider
Update existing armada-37xx DTS files with those in linux and add devicetree for ESPRESSObin Ultra device. Signed-off-by: Benjamin Schneider --- Changes in v3: - fix U-Boot typo - fix comment also missing from linux Changes in v2: - upstream is missing a patch for PCIe mem

Re: [PATCH 1/3] boot: fdt: Change type of env_get_bootm_low() to phys_addr_t

2024-03-18 Thread Marek Vasut
On 3/17/24 6:18 PM, Heinrich Schuchardt wrote: [...] Shouldn't we convert to unsigned long long for printing. Printing phys_addr_t always confuses me. I was under the impression that turning the value into uintptr_t (platform pointer type represented as integer) and then actually using that

Re: [PATCH 2/2] ARM: dts: renesas: Switch to using upstream DT on 64bit Renesas SoCs

2024-03-18 Thread Marek Vasut
On 3/18/24 5:14 PM, Adam Ford wrote: On Mon, Mar 18, 2024 at 10:00 AM Marek Vasut wrote: Enable OF_UPSTREAM to use upstream DT and add renesas/ prefix to the DEFAULT_DEVICE_TREE and OF_LIST. And thereby directly build DTB from dts/upstream/src/ including *-u-boot.dtsi files from

Re: [PATCH 2/2] ARM: dts: renesas: Switch to using upstream DT on 64bit Renesas SoCs

2024-03-18 Thread Marek Vasut
On 3/18/24 7:15 PM, Paul Barker wrote: On 18/03/2024 14:59, Marek Vasut wrote: Enable OF_UPSTREAM to use upstream DT and add renesas/ prefix to the DEFAULT_DEVICE_TREE and OF_LIST. And thereby directly build DTB from dts/upstream/src/ including *-u-boot.dtsi files from arch/$(ARCH)/dts/

Re: [PATCH 1/2] clk: clk-imx8qxp: Add LPUART IPG entries

2024-03-18 Thread Fabio Estevam
Hi Tom and Sean, On Fri, Mar 8, 2024 at 5:13 PM Fabio Estevam wrote: > > Since commit cc7df0b9e8bc ("serial: lpuart: Enable IPG clock") > the colibri-imx8qxp board no longer boots. > > The reason is that the imx8qxp clock driver does not handle the > LPUART IPG clocks inside get_rate(),

[PATCH] cmd: sysboot: null check filename

2024-03-18 Thread Caleb Connolly
Currently if ${bootfile} is unset and sysboot is invoked with no filename specified then U-Boot will crash will a null-pointer dereference. Add the missing check and a matching error print. Fixes: 993c912d304d ("cmd: sysboot: Create a sysboot command dedicated file") Signed-off-by: Caleb Connolly

Re: [PATCH v2 1/5] usb: dwc3-generic: implement Qualcomm wrapper

2024-03-18 Thread Marek Vasut
On 3/15/24 4:06 PM, Caleb Connolly wrote: The Qualcomm specific dwc3 wrapper isn't hugely complicated, implemented the missing initialisation for host and gadget mode. Reviewed-by: Mattijs Korpershoek Signed-off-by: Caleb Connolly --- drivers/usb/dwc3/dwc3-generic.c | 81

Re: imx7 issues with Secure and Non-Secure boot mode

2024-03-18 Thread Marek Vasut
On 3/7/24 10:26 AM, Emanuele Ghidoli wrote: Hello, I'm currently facing issues with our board, Colibri-imx7, regarding its behavior in different boot modes: - Secure Mode (bootm_boot_mode=sec in U-Boot): When running Linux in secure mode, the idle time management does not function

Re: [PATCH 3/3] configs: imx93-phyboard-segin: Add fastboot support.

2024-03-18 Thread Marek Vasut
On 3/18/24 6:16 PM, Mathieu Othacehe wrote: Enable the `fastboot` command. Signed-off-by: Mathieu Othacehe Reviewed-by: Marek Vasut

Re: [PATCH 2/3] configs: imx93-phyboard-segin: Add USB support.

2024-03-18 Thread Marek Vasut
On 3/18/24 6:16 PM, Mathieu Othacehe wrote: Enable the `usb` command and some USB drivers. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig

Re: [PATCH 1/3] arm: dts: imx93-phyboard-segin: Add USB support.

2024-03-18 Thread Marek Vasut
On 3/18/24 6:16 PM, Mathieu Othacehe wrote: Enable both usbotg1 and usbotg2 ports. Drop fullstop from $subject end. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/imx93-phyboard-segin.dts | 13 + 1 file changed, 13 insertions(+) diff --git

Re: [PATCH] starfive: visionfive2: switch to standard boot

2024-03-18 Thread Milan P . Stanić
On Thu, 2024-03-14 at 13:04, Nam Cao wrote: > On 13/Mar/2024 Milan P. Stanić wrote: > > On Wed, 2024-02-21 at 13:00, Nam Cao wrote: > > > Distro boot scripts are deprecated. Use standard boot instead. > > I had to enable 'CONFIG_CMD_SYSBOOT=y' in > > configs/starfive_visionfive2_defconfig

Re: [PATCH 1/2] arm64: Reduce add_map() complexity

2024-03-18 Thread Fabio Estevam
Hi Pierre, On Mon, Mar 18, 2024 at 4:59 PM Pierre-Clément Tosi wrote: > I notice that the mem_map in these logs have overlapping ranges, which results > in unnecessary work when creating the PTs. For this reason, it would make > sense > to prune it in arch/arm/mach-imx/imx8/cpu.c before

Re: [PATCH 1/2] arm64: Reduce add_map() complexity

2024-03-18 Thread Pierre-Clément Tosi
Hi Fabio, On Mon, Mar 18, 2024 at 10:31:25AM -0300, Fabio Estevam wrote: > Please find the new logs here: > > https://pastebin.com/raw/qF3GbJry I notice that the mem_map in these logs have overlapping ranges, which results in unnecessary work when creating the PTs. For this reason, it would

Re: [PATCH] arm64: Fix map_range() not splitting mapped blocks

2024-03-18 Thread Fabio Estevam
Hi Pierre, On Mon, Mar 18, 2024 at 4:35 PM Pierre-Clément Tosi wrote: > > The implementation of map_range() creates the requested mapping by > walking the page tables, iterating over multiple PTEs and/or descending > into existing table mappings as needed. When doing so, it assumes any >

[PATCH] arm64: Fix map_range() not splitting mapped blocks

2024-03-18 Thread Pierre-Clément Tosi
The implementation of map_range() creates the requested mapping by walking the page tables, iterating over multiple PTEs and/or descending into existing table mappings as needed. When doing so, it assumes any pre-existing valid PTE to be a table mapping. This assumption is wrong if the platform

Re: [PATCH 2/2] ARM: dts: renesas: Switch to using upstream DT on 64bit Renesas SoCs

2024-03-18 Thread Paul Barker
On 18/03/2024 14:59, Marek Vasut wrote: > Enable OF_UPSTREAM to use upstream DT and add renesas/ prefix to the > DEFAULT_DEVICE_TREE and OF_LIST. And thereby directly build DTB from > dts/upstream/src/ including *-u-boot.dtsi files from arch/$(ARCH)/dts/ > directory. > > The configuration update

Re: [PATCH] doc: devicetree: Lets avoid short reference link names

2024-03-18 Thread Paul Barker
On 02/03/2024 07:39, Paul Barker wrote: > On 01/03/2024 13:24, Sumit Garg wrote: >> Short reference link names like "dtspec", "dtrepo", "dttweaks" etc. >> interrupt the flow of the document text. Lets avoid them and instead >> expand in place for better readability. >> >> Suggested-by: Paul Barker

[PATCH 2/3] configs: imx93-phyboard-segin: Add USB support.

2024-03-18 Thread Mathieu Othacehe
Enable the `usb` command and some USB drivers. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index 24f9bd553aa..5acb987b817

[PATCH 0/3] imx93-phyboard-segin: Add USB support.

2024-03-18 Thread Mathieu Othacehe
Hello, This series adds USB support to imx93-phyboard-segin, in the same way as it has been done for imx93_var_som here: https://lists.denx.de/pipermail/u-boot/2024-February/546301.html Thanks, Mathieu Mathieu Othacehe (3): arm: dts: imx93-phyboard-segin: Add USB support. configs:

[PATCH 1/3] arm: dts: imx93-phyboard-segin: Add USB support.

2024-03-18 Thread Mathieu Othacehe
Enable both usbotg1 and usbotg2 ports. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/imx93-phyboard-segin.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/imx93-phyboard-segin.dts b/arch/arm/dts/imx93-phyboard-segin.dts index 85fb188b057..acf307a3192

[PATCH 3/3] configs: imx93-phyboard-segin: Add fastboot support.

2024-03-18 Thread Mathieu Othacehe
Enable the `fastboot` command. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index 5acb987b817..44ab6f7073b 100644 ---

Re: [PATCH 1/1] xilinx: zynq: add FDT_FIXUP_PARTITIONS support

2024-03-18 Thread James Hilliard
On Mon, Mar 18, 2024 at 5:07 AM Michal Simek wrote: > > > > On 3/18/24 09:48, James Hilliard wrote: > > On Mon, Mar 18, 2024 at 2:26 AM Michal Simek wrote: > >> > >> > >> > >> On 3/15/24 20:25, James Hilliard wrote: > >>> There are situations where we may want to let U-Boot modify the FDT > >> >

Re: [PATCH v2 3/4] boot: fdt: Drop lmb_alloc*() typecasts

2024-03-18 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Mon, Mar 18, 2024 at 04:00:46PM +0100, Marek Vasut wrote: > The lmb_alloc_base() returns phys_addr_t , map_sysmem() accepts > phys_addr_t as first parameter. Declare 'addr' as phys_addr_t and > get rid of the casts. > > Reported-by: Laurent Pinchart >

Re: [PATCH v2 2/4] boot: fdt: Clean up env_get_bootm_size()

2024-03-18 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Mon, Mar 18, 2024 at 04:00:45PM +0100, Marek Vasut wrote: > Clean up tmp variable use and type cast in env_get_bootm_size(). > No functional change. The code change looks fine, but you may want to expand the commit message to explain why this patch improves

Re: [PATCH 2/2] ARM: dts: renesas: Switch to using upstream DT on 64bit Renesas SoCs

2024-03-18 Thread Adam Ford
On Mon, Mar 18, 2024 at 10:00 AM Marek Vasut wrote: > > Enable OF_UPSTREAM to use upstream DT and add renesas/ prefix to the > DEFAULT_DEVICE_TREE and OF_LIST. And thereby directly build DTB from > dts/upstream/src/ including *-u-boot.dtsi files from arch/$(ARCH)/dts/ > directory. > > The

Re: imx7 issues with Secure and Non-Secure boot mode

2024-03-18 Thread Emanuele Ghidoli
On 07/03/2024 10:26, Emanuele Ghidoli wrote: > Hello, > > I'm currently facing issues with our board, Colibri-imx7, > regarding its behavior in different boot modes: > > - Secure Mode (bootm_boot_mode=sec in U-Boot): > When running Linux in secure mode, the idle time management does not >

[PATCH v1 2/2] riscv: support extension probing using riscv, isa-extensions

2024-03-18 Thread Conor Dooley
From: Conor Dooley A new property has been added, with an extensive rationale at [1], that can be used in place of "riscv,isa" to indicate what extensions are supported by a given platform that is a list of strings rather than a single string. There are some differences between the new property,

[PATCH v1 1/2] riscv: don't read riscv, isa in the riscv cpu's get_desc()

2024-03-18 Thread Conor Dooley
From: Conor Dooley cpu_get_desc() for the RISC-V CPU currently reads "riscv,isa" to get the description, but it is no longer a required property and cannot be assummed to always be present, as the new "riscv,isa-extensions" and "riscv,isa-base" properties may be present instead. On RISC-V,

[PATCH v1 0/2] Support new RISC-V ISA extension properties

2024-03-18 Thread Conor Dooley
From: Conor Dooley This would have just been a single patch (the second one), but as I reported a while back there's a problem with extension detection when the ISA string exceeds 32 characters: https://lore.kernel.org/u-boot/20240221-daycare-reliably-8ec86f95fe71@spud/ The first patch here

[PATCH] Makefile: Add missing OF_UPSTREAM Makefile for 32bit ARM

2024-03-18 Thread Marek Vasut
Copy dts/upstream/src/arm64/Makefile into dts/upstream/src/arm/Makefile and create a commit. This makes 32bit ARM buildable with OF_UPSTREAM . Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Biju Das Cc: Lad Prabhakar Cc: Paul Barker Cc: Ralph Siemsen Cc: Tom Rini ---

[PATCH v2 3/4] boot: fdt: Drop lmb_alloc*() typecasts

2024-03-18 Thread Marek Vasut
The lmb_alloc_base() returns phys_addr_t , map_sysmem() accepts phys_addr_t as first parameter. Declare 'addr' as phys_addr_t and get rid of the casts. Reported-by: Laurent Pinchart Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc: Laurent Pinchart Cc: Simon

[PATCH v2 4/4] boot: fdt: Move usable variable below updated comment

2024-03-18 Thread Marek Vasut
Move the variable below comment which explains what the variable means. Update the comment. No functional change. Reviewed-by: Laurent Pinchart Suggested-by: Laurent Pinchart Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc: Laurent Pinchart Cc: Simon Glass

[PATCH v2 2/4] boot: fdt: Clean up env_get_bootm_size()

2024-03-18 Thread Marek Vasut
Clean up tmp variable use and type cast in env_get_bootm_size(). No functional change. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc: Laurent Pinchart Cc: Simon Glass Cc: Tom Rini --- V2: - New patch --- boot/image-board.c | 8 +++- 1 file changed, 3

[PATCH v2 1/4] boot: fdt: Change type of env_get_bootm_low() to phys_addr_t

2024-03-18 Thread Marek Vasut
Change type of ulong env_get_bootm_low() to phys_addr_t env_get_bootm_low(). The PPC/LS systems already treat env_get_bootm_low() result as phys_addr_t, while the function itself still returns ulong. This is potentially dangerous on 64bit systems, where ulong might not be large enough to hold the

[PATCH 2/2] ARM: dts: renesas: Switch to using upstream DT on 64bit Renesas SoCs

2024-03-18 Thread Marek Vasut
Enable OF_UPSTREAM to use upstream DT and add renesas/ prefix to the DEFAULT_DEVICE_TREE and OF_LIST. And thereby directly build DTB from dts/upstream/src/ including *-u-boot.dtsi files from arch/$(ARCH)/dts/ directory. The configuration update has been done using the following script: ``` sed -i

[PATCH 1/2] ARM: dts: renesas: Replace R8A77950 with R8A77951

2024-03-18 Thread Marek Vasut
R-Car R8A77950 H3 ES1.* was only available to an internal development group and needed a lot of quirks and workarounds. Public users only have R-Car R8A77950 H3 ES2 and newer. Switch existing systems to use R8A77951 device trees. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Biju Das Cc:

[PATCH v3] net: phy: Factor out PHY GPIO reset code

2024-03-18 Thread Marek Vasut
Pull the PHY GPIO reset code into separate function, since this is and will be reused multiple times. Set up default reset assert and deassert timing to generous 20ms and 1ms for maximum compatibility in case those DT properties are missing. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut

Re: [PATCH v2 4/6] usb: Add environment based device blocklist

2024-03-18 Thread Marek Vasut
On 3/18/24 8:33 AM, Janne Grunau wrote: +static int usb_blocklist_parse_error(const char *blocklist, size_t pos) +{ + printf("usb_blocklist parse error at char %zu in \"%s\"\n", pos, + blocklist); + return 0; This could be static void without return 0 at the end.

Re: [PATCH v2] cmd: nand: Add support to print the manufacturer, model and size

2024-03-18 Thread Sean Anderson
On 3/18/24 09:42, Mihai Sain wrote: Add support to nand info for printing the manufacturer,model and size. The manufacturer and model are printed only for ONFI flashes. U-Boot> nand info Device 0: nand0, sector size 256 KiB Manufacturer MACRONIX Model MX30LF4G28AD Device size

Re: [PATCH 1/2] arm64: Reduce add_map() complexity

2024-03-18 Thread Fabio Estevam
On Mon, Mar 18, 2024 at 10:31 AM Fabio Estevam wrote: > I tried dumping the page table entries, but could not notice anything > that looked suspicious. This looks suspicious: With 41e2787f5ec4 reverted: Checking if pte fits for virt=1c00 size=6400 blocksize=4000 Checking if pte

[PATCH v2] cmd: nand: Add support to print the manufacturer, model and size

2024-03-18 Thread Mihai Sain
Add support to nand info for printing the manufacturer,model and size. The manufacturer and model are printed only for ONFI flashes. U-Boot> nand info Device 0: nand0, sector size 256 KiB Manufacturer MACRONIX Model MX30LF4G28AD Device size512 MiB Page size 4096

Re: [PATCH 1/2] arm64: Reduce add_map() complexity

2024-03-18 Thread Fabio Estevam
Hi Pierre, On Fri, Mar 15, 2024 at 12:13 PM Pierre-Clément Tosi wrote: > I had a quick look through your logs and notice that U-Boot master attempts to > map addresses in the high VA range e.g. > > Checking if pte fits for virt=e400 [...] > > while the logs that boot successfully

Re: [PATCH] cmd: nand: Add support to print the manufacturer, model and size

2024-03-18 Thread Alexander Dahl
Hello Mihai, adding the raw nand maintainers to Cc, maybe cmd/nand.c should be added to MAINTAINERS file section raw nand? See my comments below. Am Mon, Mar 18, 2024 at 02:26:47PM +0200 schrieb Mihai Sain: > Add support to nand info for printing the manufacturer,model and size. > > U-Boot>

RE: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Mihai.Sain
Hi Alexander, > Maybe we should add an automatic fallback for timing mode in > nand-controller.c  > As of now the driver is forcing tRC_min to 30ns (mode 3), which is not > reliable for sama7 nfc controller ☹ > >

Re: [PATCH 1/2] usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget

2024-03-18 Thread Caleb Connolly
On 17/03/2024 04:42, Marek Vasut wrote: > The dm_usb_gadget_handle_interrupts() has no place in board code. Move > this into DWC3 driver. The OMAP implementation is special, add new weak > dwc3_uboot_interrupt_status() function to decide whether DWC3 interrupt > handling should be called, and

Re: Pull Request: SoCFPGA changes for efi-2024-04-rc5

2024-03-18 Thread Tom Rini
On Mon, Mar 18, 2024 at 07:17:24AM +, Chee, Tien Fong wrote: > Dear Tom, > > Please pull the SoCFPGA changes for master from u-boot-socfpga, thanks. > > Best regards, > Tien Fong > > The following changes since commit 86fd291a7990af84e96808f48eff2219dd4ef496: > > Merge tag

Re: [GIT PULL] Please pull u-boot-imx-next-20240317

2024-03-18 Thread Tom Rini
On Sun, Mar 17, 2024 at 08:50:15PM -0300, Fabio Estevam wrote: > Hi Tom, > > Please pull this material for next from u-boot-imx, thank > > The following changes since commit 099c94b7613bb10d97936447f5136f3a36694325: > > Merge tag 'u-boot-rockchip-20240315' of >

Re: [GIT PULL] Please pull u-boot-imx-master-20240317

2024-03-18 Thread Tom Rini
On Sun, Mar 17, 2024 at 08:34:20PM -0300, Fabio Estevam wrote: > Hi Tom, > > Please pull these fixes from u-boot-imx, thanks. > > The following changes since commit 86fd291a7990af84e96808f48eff2219dd4ef496: > > Merge tag 'efi-2024-04-rc5' of >

[PATCH] cmd: nand: Add support to print the manufacturer, model and size

2024-03-18 Thread Mihai Sain
Add support to nand info for printing the manufacturer,model and size. U-Boot> nand info Device 0: nand0, sector size 256 KiB Manufacturer MACRONIX Model MX30LF4G28AD Device size512 MiB Page size 4096 b OOB size 256 b Erase size 262144 b ecc

Re: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Alexander Dahl
Hello Mihai, Am Mon, Mar 18, 2024 at 11:28:39AM + schrieb mihai.s...@microchip.com: > Hi Alexander, > > I'm sorry for quoting because the email is sent from Outlook ☹ > > > > U-Boot> nand info > > > > > > Device 0: nand0, sector size 256 KiB > > > Manufacturer MACRONIX > > > Model

RE: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Mihai.Sain
Hi Alexander, I'm sorry for quoting because the email is sent from Outlook ☹ > > U-Boot> nand info > > > > Device 0: nand0, sector size 256 KiB > > Manufacturer MACRONIX > > Model MX30LF4G28AD > > Device size512 MiB > > Page size 4096 b > > OOB size

Re: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Alexander Dahl
Hello Mihai, Am Mon, Mar 18, 2024 at 09:07:09AM + schrieb mihai.s...@microchip.com: > > U-Boot> nand info > > > > Device 0: nand0, sector size 256 KiB > > Manufacturer MACRONIX > > Model MX30LF4G28AD > > Device size512 MiB > > Page size 4096 b > > OOB size

RE: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Mihai.Sain
> The command is very useful. > I would like to have also the ONFI timing mode printed for nand-flash >  As far as I can see the actually set mode is not stored anywhere. One could print it after it was successfully set, but that

Re: [PATCH 1/1] xilinx: zynq: add FDT_FIXUP_PARTITIONS support

2024-03-18 Thread Michal Simek
On 3/18/24 09:48, James Hilliard wrote: On Mon, Mar 18, 2024 at 2:26 AM Michal Simek wrote: On 3/15/24 20:25, James Hilliard wrote: There are situations where we may want to let U-Boot modify the FDT please use imperative mood. nand partitions for the kernel, such as when supporting

Re: [PATCH 1/1] xilinx: zynq: add FDT_FIXUP_PARTITIONS support

2024-03-18 Thread James Hilliard
On Mon, Mar 18, 2024 at 2:26 AM Michal Simek wrote: > > > > On 3/15/24 20:25, James Hilliard wrote: > > There are situations where we may want to let U-Boot modify the FDT > > please use imperative mood. > > > nand partitions for the kernel, such as when supporting multiple > > sizes of NAND

[PATCH 1/1] .mailmap entry for Masahisa Kojima

2024-03-18 Thread Heinrich Schuchardt
The Linaro mail address is not valid anymore. Cc: kojima.masah...@socionext.com Signed-off-by: Heinrich Schuchardt --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index d1f08f3eca8..59f84711000 100644 --- a/.mailmap +++ b/.mailmap @@ -57,6 +57,7 @@ John Linn

Re: [PATCH v2 2/2] rockchip: rock-pi-4-rk3399: enable booting from SPI flash

2024-03-18 Thread Jonas Karlman
Hi Christopher, On 2024-03-15 13:01, Christopher Obbard wrote: > Some variants of the ROCK Pi 4 series have an SPI flash chip populated > which can be booted from. This patch enables support in U-Boot for > building the image for the SPI flash, support for booting U-Boot from the > SPI flash chip

Re: [PATCH v2 1/2] arm: rockchip: sync ROCK Pi 4A DTS from Linux

2024-03-18 Thread Jonas Karlman
On 2024-03-15 13:01, Christopher Obbard wrote: > To prepare for ROCK Pi 4A SPI flash support, sync the DTS from Linux which > includes an SPI flash node. > > Kernel tag: v6.6-rc1 > Kernel commits: > - eddf73029770 ("arm64: dts: rockchip: Enable internal SPI flash for ROCK \ >

Re: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Alexander Dahl
Hello Mihai, Am Mon, Mar 18, 2024 at 09:15:29AM + schrieb mihai.s...@microchip.com: > > Hi Alexander, > > > > I tested your work on sama7g54-curiosity board: > > > > U-Boot> nand info > > > > Device 0: nand0, sector size 256 KiB > > Manufacturer MACRONIX > > Model MX30LF4G28AD >

Re: [RFC PATCH 0/3] mtd: nand: raw: atmel: Using dm driver for older sam9 SoCs

2024-03-18 Thread Eugen Hristev
On 3/11/24 17:23, Alexander Dahl wrote: > Hello raw NAND fans, > Hello Alexander, Thank you for your efforts > today I thought it would be interesting to have all that automatic NAND > flash timings setting usable with an old board featuring a at91sam9g20 > SoC, which would pave the way to get

[RESEND PATCH v3 4/5] power: regulator: tps65941: use function callbacks for conversion ops

2024-03-18 Thread Bhargav Raviprakash
Use function callbacks for volt2val, val2volt and slewrate lookups. This makes it easier to add support for TPS65224 PMIC regulators. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 61 +++- 1 file changed, 48 insertions(+), 13 deletions(-)

[RESEND PATCH v3 5/5] power: regulator: tps65941: Add TPS65224 PMIC regulator support

2024-03-18 Thread Bhargav Raviprakash
Reuse TPS65941 regulator driver to adds support for TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where BUCK1 and BUCK2 can be configured in dual phase mode. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 283 ++- 1 file changed, 270

[RESEND PATCH v3 3/5] power: regulator: tps65941: Added macros for BUCK ID

2024-03-18 Thread Bhargav Raviprakash
Adds macros for buck and ldo ids and switched to using switch case instead of if else in probe functions. Helps in adding support for TPS65224 PMIC. Signed-off-by: Bhargav Raviprakash Reviewed-by: Dhruva Gole --- drivers/power/regulator/tps65941_regulator.c | 54 +++- 1 file

[RESEND PATCH v3 2/5] power: pmic: tps65941: Add TI TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
Adds compatible and data field values of TPS65224 driver in TPS65941 PMIC driver. Signed-off-by: Bhargav Raviprakash Reviewed-by: Dhruva Gole --- drivers/power/pmic/tps65941.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c

[RESEND PATCH v3 1/5] power: tps65941: Add macros of TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
Re-use the TPS65941 PMIC driver for TPS65224 PMIC. Add additional macros of TPS65224 to aid in the driver re-use. Signed-off-by: Bhargav Raviprakash Reviewed-by: Dhruva Gole --- include/power/tps65941.h | 30 ++ 1 file changed, 30 insertions(+) diff --git

[RESEND PATCH v3 0/5] Add support for TI TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
TPS65224 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ADC, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC can communicate through the I2C. Data Sheet for TPS65224:

Re: Add support for TI TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
Hello, On Mon, 18 Mar 2024 14:59:54 +0530, Bhargav wrote: > > TPS65224 is a Power Management IC which provides regulators and others > features like GPIOs, RTC, watchdog, ADC, ESMs (Error Signal Monitor), > and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC > can communicate

[PATCH v3 5/5] power: regulator: tps65941: Add TPS65224 PMIC regulator support

2024-03-18 Thread Bhargav Raviprakash
Reuse TPS65941 regulator driver to adds support for TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where BUCK1 and BUCK2 can be configured in dual phase mode. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 280 ++- 1 file changed, 267

[PATCH v3 4/5] power: regulator: tps65941: use function callbacks for conversion ops

2024-03-18 Thread Bhargav Raviprakash
Use function callbacks for volt2val, val2volt and slewrate lookups. This makes it easier to add support for TPS65224 PMIC regulators. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 61 +++- 1 file changed, 48 insertions(+), 13 deletions(-)

[PATCH v3 2/5] power: pmic: tps65941: Add TI TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
Adds compatible and data field values of TPS65224 driver in TPS65941 PMIC driver. Signed-off-by: Bhargav Raviprakash --- drivers/power/pmic/tps65941.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c index 727b42747a..ef63eb733a

[PATCH v3 1/5] power: tps65941: Add macros of TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
Re-use the TPS65941 PMIC driver for TPS65224 PMIC. Add additional macros of TPS65224 to aid in the driver re-use. Signed-off-by: Bhargav Raviprakash --- include/power/tps65941.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/power/tps65941.h

[PATCH v3 3/5] power: regulator: tps65941: Added macros for BUCK ID

2024-03-18 Thread Bhargav Raviprakash
Adds macros for buck and ldo ids and switched to using switch case instead of if else in probe functions. Helps in adding support for TPS65224 PMIC. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 54 +++- 1 file changed, 42 insertions(+),

[PATCH v3 0/5] Add support for TI TPS65224 PMIC

2024-03-18 Thread Bhargav Raviprakash
TPS65224 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ADC, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC can communicate through the I2C. Data Sheet for TPS65224:

RE: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Mihai.Sain
> Hi Alexander, > > I tested your work on sama7g54-curiosity board: > > U-Boot> nand info > > Device 0: nand0, sector size 256 KiB > Manufacturer MACRONIX > Model MX30LF4G28AD > Device size512 MiB > Page size 4096 b > OOB size 256 b > Erase size

Re: [PATCH] arm: mach-k3: Fix config check for FS_LOADER

2024-03-18 Thread Ravi Gunasekaran
On 3/14/24 8:03 PM, MD Danish Anwar wrote: > load_firmware() API calls fs-loader APIs and checks for CONFIG_FS_LOADER > before calling those APIs. The if check only checks for CONFIG_FS_LOADER > but not for CONFIG_SPL_FS_LOADER. > > When CONFIG_FS_LOADER is enabled, load_firmware() API calls

RE: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Mihai.Sain
> U-Boot> nand info > > Device 0: nand0, sector size 256 KiB > Manufacturer MACRONIX > Model MX30LF4G28AD > Device size512 MiB > Page size 4096 b > OOB size 256 b > Erase size 262144 b > ecc strength 8 bits > ecc step size 512 b

Re: [PATCH 3/3] configs: amlogic: set board family to avoid random MAC on WeTek Hub/Play2

2024-03-18 Thread neil . armstrong
Hi, On 16/03/2024 14:54, Christian Hewitt wrote: Add CONFIG_SYS_BOARD="p200" to the Hub/Play2 board configs to ensure the factory programmed MAC is correctly read from efuse. Signed-off-by: Christian Hewitt --- configs/wetek-hub_defconfig | 1 + configs/wetek-play2_defconfig | 1 + 2

Re: [PATCH 2/3] ARM: board: meson: update efuse MAC reading code

2024-03-18 Thread neil . armstrong
Hi, On 16/03/2024 14:54, Christian Hewitt wrote: Current code used for reading the factory programmed MAC from efuse on p200 boards does not appear to work resulting in a random MAC being generated. Update the p200 board data reusing the function from the VIM3 source. I'm pretty sure this code

Re: [PATCH v2] net: phy: Factor out PHY GPIO reset code

2024-03-18 Thread Michal Simek
On 3/17/24 04:11, Marek Vasut wrote: Pull the PHY GPIO reset code into separate function, since this is and will be reused multiple times. Set up default reset assert and deassert timing to generous 20ms and 1ms for maximum compatibility in case those DT properties are missing. Reviewed-by:

Re: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Alexander Dahl
Hello Mihai, Am Mon, Mar 18, 2024 at 08:09:00AM + schrieb mihai.s...@microchip.com: > On 3/7/24 11:10, Alexander Dahl wrote: > > For now adds one new command 'hsmc' with a single subcommand 'decode' > > to read and display the content of the registers of the Static Memory > > Controllers

Re: [PATCH 1/3] ARM: dts: fix Ethernet on WeTek Hub/Play2

2024-03-18 Thread neil . armstrong
On 16/03/2024 14:54, Christian Hewitt wrote: Placing the snps,reset content needed for Ethernet to probe in a common uboot.dtsi results in the content not being used and broken Ethernet. Fix this by creating two board specific dtsi files with the right content. Fixes: 67d5128df950 ("ARM: dts:

Re: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Eugen Hristev
On 3/18/24 10:09, mihai.s...@microchip.com wrote: > On 3/7/24 11:10, Alexander Dahl wrote: >> For now adds one new command 'hsmc' with a single subcommand 'decode' >> to read and display the content of the registers of the Static Memory >> Controllers (SMC/HSMC) found in different at91 SoCs.

Re: [PATCH 1/1] xilinx: zynq: add FDT_FIXUP_PARTITIONS support

2024-03-18 Thread Michal Simek
On 3/15/24 20:25, James Hilliard wrote: There are situations where we may want to let U-Boot modify the FDT please use imperative mood. nand partitions for the kernel, such as when supporting multiple sizes of NAND chips. Lets also refactor xilinx common board support to have a

RE: [PATCH 4/4] mtd: nand: raw: atmel: Introduce optional debug commands

2024-03-18 Thread Mihai.Sain
On 3/7/24 11:10, Alexander Dahl wrote: > For now adds one new command 'hsmc' with a single subcommand 'decode' > to read and display the content of the registers of the Static Memory > Controllers (SMC/HSMC) found in different at91 SoCs. Needed to get a > better picture on what raw nand core

Re: [PATCH v2 4/6] usb: Add environment based device blocklist

2024-03-18 Thread Janne Grunau
Hej, On Sun, Mar 17, 2024, at 22:39, E Shattow wrote: > Should be usb_denylist, since "block devices" is ambiguous meaning if > it is a list of data chunks (blocks) or if it blocks (deny). There is > no question what a denylist is. I briefly thought of that concluded that the spelling

Re: [PATCH v2 4/6] usb: Add environment based device blocklist

2024-03-18 Thread Janne Grunau
On Mon, Mar 18, 2024, at 06:06, Marek Vasut wrote: > On 3/17/24 7:15 PM, Janne Grunau wrote: >> Hej, > > Hi, > >> On Sun, Mar 17, 2024, at 17:18, Marek Vasut wrote: >>> On 3/17/24 12:07 PM, Janne Grunau via B4 Relay wrote: From: Janne Grunau Add the environment variable

Pull Request: SoCFPGA changes for efi-2024-04-rc5

2024-03-18 Thread Chee, Tien Fong
Dear Tom, Please pull the SoCFPGA changes for master from u-boot-socfpga, thanks. Best regards, Tien Fong The following changes since commit 86fd291a7990af84e96808f48eff2219dd4ef496: Merge tag 'efi-2024-04-rc5' of https://source.denx.de/u-boot/custodians/u-boot-efi (2024-03-13 20:39:46