Re: RISC-V u-boot unable to boot QEMU using '-cpu max'

2024-04-23 Thread Conor Dooley
On Tue, Apr 23, 2024 at 09:52:06AM -0300, Daniel Henrique Barboza wrote: > > > On 4/23/24 09:41, Conor Dooley wrote: > > On Tue, Apr 23, 2024 at 01:34:42PM +0800, Leo Liang wrote: > > > On Mon, Apr 22, 2024 at 04:43:59PM -0300, Daniel Henrique Barboza wrote: > > > > [EXTERNAL MAIL] > > > > > >

[PATCH v1] board: toradex: colibri-imx(6ull|imx7): Fix missing fdt_fixup boot error

2024-04-23 Thread Francesco Dolcini
From: Francesco Dolcini In commit 51aaaf5e7975 ("board: toradex: imx: Remove not needed env variables") the empty definition of fdt_fixup variable was removed, however this was still referenced from the boot command leading to boot failures: ## Error: \"fdt_fixup\" not defined` Fix this by

Re: [PATCH 2/2] tools: type arguemnts

2024-04-23 Thread Fabio Estevam
On Fri, Apr 19, 2024 at 9:13 AM Heinrich Schuchardt wrote: > > %s/arguemnts/arguemnts/ There is a typo in the Subject: %s/type/typo/

Re: [PATCH 2/5] board: phytec: introduce eeprom struct member 'valid'

2024-04-23 Thread Teresa Remmet
Am Freitag, dem 19.04.2024 um 08:55 -0700 schrieb Daniel Schultz: > From: Yannic Moog > > Add a new nember to the eeprom_data that indicates whether the > associated data is valid or not. Make use of this new member in the > phytec_eeprom_data_init function by setting the valid value >

Re: New Defects reported by Coverity Scan for Das U-Boot

2024-04-23 Thread Ilias Apalodimas
Hi Tom, Thanks! Already sent a fix for UEFI On Tue, 23 Apr 2024 at 00:48, Tom Rini wrote: > > Here's the latest report. > > -- Forwarded message - > From: > Date: Mon, Apr 22, 2024 at 3:23 PM > Subject: New Defects reported by Coverity Scan for Das U-Boot > To: > > > Hi, > >

Re: [PATCH 1/5] board: phytec: common: Generic "add extension" function

2024-04-23 Thread Teresa Remmet
Am Freitag, dem 19.04.2024 um 08:55 -0700 schrieb Daniel Schultz: > Add a generic function to apply overlays in our board code to not > implement the same logic in different PHYTEC products. > > Signed-off-by: Daniel Schultz Reviewed-by: Teresa Remmet > --- >  

[PATCH v1] spi: npcm_pspi: Reset HW in driver probe

2024-04-23 Thread Jim Liu
Reset HW to clear old status and use default data mode(8-bit). Signed-off-by: Jim Liu --- drivers/spi/npcm_pspi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/spi/npcm_pspi.c b/drivers/spi/npcm_pspi.c index eb14185273..c9441304f5 100644 --- a/drivers/spi/npcm_pspi.c

Re: [PATCH] usb: dwc2: Add in version 4xx compatibility

2024-04-23 Thread Mattijs Korpershoek
Hi Greg, On ven., avril 19, 2024 at 15:21, Greg Malysa wrote: > Hi Mattijs, > >> Please avoid top-posting when replying, it makes following the >> discussion more difficult: >>

Re: [PATCH 3/5] board: phytec: check eeprom_data validity

2024-04-23 Thread Teresa Remmet
Am Freitag, dem 19.04.2024 um 08:55 -0700 schrieb Daniel Schultz: > From: Yannic Moog > > For all of the functions that access the eeprom_data, make sure these > data are valid. Use the valid member of the phytec_eeprom_data > struct. > This fixes a bug where only the API revision check guarded

Re: [PATCH] efi_loader: address coverity report 492766 for dead code

2024-04-23 Thread Heinrich Schuchardt
On 23.04.24 07:38, Ilias Apalodimas wrote: The check of the return code is already done a few lines above. Although it doesn't cause any functional issues, remove the superfluous checks Addresses-Coverity-ID: 492766 Control flow issues (DEADCODE) Signed-off-by: Ilias Apalodimas Reviewed-by:

[PATCH 1/1] net: consider option-length when parsing NIS domain

2024-04-23 Thread Heinrich Schuchardt
When parsing option 40 (network information service domain) the option length is in variable 'oplen' and not in 'size'. Addresses-Coverity-ID: 492765 Uninitialized variables (UNINIT) Fixes: 8ab388bfdbcf ("net: add support to parse the NIS domain for the dhcp options") Signed-off-by: Heinrich

Re: [PATCH 4/5] board: phytec: common: Fix eepom is empty check

