Re: [PATCH v2] rtc: Add fallbacks for dm functions

2022-10-21 Thread Tom Rini
On Tue, Oct 11, 2022 at 04:06:35PM -0400, Sean Anderson wrote: > This adds fallbacks for the various dm_rtc_* functions. This allows > common code to use these functions without ifdefs. > > Fixes: c8ce7ba87d1 ("misc: Add support for nvmem cells") > Reviewed-by: Simon Glass > Signed-off-by: Sean

[PATCH] test: Move to a working version of setuptools

2022-10-21 Thread Simon Glass
The version used on Ubuntu 2022.04 produces a number of warnings: /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release Same with: 0.1.43ubuntu1 11.4.1ubuntu1 2.22.1ubu

Re: [PATCH] fdt: change splicing offset detection

2022-10-21 Thread Simon Glass
Hi Elijah, On Sun, 25 Sept 2022 at 22:30, Elijah Conners wrote: > > In fdt_rw.c, -FDT_ERR_BADOFFSET is returned when either the sum of the > old > length and the splice point are less than the splice point, or when the > sum of the old length and the splice point exceed the end of the > pointer.

Re: [PATCH v4 01/21] dm: pci: Fix doc typo first -> next

2022-10-21 Thread Simon Glass
On Thu, 29 Sept 2022 at 03:59, Simon Glass wrote: > > On Sun, 25 Sept 2022 at 02:28, Michal Suchanek wrote: > > > > pci_find_first_device description says it can be used for iteration with > > itself but it should really be with pci_find_next_device > > > > Signed-off-by: Michal Suchanek > > ---

Re: [PATCH v3 1/2] binman: bintool: remove btool_ prefix from btool names

2022-10-21 Thread Simon Glass
Hi Quentin, On Fri, 30 Sept 2022 at 17:49, Simon Glass wrote: > > On Fri, 30 Sept 2022 at 08:37, Quentin Schulz wrote: > > > > From: Quentin Schulz > > > > The binary is looked on the system by the suffix of the packer class. > > This means binman was looking for btool_gzip on the system and no

Re: [PATCH v2 2/5] Makefile: Correct a missing FORCE on the binman rule

2022-10-21 Thread Simon Glass
Hi Pali, On Fri, 21 Oct 2022 at 14:22, Pali Rohár wrote: > > On Friday 21 October 2022 14:17:11 Simon Glass wrote: > > Hi Pali, > > > > On Thu, 20 Oct 2022 at 13:54, Pali Rohár wrote: > > > > > > On Wednesday 19 October 2022 19:55:43 Simon Glass wrote: > > > > Hi Pali, > > > > > > > > On Sun, 16

Re: [PATCH] dm: doc: Fix serial howto u-boot,dm-pre-reloc typo

2022-10-21 Thread Simon Glass
On Sun, 25 Sept 2022 at 07:31, Fabio Estevam wrote: > > Hi Michal, > > On 25/09/2022 10:28, Michal Suchanek wrote: > > > In a couple of places the document says u-boot,pre-reloc but all > > examples show u-boot,dm-pre-reloc, use the latter consistently. > > > > Signed-off-by: Michal Suchanek > >

Re: [PATCH] fdt_support: cosmetic: remove fdt_fixup_nor_flash_size prototype

2022-10-21 Thread Simon Glass
On Tue, 27 Sept 2022 at 02:18, Patrick Delaunay wrote: > > Remove prototype for the removed function fdt_fixup_nor_flash_size. > This patch has no impact as the function is never used. > > Fixes: 98f705c9cefd ("powerpc: remove 4xx support") > Signed-off-by: Patrick Delaunay > --- > > include/fdt

Re: [PATCH] gpio-uclass: fix gpio lookup by label

2022-10-21 Thread Simon Glass
Hello Rasmus, On 03.10.22 11:02, Rasmus Villemoes wrote: > Matching anything that just happens to have the sought-for label as a > prefix is wrong. For example, if the board designer has designated 10 > lines for debug purposes, named "debug1" through "debug10", and we are > looking up "debug1", i

Re: [PATCH 1/2] x86: fix longjmp() implementation

2022-10-21 Thread Simon Glass
On Sat, 1 Oct 2022 at 07:05, Heinrich Schuchardt wrote: > > If longjmp(jmp_buf env, int val) is called with val = 0, the setjmp() > macro must return 1. > > Signed-off-by: Heinrich Schuchardt > --- > arch/x86/cpu/i386/setjmp.S | 5 + > 1 file changed, 5 insertions(+) > Applied to u-boot-dm,

Re: [PATCH 3/3] test: Drop unwanted option in event_dump.py

2022-10-21 Thread Simon Glass
This option is not used. Drop it. Signed-off-by: Simon Glass --- scripts/event_dump.py | 2 -- 1 file changed, 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 1/3] dm: core: Fix lists_bind_fdt() using non-existent of_match

