Re: [PATCHv5 6/6] test: py: add initial coverage for scp03 cmd

2021-02-12 Thread Simon Glass
Hi Jorge, On Tue, 9 Feb 2021 at 13:10, Jorge Ramirez-Ortiz wrote: > > From: Igor Opaniuk > > Add initial test coverage for SCP03 command. > > Signed-off-by: Igor Opaniuk > --- > test/py/tests/test_scp03.py | 27 +++ > 1 file changed, 27 insertions(+) > create mode 1006

Re: [PATCH v4 10/16] dm: gpio: Add a way to update flags

2021-02-12 Thread Simon Glass
Hi Patrick, On Wed, 10 Feb 2021 at 01:38, Patrick DELAUNAY wrote: > > > On 2/9/21 5:28 AM, Simon Glass wrote: > > Hi Patrick, > > > > On Mon, 8 Feb 2021 at 10:33, Patrick DELAUNAY > > wrote: > >> Hi Simon, > >> > >> 2 minor remarks, > >> > >> On 2/5/21 5:22 AM, Simon Glass wrote: > >>> It is con

Re: [PATCH] clk: fix clk_get_rate() documentation

2021-02-12 Thread Simon Glass
On Fri, 12 Feb 2021 at 18:17, Giulio Benetti wrote: > > On 2/13/21 12:25 AM, Sean Anderson wrote: > > On 2/10/21 12:37 PM, Giulio Benetti wrote: > >> clk_get_rate() can't and doesn't return -ve on error, it actually returns 0 > >> on error or a value greater than 0 on success. So let's fix its > >

Re: [PATCHv5 5/6] sandbox: imply SCP03 and CMD_SCP03

2021-02-12 Thread Simon Glass
On Tue, 9 Feb 2021 at 13:10, Jorge Ramirez-Ortiz wrote: > > From: Igor Opaniuk > > Enable by default SCP_03/CMD_SCP03 for sandbox target. > > Signed-off-by: Igor Opaniuk > --- > arch/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCHv5 4/6] doc: describe the scp03 command

2021-02-12 Thread Simon Glass
On Tue, 9 Feb 2021 at 13:10, Jorge Ramirez-Ortiz wrote: > > The Secure Channel Protocol 03 command sends control requests > (enable/provision) to the TEE implementing the protocol between the > processor and the secure element. > > Signed-off-by: Jorge Ramirez-Ortiz > --- > doc/usage/index.rst |

Re: [PATCH] tools: fdtgrep: Use unsigned chars for arrays

2021-02-12 Thread Simon Glass
On Wed, 10 Feb 2021 at 17:43, Samuel Dionne-Riel wrote: > > Otherwise, values over 127 end up prefixed with ff. > > Signed-off-by: Samuel Dionne-Riel > Cc: Simon Glass > --- > > Minimal reproduction: > > ``` > // repro.dts > /dts-v1/; > > / { > ra = [ 7f ]; > rb = [ 80 ]; > }; > ```

Re: [PATCH 1/1] buildman: 'Thread' object has no attribute 'isAlive'

2021-02-12 Thread Simon Glass
On Thu, 11 Feb 2021 at 04:03, Heinrich Schuchardt wrote: > > The isAlive() method was deprecated in Python 3.8 and has been removed in > Python 3.9. See https://bugs.python.org/issue37804. Use is_alive() instead. > > Since Python 2.6 is_alive() has been a synonym for isAlive(). So there > should b