2024-04-23 Thread Teresa Remmet
Am Freitag, dem 19.04.2024 um 08:55 -0700 schrieb Daniel Schultz: > The ptr variable is currently defined as int and sizeof > returns the size of the eeprom data struct as Byte (32 in total). > > In case the eeprom is empty, the check, if the eeprom is empty, > will most likely stop after 8

[PATCH v1 3/3] board: arbel: Limit the dram effective size to bank0 maximal size

2024-04-23 Thread Jim Liu
For 4GB dram size, the dram is divided into 2 banks and the address space of these 2 banks are not concatenated. Limit the gd->ram_top to not exceed bank0 top to prevent accessing invalid memory region. Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/arbel_evb.c | 14 +- 1 file

[PATCH v1 0/3] Arm: npcm: modify npcm mem and boot issue

2024-04-23 Thread Jim Liu
1. Modify npcm memory setting 2. Fix boot error Jim Liu (3): Arm: npcm: fix npcm7xx boot to kernel error configs: arbel: increase u-boot mapping size board: arbel: Limit the dram effective size to bank0 maximal size board/nuvoton/arbel_evb/arbel_evb.c | 14 +-

[PATCH v1 1/3] Arm: npcm: fix npcm7xx boot to kernel error

2024-04-23 Thread Jim Liu
Add mem and console env information and modify the wrong earlycon env. Signed-off-by: Jim Liu --- board/nuvoton/poleg_evb/poleg_evb.c | 27 --- include/configs/poleg.h | 4 ++-- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git

[PATCH v1 2/3] configs: arbel: increase u-boot mapping size

2024-04-23 Thread Jim Liu
When u-boot enable CONFIG_SYS_BOOT_RAMDISK_HIGH, rootfs image relocated from FIU address space to memory address before jump to kernel. Since Arbel reserved memory from 0x to 0x0620 for tip image, and rootfs image may too large that cannot found a suitable location before

Re: [PATCH] cmd: gpt: initialize partition table

2024-04-23 Thread Kishan Dudhatra
Yes, You are right I observed the issue in MMC device, device required reboot after writing partitions. I have checked the fix is required for all the blk device's not just mmc device. I have updated the changes in v2. Thanks, Kishan From: Tom Rini Sent:

[PATCH 3/3] ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman

2024-04-23 Thread Marek Vasut
Rework the flash.bin image generation such that it uses the new binman nxp_imx8mimage etype. This way, the flash.bin is assembled in correct order using plain binman, without any workarounds or sections assembled in special DT node order. Signed-off-by: Marek Vasut --- WARNING: This is very

[PATCH 1/3] binman: Add nxp_imx8mimage etype

2024-04-23 Thread Marek Vasut
Add new binman etype derived from mkimage etype which generates configuration input file for mkimage -T imx8mimage, and runs the mkimage on input data. The mkimage -T imx8mimage is used to generate combined image with SPL and DDR PHY blobs which is bootable on i.MX8M. The configuration file

[PATCH 2/3] ARM: dts: imx: Switch Ronetix iMX8MQ-CM to imx8mq-u-boot.dtsi

2024-04-23 Thread Marek Vasut
Include imx8mq-u-boot.dtsi in the board -u-boot.dtsi to pull in binman configuration instead of duplicating it in the board -u-boot.dtsi again. Drop the duplicate binman configuration. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs

[PATCH] ARM: dts: imx: Enable PCIe and NVMe on DH i.MX8M Plus DHCOM PDK3

2024-04-23 Thread Marek Vasut
Enable PCIe/NVMe support on DH i.MX8M Plus DHCOM PDK3. Except for the configuration options which are enabled, add slight adjustment to board u-boot.dtsi, which is necessary as there is currently no driver for the I2C PCIe clock generator. Since the generator is strapped to be always on, it is

[GIT PULL] please pull fsl-qoriq-2024-4-24

2024-04-23 Thread Peng Fan
Hi Tom, Please pull fsl-qoriq-2024-4-24 --- move to OF_UPSTREAM for sl28 --- CI: https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq/-/pipelines/20501 Thanks, Peng. The following changes since commit

Re: [GIT PULL] please pull fsl-qoriq-2024-4-24

2024-04-23 Thread Tom Rini
On Tue, Apr 23, 2024 at 11:34:08PM +, Peng Fan wrote: > Hi Tom, > > Please pull fsl-qoriq-2024-4-24 > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PULL] Please pull qcom/qcom-main

2024-04-23 Thread Tom Rini
On Tue, Apr 23, 2024 at 03:46:19PM +0200, Caleb Connolly wrote: > Overshot the -rc1 deadline, but I hope these can still make in for 2024.07. > > Support is added for 5 new Qualcomm SoCs: > > * QCM2290 and SM6115 are low and mid range SoCs used on the RB1 and RB2 > respectively. SM6115 is