2022-10-21 Thread Simon Glass
The call to device_bind_with_driver_data() passes id->data but if the entry has no of_match then the id has not been set by the selected driver. Normally this passes unnoticed since a previous driver likely had an of_match value, so the id is set to that. Of course it is not correct to pass the id

Re: [PATCH 2/3] event: Drop the path when checking event-list filenames

2022-10-21 Thread Simon Glass
This path does not seem to be present in clang-14 for some reason. Relax the regular expression so that the test works, at least for non-LTO. Signed-off-by: Simon Glass --- test/py/tests/test_event_dump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 1/1] sandbox: typo Fictionnal

2022-10-21 Thread Simon Glass
On Sun, 16 Oct 2022 at 14:17, Heinrich Schuchardt wrote: > > %s/Fictionnal/Fictional/ > > Signed-off-by: Heinrich Schuchardt > --- > board/sandbox/sandbox.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass Applied to u-boot-dm, thanks!

Re: [PATCH 2/2] x86: provide typedef jmp_buf

2022-10-21 Thread Simon Glass
On 10/3/22 03:10, Simon Glass wrote: > Hi Heinrich, > > On Sat, 1 Oct 2022 at 07:05, Heinrich Schuchardt > wrote: >> >> The jmp_buf type is required by the C99 specification. >> Defining it for x86 fixes building the longjmp unit test. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> arch/x86

Re: [PATCH] libfdt: Fix build with python 3.10

2022-10-21 Thread Simon Glass
On Thu, 13 Oct 2022 at 14:43, Michal Suchanek wrote: > > Python 3.10 requires defining PY_SSIZE_T_CLEAN. This will be fixed in > swig 4.10 but it is not clear when it will be released. There was a > warning since python 3.8. > > Link: https://github.com/swig/swig/pull/2277 > > Signed-off-by: Micha

Re: [PATCH v2] tests: Build correct sandbox configuration on 32bit

2022-10-21 Thread Simon Glass
Hi, On Mon, 17 Oct 2022 at 01:28, Michal Suchánek wrote: > > On Sat, Oct 15, 2022 at 10:27:43PM +0200, Heinrich Schuchardt wrote: > > On 10/15/22 21:46, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Sat, 15 Oct 2022 at 13:29, Heinrich Schuchardt > > > wrote: > > > > > > > > > > > > > > >

Re: [PATCH] libfdt: Fix invalid version warning

2022-10-21 Thread Simon Glass
On Thu, 13 Oct 2022 at 14:40, Michal Suchanek wrote: > > python does not like the u-boot- prefix in the version, drop it. > > /usr/lib/python3.10/site-packages/setuptools/dist.py:544: UserWarning: > The version specified ('u-boot-2022.10') is an invalid version, this may > not work as expected wit

Re: [PATCH] dm: tpl: Add fdt address translation support in TPL

2022-10-21 Thread Simon Glass
On Fri, 14 Oct 2022 at 12:05, William Zhang wrote: > > This is needed in the platforms that use "ranges" node property for > address translation in their dts for TPL. > > Signed-off-by: William Zhang > > --- > > drivers/core/Kconfig | 14 ++ > 1 file changed, 14 insertions(+) > Revi

Re: [PATCH v2] binman: Add support for symlinking images

2022-10-21 Thread Simon Glass
On Mon, 17 Oct 2022 at 05:06, Neha Malcom Francis wrote: > > Adding support to symlink an image packaged using binman. > > Signed-off-by: Neha Malcom Francis > --- > > Changes in v2: > - added testing for symlink support > - moved from tools.Run('ln',...) to os.symlink() > > tool

Re: [PATCH] thermal: sandbox: Enable thermal uclass for sandbox64 variant

2022-10-21 Thread Simon Glass
On Tue, 18 Oct 2022 at 02:47, Sughosh Ganu wrote: > > The sandbox64 variant is currently building the sandbox thermal driver > but not the corresponding uclass driver. This results in the sandbox64 > variant not booting with the test device tree. Enable building the > thermal uclass for the sandbo

[PATCH V2 7/7] arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot

2022-10-21 Thread Adam Ford
Now that a unified imx8mn-u-boot is available, remove duplicated code for generating flash.bin and other common imx8mn peripherals. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-venice-u-boot.dtsi b/arch/arm/dts/imx8mn-venice-u-boot.dtsi index 42e4d935cf..aea48f2d79 100644 --- a/arc

[PATCH V2 6/7] arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot

2022-10-21 Thread Adam Ford
Now that a unified imx8mn-u-boot is available, remove duplicated code for generating flash.bin and other common imx8mn peripherals. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi b/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi index ed1ab10ded..a206831

[PATCH V2 5/7] arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot

2022-10-21 Thread Adam Ford
Now that a unified imx8mn-u-boot is available, remove duplicated code for generating flash.bin and other common imx8mn peripherals. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-evk-u-boot.dtsi index c4b83d3f7e..6c6c949f43 100644 --- a/arch/arm/

