Re: [PATCH 2/2] imx93_evk: enable ADC

2023-02-23 Thread Luca Ellero
e/imx93-11x11-evk.dts?h=next-20230223#n37 We want to keep U-Boot and Linux devicetree in sync as much as possible. Thanks Hi Fabio, thank you for your reply. Ok, I will add a comment to the patch and fix DT node. Should I resend only this patch or both? Regards -- Luca Ellero E-mail: luca.ell.

Re: [PATCH v2 2/2] xilinx: zynqmp: Add missing prototype for board_boot_order

2023-02-23 Thread Michal Simek
Hi, On 2/24/23 05:53, Ashok Reddy Soma wrote: From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'board_boot_order' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in

Re: [PATCH 2/3] rockchip: rk356x: update the dwc3_device register offset

2023-02-23 Thread Jagan Teki
On Thu, Feb 23, 2023 at 10:06 PM Manoj Sai wrote: > > update the dwc3_device register offset in board_usb_init() > for rk3568 platforms. > > Signed-off-by: Manoj Sai > --- Reviewed-by: Jagan Teki

Re: [PATCH 3/3] rk3566: radxa-cm3: Enable USB OTG

2023-02-23 Thread Jagan Teki
On Thu, Feb 23, 2023 at 10:06 PM Manoj Sai wrote: > > Enable USB OTG support and update the fastboot buffer address > for Radxa Compute Module 3 IO Board. > > This would help to use fastboot by default. > > Signed-off-by: Manoj Sai > --- > configs/radxa-cm3-io-rk3566_defconfig | 3 +++ > 1 file

Re: Boot from 64-bit memory address?

2023-02-23 Thread Rick Chen
Hi Philip, > From: U-Boot On Behalf Of Bernard, Philip > Sent: Thursday, February 23, 2023 9:21 AM > To: u-boot@lists.denx.de > Subject: Boot from 64-bit memory address? > > Hi, > > Is it possible to boot from a DRAM memory address beyond the 32-bit boundary? > I'm trying to configure a new RISC

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-23 Thread Martin Rowe
> > boot0 - zeroed > > boot1 - u-boot (with local version 'boot1') > > user - u-boot (with local version 'user') > Can you check if boot_ack argument has some effect on the initial > choice? Or if completely disabling boot partitions (boot_enable to 0) > have some effect? boot_ack doesn't appear t

Re: [PATCH v1] configs: j7200: Merge HS and non-HS defconfigs

2023-02-23 Thread Manorit Chawdhry
On 17:28-20230223, Tom Rini wrote: > On Wed, Feb 22, 2023 at 09:02:12AM -0600, Andrew Davis wrote: > > On 2/22/23 1:56 AM, Manorit Chawdhry wrote: > > > K3 devices have runtime type board detection. Make the default defconfig > > > include the secure configuration.

[PATCH v2 2/2] configs: j7200: Merge HS and non-HS defconfigs

2023-02-23 Thread Manorit Chawdhry
K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config. Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices

[PATCH v2 1/2] configs: j721s2: merge HS and non-HS defconfigs

2023-02-23 Thread Manorit Chawdhry
K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config. Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices

[PATCH 4/4] arm64: dts: zynqmp: Enable nand-on-flash-bbt in DT by default

2023-02-23 Thread Ashok Reddy Soma
By default enable nand-on-flash-bbt DT flag, so that driver always refers to the bad block table(bbt) present on the flash device. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts | 2 ++ arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts | 2 ++ 2 files changed, 4 insertions(

[PATCH 3/4] arm64: dts: zynqmp: Fix nand dt node

2023-02-23 Thread Ashok Reddy Soma
DC3 nand node is not correct, it is showing all partitions under controller node directly. Create two sub nand nodes with partitions for each. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts | 117 ++- 1 file changed, 70 insertions(+), 47 deletio

[PATCH 2/4] mtd: nand: arasan: Set ofnode value

2023-02-23 Thread Ashok Reddy Soma
Ofnode value is not set, so all the DT properties are not being read and due to this default values are being used. Find nand node and set chip->flash_node value. Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/arasan_nfc.c | 4 1 file changed, 4 insertions(+) diff --git a/drive

[PATCH 1/4] mtd: nand: arasan: Remove hardcoded bbt option

2023-02-23 Thread Ashok Reddy Soma
Bad block table option is hardcoded to read from flash with NAND_BBT_USE_FLASH option. This decision should be done based on DT property. Remove this hardcoding, to be able to use DT property. Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/arasan_nfc.c | 1 - 1 file changed, 1 deletio

[PATCH 0/4] Fix arasan nand driver issues

2023-02-23 Thread Ashok Reddy Soma
In this patch series - Remove hardcoding of NAND_BBT_USE_FLASH in nand->bbt_options - Find and update nand ofnode. - Fix nand node in zynqmp-zc1751-xm017-dc3.dts file - Enable nand-on-flash-bbt flag in zynqmp DT's by default Ashok Reddy Soma (4): mtd: nand: arasan: Remove hardcoded bbt opti

[PATCH v2 1/2] xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write

2023-02-23 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) arch/arm/mach-versal-net/include/mac