Re: [PATCH] sysreset: psci: drop reliance on SPL support

2024-04-23 Thread Tom Rini
On Wed, Apr 24, 2024 at 12:46:04AM +0100, Andre Przywara wrote: > At the moment enabling CONFIG_SYSRESET_PSCI *selects* SPL_ARM_PSCI_FW, > even though this is a platform design property, so nothing any driver > should enforce. Some platforms load the PSCI runtime (TF-A) only in the > SPL, so PSCI

Re: [PATCH v3 01/11] rockchip: sdram: Support getting banks from TPL for rk3568 and rk3588

2024-04-23 Thread Jonas Karlman
Hi Quentin, On 2024-04-15 16:16, Quentin Schulz wrote: > From: Quentin Schulz > > Allow RK3568 and RK3588 based boards to get the RAM bank configuration > from the ROCKCHIP_TPL stage instead of the current logic. This fixes > both an issue where 256MB of RAM is blocked for devices with >= 4GB >

[PATCH 1/4] sunxi: dts: arm/arm64: update devicetree files from Linux-v6.9-rc4

2024-04-23 Thread Andre Przywara
Sync the devicetree files from the official Linux kernel tree, v6.9-rc4. This is covering Allwinner SoCs with 32-bit and 64-bit ARM cores. Besides some cosmectic changes, this adds S/PDIF, DMA, and thermal support to the H616 .dtsi. Nothing that U-Boot needs for itself, but helpful to pass on to

[PATCH 4/4] sunxi: H616: add Tanix TX1 support

2024-04-23 Thread Andre Przywara
The Tanix TX1 is a tiny TV box, featuring the Allwinner H313 SoC with up to 2GB of DRAM and 16GB of eMMC. There is no SD card or Ethernet port on this small device, but it can be booted via the USB debug "FEL" mode. The bootloader could then be written to the eMMC. Add the defconfig for that

[PATCH 3/4] [DO NOT MERGE] sunxi: dts: arm64: add Tanix TX1 DT from Linux

2024-04-23 Thread Andre Przywara
Add the board DT file for the Tanix TX1 TV box, with the H313 SoC. This has been taken from the sunxi/for-next tree, though it has not been merged into any other tree yet. So this is a placeholder for now, to enable the board support, and will be superseded by the regular sync of the DT files

[PATCH 2/4] sunxi: a64: Add Remix Mini PC support

2024-04-23 Thread Andre Przywara
The Remix Mini PC is a "mini computer" using the Allwinner H64 SoC, which appears to be just a relabelled A64. It was launched in 2015 by the now defunct company Jide, and shipped with a desktop optimised version of Android. Its appearance and feature set is close to a typical TV box. The

[PATCH 0/4] sunxi: devicetree updates plus new boards

2024-04-23 Thread Andre Przywara
This updates the Allwinner related devicetree files from the Linux kernel repository. The files were taken from Linux v6.9-rc4, and adjusted to increase compatibility with older kernels. This also adds board support for two new devices: the old Remix Mini PC, a TV box like "Android desktop"

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-04-23 Thread Marek Vasut
On 4/19/24 5:24 PM, Tim Harvey wrote: On Thu, Apr 18, 2024 at 11:42 AM Marek Vasut wrote: On 4/18/24 8:02 PM, Fabio Estevam wrote: Hi Tim, On Thu, Apr 18, 2024 at 2:54 PM Tim Harvey wrote: Fabio, if you enable CONFIG_DM_RNG on an imx8m{m,p}_evk do you get the following in the SPL?

Re: [PATCH] usb: dwc2: Add in version 4xx compatibility

2024-04-23 Thread Marek Vasut
On 4/23/24 9:09 AM, Mattijs Korpershoek wrote: Hi Greg, On ven., avril 19, 2024 at 15:21, Greg Malysa wrote: Hi Mattijs, Please avoid top-posting when replying, it makes following the discussion more difficult:

Re: [PATCH v4] mmc: Poll CD in case cyclic framework is enabled

2024-04-23 Thread Marek Vasut
On 3/16/24 9:13 PM, Marek Vasut wrote: In case the cyclic framework is enabled, poll the card detect of already initialized cards and deinitialize them in case they are removed. Since the card initialization is a longer process and card initialization is done on first access to an uninitialized

[PATCH] sysreset: psci: drop reliance on SPL support

2024-04-23 Thread Andre Przywara
At the moment enabling CONFIG_SYSRESET_PSCI *selects* SPL_ARM_PSCI_FW, even though this is a platform design property, so nothing any driver should enforce. Some platforms load the PSCI runtime (TF-A) only in the SPL, so PSCI is naturally not available during SPL runtime. Spit