[PATCH V2 4/7] arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot

2022-10-21 Thread Adam Ford
Now that a unified imx8mn-u-boot is available, remove duplicated code for generating flash.bin and other common imx8mn peripherals. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi index 3fdb20cb35..54f3ebe88b 100644 --- a

[PATCH V2 3/7] arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot

2022-10-21 Thread Adam Ford
Now that a unified imx8mn-u-boot is available, remove duplicated code for generating flash.bin and other common imx8mn peripherals. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi b/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi index c4ae7ca4f3..3967e

[PATCH V2 2/7] arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot

2022-10-21 Thread Adam Ford
Now that a unified imx8mn-u-boot is available, remove duplicated code for generating flash.bin and other common imx8mn peripherals. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi index 0efa6862eb..3180d57239 100644 -

[PATCH V2 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi

2022-10-21 Thread Adam Ford
Multiple boards create duplicate entries in their respective -u-boot.dtsi files which all basically do the same thing. To consolidate these and make it easier to make improvements going forward, consolidate them all into one place. This file creates a flash.bin image using binman, and supports LPD

[PATCH V2 0/7] arm: dts: Create common imx8mn-u-boot

2022-10-21 Thread Adam Ford
Every imx8mn board has a bunch of similar entries on their respective board-u-boot.dtsi file to make the board bootable. Instead of maintaining multiple files with duplicate code, have them all point to a new, common file. This file includes the necessary nodes that were common to nearly all board

Re: [PATCH v2 1/2] image: Fix string truncation warning

2022-10-21 Thread Tom Rini
On Thu, Oct 13, 2022 at 10:16:56AM +0200, Michal Suchanek wrote: > In file included from ../tools/imagetool.h:24, > from ../tools/default_image.c:16: > In function ‘image_set_name’, > inlined from ‘image_set_header’ at ../tools/default_image.c:133:2: > ../include/image.h:786:9

Re: [PATCH v2 4/4] cmd: source: Support specifying config name

2022-10-21 Thread Sean Anderson
On 10/21/22 4:17 PM, Simon Glass wrote: > On Thu, 20 Oct 2022 at 13:24, Sean Anderson wrote: >> >> As discussed previously [1,2], the source command is not safe to use with >> verified boot unless there is a key with required = "images" (which has its >> own problems). This is because if such a ke

Re: [PATCH v2 2/5] Makefile: Correct a missing FORCE on the binman rule

2022-10-21 Thread Pali Rohár
On Friday 21 October 2022 14:17:11 Simon Glass wrote: > Hi Pali, > > On Thu, 20 Oct 2022 at 13:54, Pali Rohár wrote: > > > > On Wednesday 19 October 2022 19:55:43 Simon Glass wrote: > > > Hi Pali, > > > > > > On Sun, 16 Oct 2022 at 04:16, Pali Rohár wrote: > > > > > > > > On Tuesday 11 October 2

Re: [PATCH v2 2/5] Makefile: Correct a missing FORCE on the binman rule

2022-10-21 Thread Simon Glass
Hi Pali, On Thu, 20 Oct 2022 at 13:54, Pali Rohár wrote: > > On Wednesday 19 October 2022 19:55:43 Simon Glass wrote: > > Hi Pali, > > > > On Sun, 16 Oct 2022 at 04:16, Pali Rohár wrote: > > > > > > On Tuesday 11 October 2022 23:35:22 Masahiro Yamada wrote: > > > > On Tue, Oct 11, 2022 at 11:16

Re: [PATCH v2] mkimage: fit: Fix signing of configs with external data

2022-10-21 Thread Simon Glass
On Thu, 20 Oct 2022 at 13:41, Sean Anderson wrote: > > Just like we exclude data-size, data-position, and data-offset from > fit_config_check_sig, we must exclude them while signing as well. > > While we're at it, use the FIT_DATA_* defines for fit_config_check_sig > as welll. > > Fixes: 8edecd311

Re: [PATCH v2 1/4] test: Add test for source command

2022-10-21 Thread Simon Glass
On Thu, 20 Oct 2022 at 13:24, Sean Anderson wrote: > > This adds a basic test for FIT image handling by the source command. > It's a python test becase we need to run mkimage. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > > test/py/tests/source.its | 43

Re: [PATCH v2 4/4] cmd: source: Support specifying config name

2022-10-21 Thread Simon Glass
On Thu, 20 Oct 2022 at 13:24, Sean Anderson wrote: > > As discussed previously [1,2], the source command is not safe to use with > verified boot unless there is a key with required = "images" (which has its > own problems). This is because if such a key is absent, signatures are > verified but not

Re: [u-boot][PATCH v3 2/4] scripts: Makefile.spl: Enable memory drivers to be built for SPL

2022-10-21 Thread Simon Glass
On Thu, 20 Oct 2022 at 07:31, Roger Quadros wrote: > > Introduce CONFIG_SPL_MEMORY to allow Memory drivers to > be built for SPL. > > Signed-off-by: Roger Quadros > --- > common/spl/Kconfig | 7 +++ > scripts/Makefile.spl | 1 + > 2 files changed, 8 insertions(+) Reviewed-by: Simon Glass

Re: [PATCH] i2c: i2c-gpio: add newline

2022-10-21 Thread Simon Glass
On Thu, 20 Oct 2022 at 08:28, Sergei Antonov wrote: > > Add newline at the end of the printed string. > > Signed-off-by: Sergei Antonov > --- > drivers/i2c/i2c-gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/2] core: Enable DM by default