[PATCH v2 0/2] Fix sparse warnings

2023-02-23 Thread Ashok Reddy Soma
Run and fix sparse warnings in below files -arch/arm/mach-zynqmp/include/mach/sys_proto.h -common/spl/spl.c -arch/arm/mach-versal-net/include/mach/sys_proto.h -arch/arm/mach-versal/include/mach/sys_proto.h -drivers/mmc/zynq_sdhci.c -drivers/spi/zynqmp_gqspi.c Changes in v2: - Moved functio

[PATCH v2 2/2] xilinx: zynqmp: Add missing prototype for board_boot_order

2023-02-23 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'board_boot_order' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Moved function prototype from sys_proto.h t

Re: Docs for RISC-V

2023-02-23 Thread Nylon Chen
Zong Li 於 2023年2月23日 週四 下午5:11寫道: > > On Mon, Feb 6, 2023 at 3:58 PM Leo Liang wrote: > > > > Hi Simon, > > > > On Thu, Feb 02, 2023 at 10:25:36AM -0700, Simon Glass wrote: > > > Hi, > > > > > > On Thu, 2 Feb 2023 at 10:18, Simon Glass wrote: > > > > > > > > Hi Rick & Leo, > > > > > > > > I see

Re: [PATCH v1 18/24] solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of CONFIG_CMD_SATA

2023-02-23 Thread Troy Kisky
On Wed, Feb 22, 2023 at 10:13 AM Troy Kisky wrote: > On Wed, Feb 22, 2023 at 8:59 AM Tom Rini wrote: > >> On Tue, Feb 21, 2023 at 05:38:15PM -0800, Troy Kisky wrote: >> >> > setup_sata is linked with >> > obj-$(CONFIG_SATA) += sata.o >> > >> > So use SATA instead of CMD_SATA. >> > >> > Signed-of

[PATCH v2 23/24] doc: Add notes on how to install patman and binman

2023-02-23 Thread Simon Glass
These can be installed with 'pip' now. Add the details for those who are interested. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/binman.rst | 13 + tools/patman/patman.rst | 12 2 files changed, 25 insertions(+) diff --git a/tools/binman/binman.r

[PATCH v2 21/24] binman: Add support for building a binmanu PyPi package

