Re: [RFC PATCH v2 2/8] FWU: Add FWU metadata access functions for GPT partitioned block devices

2021-12-24 Thread Masami Hiramatsu
Hi Sughosh, 2021年12月25日(土) 2:08 Sughosh Ganu : > > hi Masami, > > On Fri, 24 Dec 2021 at 15:29, Masami Hiramatsu > wrote: > > > > Hi Sughosh, > > > > 2021年12月19日(日) 16:06 Sughosh Ganu : > > > > > +static int gpt_get_image_alt_num(struct blk_desc *desc, > > > +efi_g

[PATCH] mtd: nand: pxa3xx: use marvell, prefix for custom DT properties

2021-12-24 Thread Pierre Bourdon
The DT properties for the "enable-arbiter" and "keep-config" config knobs were previously named inconsistently: - The u-boot driver used "nand-enable-arbiter" and "nand-keep-config" names, without Marvell prefixes. - The Linux driver uses "marvell,nand-keep-config" ("enable-arbiter" does not

[PATCH 1/1] binman: add sign option for binman

2021-12-24 Thread Ivan Mikhaylov
Introduce prototype for binman's new option which provides sign and replace sections in binary images. Usage as example: from: mkimage -G privateky -r -o sha256,rsa4096 -F f...@0x28.fit binman replace -i flash.bin -f f...@0x28.fit fit@0x28 to: binman sign -i flash.bin -k privatekey -

[PATCH 0/1] Introduce new sign binman's option

2021-12-24 Thread Ivan Mikhaylov
From: Ivan Mikhaylov This patch introduces prototype of new sign binman's option. It doesn't looks good for now but it shows how sign process can be done. Just enhancing sign procedure, as example from: mkimage -G privateky -r -o sha256,rsa4096 -F f...@0x28.fit binman replace -i flash.bin -f

[RFC] usb: xhci-dwc3: Support role switch default role

2021-12-24 Thread Mark Kettenis
When the device tree indicates support for role switching through the "usb-role-switch" property, take the "role-switch-default-mode" property into account when deciding which role to put the controller into. This makes USB devices work on Apple M1 systems where the device tree may include a "dr_m

[PATCH v1] MAINTAINERS: add rockchip regex for more files and directories

2021-12-24 Thread Johan Jonker
The current files and directories with wildcard patterns for Rockchip patches in MAINTAINERS is not always complete. Add the regex for DT related files and a generic regex for catching some other forgotten cases, so that the maintainers receive all Rockchip related patches. Signed-off-by: Johan Jo

Re: [RFC PATCH v2 2/8] FWU: Add FWU metadata access functions for GPT partitioned block devices

2021-12-24 Thread Sughosh Ganu
hi Masami, On Fri, 24 Dec 2021 at 15:29, Masami Hiramatsu wrote: > > Hi Sughosh, > > 2021年12月19日(日) 16:06 Sughosh Ganu : > > > +static int gpt_get_image_alt_num(struct blk_desc *desc, > > +efi_guid_t image_type_id, > > +u32 update_ba

Re: [RFC PATCH v2 3/8] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2021-12-24 Thread Sughosh Ganu
hi Masami, On Fri, 24 Dec 2021 at 15:49, Masami Hiramatsu wrote: > > Hi Sughosh, > > 2021年12月24日(金) 19:08 Sughosh Ganu : > > > > hi Masami, > > > > On Fri, 24 Dec 2021 at 11:19, Masami Hiramatsu > > wrote: > > > > > > () should Hi Sughosh and Ilias, > > > > > > I would like to confirm that what

[PATCH] rpi: Switch to OF_HAS_PRIOR_STAGE by default

2021-12-24 Thread Tom Rini
On all Raspberry Pi platforms, we're loaded by a prior stage firmware that has assembled and passed on a device tree binary for us to use. Switch to using this tree by default. Cc: Matthias Brugger Cc: Simon Glass Cc: François Ozog Signed-off-by: Tom Rini --- To be clear, this is on top of cur

Re: [PATCH v8 30/32] fdt: Makefile: Ensure that OF_BOARD is used when needed

2021-12-24 Thread Tom Rini
On Thu, Dec 16, 2021 at 08:59:37PM -0700, Simon Glass wrote: > Boards which define OF_HAS_PRIOR_STAGE must define OF_BOARD at present, > since a custom function is the only way to obtain the devicetree at > runtime. > > Add a build error when this requirement is not met, to avoid accepting > any

Re: [PATCH v8 01/32] arm: qemu: Mention -nographic in the docs

2021-12-24 Thread Tom Rini
On Thu, Dec 16, 2021 at 08:59:08PM -0700, Simon Glass wrote: > Without this option QEMU appears to hang. Add it to avoid confusion. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signat

[PATCH v3 4/4] rockchip: rk3399: Add support for chromebook_kevin

2021-12-24 Thread Alper Nebi Yasak
From: "Marty E. Plummer" Add support for Kevin, an RK3399-based convertible chromebook that is very similar to Bob. This patch is mostly based on existing support for Bob, with only minor changes for Kevin-specific things. Unlike other Gru boards, coreboot sets Kevin's center logic to 925 mV, so

[PATCH v3 3/4] rockchip: bob: Enable more configs

2021-12-24 Thread Alper Nebi Yasak
This patch enables some configs that should be working on the Bob board, based on what is observed to work on the Kevin board. The Bob board uses an Embedded DisplayPort panel compatible with the simple panel and Rockchip eDP drivers. Its backlight is controlled by the Chromium OS Embedded Control

[PATCH v3 2/4] rockchip: gru: Add more devicetree settings

2021-12-24 Thread Alper Nebi Yasak
From: Simon Glass This adds some devicetree settings for the Gru-based boards, based on what works on a Kevin board. Gru-based boards usually have an 8MiB SPI flash chip and boot from it. Make the u-boot.rom file intended to be flashed on it match its size. Add properties for booting from SPI, a

[PATCH v3 1/4] rockchip: gru: Set up SoC IO domain registers

2021-12-24 Thread Alper Nebi Yasak
The RK3399 SoC needs to know the voltage value provided by some regulators, which is done by setting relevant register bits. Configure these the way other RK3399 boards do, but with the same values as are set in the equivalent code in coreboot. Signed-off-by: Alper Nebi Yasak Reviewed-by: Kever Y

[PATCH v3 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin

2021-12-24 Thread Alper Nebi Yasak
I have recently started testing booting U-Boot from SPI on my gru-kevin (as opposed to chainloading it from vendor coreboot + depthcharge) and brought it to a better working state based on an initial support patch from Marty [1][2] and some follow-up work by Simon [3]. I tried to keep them as the

Re: [PATCH] dm: Fix OF_BAD_ADDR definition

2021-12-24 Thread Simon Glass
Hi Patrice, On Thu, 23 Dec 2021 at 09:09, Patrice Chotard wrote: > > When OF_LIVE flag is enabled on a 64 bits platform, there is an > issue when dev_read_addr() is called and need to perform an address > translation using __of_translate_address(). > > In case of error, __of_translate_address() r

[PATCH v2] phy: Track power-on and init counts in uclass

2021-12-24 Thread Alper Nebi Yasak
On boards using the RK3399 SoC, the USB OHCI and EHCI controllers share the same PHY device instance. While these controllers are being stopped they both attempt to power-off and deinitialize it, but trying to power-off the deinitialized PHY device results in a hang. This usually happens just befor

Re: Question on running uboot_testpy with tbot

2021-12-24 Thread Simon Glass
Hi, Just pinging this thread in case someone can explain how to use this feature. Regards, Simon On Sat, 30 Oct 2021 at 13:47, Simon Glass wrote: > > Hi again, > > The relevant part of test-log.html is > > Section: flash > [-] Section: test_fpga_help > > TIME: NOW: 2021/10/30 13:41:52.662614 >

Re: [PATCH] ARM: mach-k3: sysfw-loader: Copy sysfw.itb to OCRAM in OSPI/SPI bootmode

2021-12-24 Thread Pratyush Yadav
On 23/12/21 07:26PM, Vignesh Raghavendra wrote: > In case of xSPI bootmode OSPI flash is in DDR mode and needs to be accessed > in multiple of 16bit accesses Hence we cannot parse sysfw.itb FIT image > directly on OSPI flash via MMIO window. So, copy the image to internal > on-chip RAM before parsi

[PATCH 1/4] rockchip: mkimage: rename RK_SIGNATURE to RK_MAGIC

2021-12-24 Thread Kever Yang
The first 4byte of idbimage is a magic number instead of signature, correct it. Signed-off-by: Kever Yang --- tools/rkcommon.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index d55cd2c2d5..1274293acf 100644 --- a/tools/rkcom

[PATCH 3/4] rockchip: mkimage: Add support for idb header V2

2021-12-24 Thread Kever Yang
From: Yi Liu Rockchip BootRom supports new idb header v2 instead of legacy version. Add support for it so that we can generate image for new SoCs. Signed-off-by: Yi Liu Signed-off-by: Kever Yang --- tools/rkcommon.c | 186 --- 1 file changed, 158 i

[PATCH 2/4] rockchip: mkimage: Add image header version

2021-12-24 Thread Kever Yang
We are going to have more than one version header, add the version in the header info. Signed-off-by: Kever Yang --- tools/rkcommon.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 1274293acf..b1d867f

[PATCH 4/4] rockchip: mkimage: Add support for rk3568 SoC

2021-12-24 Thread Kever Yang
rk3568 is the first SoC which supports idb header v2. Signed-off-by: Kever Yang --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 1b37ff3047..29f2676c19 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -132,6 +132,7 @@ stat

Re: [RFC PATCH v2 3/8] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2021-12-24 Thread Masami Hiramatsu
Hi Sughosh, 2021年12月24日(金) 19:08 Sughosh Ganu : > > hi Masami, > > On Fri, 24 Dec 2021 at 11:19, Masami Hiramatsu > wrote: > > > > () should Hi Sughosh and Ilias, > > > > I would like to confirm that what the plat_fill_gpt_partition_guids() > > should return. > > > > 2021年12月19日(日) 16:07 Sughosh

Re: [RFC PATCH v2 3/8] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2021-12-24 Thread Sughosh Ganu
hi Masami, On Fri, 24 Dec 2021 at 11:19, Masami Hiramatsu wrote: > > () should Hi Sughosh and Ilias, > > I would like to confirm that what the plat_fill_gpt_partition_guids() > should return. > > 2021年12月19日(日) 16:07 Sughosh Ganu : > > > +static int plat_fill_gpt_partition_guids(struct blk_desc *

Re: [RFC PATCH v2 2/8] FWU: Add FWU metadata access functions for GPT partitioned block devices

2021-12-24 Thread Masami Hiramatsu
Hi Sughosh, 2021年12月19日(日) 16:06 Sughosh Ganu : > +static int gpt_get_image_alt_num(struct blk_desc *desc, > +efi_guid_t image_type_id, > +u32 update_bank, int *alt_no) > +{ > + int ret, i; > + u32 part; > + struct

[PATCH v2] efi_loader: Don't limit the StMM buffer size explicitly

2021-12-24 Thread Ilias Apalodimas
From: Ilias Apalodimas Currently we allow and explicitly check a single shared page with StandAloneMM. This is dictated by OP-TEE which runs the application. However there's no way for us dynamically discover the number of pages we are allowed to use. Since writing big EFI signature list variab