2022-10-21 Thread Tom Rini
On Fri, 14 Oct 2022 07:50:19 -0400, Tom Rini wrote: > There are no longer any platforms which do not enable DM, move this to a > def_bool y and remove the check in the Makefile. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v3 11/19] imx: kontron-sl-mx8mm: Remove 100mt DDR setpoint

2022-10-21 Thread Tim Harvey
On Wed, Aug 24, 2022 at 7:01 AM Frieder Schrempf wrote: > > From: Frieder Schrempf > > The new stable configuration is missing the 100mt setpoint, remove > it before updating the config to make sure the changes are separated > cleanly. > > Signed-off-by: Frieder Schrempf > Reviewed-by: Fabio Est

Re: [PATCH] arm: mach-omap2: Move common image process functions out of board files

2022-10-21 Thread Tom Rini
On Thu, Oct 20, 2022 at 12:12:19PM -0500, Andrew Davis wrote: > The functions board_fit_image_post_process() and board_tee_image_process() > are not actually board specific (despite their names). Any board using the > OMAP2 family can use these functions. Move them to boot-common.c. > > Signed-of

Re: [maemo-leste] Broken u-boot on n900 hw (possibly CONFIG_POSITION_INDEPENDENT)

2022-10-21 Thread Pali Rohár
On Thursday 20 October 2022 22:06:58 Pali Rohár wrote: > On Monday 10 October 2022 23:30:21 Sicelo wrote: > > On Sun, Oct 09, 2022 at 09:33:17PM +0200, Pali Rohár wrote: > > > Hello! > > > > > > Current u-boot from master branch does not work on n900 hw. It does not > > > show anything on display,

Re: [PATCH] freescale: Remove Rajesh Bhagat MAINTAINERS

2022-10-21 Thread Tom Rini
On Tue, Oct 18, 2022 at 02:15:47PM -0400, Sean Anderson wrote: > When sending out this email, I noticed that Ashish's (LS1088 board > maintainer) email also bounces. > > --Sean > > On 10/18/22 2:12 PM, Sean Anderson wrote: > > Rajesh's email bounces. Remove his email from all boards he maintains.