2023-02-23 Thread Simon Glass
Create the necessary files to build this new package. It is not actually clear whether this is useful, since buildman has no purpose outside U-Boot. Move the main program into a function so that it can easily be called by the PyPi-created script. Signed-off-by: Simon Glass --- (no changes sinc

[PATCH v2 20/24] binman: Use importlib to find the help

2023-02-23 Thread Simon Glass
Use this function so that the help can be found even when binman is running from a package. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to use importlib to find the help tools/binman/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/bi

[PATCH v2 19/24] binman: Hide the 'test' command unless test code is available

2023-02-23 Thread Simon Glass
It doesn't make much sense to expose tests when dtoc is running outside of the U-Boot git checkout. Hide the option in this case. Fix a long line while we are here. Signed-off-by: Simon Glass --- Changes in v2: - Add a patch to hide the test options unless test code is available tools/binman/

[PATCH v2 17/24] dtoc: Add support for building a dtoc PyPi package

2023-02-23 Thread Simon Glass
Create the necessary files to build this new package. This is needed for binman. Move the main program into a function so that it can easily be called by the PyPi-created script. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 1 + tools/dtoc/README.rst

[PATCH v2 15/24] dtoc: Move the main code into a function

2023-02-23 Thread Simon Glass
Put this code into a function so it is easy for it be run when packaged. Signed-off-by: Simon Glass --- Changes in v2: - Add patch to split out the main code into a function tools/dtoc/main.py | 100 +++-- 1 file changed, 52 insertions(+), 48 deletions(-

[PATCH v2 24/24] CI: Add a check for building tools for PyPi

2023-02-23 Thread Simon Glass
Add a simple check that the PyPi packages can be built. Signed-off-by: Simon Glass --- Changes in v2: - Update the cover letter .azure-pipelines.yml | 10 ++ .gitlab-ci.yml | 6 ++ 2 files changed, 16 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml in

[PATCH v2 22/24] test: Add concurrencytest to the requirements

2023-02-23 Thread Simon Glass
This allows tests to run in parallel and speeds up some tests markedly, particularly with binman. Add it to the requirements. Signed-off-by: Simon Glass --- (no changes since v1) test/py/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/requirements.txt b/test/py/req

[PATCH v2 14/24] dtoc: Hide the test options unless test code is available

2023-02-23 Thread Simon Glass
It doesn't make much sense to expose tests when dtoc is running outside of the U-Boot git checkout. Hide the option in this case. Signed-off-by: Simon Glass --- Changes in v2: - Add a patch to hide the test options unless test code is available tools/dtoc/main.py | 19 +-- 1 fi

[PATCH v2 18/24] binman: Move the main code into a function

2023-02-23 Thread Simon Glass
Put this code into a function so it is easy for it be run when packaged. Signed-off-by: Simon Glass --- Changes in v2: - Add patch to split out the main code into a function tools/binman/main.py | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/binman/main.

[PATCH v2 13/24] buildman: Add support for building a buildman PyPi package

2023-02-23 Thread Simon Glass
Create the necessary files to build this new package. It is not actually clear whether this is useful, since buildman has no purpose outside U-Boot. It is included for completeness, since adding this later would be more trouble. Move the main program into a function so that it can easily be calle

[PATCH v2 12/24] buildman: Use importlib to find the help

2023-02-23 Thread Simon Glass
Use this function so that the help can be found even when buildman is running from a package. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to use importlib to find the help tools/buildman/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool

[PATCH v2 09/24] buildman: Move the main code into a function

2023-02-23 Thread Simon Glass
Put this code into a function so it is easy for it be run when packaged. Signed-off-by: Simon Glass --- Changes in v2: - Add patch to split out the main code into a function tools/buildman/main.py | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a

[PATCH v2 16/24] dtoc: Use pathlib to find the test directory

2023-02-23 Thread Simon Glass
Update this so that the directory being used is declared at the top of the file. Use pathlib as it seems to be more modern. Signed-off-by: Simon Glass --- (no changes since v1) tools/dtoc/test_dtoc.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/dtoc/test_dto

[PATCH v2 11/24] buildman: Fix use of a type as a variable

2023-02-23 Thread Simon Glass
Using 'str' as a variable makes it impossible to use it as a type in the same function. Fix this by using a different name. Signed-off-by: Simon Glass --- Changes in v2: - Add patch to fix use of a type as a variable tools/buildman/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH v2 10/24] buildman: Hide the test options unless test code is available

2023-02-23 Thread Simon Glass
It doesn't make much sense to expose tests when buildman is running outside of the U-Boot git checkout. Hide the option in this case Signed-off-by: Simon Glass --- Changes in v2: - Add a patch to hide the test options unless test code is available tools/buildman/cmdline.py | 14 ++

[PATCH v2 07/24] patman: Avoid importing test_checkpatch before it is needed

2023-02-23 Thread Simon Glass
Tests are not packaged with patman so this file will not be accessible when installing with pip. Move the import later in the file, when we know the file is present. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to avoid importing test_checkpatch before it is needed tools/patma

[PATCH v2 06/24] patman: Add support for building a u_boot_tools PyPi package

2023-02-23 Thread Simon Glass
Create the necessary files to build this new package. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 18 +- tools/u_boot_pylib/LICENSE| 339 ++ tools/u_boot_pylib/README.rst | 15 ++ tools/u_boot_pylib/pyprojec

[PATCH v2 04/24] patman: Move library functions into a library directory

2023-02-23 Thread Simon Glass
The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged

[PATCH v2 08/24] patman: Add support for building a patman PyPi package

2023-02-23 Thread Simon Glass
Create the necessary files to build this new package. Signed-off-by: Simon Glass --- Changes in v2: - Rename the package to patch-manager Makefile| 1 + tools/patman/pyproject.toml | 29 + 2 files changed, 30 insertions(+) create mode 100644 to

[PATCH v2 05/24] script: Add a script to build a PyPi package

2023-02-23 Thread Simon Glass
Create a script which can package a tool for use with PyPi and the 'pip' tool. This involves quite a few steps so is best automated. Future work will enable use of this for some of the tools in U-Boot. Signed-off-by: Simon Glass --- Changes in v2: - Drop test files - Fix removable of the /tmp di

[PATCH v2 03/24] Remove concurrencytest

2023-02-23 Thread Simon Glass
While our version is better, it is tricky to use it when we are trying to package things with pip. Drop it. Somewhat reduced functionality is provided by the upstream version[1], along with a rather annoying message each time it is used[2] [3]. [1] pip install concurrencytest [2] https://github.c

[PATCH v2 02/24] Revert "patman: test_util: Print test stdout/stderr within test summaries"

2023-02-23 Thread Simon Glass
Unfortunately this adds a new feature to concurrencytest and it has not made it upstream to the project[1]. Drop it for now so we can use the upstream module. Once it is applied we can bring this functionality back. [1] https://github.com/cgoldberg/concurrencytest This reverts commit ebcaafcded4

[PATCH v2 01/24] binman: Avoid unwanted output in testFitFirmwareLoadables()

2023-02-23 Thread Simon Glass
This prints a message about the missing tee-os generated by the test. This is confusing, so suppress it. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/ftest.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/binman/ftest.py b/tools/binman/

[PATCH v2 00/24] tools: Support uploading tools to PyPi for use with pip

2023-02-23 Thread Simon Glass
Some of the tools in U-Boot are useful beyond just U-Boot. For example, patman can be used to work with Linux and other projects which use mailing lists (and patchwork) for patch submissions. Binman can be used to package firmware for any project, even though it is heavily slanted towards U-Boot so

[PATCH 3/3] mmc: fsl_esdhc_imx: add ColdFire support

2023-02-23 Thread Angelo Dureghello
From: Angelo Durgehello ColdFire mcf5441x includes the same imx esdhc controller module, so adding minimal code to support it. Signed-off-by: Angelo Durgehello --- drivers/mmc/fsl_esdhc_imx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/f

[PATCH 2/3] board: stmark2: add mmc support

2023-02-23 Thread Angelo Dureghello
From: Angelo Durgehello Enable mmc boot. Signed-off-by: Angelo Durgehello --- arch/m68k/dts/stmark2.dts | 4 configs/stmark2_defconfig | 12 ++-- include/configs/stmark2.h | 6 -- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/m68k/dts/stmark2.dts b/arc

[PATCH 1/3] m68k: add mmc device for mcf5441x

2023-02-23 Thread Angelo Dureghello
From: Angelo Durgehello Add mmc support for the mcf5441x family. Signed-off-by: Angelo Durgehello --- arch/m68k/dts/mcf5441x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/m68k/dts/mcf5441x.dtsi b/arch/m68k/dts/mcf5441x.dtsi index 6769bdc270..6383b50f11 100644 --- a/arch

[PATCH] m68k: use longword-based jumps

2023-02-23 Thread Angelo Dureghello
From: Angelo Durgehello Increasing of binary size requires longword-based jumps. Signed-off-by: Angelo Durgehello --- arch/m68k/cpu/mcf530x/start.S | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/m68k/cpu/mcf530x/start.S b/arch/m68k/cpu/mcf530x/star

[PATCH] board: amcore: fix u-boot mtd partition

2023-02-23 Thread Angelo Dureghello
From: Angelo Durgehello Signed-off-by: Angelo Dureghello --- include/configs/amcore.h | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/include/configs/amcore.h b/include/configs/amcore.h index 648d30a5b2..37c45e7172 100644 --- a/include/configs/amcore.h

Re: [PATCH RFC 0/3] FMP versioning support

2023-02-23 Thread Masahisa Kojima
Hi Heinrich, On Thu, 23 Feb 2023 at 14:53, Heinrich Schuchardt wrote: > > > > Am 22. Februar 2023 11:40:33 MEZ schrieb Masahisa Kojima > : > >This series aims to add the versioning support > >in FMP protocol implementation. > > > >EDK2 reference implementation utilizes the FMP Payload Header > >

Re: [PATCH v5 30/44] lib: Add an SPL config for LIB_UUID

2023-02-23 Thread Simon Glass
Hi Heinrich, On Wed, 22 Feb 2023 at 23:19, Heinrich Schuchardt wrote: > > > > Am 22. Februar 2023 17:34:11 MEZ schrieb Simon Glass : > >This is selected by PARTITION_UUIDS which has a separate option for SPL. > >Add an SPL option for LIB_UUID also, so that we can keep them consistent. > > > >Also

Re: [PATCH v1 19/24] arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA

2023-02-23 Thread Simon Glass
Hi Troy, On Thu, 23 Feb 2023 at 12:24, Troy Kisky wrote: > > On Wed, Feb 22, 2023 at 7:05 AM Tom Rini wrote: >> >> On Tue, Feb 21, 2023 at 05:38:16PM -0800, Troy Kisky wrote: >> >> > This avoid an error with enable_sata_clock when >> > defined(CONFIG_SATA) is changed to CONFIG_IS_ENABLED(SATA).

Re: [PATCH v1 0/3] fdt: Fix mtparts fixup

2023-02-23 Thread Tom Rini
On Thu, Feb 23, 2023 at 11:23:41AM +0100, Patrick DELAUNAY wrote: > Hi, > > On 1/23/23 21:01, Tom Rini wrote: > > On Mon, Jan 23, 2023 at 11:06:06AM +0100, Miquel Raynal wrote: > > > Hi Tom, > > > > > > tr...@konsulko.com wrote on Fri, 13 Jan 2023 14:34:11 -0500: > > > > > > > On Fri, Jan 13, 20

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-23 Thread Tom Rini
On Thu, Feb 23, 2023 at 10:24:44AM +0100, Patrick DELAUNAY wrote: > Hi, > > On 2/17/23 10:28, Michal Suchánek wrote: > > Hello, > > > > On Sun, Feb 12, 2023 at 06:45:36PM -0500, Tom Rini wrote: > > > On Wed, Feb 08, 2023 at 02:50:16PM -0500, Tom Rini wrote: > > > > On Wed, Feb 08, 2023 at 08:11:3

Re: [PATCH v1] configs: j7200: Merge HS and non-HS defconfigs

2023-02-23 Thread Tom Rini
On Wed, Feb 22, 2023 at 09:02:12AM -0600, Andrew Davis wrote: > On 2/22/23 1:56 AM, Manorit Chawdhry wrote: > > K3 devices have runtime type board detection. Make the default defconfig > > include the secure configuration. Then remove the HS specific config. > > > > Non-HS devices will continue to

Re: [PATCH v1 19/24] arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA

2023-02-23 Thread Tom Rini
On Thu, Feb 23, 2023 at 11:23:47AM -0800, Troy Kisky wrote: > On Wed, Feb 22, 2023 at 7:05 AM Tom Rini wrote: > > > On Tue, Feb 21, 2023 at 05:38:16PM -0800, Troy Kisky wrote: > > > > > This avoid an error with enable_sata_clock when > > > defined(CONFIG_SATA) is changed to CONFIG_IS_ENABLED(SATA

Re: [PATCH V2 7/9] gpio/rockchip: rk_gpio support v2 gpio controller

2023-02-23 Thread Vasily Khoruzhick
On Mon, Feb 13, 2023 at 2:30 PM Chris Morgan wrote: > > From: Chris Morgan > > Add support for the newer GPIO controller used by the rk356x series, > as well as the pinctrl device for the rk356x series. The GPIOv2 > controller has a write enable bit for some registers which differs > from the old

Re: [PATCH] lib: bzip2: remove inlining

2023-02-23 Thread Tom Rini
On Thu, Feb 23, 2023 at 10:53:44PM +0100, Heinrich Schuchardt wrote: > > > On 2/23/23 17:40, Tom Rini wrote: > > On Thu, Feb 23, 2023 at 05:39:08PM +0100, Heinrich Schuchardt wrote: > > > On 2/23/23 17:30, Tom Rini wrote: > > > > On Thu, Feb 23, 2023 at 08:15:25AM +0100, Heinrich Schuchardt wrote

Re: [PATCH] lib: bzip2: remove inlining

2023-02-23 Thread Heinrich Schuchardt
On 2/23/23 17:40, Tom Rini wrote: On Thu, Feb 23, 2023 at 05:39:08PM +0100, Heinrich Schuchardt wrote: On 2/23/23 17:30, Tom Rini wrote: On Thu, Feb 23, 2023 at 08:15:25AM +0100, Heinrich Schuchardt wrote: Compiling sandbox_defconfig with CONFIG_CC_OPTIMIZE_FOR_DEBUG=y and gcc 12.2.0-14ubun

Pull request, u-boot-tegra/master

2023-02-23 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into U-Boot/master. Thanks. It has passed 'buildman tegra' w/o error, and Thierry has tested it on his Tegra boards. The following changes since commit 8c3acb726ef083d3d5de12f20318ee0e5070: Merge branch 'master' of https://source.denx.de/u-boot/custodia

Re: [PATCH v6 3/6] tpm: Support boot measurements

2023-02-23 Thread Ilias Apalodimas
Hi Eddie, One last thing... Since you'll send a v7, mind adding the Linaro copyright on tpm-v2.c since it's mostly my code moving around wrt to the TCG stuff? Cheers /Ilias On Thu, 23 Feb 2023 at 20:07, Ilias Apalodimas wrote: > > Hi Eddie, > > [...] > > > > But at least the kernel can find the

Re: [PATCH V2 8/9] arm64: dts: rockchip: add gpio-ranges property to gpio nodes

2023-02-23 Thread Vasily Khoruzhick
On Mon, Feb 13, 2023 at 2:30 PM Chris Morgan wrote: > > From: Chris Morgan > > Add gpio-ranges property to GPIO nodes so that the bank ID can > be correctly derived for each GPIO bank. Should not it be merged into linux first? Otherwise it will be overwritten during the next dts sync with linux.

[PATCH] clk: rockchip: rk3568: add more supported clk rates for sdmmc and emmc

2023-02-23 Thread Vasily Khoruzhick
SDHCI driver may attempt to set 26MHz clock, but clk_rk3568 will return error in this case. Apparently, SDHCI silently ignores the error and as a result eMMC initialization fails. Add 25 MHz and 26 MHz clk rates for sdmmc and emmc on rk3568 to fix that. Signed-off-by: Vasily Khoruzhick --- driv

Re: [PATCH v2 1/1] cmd: bootefi: allocate device-tree copy from high memory

2023-02-23 Thread Ilias Apalodimas
Hi Heinrich, On Thu, Feb 23, 2023 at 08:27:39PM +0100, Heinrich Schuchardt wrote: > The bootefi command creates a copy of the device-tree within the first > 127 MiB of memory. This may lead to overwriting previously loaded binaries > (e.g. kernel, initrd). > > Linux EFI stub itself copies U-Boot's

Re: [RFC PATCH v3 5/9] ram: cadence: add driver for Cadence EDAC

2023-02-23 Thread Bryan Brattlof
Hi Ralph! On February 22, 2023 thus sayeth Ralph Siemsen: > Driver for Cadence EDAC DDR controller, as found in the Renesas RZ/N1. > > Signed-off-by: Ralph Siemsen > --- > > Changes in v3: > - assorted small cleanups > - support version 1.0 silicon (previously #if 0...) > > drivers/ram/Kconfi

Re: [PATCH v4 1/1] arm64: dts: rockchip: rk3568: Add Radxa ROCK 3 Model A board support

2023-02-23 Thread Vasily Khoruzhick
On Thu, Feb 23, 2023 at 7:40 AM Akash wrote: > > HI Vasily, Hi Akash, > I just tried now adding emmc module and able to access it. Thanks for testing! It looks like sdhci driver decides to clock your eMMC at 52MHz which works, while for my eMMC it choses 26MHz. Unfortunately, clk_rk3568 driver

[PATCH] rockchip: rk3288: Use ft_system_setup instead of ft_board_setup

2023-02-23 Thread John Keeping
ft_board_setup() should be availble for use in board files but using it in the rk3288 machine file blocks this functionality. ft_system_setup() is the more appropriate function to use in a machine definition. Signed-off-by: John Keeping --- arch/arm/mach-rockchip/Kconfig | 2 +- arch/ar

[PATCH v2 1/1] cmd: bootefi: allocate device-tree copy from high memory

2023-02-23 Thread Heinrich Schuchardt
The bootefi command creates a copy of the device-tree within the first 127 MiB of memory. This may lead to overwriting previously loaded binaries (e.g. kernel, initrd). Linux EFI stub itself copies U-Boot's copy of the device-tree. This means there is not restriction for U-Boot to place the device

[PATCH v2 1/1] cmd: bootefi: allocate device-tree copy from high memory

2023-02-23 Thread Heinrich Schuchardt
The bootefi command creates a copy of the device-tree within the first 127 MiB of memory. This may lead to overwriting previously loaded binaries (e.g. kernel, initrd). Linux EFI stub itself copies U-Boot's copy of the device-tree. This means there is not restriction for U-Boot to place the device

Re: [PATCH v1 19/24] arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA

2023-02-23 Thread Troy Kisky
On Wed, Feb 22, 2023 at 7:05 AM Tom Rini wrote: > On Tue, Feb 21, 2023 at 05:38:16PM -0800, Troy Kisky wrote: > > > This avoid an error with enable_sata_clock when > > defined(CONFIG_SATA) is changed to CONFIG_IS_ENABLED(SATA). > > > > Signed-off-by: Troy Kisky > > --- > > > > arch/arm/mach-imx

Re: [PATCH 1/1] cmd: bootefi: allocate device-tree copy from high memory

2023-02-23 Thread Alexandre Ghiti
On Thu, Feb 23, 2023 at 7:00 PM Heinrich Schuchardt wrote: > > The bootefi command creates a copy of the device-tree within the first > 127 MiB of memory. This may lead to overwriting previously loaded binaries > (e.g. kernel, initrd). > > Linux EFI stub itself copies U-Boot's copy of the device-t

Re: [PATCH v2 1/2] env: mmc: Clean up macro usage

2023-02-23 Thread Marek Vasut
On 2/23/23 17:32, Tom Rini wrote: On Thu, Feb 23, 2023 at 02:22:51PM +0100, Marek Vasut wrote: On 2/23/23 11:41, Patrick DELAUNAY wrote: Hi Marek, Hi, On 2/9/23 13:30, Marek Vasut wrote: Consistently use 'if (IS_ENABLED(CONFIG_PARTITION_TYPE_GUID))' instead of mix of ifdef. Signed-off-by:

[PATCH v6 5/9] video console: move vidconsole_get_font_size() to test.h

2023-02-23 Thread Dzmitry Sankouski
vidconsole_get_font_size is only used in tests and in font command. It's role in 'font size' command was to only fetch current font name, to be used in select font function. This is redundant, because it's easy to check for empty string, and reuse current name right in select function. Test functi

Re: [PATCH v4 1/1] arm64: dts: rockchip: rk3568: Add Radxa ROCK 3 Model A board support

2023-02-23 Thread Akash
HI Vasily, I just tried now adding emmc module and able to access it. Also Added CMD_REGULATOR support and tried command as you suggested. Pasting logs at https://paste.ubuntu.com/p/Cx6x3CNj9w/ Let me know if I am missing anything here. Thanks, Akash On 23-02-2023 06:01, Vasily Khoruzhick

[PATCH v6 8/9] video console: add 16x32 Terminus font from linux

2023-02-23 Thread Dzmitry Sankouski
Modern mobile phones typically have high pixel density. Bootmenu is hardly readable on those with 8x16 font. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: - edit for runtime configuration Changes for v3: none Charges for v4: N/A Charges for v5: N/A Charges for v6:

Re: [PATCH v3 9/9] video console: add 12x22 console simple font test

2023-02-23 Thread Dzmitry Sankouski
Hi Simon, I investigated the usage of vidconsole_get_font_size, and it turned out, it's only used for tests, and in the `font size` command to provide font name. So I moved vidconsole_get_font_size from the public API to cmd/test.h. I think it'll be better than cluttering public API and driver op

[PATCH v6 1/2] video console: sandbox_defconfig: add 12x22 font

2023-02-23 Thread Dzmitry Sankouski
Add 12x22 font in order to write a test for it. Run savedefconfig. --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges for v6: N/A configs/sandbox_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/sandbox_defconfig b

[PATCH v6 2/2] video console: add 12x22 console simple font test

2023-02-23 Thread Dzmitry Sankouski
Tests fonts wider than a byte. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v2: none Charges for v4: N/A Charges for v5: N/A Charges for v6: - rebase - move sandbox defconfig change to separate patch - run savedefconfig test/dm/video.c | 41

[PATCH v6 4/9] video console: implement multiple fonts configuration

2023-02-23 Thread Dzmitry Sankouski
This needed for unit testing different fonts. Configured fonts are placed in an array of fonts. First font is selected by default upon console probe. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Cha

[PATCH v6 1/9] video console: refactoring and optimization

2023-02-23 Thread Dzmitry Sankouski
- move common code to vidconsole_internal.h and console_core.c - unite probe functions - get rid of code duplications in switch across bpp values - extract common pixel fill logic in two functions one per horizontal and vertical filling - rearrange statements in put_xy* methods in unified way - rep

[PATCH v6 6/9] video console: allow font size configuration at runtime

2023-02-23 Thread Dzmitry Sankouski
Allow font size configuration at runtime for console_simple.c driver. This needed for unit testing different fonts. Configuring is done by `font` command, also used for font selection in true type console. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes

[PATCH v6 3/9] video console: move 8x16 font data in named header

2023-02-23 Thread Dzmitry Sankouski
Consistent font data header names needed to add new fonts. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges for v6: rebase only include/video_font.h | 2 +- include/

[PATCH v6 2/9] video console: add support for fonts wider than 1 byte

2023-02-23 Thread Dzmitry Sankouski
Devices with high ppi may benefit from wider fonts. Current width implementation is limited by 1 byte, i.e. 8 bits. New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all width bytes, thus allowing fonts wider than 1 byte. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass ---

[PATCH v6 00/10] vidconsole: refactoring and support for wider fonts

2023-02-23 Thread Dzmitry Sankouski
Version 6 contains entire rebased patch series. New patch 'move vidconsole_get_font_size() to test.h' added. Version 5 contain minor changes: - move common functions to console-core.c file - remove static keyword from shared functions In version 4, only first patch sent, because review fixes to t

Re: [PATCH v6 3/6] tpm: Support boot measurements

2023-02-23 Thread Ilias Apalodimas
Hi Eddie, [...] > > But at least the kernel can find the EFI config tables properly. > > > Also, note that the ret is efi_status_t and the new function you added > > > returns an int. Just switch the ret here accordingly. > > > > > > > > > * platforms can use different ways to do so. >

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-23 Thread Pali Rohár
On Thursday 23 February 2023 12:11:46 Martin Rowe wrote: > > > > Have you tried booting from eMMC boot partition or eMMC user data > > > > partition? Because all 3 options should work, but I'm not fully sure if > > > > BootROM choose partition from eMMC register or if tries all 3 in some > > > > or

[PATCH 1/1] cmd: bootefi: allocate device-tree copy from high memory

2023-02-23 Thread Heinrich Schuchardt
The bootefi command creates a copy of the device-tree within the first 127 MiB of memory. This may lead to overwriting previously loaded binaries (e.g. kernel, initrd). Linux EFI stub itself copies U-Boot's copy of the device-tree. This means there is not restriction for U-Boot to place the device

Re: [PATCH v6 3/6] tpm: Support boot measurements

2023-02-23 Thread Eddie James
On 2/23/23 03:47, Ilias Apalodimas wrote: On Thu, 23 Feb 2023 at 11:30, Ilias Apalodimas wrote: On Thu, 23 Feb 2023 at 11:02, Ilias Apalodimas wrote: Hi Eddie, final_event->number_of_events++; @@ -350,66 +142,6 @@ static efi_status_t tcg2_agile_log_append(u32 pcr_index, u32 even

Re: [PATCH v2 1/2] env: mmc: Clean up macro usage

2023-02-23 Thread Simon Glass
Hi, On Thu, 23 Feb 2023 at 06:23, Marek Vasut wrote: > > On 2/23/23 11:41, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > > On 2/9/23 13:30, Marek Vasut wrote: > >> Consistently use 'if (IS_ENABLED(CONFIG_PARTITION_TYPE_GUID))' instead of > >> mix of ifdef. > >> > >> Signed-off-by: Marek Vasut

Re: bootefi issue

2023-02-23 Thread Heinrich Schuchardt
On 2/23/23 17:24, Alexandre Ghiti wrote: On Thu, Feb 23, 2023 at 4:57 PM Heinrich Schuchardt wrote: On 2/23/23 14:38, Alexandre Ghiti wrote: Hi Heinrich, I fell into an issue in u-boot, and I struggle to find the correct fix: I'm loading a kernel of 66MB at kernel_addr_r (=0x8400_, this

Re: bootefi issue

2023-02-23 Thread Alexandre Ghiti
On Thu, Feb 23, 2023 at 4:57 PM Heinrich Schuchardt wrote: > > On 2/23/23 14:38, Alexandre Ghiti wrote: > > Hi Heinrich, > > > > I fell into an issue in u-boot, and I struggle to find the correct > > fix: I'm loading a kernel of 66MB at kernel_addr_r (=0x8400_, this > > is the default value) a

[PATCH 3/3] rk3566: radxa-cm3: Enable USB OTG

2023-02-23 Thread Manoj Sai
Enable USB OTG support and update the fastboot buffer address for Radxa Compute Module 3 IO Board. This would help to use fastboot by default. Signed-off-by: Manoj Sai --- configs/radxa-cm3-io-rk3566_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/radxa-cm3-io-rk3566_de

[PATCH 2/3] rockchip: rk356x: update the dwc3_device register offset

2023-02-23 Thread Manoj Sai
update the dwc3_device register offset in board_usb_init() for rk3568 platforms. Signed-off-by: Manoj Sai --- arch/arm/mach-rockchip/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index f1f70c81d0..c7729c966a 100644

[PATCH 1/3] arm: dts: rockchip: rk3566: Enable USB OTG for Radxa CM3

2023-02-23 Thread Manoj Sai
Enable USB OTG support for Radxa Compute Module 3 IO Board Signed-off-by: Manoj Sai --- Note: Above changeset has sent to kernel mailing list, which is currently under review. https://lore.kernel.org/linux-arm-kernel/20230223135929.630787-1-abbaraju.manoj...@amarulasolutions.com/T/#u --- arch/

[PATCH 0/3] USB OTG support for radxa cm3 IO board

2023-02-23 Thread Manoj Sai
Patch 1/3 Enable usb otg nodes in device tree. Patch 2/3 Update dwc3_device register offset of rk3568. Patch 3/3 Enable Usb gadget and update the fastboot address in config. Manoj Sai (3): arm: dts: rockchip: rk3566: Enable USB OTG for Radxa CM3 rockchip: rk356x: update the dwc3_device regist

Re: [PATCH] lib: bzip2: remove inlining

2023-02-23 Thread Tom Rini
On Thu, Feb 23, 2023 at 05:39:08PM +0100, Heinrich Schuchardt wrote: > On 2/23/23 17:30, Tom Rini wrote: > > On Thu, Feb 23, 2023 at 08:15:25AM +0100, Heinrich Schuchardt wrote: > > > Compiling sandbox_defconfig with CONFIG_CC_OPTIMIZE_FOR_DEBUG=y and > > > gcc 12.2.0-14ubuntu1 leads to a build err

Re: [PATCH] lib: bzip2: remove inlining

2023-02-23 Thread Heinrich Schuchardt
On 2/23/23 17:30, Tom Rini wrote: On Thu, Feb 23, 2023 at 08:15:25AM +0100, Heinrich Schuchardt wrote: Compiling sandbox_defconfig with CONFIG_CC_OPTIMIZE_FOR_DEBUG=y and gcc 12.2.0-14ubuntu1 leads to a build error: lib/bzip2/bzlib.c: In function 'BZ2_decompress': lib/bzip2/bzlib.c:72

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

2023-02-23 Thread Tom Rini
On Wed, Feb 22, 2023 at 11:09:00PM +0100, Marek Vasut wrote: > On 2/22/23 19:37, Tom Rini wrote: > > On Wed, Feb 22, 2023 at 04:36:08PM +0100, Marek Vasut wrote: > > > > > The following changes since commit > > > 4eb7c5030d3f3c707c02a64dc8ea90de3da89928: > > > > > >Merge tag 'efi-2023-04-rc3

Re: [PATCH v2] usb: dwc3-uniphier: Select PHY

2023-02-23 Thread Tom Rini
On Thu, Feb 23, 2023 at 05:29:24PM +0100, Marek Vasut wrote: > Make sure the PHY subsystem is activated for the uniphier DWC3 glue > logic, as it depends on PHY implementation there. > > Signed-off-by: Marek Vasut Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signatu

[PATCH] usb: dwc3-meson-g12a: Select PHY instead of imply PHY

2023-02-23 Thread Marek Vasut
Imply means you can turn off the option and expect things to work - "it's a good idea to have X enabled" is when to use imply - "you must have X for Y to work" is when to use select Use "select" here. Signed-off-by: Marek Vasut --- Cc: Mattijs Korpershoek Cc: Neil Armstrong Cc: Tom Rini ---

  1   2   >