[PATCH 1/3] efi_loader: enable QueryVariableInfo at runtime for file backed variables

2024-04-23 Thread Ilias Apalodimas
Since commit c28d32f946f0 ("efi_loader: conditionally enable SetvariableRT") we are enabling the last bits of missing runtime services. Add support for QueryVariableInfo which we already support at boottime and we just need to mark some fucntions available at runtime and move some checks around.

[PATCH 2/3] efi_selftest: add tests for QueryVariableInfo at runtime

2024-04-23 Thread Ilias Apalodimas
Since we support QueryVariableInfo at runtime now add the relevant tests. Since we want those to be reusable at bootime, add them in a separate file Add tests for - Test QueryVariableInfo returns EFI_SUCCESS - Test null pointers for the function arguments - Test invalid combination of attributes

[PATCH 3/3] efi_selftest: add tests for QueryVariableInfo at boottime

2024-04-23 Thread Ilias Apalodimas
Previous patches added QueryVariableInfo at runtime tests and split a common function that can be used at boottime. Weire it up and run a similar set of tets. While at it move a test which is checiking for 0 available storage in the common code Add tests for - Test QueryVariableInfo returns

Re: [PATCH v3 03/19] configs: am64x: Enable EFI capsule update

2024-04-23 Thread Roger Quadros
Checkpatch warns: WARNING: Missing commit description - Add an appropriate one On 19/04/2024 23:56, Jonathan Humphreys wrote: > Signed-off-by: Jonathan Humphreys > --- > configs/am64x_evm_a53_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configs/am64x_evm_a53_defconfig

Re: [PATCH v3 02/19] board: am64x: Define capsule update firmware info

2024-04-23 Thread Roger Quadros
On 19/04/2024 23:56, Jonathan Humphreys wrote: > Define the firmware components updatable via EFI capsule update, including > defining capsule GUIDs for the various firmware components for the AM64x SK. > > Signed-off-by: Jonathan Humphreys > --- > board/ti/am64x/evm.c| 33

Re: [PATCH v4 0/7] Add SE HMBSC board support

