Re: [PATCH v2 11/13] Makefile: remove hardcoded device tree source directory

2024-02-01 Thread Sumit Garg
On Thu, 1 Feb 2024 at 08:36, Bryan Brattlof wrote: > > Some boards that choose to utilize the OF_UPSTREAM directory for their > device tree files will need to specify that directory instead of the > traditional arch/$(ARCH)/dts/* path. > > Include the correct path to the board's dtbs depending on

Re: [PATCH v4] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-01 Thread Ravi Gunasekaran
On 1/30/2024 12:03 PM, MD Danish Anwar wrote: > Add APIs to set a firmware_name to a rproc and boot the rproc with the > same firmware. > > Clients can call rproc_set_firmware() API to set firmware_name for a rproc > whereas rproc_boot() will load the firmware set by rproc_set_firmware() to > a

Re: [PATCH v3 20/36] mach-snapdragon: carve out no-map regions

2024-02-01 Thread Sumit Garg
On Thu, 1 Feb 2024 at 20:20, Caleb Connolly wrote: > > > > On 01/02/2024 12:07, Sumit Garg wrote: > > On Tue, 30 Jan 2024 at 19:35, Caleb Connolly > > wrote: > >> > >> On Qualcomm platforms, the TZ may already have certain memory regions > >> under protection by the time U-Boot starts. There is

Re: [PATCH v3 03/36] mmc: msm_sdhci: use modern clock handling

2024-02-01 Thread Sumit Garg
On Thu, 1 Feb 2024 at 20:04, Caleb Connolly wrote: > > > > On 01/02/2024 08:19, Sumit Garg wrote: > > On Tue, 30 Jan 2024 at 19:35, Caleb Connolly > > wrote: > >> > >> Use the clk_* helper functions and the correct property name for clocks. > > > > This still doesn't handle fixed clocks like in

Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2024-02-01 Thread Masahiro Yamada
On Fri, Feb 2, 2024 at 6:03 AM Rob Herring wrote: > > On Wed, Jan 31, 2024 at 8:09 PM Masahiro Yamada wrote: > > > > On Thu, Feb 1, 2024 at 7:03 AM Rob Herring wrote: > > > > > > On Tue, Jan 30, 2024 at 3:16 AM Masahiro Yamada > > > wrote: > > > > > > > > On Fri, Jan 26, 2024 at 1:04 AM Simon

Re: [PATCH v4] dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

2024-02-01 Thread Anwar, Md Danish
On 2/2/2024 10:31 AM, Ravi Gunasekaran wrote: > > > On 1/30/2024 11:48 AM, MD Danish Anwar wrote: >> Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all >> non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id >> added with bchan_cnt. >> >> Signed-off-by:

Re: [PATCH v4] dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

2024-02-01 Thread Ravi Gunasekaran
On 1/30/2024 11:48 AM, MD Danish Anwar wrote: > Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all > non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id > added with bchan_cnt. > > Signed-off-by: MD Danish Anwar > --- > Changes from v3 to v4: > *) No fu

Re: [PATCH v4] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-02-01 Thread Ravi Gunasekaran
On 1/30/2024 11:56 AM, MD Danish Anwar wrote: > The fs-loader driver reads env storage_interface and uses it to load > firmware file into memory using the medium set by env. Update the driver > to use env fw_storage_interface as this variable is only used to load > firmwares. The env storage_int

Re: [RFC] rockchip: spl: Support reading FIT from eMMC boot partition

2024-02-01 Thread Dragan Simic
Hello Jonas, On 2024-02-02 01:11, Jonas Karlman wrote: Enable support for loading FIT from eMMC boot partition when SUPPORT_EMMC_BOOT Kconfig option is enabled. FIT is only loaded from boot partition when the boot partition is set to boot0 (1) or boo1 (2) in the extcsd partition config. FIT i

Re: [RFC] rockchip: Reset to bootrom download mode on hang

2024-02-01 Thread Dragan Simic
Hello Jonas, On 2024-02-02 01:12, Jonas Karlman wrote: Add support to reset to bootrom download mode on hang in U-Boot SPL and proper. ROCKCHIP_HANG_TO_BROM can be used to enable this feature. Example when SPL cannot load FIT: U-Boot SPL 2024.04-rc1 (Feb 01 2024 - 23:01:12 +) Trying to

Re: [PATCH 01/18] rockchip: rk3588: use mainline pmu-grf compatible

2024-02-01 Thread Weizhao Ouyang
On Tue, Jan 23, 2024 at 10:50 PM Quentin Schulz wrote: > > From: Heiko Stuebner > > The compatible for the pmugrf in the mainline kernel is dfferent from the > one currently used in u-boot. Adapt the -u-boot.dtsi and syscon driver > to use the correct compatible. Reviewed-by: Weizhao Ouyang BR

Re: [PATCH v2] qemu-arm: round down memory to multiple of 2MB for LPAE

2024-02-01 Thread Oleksandr Suvorov
On Thu, Feb 1, 2024, 14:41 Igor Opaniuk wrote: > QEMU's -m option can take fractional megabyte values, > and lowest granularity seems to be 0x2000. > For example, run qemu with amount of memory set to 15k (0x61A9400): > > $ qemu-system-arm -machine virt -cpu cortex-a15 -m 15k \ > -bios de

Re: [PATCH v3 1/3] firmware: psci: Fix bind_smccc_features psci check

2024-02-01 Thread Weizhao Ouyang
Hi Igor, On Thu, Feb 1, 2024 at 10:36 PM Igor Opaniuk wrote: > > Hello Weizhao, > > On Wed, Jan 31, 2024 at 3:15 PM Weizhao Ouyang wrote: > > > > According to PSCI specification DEN0022F, PSCI_FEATURES is used to check > > whether the SMCCC is implemented by discovering SMCCC_VERSION. > > > Coul

Re: [PATCH v3 1/3] firmware: psci: Fix bind_smccc_features psci check

2024-02-01 Thread Weizhao Ouyang
Hi Abdellatif, On Thu, Feb 1, 2024 at 7:40 PM Abdellatif El Khlifi wrote: > > Hi Weizhao, > > > - if (request_psci_features(ARM_SMCCC_ARCH_FEATURES) == > > + if (request_psci_features(ARM_SMCCC_VERSION) == > > PSCI_RET_NOT_SUPPORTED) > > return 0; > > > > + if

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Dragan Simic
Hello Andre, On 2024-02-02 01:12, Andre Przywara wrote: On Thu, 1 Feb 2024 18:35:28 + Shantur Rathore wrote: On Thu, Feb 1, 2024 at 4:46 PM Andre Przywara wrote: > On Thu, 1 Feb 2024 09:39:54 + Shantur Rathore wrote: > > On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara wrote: > > >

[PATCH 2/2] mx6sabresd: Convert to watchdog driver model

2024-02-01 Thread Fabio Estevam
From: Fabio Estevam Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset. Signed-off-by: Fa

[PATCH 1/2] mx6sabresd: Fix U-Boot corruption after saving the environment

2024-02-01 Thread Fabio Estevam
From: Fabio Estevam U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" and rebooting the board causes U-Boot to hang because of this overlap. Fix this problem by increasing the CONFIG_ENV_OFFSET. Also, to pre

[PATCH 3/6] arm: mach-k3: Move tispl.bin loading into R5 directory

2024-02-01 Thread Andrew Davis
ATF, OPTEE, DM (tispl.bin) loading is only ever done by the R5 core, move the code into the R5 directory. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/common.c| 248 +- arch/arm/mach-k3/r5/common.c | 249 +++ 2 files changed

[PATCH 2/6] arm: mach-k3: Move disable_linefill_optimization() into R5 directory

2024-02-01 Thread Andrew Davis
The disable_linefill_optimization() function is only ever loaded by the R5 core, move the code into the R5 directory. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/common.c| 25 - arch/arm/mach-k3/r5/Makefile | 1 + arch/arm/mach-k3/r5/common.c | 35 ++

[PATCH 6/6] arm: mach-k3: Move ARM64 specific code into new arm64 directory

2024-02-01 Thread Andrew Davis
Like we did with R5, move ARM64 code into a specific directory to make it clear what code is only meant to run on each core type. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/Makefile| 3 +-- arch/arm/mach-k3/arm64/Makefile | 6 ++ arch/arm/mach-k3/{ => arm64}/ar

[PATCH 5/6] arm: mach-k3: Move firewall removal into R5 directory

2024-02-01 Thread Andrew Davis
Firewalls are only ever removed by the R5 core, move this code into the R5 directory. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/common.c| 44 arch/arm/mach-k3/r5/common.c | 44 2 files changed, 44 insertions(+),

[PATCH 4/6] arm: mach-k3: am62a7: Disable firewalls only after loading SYSFW

2024-02-01 Thread Andrew Davis
Currently we do this multiple times, instead just do it once after loading SYSFW in R5 SPL. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/am62a7_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-k3/am62a7_init.c b/arch/arm/mach-k3/am62a7_init.c ind

[PATCH 1/6] arm: mach-k3: Move SYS_K3_SPL_ATF definition into R5 Kconfig

2024-02-01 Thread Andrew Davis
Loading ATF is only supported from the R5, move the Kconfig symbol definition to match. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/Kconfig| 7 --- arch/arm/mach-k3/r5/Kconfig | 6 ++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-k3/Kconfig b/arch/

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Andre Przywara
On Thu, 1 Feb 2024 18:35:28 + Shantur Rathore wrote: Hi Shantur, > Hi Andre, > > On Thu, Feb 1, 2024 at 4:46 PM Andre Przywara wrote: > > > > On Thu, 1 Feb 2024 09:39:54 + > > Shantur Rathore wrote: > > > > Hi Shantur, > > > > > On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara > > >

[RFC] rockchip: Reset to bootrom download mode on hang

2024-02-01 Thread Jonas Karlman
Add support to reset to bootrom download mode on hang in U-Boot SPL and proper. ROCKCHIP_HANG_TO_BROM can be used to enable this feature. Example when SPL cannot load FIT: U-Boot SPL 2024.04-rc1 (Feb 01 2024 - 23:01:12 +) Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block rea

[RFC] rockchip: spl: Support reading FIT from eMMC boot partition

2024-02-01 Thread Jonas Karlman
Enable support for loading FIT from eMMC boot partition when SUPPORT_EMMC_BOOT Kconfig option is enabled. FIT is only loaded from boot partition when the boot partition is set to boot0 (1) or boo1 (2) in the extcsd partition config. FIT is read from sector 1024 (512 KiB) of the configured boot par

Help Needed: No UART Output in Mainline U-Boot on MT7620A (ZBT WE826-T2)

2024-02-01 Thread Richard Thanki
Dear U-Boot Community, I am working on porting mainline U-Boot to a standard MT7620A wireless router, specifically the ZBT WE826-T2 (https://openwrt.org/toh/zbtlink/we-826). After building and flashing the mainline U-Boot, I'm encountering an issue where there is no output over UART. So far, I

[PATCH 1/2] arm: dts: k3-am64: Sync with kernel v6.7-rc1

2024-02-01 Thread Andrew Davis
From: Nishanth Menon Sync with kernel v6.7-rc1 and sync up the u-boot dts files accordingly. Signed-off-by: Nishanth Menon Signed-off-by: Andrew Davis --- arch/arm/dts/k3-am64-main.dtsi| 37 ++--- arch/arm/dts/k3-am64-mcu.dtsi | 2 + arch/arm/dts/k3-am64.dtsi

[PATCH 2/2] arm: dts: k3-am64: Sync with kernel v6.8-rc1

2024-02-01 Thread Andrew Davis
Sync with kernel v6.8-rc1 and sync up the u-boot dts files accordingly. Signed-off-by: Andrew Davis --- arch/arm/dts/k3-am64-main.dtsi| 22 +- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 21 + arch/arm/dts/k3-am642-evm.dts | 12 +--- ar

Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree

2024-02-01 Thread Rob Herring
On Wed, Jan 31, 2024 at 8:09 PM Masahiro Yamada wrote: > > On Thu, Feb 1, 2024 at 7:03 AM Rob Herring wrote: > > > > On Tue, Jan 30, 2024 at 3:16 AM Masahiro Yamada > > wrote: > > > > > > On Fri, Jan 26, 2024 at 1:04 AM Simon Glass wrote: > > > > > > > > Hi, > > > > > > > > On Wed, 17 Jan 2024

[PATCH v2 1/1] net: ti: am65-cpsw-nuss: Remove incorrect RGMII_ID bit functionality

2024-02-01 Thread Ken Sloat
The CPSW implementations on the AM6x platforms do not support the selectable RGMII TX clk delay functionality via the RGMII_ID_MODE bit as the earlier platforms did. While it is possible to write the bit, according to various TI AM6x datasheets, reference manuals, hardware design guides and TI foru

Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode

2024-02-01 Thread Jonas Karlman
Hi Quentin, On 2024-02-01 13:40, Quentin Schulz wrote: > Hi Jonas, > > On 2/1/24 11:51, Jonas Karlman wrote: >> Hi Quentin, >> >> On 2024-02-01 11:18, Quentin Schulz wrote: >>> Hi Jonas, >>> >>> On 1/27/24 12:15, Jonas Karlman wrote: Hi Eugen, On 2024-01-27 04:48, Eugen Hristev wro

Re: [PATCH] lib: sparse: Fix error checking for write_sparse_chunk_raw

2024-02-01 Thread Michael Nazzareno Trimarchi
On Thu, Feb 1, 2024 at 7:19 PM Sean Anderson wrote: > > The return value of write_sparse_chunk_raw is unsigned, so the existing > check has no effect. Use IS_ERR_VALUE to detect error instead, which is > what write_sparse_chunk_raw does itself. > > Fixes: 62649165cb0 ("lib: sparse: Make CHUNK_TYPE

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Shantur Rathore
Hi Andre, On Thu, Feb 1, 2024 at 4:46 PM Andre Przywara wrote: > > On Thu, 1 Feb 2024 09:39:54 + > Shantur Rathore wrote: > > Hi Shantur, > > > On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara > > wrote: > > > > > > On Sat, 9 Dec 2023 18:10:56 + > > > Shantur Rathore wrote: > > > > > >

[PATCH] lib: sparse: Fix error checking for write_sparse_chunk_raw

2024-02-01 Thread Sean Anderson
The return value of write_sparse_chunk_raw is unsigned, so the existing check has no effect. Use IS_ERR_VALUE to detect error instead, which is what write_sparse_chunk_raw does itself. Fixes: 62649165cb0 ("lib: sparse: Make CHUNK_TYPE_RAW buffer aligned") Reported-by: Dan Carpenter Link: https:/

Re: [PATCH] sunxi: dram: h6: fix the unreliability related to the DDR3 sequence

2024-02-01 Thread Andre Przywara
On Mon, 22 Jan 2024 22:15:30 +0100 patrick9...@free.fr wrote: Hi Patrick, > From: Patrick Lerda > > Indeed, the DDR3 has a non-zero probability to not be properly > initialized. This could be the PLL that is not locked or anything else. > When this happens and the code tests the correct board c

Re: [PATCH 06/18] rockchip: pine64: pinebook: migrate to rockchip_early_misc_init_r

2024-02-01 Thread Dragan Simic
Hello Quentin, On 2024-02-01 18:46, Quentin Schulz wrote: On 2/1/24 05:02, Dragan Simic wrote: On 2024-02-01 03:48, Kever Yang wrote: On 2024/1/23 22:49, Quentin Schulz wrote: From: Quentin Schulz Compared to the original misc_init_r from Rockchip mach code, setup_iodomain() is added and ro

Re: [PATCH 06/18] rockchip: pine64: pinebook: migrate to rockchip_early_misc_init_r

2024-02-01 Thread Quentin Schulz
Hi Dragan, On 2/1/24 05:02, Dragan Simic wrote: [Some people who received this message don't often get email from dsi...@manjaro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hello Kever and Quentin, On 2024-02-01 03:48, Kever Yang wrote: On 2024/1/23 2

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Andre Przywara
On Thu, 1 Feb 2024 09:39:54 + Shantur Rathore wrote: Hi Shantur, > On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara wrote: > > > > On Sat, 9 Dec 2023 18:10:56 + > > Shantur Rathore wrote: > > > > Hi, > > > > > Currently when a hub is turned on, all the ports are powered on. > > > This

Re: [PATCH 1/1] sunxi: sun4i: Introduce KConfig option SPL_SYS_CLK_FREQ

2024-02-01 Thread Andre Przywara
On Thu, 1 Feb 2024 14:30:14 +0100 Ludwig Kormann wrote: Hi, > This option can be used to modify the initial SPL > CPU clock frequency. > > This follows an earlier discussion regarding A20 > CPUs dying after reboot in SPL initialization due to > incompatible CPU clock frequency and core voltage

[PATCH 1/1] doc: board: starfive: fix rendering of OpenSBI logo

2024-02-01 Thread Heinrich Schuchardt
The rendering of the OpenSBI logo should look like the screen output. Signed-off-by: Heinrich Schuchardt --- doc/board/starfive/visionfive2.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/board/starfive/visionfive2.rst b/doc/board/starfive/visionfive2.rst

Re: [PATCH 1/1] sunxi: sun4i: add missing sdelay() to clock_init_safe()

2024-02-01 Thread Andre Przywara
On Thu, 1 Feb 2024 09:45:50 +0100 Ludwig Kormann wrote: Hi, > This delay is required after switching the clock source. > > See “A20 Reference manual v1.4” Page 50 / section > “1.5.4.16. CPU/AHB/APB0 CLOCK RATIO”: “If the clock > source is changed, at most to wait for 8 present running > clock

Re: [PATCH v1] doc: imx: imxrt1170: Document imxrt1170-evk board

2024-02-01 Thread Giulio Benetti
Hi Jesse, On 01/02/24 16:00, Jesse Taube wrote: Add documentation for imxrt1170-evk. Signed-off-by: Jesse Taube looks good to me Reviewed-by: Giulio Benetti Best regards -- Giulio Benetti CEO&CTO@Benetti Engineering sas --- doc/board/nxp/imxrt1170-evk.rst | 42

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Shantur Rathore
On Thu, Feb 1, 2024 at 2:53 PM Marek Vasut wrote: > > On 2/1/24 12:18, Shantur Rathore wrote: > > On Thu, Feb 1, 2024 at 11:13 AM Marek Vasut wrote: > >> > >> On 2/1/24 10:39, Shantur Rathore wrote: > >>> Hi Andre, > >>> > >>> On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara > >>> wrote: > >

Re: [GIT PULL] Please pull u-boot-amlogic-fixes-20240201

2024-02-01 Thread Tom Rini
v2024.04-rc1 (2024-01-29 20:53:19 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-fixes-20240201 > > for you to fetch changes up to 076529725f16f07a5cb2d5feba25d62b5f5a5872: > &

Re: Please pull u-boot-watchdog/master

2024-02-01 Thread Tom Rini
On Thu, Feb 01, 2024 at 11:50:43AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the following watchdog related last minute fixes: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] sunxi: sun4i: Introduce KConfig option SPL_SYS_CLK_FREQ

2024-02-01 Thread Tom Rini
On Thu, Feb 01, 2024 at 02:30:14PM +0100, Ludwig Kormann wrote: > This option can be used to modify the initial SPL > CPU clock frequency. > > This follows an earlier discussion regarding A20 > CPUs dying after reboot in SPL initialization due to > incompatible CPU clock frequency and core voltag

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Alexey Romanov
Hi, On Thu, Feb 01, 2024 at 04:56:34PM +0300, Dan Carpenter wrote: > On Thu, Feb 01, 2024 at 12:20:27PM +0300, Alexey Romanov wrote: > > +static int fastboot_nand_write_tpl(struct mtd_info *mtd, void *buffer, > > + u32 offset, size_t size, int flags) > > +{ > > + int

Re: [PATCH 0/3] usb: ehci-generic: setup a bulk of phy when possible

2024-02-01 Thread Yang Xiwen
On 2/1/2024 10:07 PM, Marek Vasut wrote: On 2/1/24 14:16, Yang Xiwen via B4 Relay wrote: one USB controller can have multiple ports specified in dts, all of them should be setup to make use of all possible ports. Is there an example of such a system ? I'm going to send one, but not now becaus

[PATCH v1] doc: imx: imxrt1170: Document imxrt1170-evk board

2024-02-01 Thread Jesse Taube
Add documentation for imxrt1170-evk. Signed-off-by: Jesse Taube --- doc/board/nxp/imxrt1170-evk.rst | 42 + 1 file changed, 42 insertions(+) create mode 100644 doc/board/nxp/imxrt1170-evk.rst diff --git a/doc/board/nxp/imxrt1170-evk.rst b/doc/board/nxp/imxrt1170

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Marek Vasut
On 2/1/24 12:18, Shantur Rathore wrote: On Thu, Feb 1, 2024 at 11:13 AM Marek Vasut wrote: On 2/1/24 10:39, Shantur Rathore wrote: Hi Andre, On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara wrote: On Sat, 9 Dec 2023 18:10:56 + Shantur Rathore wrote: Hi, Currently when a hub is turn

Re: [PATCH 0/3] usb: ehci-generic: setup a bulk of phy when possible

2024-02-01 Thread Marek Vasut
On 2/1/24 14:16, Yang Xiwen via B4 Relay wrote: one USB controller can have multiple ports specified in dts, all of them should be setup to make use of all possible ports. Is there an example of such a system ?

Re: [PATCH v3 20/36] mach-snapdragon: carve out no-map regions

2024-02-01 Thread Caleb Connolly
On 01/02/2024 12:07, Sumit Garg wrote: > On Tue, 30 Jan 2024 at 19:35, Caleb Connolly > wrote: >> >> On Qualcomm platforms, the TZ may already have certain memory regions >> under protection by the time U-Boot starts. There is a rare case on some >> platforms where the prefetcher might specula

Re: [PATCH v2 02/13] power: domain: ti: use IS_ENABLED macro

2024-02-01 Thread Igor Opaniuk
On Thu, Feb 1, 2024 at 4:07 AM Bryan Brattlof wrote: > > Cleanup this list and standardize on using the IS_ENABLED macro for the > power domain data list. > > Signed-off-by: Bryan Brattlof > --- > drivers/power/domain/ti-power-domain.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(

Re: [PATCH v2 01/13] soc: add info to identify the am62p SoC family

2024-02-01 Thread Igor Opaniuk
On Thu, Feb 1, 2024 at 4:07 AM Bryan Brattlof wrote: > > Include the part number for TI's am62px family of SoCs so we can > properly identify it during boot > > Signed-off-by: Bryan Brattlof Reviewed-by: Igor Opaniuk > --- > arch/arm/mach-k3/include/mach/hardware.h | 2 ++ > drivers/soc/soc_ti

Re: [PATCH v3 17/36] mach-snapdragon: generalise board support

2024-02-01 Thread Caleb Connolly
[snip] >> diff --git a/configs/dragonboard845c_defconfig >> b/configs/dragonboard845c_defconfig >> deleted file mode 100644 >> index f29f11e342e7.. >> --- a/configs/dragonboard845c_defconfig >> +++ /dev/null >> @@ -1,29 +0,0 @@ >> -CONFIG_ARM=y >> -CONFIG_SKIP_LOWLEVEL_INIT=y >> -CO

Re: [PATCH v3 1/3] firmware: psci: Fix bind_smccc_features psci check

2024-02-01 Thread Igor Opaniuk
Hello Weizhao, On Wed, Jan 31, 2024 at 3:15 PM Weizhao Ouyang wrote: > > According to PSCI specification DEN0022F, PSCI_FEATURES is used to check > whether the SMCCC is implemented by discovering SMCCC_VERSION. > Could you please add more details to your commit message or as a comment explaining

Re: [PATCH v3 03/36] mmc: msm_sdhci: use modern clock handling

2024-02-01 Thread Caleb Connolly
On 01/02/2024 08:19, Sumit Garg wrote: > On Tue, 30 Jan 2024 at 19:35, Caleb Connolly > wrote: >> >> Use the clk_* helper functions and the correct property name for clocks. > > This still doesn't handle fixed clocks like in case of QCS404, upstream DT > says: > > sdcc1: mmc

Re: [PATCH v3 3/3] cmd: rng: Add rng list command

2024-02-01 Thread Igor Opaniuk
Reviewed-by: Igor Opaniuk On Wed, Jan 31, 2024 at 3:15 PM Weizhao Ouyang wrote: > > The 'rng list' command probes all RNG devices and list those devices > that are successfully probed. Also update the help info. > > Reviewed-by: Heinrich Schuchardt > Signed-off-by: Weizhao Ouyang > --- > cmd/

[GIT PULL] Please pull u-boot-amlogic-fixes-20240201

2024-02-01 Thread Neil Armstrong
/custodians/u-boot-amlogic.git tags/u-boot-amlogic-fixes-20240201 for you to fetch changes up to 076529725f16f07a5cb2d5feba25d62b5f5a5872: ARM: meson: stop printing board model after sysinfo update (2024-01-30 09:35:51 +0100

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

2024-02-01 Thread Caleb Connolly
On 01/02/2024 09:34, Mattijs Korpershoek wrote: > Hi Caleb, > > Thank you for the patch. > > On mer., janv. 31, 2024 at 14:57, Caleb Connolly > wrote: > >> The Qualcomm specific dwc3 wrapper isn't hugely complicated, implemented >> the missing initialisation for host and gadget mode. >> >>

[PATCH v2 1/3] mmc: hi6220-dwmmc: handle clocks and resets if CONFIG_CLK and CONFIG_DM_RESET enabled

2024-02-01 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen This can avoid hardcoding a clock rate in driver. Also can enable the clocks and deassert the resets if the pre-bootloader does not do this for us. Currently only enabled for Hi3798MV200. Signed-off-by: Yang Xiwen --- drivers/mmc/hi6220_dw_mmc.c | 61 +

[PATCH v2 3/3] mmc: hi6220_dw_mmc: add fifoth_val to private data and set it in .probe

2024-02-01 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen The value defaults to 0 and is ignored by dw_mmc code, so the other users are not affected. Setting this explicitly fixes some weird reading error found on Hi3798MV200. Fixes: 8a5dc8140e62 ("mmc: hi6220_dw_mmc: add compatible for HC2910 support") Signed-off-by: Yang Xiwen ---

[PATCH v2 2/3] mmc: dw_mmc: Don't return error if data busy timeout

2024-02-01 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen As described in [1], some poor hardware or cards would fail to release the bus and keep driving data lines low. Ignore it and send the next cmd directly seems okay for most cases. [1]: https://patchwork.kernel.org/project/linux-mmc/patch/1424458179-5456-1-git-send-email-diand..

[PATCH v2 0/3] mmc: hi6220-dwmmc: handle resets and clocks

2024-02-01 Thread Yang Xiwen via B4 Relay
Also allow setup fifoth_val in driver Signed-off-by: Yang Xiwen --- Changes in v2: - dw-mmc: proceed if data busy found - hi6220-dw-mmc: add fifoth_val setup, separate hi3798mv200 data - Link to v1: https://lore.kernel.org/r/20240119-mmc-v1-1-aee6b2cf6...@outlook.com --- Yang Xiwen (3): m

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Dan Carpenter
On Thu, Feb 01, 2024 at 12:20:27PM +0300, Alexey Romanov wrote: > +static int fastboot_nand_write_tpl(struct mtd_info *mtd, void *buffer, > +u32 offset, size_t size, int flags) > +{ > + int boot_cpy_num = meson_bootloader_copy_num(BOOT_TPL); > + u64 size_per_

Re: [PATCH 5/5] iommu: qcom-smmu: fix debugging

2024-02-01 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mer., janv. 31, 2024 at 14:57, Caleb Connolly wrote: > The priv struct was wrong in dump_boot_mappings(). Causing errors when > compiling with -DDEBUG. Fix this. > > Signed-off-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek > --- > drivers/iommu/

Re: [PATCH 4/5] usb: gadget: UMS: support multiple sector sizes

2024-02-01 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mer., janv. 31, 2024 at 14:57, Caleb Connolly wrote: > UFS storage often uses a 4096-byte sector size, add support for dynamic > sector sizes based loosely on the Linux implementation. > > Signed-off-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek

Re: [PATCH 3/5] usb: gadget: CDC ACM: call usb_gadget_initialize

2024-02-01 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mer., janv. 31, 2024 at 14:57, Caleb Connolly wrote: > To actually use the gadget the peripheral driver must be probed and we > must call g_dnl_clear_detach(). Otherwise acm_stdio_start() will always > fail to find a UDC on DT platforms. > > Signed-off-by:

[PATCH 1/1] sunxi: sun4i: Introduce KConfig option SPL_SYS_CLK_FREQ

2024-02-01 Thread Ludwig Kormann
This option can be used to modify the initial SPL CPU clock frequency. This follows an earlier discussion regarding A20 CPUs dying after reboot in SPL initialization due to incompatible CPU clock frequency and core voltage. [1] First attempt was to update PLL1_CFG_DEFAULT to a fixed lower frequen

Re: [PATCH 2/5] usb: dwc3: select DM_USB_GADGET

2024-02-01 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mer., janv. 31, 2024 at 14:57, Caleb Connolly wrote: > DWC3 platforms depend on DM_USB_GADGET for gadget drivers to work, > otherwise compilation fails due to no implementation of > dm_usb_gadget_handle_interrupts(). > > Signed-off-by: Caleb Connolly Rev

[PATCH 2/3] test: phy: test generic_setup(shutdown)_phy_bulk()

2024-02-01 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen add unittests for the newly introduced helper functions. Signed-off-by: Yang Xiwen --- test/dm/phy.c | 4 1 file changed, 4 insertions(+) diff --git a/test/dm/phy.c b/test/dm/phy.c index 0cf3689fde..cb16844a0a 100644 --- a/test/dm/phy.c +++ b/test/dm/phy.c @@ -159,6 +159

[PATCH 3/3] usb: ehci: Make usage of generic_{setup,shutdown}_phy_bulk() helpers

2024-02-01 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen Replace generic_setup_phy() and generic_shutdown_phy() by respectively generic_setup_phy_bulk() and generic_shutdown_phy_bulk(). Signed-off-by: Yang Xiwen --- drivers/usb/host/ehci-generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/us

[PATCH 1/3] phy: add generic_setup(shutdown)_phy_bulk()

2024-02-01 Thread Yang Xiwen via B4 Relay
From: Yang Xiwen They are the bulk version of generic_setup(shutdown)_phy(). Signed-off-by: Yang Xiwen --- drivers/phy/phy-uclass.c | 33 + include/generic-phy.h| 29 + 2 files changed, 62 insertions(+) diff --git a/drivers/phy/p

[PATCH 0/3] usb: ehci-generic: setup a bulk of phy when possible

2024-02-01 Thread Yang Xiwen via B4 Relay
changed, 70 insertions(+), 4 deletions(-) --- base-commit: b6d8969bcb94321dfed1399f2eaa8768ba42caaa change-id: 20240201-ehci-6c3aa7d97932 Best regards, -- Yang Xiwen

[PATCH v2] qemu-arm: round down memory to multiple of 2MB for LPAE

2024-02-01 Thread Igor Opaniuk
QEMU's -m option can take fractional megabyte values, and lowest granularity seems to be 0x2000. For example, run qemu with amount of memory set to 15k (0x61A9400): $ qemu-system-arm -machine virt -cpu cortex-a15 -m 15k \ -bios denx/u-boot.bin -nographic => fdt addr $fdt_addr => fdt print

Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode

2024-02-01 Thread Quentin Schulz
Hi Jonas, On 2/1/24 11:51, Jonas Karlman wrote: Hi Quentin, On 2024-02-01 11:18, Quentin Schulz wrote: Hi Jonas, On 1/27/24 12:15, Jonas Karlman wrote: Hi Eugen, On 2024-01-27 04:48, Eugen Hristev wrote: Hi Jonas, On 1/27/24 01:26, Jonas Karlman wrote: Writing to eMMC using DDR52 mode d

[PATCH 4/5] arm64: zynqmp: Do not expose usbhub nodes on kr260 usb1

2024-02-01 Thread Michal Simek
usb0 is already updated but forget to also update usb1. Fixes: 4ff083f09bc2 ("arm64: zynqmp: Do not expose usbhub nodes") Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sck-kr-g-revA.dtso | 3 ++- arch/arm/dts/zynqmp-sck-kr-g-revB.dtso | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-

[PATCH 5/5] arm64: zynqmp: Disable DP on kd240

2024-02-01 Thread Michal Simek
When SOM dt is combined with kd240 overlay DPSUB is enabled but kd240 has no DP wired that's why change disable it via status property. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sck-kd-g-revA.dtso | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/zynqmp-sck-kd-g-rev

[PATCH 3/5] arm64: zynqmp: Align nvmem-fw node with dt-schema

2024-02-01 Thread Michal Simek
Node name has to be renamed to be aligned with dt-schema and also xlnx,zynqmp-nvmem-fw switched to fixed-layout. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 125 --- 1 file changed, 64 insertions(+), 61 deletions(-) diff --git a/arch/arm/dts/z

[PATCH 2/5] arm64: zynqmp: Remove arm,cortex-a53-edac node

2024-02-01 Thread Michal Simek
There is no dt schema associated with it. Also Linux driver have been removed in Xilinx Linux tree and never gets to upstream that's why remove description for it. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/zynqmp

[PATCH 1/5] xilinx: Fix fpga region DT nodes name

2024-02-01 Thread Michal Simek
fpga-full is not aligned with the latest dt-schema. Generic name fpga-region should be used. Signed-off-by: Michal Simek --- Aligned with fpga-region dt schema https://lore.kernel.org/all/37b107d86b39ef4bc9c482b57b27de8b92c3fa43.1706530726.git.michal.si...@amd.com/ --- arch/arm/dts/zynq-7000.d

Re: [PATCH v3 17/36] mach-snapdragon: generalise board support

2024-02-01 Thread Sumit Garg
On Tue, 30 Jan 2024 at 19:35, Caleb Connolly wrote: > > Historically, Qualcomm boards have relied on heavy hardcoding in U-Boot, > in many cases to the specific SoC but also to the board itself (e.g. > memory map). This has been largely resolved by modernising the Qualcomm > drivers in U-Boot, how

Re: [PATCH v3 33/36] dts: qcs404-evb: replace with upstream DT

2024-02-01 Thread Sumit Garg
On Tue, 30 Jan 2024 at 19:35, Caleb Connolly wrote: > > Drop the U-Boot specific DTS in favour of upstream. We'll only include > the -4000 variant as that is what U-Boot already supported. > > Taken from kernel tag v6.7 > > Reviewed-by: Neil Armstrong > Signed-off-by: Caleb Connolly > --- > arc

u-boot on iMX.RT117x NOR

2024-02-01 Thread Alon Bar-Lev
Hi, I just found out that u-boot has some support for RT117x, this is great! I could not find a better forum to ask, I will appreciate a redirect. I need u-boot to boot from the SPI NOR flash, I have the EVKB evaluation board. The SPL that is generated is not ELF and no instructions of how to use

Re: [PATCH v3 33/36] dts: qcs404-evb: replace with upstream DT

2024-02-01 Thread Sumit Garg
On Tue, 30 Jan 2024 at 19:35, Caleb Connolly wrote: > > Drop the U-Boot specific DTS in favour of upstream. We'll only include > the -4000 variant as that is what U-Boot already supported. > > Taken from kernel tag v6.7 > > Reviewed-by: Neil Armstrong > Signed-off-by: Caleb Connolly > --- > arc

RE: [PATCH] dts: ast2600: add x4tf dts for asus product

2024-02-01 Thread 洪嘉莉
Hi, Tom, Q: > + model = "AST2600 ASUS"; > + compatible = "aspeed,ast2600-asus", "aspeed,ast2600"; A: I do a modification, replace "ast2600-evb" with "ast2600-asus". Q: All of these are bootph* now. And is there effort being made to upstream the dts files for these platforms to Linux?

RE: [PATCH] dts: ast2600: add x4tf dts for asus product

2024-02-01 Thread 洪嘉莉
Hi, Tom, > + model = "AST2600 ASUS"; > + compatible = "aspeed,ast2600-asus", "aspeed,ast2600"; I do a modification, replace "asus2600-evb" with "ast2600-asus". All of these are bootph* now. And is there effort being made to upstream the dts files for these platforms to Linux? Yes, I

[RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Alexey Romanov
An example of how we use fastboot oeam board subcommand for Sean Anderson. 1 - OEM_BOARD_WRITE_BOOTLOADER_CMD: We use it for custom Amlogic bootloader + tpl flashing protocol. 2 - OEM_BOARD_ERASE_CMD: Custom logic for erasing the env-emulated partition, which isn't in the mtd markup map. Examp

[RFC PATCH v2 1/2] fastboot: introduce 'oem board' subcommand

2024-02-01 Thread Alexey Romanov
Currently, fastboot protocol in U-Boot has no opportunity to execute vendor custom code with verifed boot. This patch introduce new fastboot subcommand fastboot oem board:, which allow to run custom oem_board function. Default implementation is __weak. Vendor must redefine it in board/ folder with

[RFC PATCH v2 0/2] Introduce fastboot oem board command

2024-02-01 Thread Alexey Romanov
Changes v2 since v1 at [1]: - Added an example of using the command as requsted by Sean Anderson [2]. Links: [1] https://lore.kernel.org/all/20231228152522.83291-1-avroma...@salutedevices.com/ [2] https://lore.kernel.org/all/72ac233d-c18d-4f57-bc66-451fe0bd2...@seco.com/ Alexe

[PATCH v2 10/13] arm: dts: introduce am62p5 uboot dts files

2024-02-01 Thread Bryan Brattlof
Include the uboot device tree files needed to boot the board. Signed-off-by: Bryan Brattlof --- arch/arm/dts/Makefile |2 + arch/arm/dts/k3-am62p-ddr-lp4-50-1600.dtsi | 2800 arch/arm/dts/k3-am62p-sk-binman.dtsi | 173 ++ arch/arm/dts/k3-am62p

Re: [PATCH v3 20/36] mach-snapdragon: carve out no-map regions

2024-02-01 Thread Sumit Garg
On Tue, 30 Jan 2024 at 19:35, Caleb Connolly wrote: > > On Qualcomm platforms, the TZ may already have certain memory regions > under protection by the time U-Boot starts. There is a rare case on some > platforms where the prefetcher might speculatively access one of these > regions resulting in a

Re: [PATCH v3 1/3] firmware: psci: Fix bind_smccc_features psci check

2024-02-01 Thread Abdellatif El Khlifi
Hi Weizhao, > - if (request_psci_features(ARM_SMCCC_ARCH_FEATURES) == > + if (request_psci_features(ARM_SMCCC_VERSION) == > PSCI_RET_NOT_SUPPORTED) > return 0; > > + if (invoke_psci_fn(ARM_SMCCC_VERSION, 0, 0, 0) < ARM_SMCCC_VERSION_1_1) > + return

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Shantur Rathore
On Thu, Feb 1, 2024 at 11:13 AM Marek Vasut wrote: > > On 2/1/24 10:39, Shantur Rathore wrote: > > Hi Andre, > > > > On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara > > wrote: > >> > >> On Sat, 9 Dec 2023 18:10:56 + > >> Shantur Rathore wrote: > >> > >> Hi, > >> > >>> Currently when a hub i

Re: [PATCH v3] common: usb-hub: Reset hub port before scanning

2024-02-01 Thread Marek Vasut
On 2/1/24 10:39, Shantur Rathore wrote: Hi Andre, On Tue, Jan 30, 2024 at 2:01 PM Andre Przywara wrote: On Sat, 9 Dec 2023 18:10:56 + Shantur Rathore wrote: Hi, Currently when a hub is turned on, all the ports are powered on. This works well for hubs which have individual power contr

Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode

2024-02-01 Thread Jonas Karlman
Hi Quentin, On 2024-02-01 11:18, Quentin Schulz wrote: > Hi Jonas, > > On 1/27/24 12:15, Jonas Karlman wrote: >> Hi Eugen, >> >> On 2024-01-27 04:48, Eugen Hristev wrote: >>> Hi Jonas, >>> >>> >>> On 1/27/24 01:26, Jonas Karlman wrote: Writing to eMMC using DDR52 mode does not work reliably

Please pull u-boot-watchdog/master

2024-02-01 Thread Stefan Roese
Hi Tom, please pull the following watchdog related last minute fixes: - add andes atcwdt200 support (Randolph) Here the Azure build, without any issues: https://dev

Re: [PATCH V4 2/2] configs: andes: add watchdog support fot andes ae350

2024-02-01 Thread Stefan Roese
On 1/24/24 07:21, Randolph wrote: It adds the ATCWDT200 support for Andes AE350 platform. It also enables wdt command support. Signed-off-by: CL Wang Signed-off-by: Randolph Reviewed-by: Leo Yu-Chi Liang Applied to u-boot-watchdog/master Thanks, Stefan --- configs/ae350_rv32_defconfig

Re: [PATCH V4 1/2] drivers: watchdog: add andes atcwdt200 support

2024-02-01 Thread Stefan Roese
On 1/24/24 07:21, Randolph wrote: This patch adds an implementation of the Andes watchdog ATCWDT200 driver. Signed-off-by: CL Wang Signed-off-by: Randolph Reviewed-by: Leo Yu-Chi Liang Applied to u-boot-watchdog/master Thanks, Stefan --- drivers/watchdog/Kconfig | 6 + drive

  1   2   >