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

2024-04-13 Thread Sam Edwards
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 an out-of-the-box feature. The defconfig for this board should therefore not be enabling the SPI flash image nor SPI support in the SPL, as it cau

[PATCH] configs: turing-rk1: disable SPI flash by default

2024-04-13 Thread Sam Edwards
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 an out-of-the-box feature. The defconfig for this board should therefore not be enabling the SPI flash image nor SPI support in the SPL, as it cau

Re: Pull request efi-2024-07-rc1-2

2024-04-13 Thread Tom Rini
On Sat, Apr 13, 2024 at 12:28:34PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 13c1100335e40acb1066e074eb061387fd103c36: > > net: designware: Pass all multicast frames in designware driver > (2024-04-12 13:59:12 -0600) > > are available in the Git repo

[PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards

2024-04-13 Thread Jonas Karlman
A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 mode is supported in addition to HS400, this lead to bad performance reading FIT in SPL and broken MMC write. Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable use of eMMC HS200 mode. Signed-off-by: Jonas Ka

[PATCH v2 22/23] rockchip: rk35xx-generic: Disable unused features

2024-04-13 Thread Jonas Karlman
The generic RK35xx board targets are intended to be used as a bare minimum target that can be used to e.g. boot boards that mostly follow reference hw design before a board spefic target has been added or flashing and recovery purposes. Disable BOOTMETH_VBE, NET and ADC as these features are not i

[PATCH v2 21/23] rockchip: rk3588-generic: Add support for USB OTG

2024-04-13 Thread Jonas Karlman
Add support for USB OTG, RockUSB and UMS to the generic RK3588S/RK3588 target. Signed-off-by: Jonas Karlman --- v2: Split patch --- arch/arm/dts/rk3588-generic-u-boot.dtsi | 22 ++ arch/arm/dts/rk3588-generic.dts | 2 +- configs/generic-rk3588_defconfig| 11 +

[PATCH v2 20/23] rockchip: rk356x-generic: Add support for USB OTG

2024-04-13 Thread Jonas Karlman
Add support for USB OTG, RockUSB and UMS to the generic RK3566/RK3568 target. Signed-off-by: Jonas Karlman --- v2: Split patch --- arch/arm/dts/rk3568-generic.dts | 19 ++- configs/generic-rk3568_defconfig | 10 ++ 2 files changed, 28 insertions(+), 1 deletion(-) diff -

[PATCH v2 19/23] rockchip: rk356x-generic: Add support for SPI flash

2024-04-13 Thread Jonas Karlman
Add support for booting from SPI flash using the generic RK3566/RK3568 target. Signed-off-by: Jonas Karlman --- v2: Split patch --- arch/arm/dts/rk3568-generic-u-boot.dtsi | 7 +++ arch/arm/dts/rk3568-generic.dts | 14 +- configs/generic-rk3568_defconfig| 15

[PATCH v2 18/23] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl

2024-04-13 Thread Jonas Karlman
Add missing emmc_datastrobe and sdmmc0_det pinctrl to fix possible issue reading from eMMC or SD-card. Also use correct node for mmc1 alias. Fixes: 683f61a13f16 ("rockchip: board: Add minimal generic RK3566/RK3568 board") Fixes: 363cbd578169 ("rockchip: rk3568-generic: Enable eMMC HS200 mode") Sig

[PATCH v2 17/23] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation

2024-04-13 Thread Jonas Karlman
Enable SPL_FIT_SIGNATURE=y and LEGACY_IMAGE_FORMAT=y to validate FIT images checksum in SPL. Change to SPL_MAX_SIZE=0x4 to allow SPL up to 256 KiB in size. Enable SPL_DM_SEQ_ALIAS=y and SPL_PINCTRL=y to ensure eMMC and SD-card pinctrl is configured in SPL. Enable SYS_NS16550_MEM32=y to use r

[PATCH v2 16/23] rockchip: rk3588-turing-rk1: Use dwc3-generic driver

2024-04-13 Thread Jonas Karlman
RK35xx boards are expected to use the dwc3-generic driver and not the xhci-dwc3 driver. Remove the USB_XHCI_DWC3 option to ensure that the dwc3-generic driver is used. Fixes: 153ac950a599 ("board: rockchip: Add the Turing RK1 SoM") Signed-off-by: Jonas Karlman --- v2: Drop change to enable the D

[PATCH v2 15/23] rockchip: rk3588-toybrick: Add missing Kconfig options

2024-04-13 Thread Jonas Karlman
Add .dtb-file entry to Makefile and enable Kconfig options required to configure pinctrl in SPL. Also add missing PHY_ROCKCHIP_NANENG_COMBOPHY. Fixes: 9fdd9a546986 ("board: rockchip: add Rockchip Toybrick TB-RK3588X board") Signed-off-by: Jonas Karlman --- v2: Fix Makefile entry from .dts to .dtb

[PATCH v2 12/23] rockchip: rk3588: Update bootph props

2024-04-13 Thread Jonas Karlman
After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag") bootph props is propagating to parent nodes. Update bootph props to ensure eMMC, SD-card and SPI flash is available in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph props that automatically is propagated to par

[PATCH v2 14/23] rockchip: rk3588-coolpi: Add boards to documentation

2024-04-13 Thread Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation. Also fix .dtb-file entries in Makefile. Fixes: 3e15dee38d45 ("board: rockchip: Add support for rk3588 based Cool Pi CM5 EVB") Signed-off-by: Jonas Karlman --- v2: No change --- arch/arm/dts/Makefile | 4 ++-- doc/

[PATCH v2 13/23] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash

2024-04-13 Thread Jonas Karlman
The SF_DEFAULT_SPEED Kconfig option got lost during merge and this prevent reading FIT from SPI flash. Restore the SF_DEFAULT_SPEED option to fix this. Fixes: 8a94c376f6cb ("rockchip: Use common bss and stack addresses on RK356x") Signed-off-by: Jonas Karlman --- v2: No change --- configs/pinet

[PATCH v2 11/23] rockchip: rk356x: Update bootph props

2024-04-13 Thread Jonas Karlman
After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag") bootph props is propagating to parent nodes. Update bootph props to ensure eMMC, SD-card and SPI flash is available in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph props that automatically is propagated to par

[PATCH v2 09/23] rockchip: rk356x: Imply enhanced features for standard boot

2024-04-13 Thread Jonas Karlman
Imply BOOTSTD_FULL for all RK356x boards to more closely follow RK3588. Signed-off-by: Jonas Karlman --- v2: No change --- arch/arm/mach-rockchip/Kconfig | 1 + configs/bpi-r2-pro-rk3568_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Kco

[PATCH v2 10/23] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically

2024-04-13 Thread Jonas Karlman
Sort nodes and props in RK356x/RK3588 u-boot.dtsi alphabetically, nodes is sorted by reg addr then by alphabetical order. This has no intended change beside sorting existing nodes and removing a duplicated usbdpphy0_grf node. Signed-off-by: Jonas Karlman --- v2: Follow kernel sort order (Quentin

[PATCH v2 07/23] rockchip: rk35xx: Enable random generator

2024-04-13 Thread Jonas Karlman
The RK35xx SoCs contain a crypto engine block that can generate random numbers. Enable rng node in soc u-boot.dtsi and enable Kconfig options to take advantage of the random generator. Signed-off-by: Jonas Karlman --- v2: No change --- arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 6 --

[PATCH v2 06/23] rockchip: rk35xx: Sort imply statements alphabetically

2024-04-13 Thread Jonas Karlman
Sort imply statements under ROCKCHIP_RK3568 and ROCKCHIP_RK3588 alphabetically. Signed-off-by: Jonas Karlman --- v2: No change --- arch/arm/mach-rockchip/Kconfig | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/a

[PATCH v2 05/23] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option

2024-04-13 Thread Jonas Karlman
SPL_ROCKCHIP_BACK_TO_BROM should normally only be enabled when BROM should load U-Boot binary. SPL on Anbernic RGxx3 devices load TF-A and U-Boot proper from FIT images and does never jump back to BROM from SPL. Remove the superfluous Kconfig option from defconfig to align with other RK356x boards

[PATCH v2 08/23] rockchip: rk35xx: Imply support for GbE PHY

2024-04-13 Thread Jonas Karlman
Imply support for GbE PHY status parsing and configuration when support for onboard ethernet is enabled. Signed-off-by: Jonas Karlman Reviewed-by: Quentin Schulz --- v2: Collect r-b tag --- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockch

[PATCH v2 04/23] rockchip: rk3588: Drop REGULATOR_PWM Kconfig option

2024-04-13 Thread Jonas Karlman
RK3588 boards do not have any pwm-regulator compatible nodes in DT, drop the superfluous REGULATOR_PWM Kconfig options. Signed-off-by: Jonas Karlman --- v2: No change --- configs/evb-rk3588_defconfig | 1 - configs/neu6a-io-rk3588_defconfig| 1 - configs/neu6b-io-rk3588_defconfig

[PATCH v2 03/23] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option

2024-04-13 Thread Jonas Karlman
The commit 8c19275fdb13 ("rockchip: Update the default USB Product ID value") added default product id for all supported Rockchip SoCs. Remove USB_GADGET_PRODUCT_NUM options that match default value from RK35xx boards. Signed-off-by: Jonas Karlman --- v2: No change --- configs/pinetab2-rk3566_d

[PATCH v2 02/23] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support

2024-04-13 Thread Jonas Karlman
The REF_CLK_USB3OTGx clocks is used as reference clock for USB3 block. Add simple support to get rate of REF_CLK_USB3OTGx clocks to fix reference clock period configuration. Signed-off-by: Jonas Karlman Reviewed-by: Quentin Schulz --- v2: Collect r-b tag --- drivers/clk/rockchip/clk_rk3588.c |

[PATCH v2 01/23] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support

2024-04-13 Thread Jonas Karlman
The CLK_USB3OTGx_REF clocks is used as reference clock for USB3 block. Add simple support to get rate of CLK_USB3OTGx_REF clocks to fix reference clock period configuration. Signed-off-by: Jonas Karlman --- v2: No change --- drivers/clk/rockchip/clk_rk3568.c | 4 1 file changed, 4 insertio

[PATCH v2 00/23] rockchip: rk35xx: Miscellaneous fixes and updates

2024-04-13 Thread Jonas Karlman
This series include miscellaneous fixes and updates for RK356x and RK3588 boards. Patch 1-2 adds support for reference clocks used by USB driver. Patch 3-5 drops unnecessary Kconfig options. Patch 6-9 sort and imply RNG, PHY_GIGE and BOOTSTD_FULL Kconfig options. Patch 10-12 sort and update use

Re: [PATCH 0/9] mcheck implementation for U-Boot

2024-04-13 Thread Tom Rini
On Sun, 31 Mar 2024 23:03:18 +0300, Eugene Uriev wrote: > There was no "mcheck" for U-Boot before. > > Since U-Boot has only 1 thread, and normally makes 4000+ - 6000+ > mallocs, it's better to use havier canaries to protect heap-chunks. > My variant uses 2x8 = 16byte-long protector. And > the mu

[PATCH] DRAM_SUN50I_H616_TRIM_SIZE

2024-04-13 Thread dazen
From: lalakii Add "DRAM_SUN50I_H616_TRIM_SIZE" option for 1.5gb board. Signed-off-by: lalakii --- arch/arm/include/asm/arch-sunxi/dram_sun50i_h616.h | 1 + arch/arm/mach-sunxi/Kconfig| 7 +++ arch/arm/mach-sunxi/dram_sun50i_h616.c | 11 ++- 3 f

Re: [PATCH 5/8] clk/qcom: sdm845: add register map for simple gate clocks

2024-04-13 Thread * *

Pull request efi-2024-07-rc1-2

2024-04-13 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 13c1100335e40acb1066e074eb061387fd103c36: net: designware: Pass all multicast frames in designware driver (2024-04-12 13:59:12 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2024-0

Re: [PATCH] Fix references to trace doc

2024-04-13 Thread Heinrich Schuchardt
On 4/11/24 18:44, Vincent Stehlé wrote: The README.trace has been moved and converted to rst in commit dce26c7d56ed ("doc: move README.trace to HTML documentation"); fix all the remaining references to this file. Signed-off-by: Vincent Stehlé Cc: Tom Rini Cc: Simon Glass Cc: Heinrich Schuchar

Re: [PATCH v2 2/2] lmb: Fix adjacent region merge in lmb_add_region_flags()

2024-04-13 Thread Patrice CHOTARD
On 4/12/24 17:53, Patrice Chotard wrote: > In case a new region is adjacent to a previous region with > similar flag, this region is merged with its predecessor, but no > check are done if this new added region is overlapping another region > present in lmb (see reserved[3] which overlaps reserv

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

2024-04-13 Thread Jonas Karlman
Hi Sam, On 2024-04-13 09:25, 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 an out-of-the-box feature. The defconfig for this > board should therefore not be enabling

[PATCH] configs: turing-rk1: disable SPI flash by default

2024-04-13 Thread Sam Edwards
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 an out-of-the-box feature. The defconfig for this board should therefore not be enabling the SPI flash image nor SPI support in the SPL, as it cau