Re: [PATCH v2 1/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-12 Thread Jesse T
sry for top posting I'm on my phone just b4 bed. any way the comment in the header file says it returns an int. I don't remember what it actually returns but it should have more clarity. as for moving all the bit manipulation to a separate init function , I would essentially have to remake the poll

Re: [PATCH v2 1/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-12 Thread Giulio Benetti
Hi Jesse, On 2/11/21 7:54 PM, Jesse T wrote: [SNIP] >>> +static int imx_gpt_timer_probe(struct udevice *dev) >>> +{ >>> +    struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); >>> +    struct imx_gpt_timer_priv *priv = dev_get_priv(dev); >>> +    struct imx_gpt_

Re: [PATCH] clk: fix clk_get_rate() documentation

2021-02-12 Thread Giulio Benetti
On 2/13/21 12:25 AM, Sean Anderson wrote: On 2/10/21 12:37 PM, Giulio Benetti wrote: clk_get_rate() can't and doesn't return -ve on error, it actually returns 0 on error or a value greater than 0 on success. So let's fix its documentation. Signed-off-by: Giulio Benetti --- include/clk.h | 2

Re: [PATCH] clk: fix clk_get_rate() documentation

2021-02-12 Thread Sean Anderson
On 2/10/21 12:37 PM, Giulio Benetti wrote: clk_get_rate() can't and doesn't return -ve on error, it actually returns 0 on error or a value greater than 0 on success. So let's fix its documentation. Signed-off-by: Giulio Benetti --- include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

Re: [GIT] Pull request: u-boot-dfu (12.02.2021)

2021-02-12 Thread Marek Vasut
On 2/12/21 7:25 PM, Lukasz Majewski wrote: Dear Marek, Please find this PR with fastboot improvement code rebased on top of u-boot-denx-usb tree. CI: https://dev.azure.com/lukma633/U-Boot/_build/results?buildId=28&view=results (There shall be at least one follow up PR with work done by Sean).

[PATCH v2] serial: s5p: Allow independent selection

2021-02-12 Thread Mark Kettenis
Currently support for the Samsung serial port driver is part of CONFIG_S5P which controls selection of several drivers for the S5P family. Give it its own config option such that we can use it on other SoCs as well. Signed-off-by: Mark Kettenis --- v2: fix Kconfig drivers/serial/Kconfig | 7

Re: [PULL] u-boot-atmel-fixes-2021.04-a

2021-02-12 Thread Tom Rini
On Fri, Feb 12, 2021 at 09:14:59AM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-atmel-fixes-2021.04-a , the first set of fixes > for atmel for 2021.04 cycle. > > This small PR includes just two fixes but very important: one revert in > the clk subsystem whi

Re: [PATCH] fs: ext4: Add metadata checksums support

2021-02-12 Thread Tom Rini
On Fri, Feb 12, 2021 at 05:57:47PM +0100, Fredrik Hallenberg wrote: > Support crc32c checksums in ext4 filesystems with metadata_csum flag > active. This includes superblock, inodes, inode and block group tables, > directory blocks and journal. > > Signed-off-by: Fredrik Hallenberg I've initial

Re: [PATCH] doc: board: freescale: imx8mp_evk: update to newer versions and change ATF_LOAD_ADDR

2021-02-12 Thread Peter Bergin
Hi Andrey, thanks for the review! On 2021-02-12 19:16, ZHIZHIKIN Andrey wrote: Hello Peter, -Original Message- From: Peter Bergin Sent: Friday, February 12, 2021 2:57 PM To: u-boot@lists.denx.de Cc: Peter Bergin ; ZHIZHIKIN Andrey Subject: [PATCH] doc: board: freescale: imx8mp_evk:

Re: Final of-platdata thing

2021-02-12 Thread Simon Glass
Hi Tom, On Fri, 12 Feb 2021 at 11:23, Tom Rini wrote: > > On Fri, Feb 12, 2021 at 11:18:22AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 11 Feb 2021 at 14:51, Tom Rini wrote: > > > > > > On Wed, Feb 10, 2021 at 11:39:54AM -0700, Simon Glass wrote: > > > > > > > Hi Tom, > > > > > > > >

[GIT] Pull request: u-boot-dfu (12.02.2021)

2021-02-12 Thread Lukasz Majewski
Dear Marek, Please find this PR with fastboot improvement code rebased on top of u-boot-denx-usb tree. CI: https://dev.azure.com/lukma633/U-Boot/_build/results?buildId=28&view=results (There shall be at least one follow up PR with work done by Sean). Merge tag data/information: https://gitlab.d

Re: Final of-platdata thing

2021-02-12 Thread Tom Rini
On Fri, Feb 12, 2021 at 11:18:22AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 11 Feb 2021 at 14:51, Tom Rini wrote: > > > > On Wed, Feb 10, 2021 at 11:39:54AM -0700, Simon Glass wrote: > > > > > Hi Tom, > > > > > > I have the dtoc changes ready to go but I was thinking it best to > > > apply

Re: Final of-platdata thing

2021-02-12 Thread Simon Glass
Hi Tom, On Thu, 11 Feb 2021 at 14:51, Tom Rini wrote: > > On Wed, Feb 10, 2021 at 11:39:54AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > I have the dtoc changes ready to go but I was thinking it best to > > apply the driver-model updates before sending a pull request. > > > > But that is (cur

RE: [PATCH] doc: board: freescale: imx8mp_evk: update to newer versions and change ATF_LOAD_ADDR

2021-02-12 Thread ZHIZHIKIN Andrey
Hello Peter, > -Original Message- > From: Peter Bergin > Sent: Friday, February 12, 2021 2:57 PM > To: u-boot@lists.denx.de > Cc: Peter Bergin ; ZHIZHIKIN Andrey > > Subject: [PATCH] doc: board: freescale: imx8mp_evk: update to newer versions > and change ATF_LOAD_ADDR > > Update imx-at

[PATCH] fs: ext4: Add metadata checksums support

2021-02-12 Thread Fredrik Hallenberg
Support crc32c checksums in ext4 filesystems with metadata_csum flag active. This includes superblock, inodes, inode and block group tables, directory blocks and journal. Signed-off-by: Fredrik Hallenberg --- fs/ext4/Kconfig | 1 + fs/ext4/ext4_common.c | 91

[PATCH] sunxi: support boot console on uart1 for sun8i

2021-02-12 Thread Tobias Schramm
From: Tobias Schramm This commit adds support for using uart1 as boot console on sun8i. Signed-off-by: Tobias Schramm --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/board.c| 4 include/configs/sunxi-common.h | 2 ++ 3 files changed, 7 insertions(

Re: [PATCH] spi: zynqmp_gqspi: fix set_speed bug on multiple runs

2021-02-12 Thread Michal Simek
Hi Ashok On 1/20/21 9:28 PM, Brandon Maier wrote: > If zynqmp_qspi_set_speed() is called multiple times with the same speed, > then on the second call it will skip recalculating the baud_rate_val as > it assumes the speed is already configured correctly. But it will still > write the baud_rate_val

Re: [RFC RESEND 1/2] efi: Add ESRT to the EFI system table

2021-02-12 Thread Heinrich Schuchardt
On 29.01.21 06:26, AKASHI Takahiro wrote: > First of all, one comment: > It would be nice to have a list of what features are supported > and what are not in this patch series. > For example, with this patch, I suspect > - FwVersion in ESRT entry will never be updated at capsule update According t

Re: [Uboot-stm32] [PATCH] usb: dwc2: change compatible st, stm32mp1-hsotg to st, stm32mp15-hsotg

2021-02-12 Thread Ahmad Fatoum
On 11.02.21 14:02, Tom Rini wrote: > On Thu, Feb 11, 2021 at 12:14:51PM +0100, Ahmad Fatoum wrote: >> I think platforms like the STM32MP1 should be handled specially, because >> they support having an external device tree passed from the FSBL at runtime. >> See >> https://github.com/trini/u-boot/b

[PATCH] doc: board: freescale: imx8mp_evk: update to newer versions and change ATF_LOAD_ADDR

2021-02-12 Thread Peter Bergin
Update imx-atf and firmware-imx to latest released versions. Update address of ATF_LOAD_ADDR that has changed to 0x49 in imx-atf commit 48733cb4e773a7584ced601de9d717efa3d73815. Add 'O=' to make instructions as one issue has been noticed where it was trouble building directly inside u-boot so

[PULL] u-boot-atmel-fixes-2021.04-a

2021-02-12 Thread Eugen.Hristev
Hello Tom, Please pull tag u-boot-atmel-fixes-2021.04-a , the first set of fixes for atmel for 2021.04 cycle. This small PR includes just two fixes but very important: one revert in the clk subsystem which fixes the boot on many old boards (sama5d2_xplained, sama5d4_xplained), which currently

[PATCH] ARM: stm32: Add USB host boot support

2021-02-12 Thread Marek Vasut
Add support for booting from USB pen drive, since USB host port is available on the STM32MP1. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- include/configs/stm32mp1.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/stm32mp1.h b/include/confi

Re: [PATCH] fpga: zynqpl: fix buffer alignment

2021-02-12 Thread Michal Simek
On 2/10/21 10:42 PM, Michael Walle wrote: > Due to pointer arithmetic, "sizeof(u32) * ARCH_DMA_MINALIGN" is > subtracted. It seems that the original intention was to just subtract > ARCH_DMA_MINALIGN. Fix it. > > Signed-off-by: Michael Walle > --- > drivers/fpga/zynqpl.c | 2 +- > 1 file chan

[PATCH] cmd: mmc: add mmc partboot

2021-02-12 Thread grygorii tertychnyi
This patch allows to determine active boot partition in boot script: if mmc partboot ${mmcdev} 2; then echo "booted from eMMC boot1 partition" fi Signed-off-by: Grygorii Tertychnyi --- cmd/mmc.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/cmd

Re: [PATCH v3 1/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-12 Thread Giulio Benetti
+Cc Sean On 2/12/21 2:11 AM, Jesse wrote: From: Jesse Taube This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Since this driver is only meant to provide u-boot's timer and counter, and most of the i.MX* SoCs use a 24Mhz crystal, let's only d

Re: [PATCH v3 0/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-12 Thread Giulio Benetti
On 2/12/21 2:11 AM, Jesse wrote: From: Jesse Taube This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Since this driver is only meant to provide u-boot's timer and counter, and most of the i.MX* SoCs use a 24Mhz crystal, let's only deal wit

Re: [PATCH v3 1/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-12 Thread Giulio Benetti
Hi Jesse, On 2/12/21 2:29 AM, Jesse T wrote: I'm very sorry for my email issues I some how mess it up each time. You can try git send-mail with --to "Jesse T ". This way you can check the result and only when sure you send to everybody and ML. Kind regards -- Giulio Benetti Benetti Engineer

Re: Boot problems imx8mp_evk

2021-02-12 Thread Peter Bergin
Hi Andrey, On 2021-02-12 09:22, ZHIZHIKIN Andrey wrote: Hello Peter, In the latest ATF, the LOAD_ADDR has been changed from 0x96 to 0x97. This was done by commit 48733cb4e ("MLK-24913: plat: imx8mp: change the bl31 physical load address"). Thanks for the notice! I hadn't seen that. Unf

RE: Boot problems imx8mp_evk

2021-02-12 Thread ZHIZHIKIN Andrey
Hello Peter, > -Original Message- > From: Peter Bergin > Sent: Friday, February 12, 2021 9:01 AM > To: ZHIZHIKIN Andrey ; Adam Ford > > Cc: U-Boot Mailing List ; NXP Linux Team i...@nxp.com> > Subject: Re: Boot problems imx8mp_evk > > Hi, > > this has been put aside for a while but te

Re: [PATCHv5 1/6] common: SCP03 control (enable and provision of keys)

2021-02-12 Thread Jorge Ramirez-Ortiz, Foundries
On 09/02/21, Jorge Ramirez-Ortiz wrote: > This Trusted Application allows enabling SCP03 as well as provisioning > the keys on TEE controlled secure element (ie, NXP SE050). > > All the information flowing on buses (ie I2C) between the processor > and the secure element must be encrypted. Secure e

Re: Boot problems imx8mp_evk

2021-02-12 Thread Peter Bergin
Hi, this has been put aside for a while but tested this again and problem still remains for me. Hi, I'm following the README to bring up u-boot on a imx8mp EVK board. My boot ends up in this on the console: U-Boot SPL 2020.10-rc5-00049-gd44d46e9fa (Sep 30 2020 - 11:46:20 +0200)