2024-04-23 Thread Sumit Garg
On Tue, 23 Apr 2024 at 17:29, Caleb Connolly wrote: > > Applied, thanks. Thanks. > > (b4 didn't seem to detect this series properly, hence the manual mail). > Switching my workflow to b4 is on my ToDo list. I hope to do it sooner rather than later. -Sumit > On 12/04/2024 11:54, Sumit Garg

Re: [PATCH v2 3/3] board: starfive: Call spl_dram_init() for DRAM initialization

2024-04-23 Thread Heinrich Schuchardt
On 23.04.24 11:14, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Call spl_dram_init() since this is commonly used for dram initialization in u-boot. Signed-off-by: Lukas Funke --- Changes in v2: - capitalized acronym DRAM board/starfive/visionfive2/spl.c | 4 ++-- 1 file

[PATCH] rockchip: rv1108: Convert to OF_UPSTREAM

2024-04-23 Thread Fabio Estevam
Instead of using the local rv1108 devicetree copies from U-Boot, let's convert the rv11008 board to OF_UPSTREAM so that the upstream kernel devicetrees can be used instead. Tested on a rv1108-elgin-r1 board. Signed-off-by: Fabio Estevam --- arch/arm/dts/rv1108-elgin-r1.dts | 59

[PATCH v2] rockchip: rv1108: Convert to OF_UPSTREAM

2024-04-23 Thread Fabio Estevam
Instead of using the local rv1108 devicetree copies from U-Boot, let's convert the rv1108 boards to OF_UPSTREAM so that the upstream kernel devicetrees can be used instead. Tested on a rv1108-elgin-r1 board. Signed-off-by: Fabio Estevam --- Changes since v1: - Fixed typo in commit log.

Re: RISC-V u-boot unable to boot QEMU using '-cpu max'

2024-04-23 Thread Conor Dooley
On Tue, Apr 23, 2024 at 01:34:42PM +0800, Leo Liang wrote: > On Mon, Apr 22, 2024 at 04:43:59PM -0300, Daniel Henrique Barboza wrote: > > [EXTERNAL MAIL] > > > > Hi, > > > > In QEMU we have a 'max' type CPU that implements (almost) all extensions > > that QEMU > > is able to emulate. Recently,

Re: RISC-V u-boot unable to boot QEMU using '-cpu max'

2024-04-23 Thread Daniel Henrique Barboza
On 4/23/24 09:41, Conor Dooley wrote: On Tue, Apr 23, 2024 at 01:34:42PM +0800, Leo Liang wrote: On Mon, Apr 22, 2024 at 04:43:59PM -0300, Daniel Henrique Barboza wrote: [EXTERNAL MAIL] Hi, In QEMU we have a 'max' type CPU that implements (almost) all extensions that QEMU is able to

[PATCH 1/2] arm: Move sev() and wfe() definitions to common Arm header file

2024-04-23 Thread Peter Hoyes
From: Peter Hoyes The sev() and wfe() asm macros are currently defined only for mach-exynos. As these are common Arm instructions, move them to the common asm/system.h header file, for both Armv7 and Armv8, so they can be used by other machines. wfe may theoretically trigger a context switch if

[PATCH 2/2] armv8: generic_timer: Use event stream for udelay

2024-04-23 Thread Peter Hoyes
From: Peter Hoyes Polling cntpct_el0 in a tight loop for delays is inefficient. This is particularly apparent on Arm FVPs, which do not simulate real time, meaning that a 1s sleep can take a couple of orders of magnitude longer to execute in wall time. If running at EL2 or above (where

[RFC PATCH 1/1] net: dwc_eth_qos: mdio: Implement clause 45

2024-04-23 Thread Philip Oberfichtner
Bevor this commit, only clause 22 access was possible. After this commit, clause 45 direct access will available as well. Note that there is a slight change of behavior: Before this commit, the C45E bit was set to whatever value was left in the register from the previous access. After this

Re: [PATCH 2/2] rockchip: add support for Theobroma Systems SOM-RK3588-Q7 Tiger module

2024-04-23 Thread Quentin Schulz
Hi Jonas, On 4/22/24 19:54, Jonas Karlman wrote: Hi Quentin, On 2024-04-22 18:41, Quentin Schulz wrote: From: Quentin Schulz [...] diff --git a/arch/arm/dts/rk3588-tiger-haikou-u-boot.dtsi b/arch/arm/dts/rk3588-tiger-haikou-u-boot.dtsi new file mode 100644 index 000..4259399193a

Re: [PATCH 31/31] rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-pinephone-pro device tree from linux v6.8. Add SPI flash related node and options to support booting from SPI flash. Remove REGULATOR_PWM=y, board does not use pwm-regulator compatible. Add SYS_NS16550_MEM32=y to use readl/writel for

Re: [PATCH] board: sl28: move to OF_UPSTREAM

2024-04-23 Thread Peng Fan
On Mon, Apr 15, 2024 at 10:14:56AM +0200, Michael Walle wrote: >On Wed Mar 6, 2024 at 5:19 PM CET, Michael Walle wrote: >> Use the new device devicetree files in dts/upstream/ and delete the old >> ones. Still keep the -u-boot.dtsi with all u-boot specifics around. >> >> There is one catch and

Re: [PATCH 00/31] rockchip: rk3399: Sync DT with linux v6.8 and update defconfigs

2024-04-23 Thread Kever Yang
Hi Jonas, On 2024/4/1 04:28, Jonas Karlman wrote: This series adds support for new clocks used in linux v6.8 device trees, enables use of FIT signature check for checksum validation and fixes loading FIT from SD-card when loading FIT from eMMC fails. After this series it should be possible to

[PATCH] sysreset: add Qualcomm PSHOLD reset driver

2024-04-23 Thread Robert Marko
Number of Qualcomm ARMv7 SoC-s did not use PSCI but rather used PSHOLD (Qualcomm Power Supply Hold Reset) bit to trigger reset or poweroff. Qualcomm IPQ40XX is one of them, so provide a simple sysreset driver based on the upstream Linux one, it is DT compatible as well. Signed-off-by: Robert

Re: [RESEND PATCH v2] configs: rk3588-turing-rk1: disable SPI flash by default

2024-04-23 Thread Kever Yang
Hi Sam,     Please help to rebase on latest code, or else I'm not able to apply it. Thanks, - Kever On 2024/4/14 04:56, Sam Edwards wrote: While the Turing RK1 board has a pad on the PCB for SPI flash, it is not populated at the factory: supporting SPI flash boot is a user modification, not

Re: [PATCH v3] rockchip: px30-board-tpl: Sync ifdef guards with full TPL

2024-04-23 Thread Kever Yang
On 2024/4/17 19:21, lukasz.czechow...@thaumatec.com wrote: From: Lukasz Czechowski Display TPL init information message only when TPL_BANNER_PRINT configuration entry is set. This allows to disable information message in case logs on UART are unwanted. Update parent ifdef condition to check

Re: [PATCH 0/3] qcom: switch to OF_UPSTREAM

2024-04-23 Thread Caleb Connolly
On Thu, 18 Apr 2024 18:24:08 +0100, Caleb Connolly wrote: > This series does the initial switch to OF_UPSTREAM for Qualcomm > platforms. The DT files we have in U-Boot are outdated by now, so drop > them and move to upstream. > > Patch 2 drops all the Qualcomm dts files that are now provided in

Re: [PATCH] arm: mach-ipq40xx: dont select SMEM by default

2024-04-23 Thread Caleb Connolly
On Thu, 18 Apr 2024 11:17:00 +0200, Robert Marko wrote: > IPQ40xx SoC-s dont have proper SMEM support like more modern Qualcomm > SoC-s so there is no point in selecting the required drivers. > > Applied, thanks! [1/1] arm: mach-ipq40xx: dont select SMEM by default commit:

Re: [PATCH 0/4] smpi: msm: fix version 5 and add version 7 support

2024-04-23 Thread Caleb Connolly
On Fri, 05 Apr 2024 10:21:52 +0200, Neil Armstrong wrote: > First, fix version 5 support by using the right ch_offset in > then msm_spmi_write() reg accesses. > > Then: > - properly format command by importing helpers from Linux driver and > use a switch/case to handle all versions in

Re: [PATCH 0/9] qcom: RBx fixes and USB support

2024-04-23 Thread Caleb Connolly
On Thu, 18 Apr 2024 18:25:43 +0100, Caleb Connolly wrote: > This series is a few loosely connected patches to get the RB1 and 2 > boards booting from USB with upstream U-Boot, and a few preperatory > patches for rb5. > > Unfortunately the RB5 board requires a regulator on the RPMh peripheral >

Re: [PATCH v2 1/5] pinctrl: qcom: allow selecting with ARCH_IPQ40XX

2024-04-23 Thread Caleb Connolly
On Mon, 22 Apr 2024 13:43:24 +0200, Robert Marko wrote: > IPQ4019 pinctrl driver was moved to the dedicated Qualcomm pinctrl > directory, but the KConfig depends on ARCH_SNAPDRAGON only and thus > PINCTRL_QCOM_IPQ4019 cannot be selected when ARCH_IPQ40XX is used. > > Applied, thanks! [1/5]

Re: [PATCH v2 0/2] i2c: Add support for Qualcomm Generic Interface (GENI) I2C controller

2024-04-23 Thread Caleb Connolly
On Mon, 22 Apr 2024 11:33:51 +0200, Neil Armstrong wrote: > Add Support for the Qualcomm Generic Interface (GENI) I2C interface > found on newer Qualcomm SoCs. > > The Generic Interface (GENI) is a firmware based Qualcomm Universal > Peripherals (QUP) Serial Engine (SE) Wrapper which can

Re: [PATCH v2] mach-snapdragon: Allow other board vendors apart from Qcom

2024-04-23 Thread Caleb Connolly
On Thu, 11 Apr 2024 18:07:26 +0530, Sumit Garg wrote: > Qcom SoCs derived boards can come from various OEMs/ODMs and not just > Qcom itself. So allow CONFIG_SYS_VENDOR to be set correctly > corressponding to the actual board vendor. > > Applied, thanks! [1/1] mach-snapdragon: Allow other

Re: [PATCH v4 0/7] Add SE HMBSC board support

2024-04-23 Thread Caleb Connolly
Applied, thanks. (b4 didn't seem to detect this series properly, hence the manual mail). On 12/04/2024 11:54, Sumit Garg wrote: SE HMIBSC board is based on Qcom APQ8016 SoC. One of the major difference from db410c is serial port where HMIBSC board uses UART1 as the debug console with an RS232

Re: [PATCH 2/2] armv8: generic_timer: Use event stream for udelay

2024-04-23 Thread Quentin Schulz
Hi Peter, On 4/23/24 10:10, Peter Hoyes wrote: From: Peter Hoyes Polling cntpct_el0 in a tight loop for delays is inefficient. This is particularly apparent on Arm FVPs, which do not simulate real time, meaning that a 1s sleep can take a couple of orders of magnitude longer to execute in wall

Re: [PATCH 01/31] rockchip: rk3399-gru: Fix max SPL size on bob and kevin

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Chromebook bob and kevin only use SPL and not TPL+SPL like other RK3399 boards, this mean that SPL is loaded to and run from SRAM instead of DRAM. The SPL and U-Boot payload is loaded from SPI flash. The U-Boot payload is located at 0x4 (256 KiB)

Re: [PATCH 03/31] rockchip: rk3399: Sort imply statements alphabetically

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sort imply statements under ROCKCHIP_RK3399 alphabetically. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/Kconfig | 28 ++-- 1 file changed, 14 insertions(+), 14

Re: [PATCH 04/31] rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: The RK3399 SoC support the ARMv8 Cryptography Extensions, use of ARMv8 crypto can speed up FIT checksum validation in SPL. Imply ARMV8_SET_SMPEN and ARMV8_CRYPTO to take advantage of the crypto extensions for SHA256 when validating checksum of FIT

Re: [PATCH 02/31] rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: The rk3399-ficus board is only using SPL and not TPL+SPL like all other RK3399 boards, chromebook bob/kevin excluded. It does not seem to be any technical reason why this board was left using only SPL. Switch to use TPL+SPL and use common bss and stack

Re: [PATCH 07/31] rockchip: rk3399: Enable DT overlay support on all boards

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Imply OF_LIBFDT_OVERLAY Kconfig options to add device tree overlay support on all RK3399 boards. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/Kconfig| 1 +

Re: [PATCH 05/31] rockchip: rk3399: Enable random generator on all boards

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: The RK3399 SoC contain a crypto engine block that can generate random numbers. Imply DM_RNG and RNG_ROCKCHIP Kconfig options to take advantage of the random generator on all RK3399 boards. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang

Re: [PATCH 09/31] rockchip: rk3399: Add a default spl-boot-order prop

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: A lot of RK3399 boards use a u-boot,spl-boot-order of "same-as-spl", and Move this to rk3399-u-boot.dtsi and make this default for boards currently missing a u-boot,spl-boot-order prop. The _flash reference has been dropped from spl-boot-order now

Re: [PATCH 08/31] rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: The TPL and/or SPL control FDT on RK3399 boards does not contain any node with a compatible that is supported by driver/misc/ drivers. Remove use of xPL_MISC_DRIVERS options to stop including e.g an unused efuse driver in TPL and/or SPL. Signed-off-by:

Re: [PATCH 06/31] rockchip: rk3399: Imply support for GbE PHY

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Imply support for GbE PHY status parsing and configuration when support for onboard ethernet is enabled. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1

Re: [PATCH 10/31] rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: When RK3399 boards run SPL from eMMC and fail to load FIT from eMMC due to it being missing or checksum validation fails there can be a fallback to read FIT from SD-card. However, without proper pinctrl configuration reading FIT from SD-card may fail:

Re: [PATCH 12/31] clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: rk3399.dtsi from linux v5.19 and newer try to set VDU clock rate to 400 MHz using an assigned-clock-rates prop of the CRU node. U-Boot does not use or need this clock so add dummy support for getting and setting ACLK_VDU clock rate to allow CRU driver

Re: [PATCH 11/31] clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-cru.h with one from linux v6.2+ and fix use of the SCLK_DDRCLK name that was only used by U-Boot. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3399-u-boot.dtsi| 2 +-

Re: [PATCH 13/31] clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: rk3399-nanopi-4.dtsi try to set parent of and set rate to 100 MHz of the SCLK_PCIEPHY_REF clock. The existing enable/disable ops for SCLK_PCIEPHY_REF already handles setting correct parent once the clock gets enabled. And 100 MHz is the default rate

Re: [PATCH 14/31] clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: The SCLK_USB3OTGx_REF clocks is used as reference clock for USB3 block. Add simple support to get rate of SCLK_USB3OTGx_REF clocks to fix reference clock period configuration. Also replace use of 2400 with the OSC_HZ constant. Signed-off-by: Jonas

Re: [PATCH 15/31] rockchip: rk3399: Sync soc device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync RK3399 SoC common .dtsi-files from linux v6.8. The ethernet0 alias is removed from rk3399.dtsi in this patch, it will be restored in board specific .dts-files. There is no other intended change with this patch. Signed-off-by: Jonas Karlman

Re: [PATCH 16/31] rockchip: rk3399-gru: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-gru related device tree from linux v6.8. The spi_flash symbol is no longer part of upstream DT, it is re-defined to allow exising use in related u-boot.dtsi-files. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever

[PATCH] .gitignore: add LTO generated file

2024-04-23 Thread Robert Marko
Currently, keep-syms-lto.c is being generated if LTO is enabled but unlike keep-syms-lto.o it is not being ignored, so lets add keep-syms-lto.* to .gitignore. Signed-off-by: Robert Marko --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index

Re: [PATCH 17/31] rockchip: rk3399-puma: Sync DT from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-puma related device tree from linux v6.8. SPL_MAX_SIZE is not adjusted to the now common 0x4 (256 KiB) due to TPL+SPL combined (idbloader.img) is limited to max 224 KiB because of: SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200 Because FIT

Re: [PATCH 18/31] rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-rock-pi-n10 related device tree from linux v6.8. Remove SPL_GPIO=y, board does not use gpio in SPL. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256 KiB. Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage. Add MMC_SDHCI_SDMA=y to

Re: [PATCH 20/31] rockchip: rk3399-leez: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-leez-p710 device tree from linux v6.8. Add DM_RESET=y to support reset signals. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256 KiB. Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage. Add MMC_SDHCI_SDMA=y to use DMA transfer for

Re: [PATCH 21/31] rockchip: rk3399-evb: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-evb device tree from linux v6.8. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256 KiB. Remove CONFIG_NET_RANDOM_ETHADDR=y, ethaddr and eth1addr is set based on cpuid read from eFUSE. Add PHY_REALTEK=y and DM_ETH_PHY=y to support

Re: [PATCH 19/31] rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-eaidk-610 device tree from linux v6.8. Add DM_RESET=y to support reset signals. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256 KiB. Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage. Add MMC_SDHCI_SDMA=y to use DMA transfer for

Re: [PATCH 22/31] rockchip: rk3399-firefly: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-firefly device tree from linux v6.8. Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support PCIe SATA. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256 KiB. Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage. Add

Re: [PATCH 25/31] rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-nanopi-4 related device tree from linux v6.8. Add DM_RESET=y to support reset signals. Add PCI=y, CMD_PCI=y and NVME_PCI=y to support PCIe and NVMe boot. Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support PCIe SATA boot. Add

Re: [PATCH 23/31] rockchip: rk3399-orangepi: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-orangepi device tree from linux v6.8. Add DM_RESET=y to support reset signals. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256 KiB. Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage. Add MMC_SDHCI_SDMA=y to use DMA transfer for

Re: [PATCH 24/31] rockchip: rk3399-roc-pc: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-roc-pc related device tree from linux v6.8. Add SF_DEFAULT_SPEED=3000 and SPI_FLASH_SFDP_SUPPORT=y to improve support for booting from SPI flash. Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support PCIe SATA. Add

[PATCH 0/2] Optimize udelay for aarch64 boards

2024-04-23 Thread Peter Hoyes
Arm boards currently use the default implementation of __udelay which consists of a spin-loop. AArch64 however provides an architectural timer with an event stream which can be enabled and waited upon with a few lines of assembly. This is more efficient and also avoids an issue on Arm FVPs where

Re: [PATCH 1/2] rockchip: rk3588: add support for UART2 M1 and M2 in SPL

2024-04-23 Thread Kever Yang
Hi Quentin, On 2024/4/23 17:31, Quentin Schulz wrote: Hi Kever, On 4/23/24 03:09, Kever Yang wrote: Hi Quentin, On 2024/4/23 00:41, Quentin Schulz wrote: From: Quentin Schulz UART2 controller is the controller in the reference design for debug console. The default mux is M0 in that

Re: [PATCH 27/31] rockchip: rk3399-khadas: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-khadas related device tree from linux v6.8. Add SPI flash related options to support booting from SPI flash. Add DM_RESET=y to support reset signals. Add PCI=y, CMD_PCI=y and NVME_PCI=y to support PCIe and NVMe boot. Add AHCI=y,

Re: [PATCH 28/31] rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-rock-pi-4 related device tree from linux v6.8. Add SPI flash related options to support booting from SPI flash. Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support PCIe SATA boot. Change to SPL_MAX_SIZE=0x4, SPL can be up to 256

Re: [PATCH 29/31] rockchip: rk3399-rockpro64: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-rockpro64 device tree from linux v6.8. Add SF_DEFAULT_SPEED=1000 and SPI_FLASH_SFDP_SUPPORT=y to improve support for booting from SPI flash. Remove USE_PREBOOT=y to speed up booting, standard boot will init USB after faster boot media

Re: [PATCH 30/31] rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-pinebook-pro device tree from linux v6.8. Add SF_DEFAULT_SPEED=1000 and SPI_FLASH_SFDP_SUPPORT=y to improve support for booting from SPI flash. Add CMD_POWEROFF=y to support poweroff using cmdline and power on using the pwr button on

Re: [PATCH 26/31] rockchip: rk3399-rock960: Sync device tree from linux v6.8

2024-04-23 Thread Kever Yang
On 2024/4/1 04:28, Jonas Karlman wrote: Sync rk3399-rock960 related device tree from linux v6.8. Add DM_RESET=y to support reset signals. Add PCI=y, CMD_PCI=y and NVME_PCI=y to support PCIe and NVMe boot. Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support PCIe SATA boot. Change to

[PATCH v2] usb: cdns3: gadget.c: Set fast access bit

2024-04-23 Thread Ravi Gunasekaran
From: Aswath Govindraju When the device port is in a low power state [U3/L2/Not Connected], accesses to usb device registers may take a long time. This could lead to potential core hang when the controller registers are accessed after the port is disabled by setting DEVDS field. Setting the fast

Re: [PATCH v2 1/4] tools: mkeficapsule: Add support for parsing capsule params from config file

2024-04-23 Thread Sughosh Ganu
hi Heinrich, On Fri, 19 Apr 2024 at 12:44, Heinrich Schuchardt wrote: > > On 19.04.24 08:55, Sughosh Ganu wrote: > > Add support for specifying the parameters needed for capsule > > generation through a config file, instead of passing them through > > command-line. Parameters for more than a

  1   2   >