Re: [PATCH v15 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-21 Thread Ilias Apalodimas
On Fri, Oct 21, 2022 at 09:57:45PM +0530, Sughosh Ganu wrote: > hi Ilias, > > On Fri, 21 Oct 2022 at 20:33, Ilias Apalodimas > wrote: > > > > Hi Sughosh > > > > > +{ > > > + int ret; > > > + u32 len, blk_start, blkcnt; > > > + struct disk_partition info; > > > + > > > + ALLOC_CACH

Re: [PATCH v15 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-10-21 Thread Sughosh Ganu
hi Ilias, On Fri, 21 Oct 2022 at 20:38, Ilias Apalodimas wrote: > > Hi Sughosh, > > > > > #include > > #include > > @@ -44,6 +53,96 @@ static int fwu_get_dev_mdata(struct udevice **dev, > > struct fwu_mdata *mdata) > > return ret; > > } > > > > +static int trial_counter_update(u16 *tr

Re: [PATCH v15 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-21 Thread Sughosh Ganu
hi Ilias, On Fri, 21 Oct 2022 at 20:33, Ilias Apalodimas wrote: > > Hi Sughosh > > > +{ > > + int ret; > > + u32 len, blk_start, blkcnt; > > + struct disk_partition info; > > + > > + ALLOC_CACHE_ALIGN_BUFFER_PAD(struct fwu_mdata, mdata_aligned, 1, > > +

Re: Requiring SPL_DM for new boards?

2022-10-21 Thread Tom Rini
On Fri, Oct 14, 2022 at 09:56:44AM -0600, Simon Glass wrote: > Hi, > > What do people think about requiring SPL_DM for new boards? Would that > cause any problems? > > There is not much use of of-platdata (compiling the DT into C to save > space) - is that because it doesn't work for people? >

Re: Wolfgang Denk

2022-10-21 Thread Giulio Benetti
On 21/10/22 17:11, Stefano Babic wrote: Dear U-Boot community, it is my very sad duty to inform you that Wolfgang Denk, the father of U-Boot, passed away last week. We have lost a great developer and a very good friend. I met Wolfgang the first time quite 25 years ago, when we worked for the

Re: Wolfgang Denk

2022-10-21 Thread Jagan Teki
On Fri, Oct 21, 2022 at 8:41 PM Stefano Babic wrote: > > Dear U-Boot community, > > it is my very sad duty to inform you that Wolfgang Denk, the father of > U-Boot, passed away last week. We have lost a great developer and a very > good friend. > > I met Wolfgang the first time quite 25 years ago,

Re: Wolfgang Denk

2022-10-21 Thread Michael Nazzareno Trimarchi
Hi all On Fri, Oct 21, 2022 at 5:11 PM Stefano Babic wrote: > > Dear U-Boot community, > > it is my very sad duty to inform you that Wolfgang Denk, the father of > U-Boot, passed away last week. We have lost a great developer and a very > good friend. > > I met Wolfgang the first time quite 25 ye

Re: Wolfgang Denk

2022-10-21 Thread Oleh Kravchenko
Sad to hear it. Rest in peace Wolfgang Denk. -- Best regards, Oleh Kravchenko > 21 жовт. 2022 р. о 18:11 Stefano Babic пише: > > Dear U-Boot community, > > it is my very sad duty to inform you that Wolfgang Denk, the father of > U-Boot, passed away last week. We have lost a great developer

[PATCH] cmd: mtd: check if a block has to be skipped or erased

2022-10-21 Thread Dario Binacchi
As reported by patch [1], the `mtd erase' command should not erase bad blocks. To force bad block erasing you have to use the `mtd erase.dontskipbad' command. This patch tries to fix the same issue without modifying code taken from the linux kernel, in order to make further upgrades easier. [1]

Wolfgang Denk

2022-10-21 Thread Stefano Babic
Dear U-Boot community, it is my very sad duty to inform you that Wolfgang Denk, the father of U-Boot, passed away last week. We have lost a great developer and a very good friend. I met Wolfgang the first time quite 25 years ago, when we worked for the same company. I was hired as consultant

Re: [PATCH v15 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-10-21 Thread Ilias Apalodimas
Hi Sughosh, > > #include > #include > @@ -44,6 +53,96 @@ static int fwu_get_dev_mdata(struct udevice **dev, struct > fwu_mdata *mdata) > return ret; > } > > +static int trial_counter_update(u16 *trial_state_ctr) > +{ > + bool delete; > + u32 var_attr; > + efi_status_t s

Re: [PATCH v15 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-21 Thread Ilias Apalodimas
Hi Sughosh > +{ > + int ret; > + u32 len, blk_start, blkcnt; > + struct disk_partition info; > + > + ALLOC_CACHE_ALIGN_BUFFER_PAD(struct fwu_mdata, mdata_aligned, 1, > + desc->blksz); > + > + if (!mdata) > + return -ENOMEM; ENOMEM i

Re: [PATCH v15 15/15] FWU: doc: Add documentation for the FWU feature

2022-10-21 Thread Ilias Apalodimas
On Fri, Oct 21, 2022 at 06:16:08PM +0530, Sughosh Ganu wrote: > Add documentation for the FWU Multi Bank Update feature. The document > describes the steps needed for setting up the platform for the > feature, as well as steps for enabling the feature on the platform. > > Signed-off-by: Sughosh Ga

Re: [PATCH] cmd: nand: Extend nand info to print ecc information

2022-10-21 Thread Tom Rini
On Fri, Oct 21, 2022 at 03:05:48PM +0200, Michael Nazzareno Trimarchi wrote: > HI Tom > > On Thu, Sep 22, 2022 at 3:43 PM Dario Binacchi > wrote: > > > > Hi Michael, > > > > On Thu, Sep 22, 2022 at 3:39 PM Michael Trimarchi > > wrote: > > > > > > Extract the information about ecc strength and ec

Re: [PATCH] cmd: nand: Extend nand info to print ecc information

2022-10-21 Thread Michael Nazzareno Trimarchi
HI Tom On Thu, Sep 22, 2022 at 3:43 PM Dario Binacchi wrote: > > Hi Michael, > > On Thu, Sep 22, 2022 at 3:39 PM Michael Trimarchi > wrote: > > > > Extract the information about ecc strength and ecc step size > > from mtd controller. This information is usefull to check if > > what we think as e

Re: [PATCH] rockchip: rk3328: Set VOP QoS to high priority

2022-10-21 Thread Nicolas Frattaroli
On Samstag, 23. Juli 2022 13:28:36 CEST Nicolas Frattaroli wrote: > The default priority for the quality of service for the video > output results in unsightly glitches on the output whenever there > is memory pressure on the system, which happens a lot. > > This sets the VOP QoS to high priority,

Re: [PULL] u-boot-at91-fixes-2023.01-a

2022-10-21 Thread Tom Rini
On Fri, Oct 21, 2022 at 08:46:51AM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-at91-fixes-2023.01-a , the first set of at91 > fixes for the 2023.01 cycle. > > This small fixes set includes an indentation fix for sam9x60 DT and one > name for one pin for sa

[PATCH v15 15/15] FWU: doc: Add documentation for the FWU feature

2022-10-21 Thread Sughosh Ganu
Add documentation for the FWU Multi Bank Update feature. The document describes the steps needed for setting up the platform for the feature, as well as steps for enabling the feature on the platform. Signed-off-by: Sughosh Ganu Acked-by: Etienne Carriere --- Changes since V14: * s/updation/upda

[PATCH v15 14/15] mkeficapsule: Add support for setting OEM flags in capsule header

2022-10-21 Thread Sughosh Ganu
Add support for setting OEM flags in the capsule header. As per the UEFI specification, bits 0-15 of the flags member of the capsule header can be defined per capsule GUID. The oemflags will be used for the FWU Multi Bank update feature, as specified by the Dependable Boot specification[1]. Bit 15

[PATCH v15 11/15] FWU: cmd: Add a command to read FWU metadata

2022-10-21 Thread Sughosh Ganu
Add a command to read the metadata as specified in the FWU specification and print the fields of the metadata. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Etienne Carriere --- Changes since V14: None cmd/Kconfig | 6 +++ cmd/Makefile

[PATCH v15 13/15] mkeficapsule: Add support for generating empty capsules

2022-10-21 Thread Sughosh Ganu
The Dependable Boot specification[1] describes the structure of the firmware accept and revert capsules. These are empty capsules which are used for signalling the acceptance or rejection of the updated firmware by the OS. Add support for generating these empty capsules. [1] - https://git.codelin

[PATCH v15 10/15] FWU: Add support for the FWU Multi Bank Update feature

2022-10-21 Thread Sughosh Ganu
The FWU Multi Bank Update feature supports updating firmware images to one of multiple sets(also called banks) of images. The firmware images are clubbed together in banks, with the system booting images from the active bank. Information on the images such as which bank they belong to is stored as

[PATCH v15 12/15] test: dm: Add test cases for FWU Metadata uclass

2022-10-21 Thread Sughosh Ganu
Add test cases for accessing the FWU Metadata on the sandbox platform. The sandbox platform also uses the metadata access driver for GPT partitioned block devices. The FWU feature will be tested on the sandbox64 variant with a raw capsule. Remove the FIT capsule testing from sandbox64 defconfig --

[PATCH v15 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-10-21 Thread Sughosh Ganu
The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metadata in sync. The spec requires that the Updat

[PATCH v15 08/15] event: Add an event for main_loop

2022-10-21 Thread Sughosh Ganu
Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas Acked-by: Etienne Carriere --- Cha

[PATCH v15 07/15] FWU: STM32MP1: Add support to read boot index from backup register

2022-10-21 Thread Sughosh Ganu
The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to U-Boot. On the STM32MP157C-DK2 board, this value

[PATCH v15 05/15] stm32mp1: Add image information for capsule updates

2022-10-21 Thread Sughosh Ganu
Enabling capsule update functionality on the platform requires populating information on the images that are to be updated using the functionality. Do so for the DK2 board. Signed-off-by: Sughosh Ganu Reviewed-by: Patrick Delaunay Reviewed-by: Ilias Apalodimas Reviewed-by: Etienne Carriere ---

[PATCH v15 06/15] FWU: Add helper functions for accessing FWU metadata

2022-10-21 Thread Sughosh Ganu
Add weak functions for getting the update index value and dfu alternate number needed for FWU Multi Bank update functionality. The current implementation for getting the update index value is for platforms with 2 banks. If a platform supports more than 2 banks, it can implement it's own function.

[PATCH v15 02/15] FWU: Add FWU metadata structure and driver for accessing metadata

2022-10-21 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and a driver model uclass which provides functions to access the metadata. These are generic API's, and implement

[PATCH v15 04/15] stm32mp1: Add a node for the FWU metadata device

2022-10-21 Thread Sughosh Ganu
The FWU metadata structure is accessed through the driver model interface. On the stm32mp157c dk2 and ev1 boards, the FWU metadata is stored on the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file for accessing the metadata structure. Signed-off-by: Sughosh Ganu Reviewed-by: Patri

[PATCH v15 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-21 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a block device which is formatted with GPT

[PATCH v15 01/15] dt/bindings: Add bindings for GPT based FWU Metadata storage device

2022-10-21 Thread Sughosh Ganu
Add bindings needed for accessing the FWU metadata partitions. These include the compatible string which point to the access method and the actual device which stores the FWU metadata. The current patch adds basic bindings needed for accessing the metadata structure on GPT partitioned block device

[PATCH v15 00/15] FWU: Add FWU Multi Bank Update feature support

2022-10-21 Thread Sughosh Ganu
The patchset adds support for the FWU Multi Bank Update[1] feature. Certain aspects of the Dependable Boot[2] specification have also been implemented. The FWU multi bank update feature is used for supporting multiple sets(also called banks) of firmware image(s), allowing the platform to boot fr

Re: Pending imx patch sets

2022-10-21 Thread Stefano Babic
On 21.10.22 14:22, Marcel Ziswiler wrote: Hi Stefano On Fri, 2022-10-21 at 12:05 +0200, Stefano Babic wrote: Hi Marcel, I have picked up several of yours as first attempt to merge most i.MX, CI is running. What is missing, it will go in the "second attempt": Okay, thanks. On 21.10.22 11:55

Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot

2022-10-21 Thread Adam Ford
On Fri, Oct 21, 2022 at 7:27 AM Stefano Babic wrote: > > Hi Adam, > > On 21.10.22 14:10, Adam Ford wrote: > > On Sun, Sep 11, 2022 at 11:36 AM Adam Ford wrote: > >> > >> On Mon, Aug 15, 2022 at 6:43 AM Adam Ford wrote: > >>> > >>> On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam wrote: > > >>

Re: Pull request: u-boot-rockchip-20221020

2022-10-21 Thread Tom Rini
On Fri, Oct 21, 2022 at 09:28:41AM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip updates: > - dts update and sync for rk356x, rk3288, rk3399 from Linux; > - Add rk3399 EAIDK-610 board support; > - Update for puma-rk3399 board; > - some fix and typo fix in different drivers; > >

Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot

2022-10-21 Thread Stefano Babic
Hi Adam, On 21.10.22 14:10, Adam Ford wrote: On Sun, Sep 11, 2022 at 11:36 AM Adam Ford wrote: On Mon, Aug 15, 2022 at 6:43 AM Adam Ford wrote: On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam wrote: Hi Adam, On Sun, Jul 31, 2022 at 8:46 PM Adam Ford wrote: Every imx8mn board has a bun

Re: Pending imx patch sets

2022-10-21 Thread Marcel Ziswiler
Hi Stefano On Fri, 2022-10-21 at 12:05 +0200, Stefano Babic wrote: > Hi Marcel, > > I have picked up several of yours as first attempt to merge most i.MX, > CI is running. What is missing, it will go in the "second attempt": Okay, thanks. > On 21.10.22 11:55, Marcel Ziswiler wrote: > > Hi Stef

Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot

2022-10-21 Thread Michael Nazzareno Trimarchi
Hi On Fri, Oct 21, 2022 at 2:10 PM Adam Ford wrote: > > On Sun, Sep 11, 2022 at 11:36 AM Adam Ford wrote: > > > > On Mon, Aug 15, 2022 at 6:43 AM Adam Ford wrote: > > > > > > On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam wrote: > > > > > > > > Hi Adam, > > > > > > > > On Sun, Jul 31, 2022 at 8

Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot

2022-10-21 Thread Adam Ford
On Sun, Sep 11, 2022 at 11:36 AM Adam Ford wrote: > > On Mon, Aug 15, 2022 at 6:43 AM Adam Ford wrote: > > > > On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam wrote: > > > > > > Hi Adam, > > > > > > On Sun, Jul 31, 2022 at 8:46 PM Adam Ford wrote: > > > > > > > > Every imx8mn board has a bunch of

Re: [PATCH 1/4] ARM: imx8m: Deduplicate CAAM init with arch_misc_init() call

2022-10-21 Thread Stefano Babic
Hi Marek, just for tracking. ARCH_MISC_INIT was missing for imx8mn_ddr4_evk, I added myself to have a clean build and applied. Stefano On 21.09.22 07:31, Peng Fan wrote: On 9/20/2022 3:41 AM, Marek Vasut wrote: Instead of duplicating code implemented by i.MX8M version of arch_misc_init()

[PATCH v2] board: gateworks: venice: update GW74xx PMIC config

2022-10-21 Thread sbabic
> Update the GW74xx PMIC configuration: > - increase VDD_SOC DVS1 to 0.85V per datasheet > - increase VDD_SOC DVS0 to 0.95V before first DRAM access > - increase VDD_ARM DVS0 to 0.95V to support kernel overdrive voltage (OD) > - remove unnecessary changes to VDD_DRAM as we don't use 3GHz DRAM >

[PATCH v3 14/19] imx: kontron-sl-mx8mm: Adjust devicetree names, compatibles and model strings

2022-10-21 Thread sbabic
> From: Frieder Schrempf > This adjusts the names of the boards and SoMs to the official naming > used by Kontron marketing. These changes also affect devicetree > names and compatibles. The same changes have been submitted to the > Linux kernel. > Signed-off-by: Frieder Schrempf > Reviewed-by: F

[PATCH 4/4] ARM: dts: imx8m: imx8mm-mx8menlo: Enable SPL SDP support

2022-10-21 Thread sbabic
> Enable DM USB, DM PHY and USB gadget support in imx8mm-mx8menlo SPL > to let the board continue SDP loading of second stage after the first > stage was loaded by BootROM SDP implementation. It is not possible to > jump back into BootROM v1 and let the BootROM implementation continue > the SDP loa

[PATCH] imx8mn-venice-u-boot: Fix broken boot

2022-10-21 Thread sbabic
> When the imx8mm.dtsi file was pulled in from Linux, the UARTs > were moved into an spba sub-node which wasn't being included > in the SPL device tree. This meant the references to the UART > weren't being handled properly and when booting the system would > constantly reboot. Fix this by adding

[PATCH] arm: dts: imx8mm-venice-gw7902: add LTE modem gpios

2022-10-21 Thread sbabic
> Add missing LTE_PWR# and LTE_RST gpio pinmux. > Signed-off-by: Tim Harvey > Acked-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[PATCH 1/4] clk-imx8mm: Only build PWM clocks in non-SPL code

2022-10-21 Thread sbabic
> PWM is not used inside SPL, so do not define the PWM clocks inside > SPL to reduce the final SPL binary size. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Softwa

[PATCH] ARM: dts: imx8mm: Swap i.MX8M Mini Menlo board UARTs back

2022-10-21 Thread sbabic
> The first production revision of the MX8M Mini Menlo board implements > a hardware change which swaps console UART and another UART connector. > Implement the swap, which maps the console UART back to the way Verdin > console is mapped. > Signed-off-by: Marek Vasut Applied to u-boot-imx, master,

[PATCH v3 04/19] imx: kontron-sl-mx8mm: Increase CONFIG_SYS_CBSIZE to 2K

2022-10-21 Thread sbabic
> From: Frieder Schrempf > This allows using the command line with longer lines like > large scripts in env variables. > Signed-off-by: Frieder Schrempf > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v3 13/19] imx: kontron-sl-mx8mm: Prepare for other i.MX8MM SoM types

2022-10-21 Thread sbabic
> From: Frieder Schrempf > This sets an env variable 'som_type' from the board code. It can > later be used by environment scripts, e. g. to select the proper > devicetree for the board. > Signed-off-by: Frieder Schrempf > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best

[PATCH v3 11/19] imx: kontron-sl-mx8mm: Remove 100mt DDR setpoint

2022-10-21 Thread sbabic
> From: Frieder Schrempf > The new stable configuration is missing the 100mt setpoint, remove > it before updating the config to make sure the changes are separated > cleanly. > Signed-off-by: Frieder Schrempf > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, St

[PATCH v3 05/19] imx: kontron-sl-mx8mm: Enable MTD command

2022-10-21 Thread sbabic
> From: Frieder Schrempf > Enable the MTD command to be used for the SPI NOR on the SoM. > Signed-off-by: Frieder Schrempf > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH 3/4] ARM: imx8m: verdin-imx8mm: Drop bogus content from spl_board_init()

2022-10-21 Thread sbabic
> The current implementation of spl_board_init() USB boot handling is > not correct, the MX8MM BootROM v1 does not support SDP load when > re-entered from U-Boot SPL, it is up to U-Boot to perform the next > stage load using its own internal CI gadget driver and SDP protocol > implementation. Drop

[PATCH v3 12/19] imx: kontron-sl-mx8mm: Use new LPDDR4 config parameters

2022-10-21 Thread sbabic
> From: Frieder Schrempf > These parameters are needed for stable performance on new hardware > with Nanya LPDDR4 chips. > Signed-off-by: Frieder Schrempf > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ==

[PATCH 2/2] imx8mm_evk: Add Serial Download Protocol support

2022-10-21 Thread sbabic
> Add Serial Download Protocol support as it is a useful method to > load flash.bin to RAM and run it via 'uuu'. > With this patch, it is possible to start both U-Boot SPL and U-Boot > proper using the following 'uuu'command: > $ uuu -brun spl flash.bin > Based on a patch from Marek Vasut for the i

[PATCH 1/2] board: verdin-imx8mm: add call to ft_common_board_setup

2022-10-21 Thread sbabic
> From: Philippe Schenker > With this call the following attributes get set to the device-tree > and are then accessible from linux in /proc/device-tree/ > serial-number: The serial number that is stored in config-block > toradex,board-rev: The version of the module (e.g. V1.1A) > toradex,product-

[PATCH] mmc: fsl_esdhc: fix problem when using clk driver

2022-10-21 Thread sbabic
> From: Ye Li > Move init_clk_usdhc to non-clk driver case, since assigned-clocks properties > will initialize the clocks by clk driver. > Signed-off-by: Ye Li > Signed-off-by: Marek Vasut > Reviewed-by: Jaehoon Chung Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

  1   2   >