Re: [PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-31 Thread Masahiro Yamada
On Tue, Oct 31, 2023 at 1:12 AM Tom Rini wrote: > > On Mon, Oct 30, 2023 at 03:35:34PM +, Russell King (Oracle) wrote: > > On Sun, Oct 29, 2023 at 05:46:12AM +1300, Simon Glass wrote: > > > Hi Masahiro, > > > > > > Sure, but that is a separate issue, isn't it? We already support > > > various

Re: [PATCH] spi: cadence-quadspi: Fix error message on stuck busy state

2023-10-31 Thread Stefan Roese
On 10/30/23 17:20, Jan Kiszka wrote: From: Jan Kiszka We are not iterating CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1. Signed-off-by: Jan Kiszka Reviewed-by: Stefan Roese Thanks, Stefan --- We are unfortunately seeing that message right now, rarely but then prominently..

[PATCH v3 0/3] bootcount: Replace I2C legacy implementation by driver model

2023-10-31 Thread Philip Richard Oberfichtner
The generic I2C bootcounter driver does not yet adhere to driver model. This patchset intends to replace the legacy implementation. There are currently no upstream boards using the driver, so it should be safe to just remove it. For downstream users it should be straighforward to switch to the new

[PATCH v3 1/3] bootcount: Remove legacy I2C driver

2023-10-31 Thread Philip Richard Oberfichtner
The legacy I2C bootcounter will hereby be removed and eventually be replaced by a driver model implementation in the follow-up commit. The legacy driver has the following drawbacks: - It's not adhering to the driver model - Settings are grabbed from Kconfig rather than device tree

[PATCH v3 2/3] i2c: Implement i2c_get_chip_by_phandle()

2023-10-31 Thread Philip Richard Oberfichtner
This new function enhances the i2c_get_chip*() toolbox by implementing a variant that does not require a chip_addr. Instead, the desired device is pointed to by a phandle. Signed-off-by: Philip Richard Oberfichtner --- Notes: Changes in v3: none Changes in v2: new drivers/i2c/i2c-uclas

[PATCH v3 3/3] bootcount: Add driver model I2C driver

2023-10-31 Thread Philip Richard Oberfichtner
This adds a generic I2C bootcounter adhering to driver model to replace the previously removed legacy implementation. There is no change in functionality, it can be used on any I2C device. The device tree configuration may look like this for example: bootcount { compatible

Re: [PATCH v2 3/3] bootcount: Add driver model I2C driver

2023-10-31 Thread Philip Oberfichtner
On Mon, Oct 30, 2023 at 06:17:23AM +0100, Heiko Schocher wrote: > > > Your patch drops an checkpatch error: > """ > ERROR: Do not add common.h to files > #164: FILE: drivers/bootcount/bootcount_dm_i2c.c:10: > +#include > """ > > Could you please check and fix? Oops sorry, V3 is on the way. R

Re: [PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
On 10/31/23 07:29, Jaehoon Chung wrote: Hi, -Original Message- From: U-Boot On Behalf Of Jaehoon Chung Sent: Tuesday, October 31, 2023 3:08 PM To: Marek Vasut ; u-boot@lists.denx.de Cc: Abdellatif El Khlifi ; Heinrich Schuchardt ; Ilias Apalodimas ; Ramon Fried ; Roger Knecht ; Sean

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Xiang W
setjmp can be called in set_resume. Regards, Xiang W Heinrich Schuchardt 于2023年10月29日周日 16:56写道: > > If CSRs like seed are readable by S-mode, may not be determinable by > S-mode. For safe driver probing allow to resume via a longjmp after an > exception. > > Signed-off-by: Heinrich Schuchardt

Re: [RFC v2 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-31 Thread Xiang W
Sorry! I missed it. Regards, Xiang W Leo Liang 于2023年10月31日周二 14:47写道: > > Hi Xiang, > On Tue, Oct 31, 2023 at 02:16:22PM +0800, merle w wrote: > > drivers/rng/riscv_zkr_rng.c:10:10: fatal error: interrupt.h: No such > > file or directory > > 10 | #include > > | ^ > > compilation te

Re: [PATCH 1/1] board: sifive: unmatched: move kernel load address to 0x80200000

2023-10-31 Thread Yong-Xuan Wang
Hi Tom, 0x8020 comes from the result of the relocated_addr in booti_setup() on HiFive Unmatched board. If we load the Kernel Image to this address, it will not be moved. Currently one of the first two 8-byte of RISC-V Kernel Image is j _start_kernel instruction, so it's OK to execute the heade

Re: [PATCH v3 1/3] bootcount: Remove legacy I2C driver

2023-10-31 Thread Heiko Schocher
Hello Philip, On 31.10.23 08:38, Philip Richard Oberfichtner wrote: > The legacy I2C bootcounter will hereby be removed and eventually > be replaced by a driver model implementation in the follow-up commit. > > The legacy driver has the following drawbacks: > - It's not adhering to the driv

Re: [PATCH v3 2/3] i2c: Implement i2c_get_chip_by_phandle()

2023-10-31 Thread Heiko Schocher
Hello Philip, On 31.10.23 08:38, Philip Richard Oberfichtner wrote: > This new function enhances the i2c_get_chip*() toolbox by implementing a > variant that does not require a chip_addr. Instead, the desired device > is pointed to by a phandle. > > Signed-off-by: Philip Richard Oberfichtner > -

Re: [PATCH v3 3/3] bootcount: Add driver model I2C driver

2023-10-31 Thread Heiko Schocher
Hello Philip, On 31.10.23 08:38, Philip Richard Oberfichtner wrote: > This adds a generic I2C bootcounter adhering to driver model to replace > the previously removed legacy implementation. > > There is no change in functionality, it can be used on any I2C device. > The device tree configuration

Re: [PATCH v2 3/4] board: ti: am62x: add am62x_lpsk_*_defconfigs fragments

2023-10-31 Thread Nitin Yadav
On 31/10/23 13:28, Dhruva Gole wrote: > Hi Nitin, > > On Oct 30, 2023 at 16:31:37 +0530, Nitin Yadav wrote: >> Add defconfig fragments for AM62x LP SK for for AM62x LP SK. > > Please check and re-word the commit message. Thanks Dhruva for pointing out. > >> >> Signed-off-by: Nitin Yadav >> -

[PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node

2023-10-31 Thread Jaehoon Chung
Add gpio-restart node to do reset. Before applied this patch, System Reset Extension doesn't appear with sbi command. OpenSBI 1.3 Machine: Vendor ID 489 Architecture ID 8007 Implementation ID 4210427 Extensions: sbi_set_timer sbi_console_putchar ...[snip]... IPI Extension

[PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config

2023-10-31 Thread Jaehoon Chung
Enable CONFIG_SYSREST config to do reset. Signed-off-by: Jaehoon Chung --- configs/starfive_visionfive2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index b21754feafce..afa74e17ebd5 100644 --- a/con

Re: [PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Lothar Waßmann
Hi, On Tue, 10 Oct 2023 14:47:28 +0200 Marek Vasut wrote: > Add extension to the 'mmc' command to read out the card registers. > Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are > supported. A register value can either be displayed or read into > an environment variable. > > Signe

[PATCH 1/2] riscv: cpu: jh7110: Add gpio helper macros

2023-10-31 Thread Chanho Park
Add gpio.h header file that includes JH7110 helper macros. The file is imported from StarFive github[1] with small changes such as alignment. [1]: https://github.com/starfive-tech/u-boot Signed-off-by: Chanho Park --- arch/riscv/include/asm/arch-jh7110/gpio.h | 85 +++ 1 fil

[PATCH 2/2] board: starfive: spl: Support jtag for VisionFive2 board

2023-10-31 Thread Chanho Park
JTAG pins are mapped as below. To access the JTAG pins, we need to control the GPIO pins from SPL which seems to be the earliest stage for JTAG. - JTAG nTRST: GPIO36 / Input - JTAG TDI: GPIO61 / Input - JTAG TMS: GPIO63 / Input - JTAG TCK: GPIO60 / Input - JTAG TDO: GPIO44 / Outp

[PATCH 0/2] Support JTAG for VisionFive2 board

2023-10-31 Thread Chanho Park
To support JTAG for VisionFive2 board, we need to control JTAG pins by S/W. spl_board_init_f function seems to be proper place to initialize these pins. Chanho Park (2): riscv: cpu: jh7110: Add gpio helper macros board: starfive: spl: Support jtag for VisionFive2 board arch/riscv/include/asm

RE: [PATCH v9 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: Svyatoslav Ryhel > Sent: Friday, October 27, 2023 5:26 PM > To: Tom Rini ; Jaehoon Chung ; > Simon Glass > ; Svyatoslav Ryhel > Cc: u-boot@lists.denx.de > Subject: [PATCH v9 3/8] power: pmic: add the base MAX77663 PMIC support > > Add support to bind the

RE: [PATCH v9 4/8] power: regulator: max77663: add regulator support

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: Svyatoslav Ryhel > Sent: Friday, October 27, 2023 5:26 PM > To: Tom Rini ; Jaehoon Chung ; > Simon Glass > ; Svyatoslav Ryhel > Cc: u-boot@lists.denx.de > Subject: [PATCH v9 4/8] power: regulator: max77663: add regulator support > > The driver provides re

Re: [PATCH v9 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-31 Thread Svyatoslav Ryhel
вт, 31 жовт. 2023 р. о 10:57 Jaehoon Chung пише: > > > > > -Original Message- > > From: Svyatoslav Ryhel > > Sent: Friday, October 27, 2023 5:26 PM > > To: Tom Rini ; Jaehoon Chung ; > > Simon Glass > > ; Svyatoslav Ryhel > > Cc: u-boot@lists.denx.de > > Subject: [PATCH v9 3/8] power: p

Re: [PATCH] dfu: mmc: Add support for exposing whole mmc device

2023-10-31 Thread Mattijs Korpershoek
On dim., oct. 29, 2023 at 23:37, Marek Vasut wrote: > Add support for exposing the whole mmc device by setting the 'size' > parameter to 0. This can be useful in case it is not clear what the > total device size is up front. Update the documentation accordingly. > > Signed-off-by: Marek Vasut >

[PATCH v3] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into an environment variable. Tested-by: Jaehoon Chung Reviewed-by: Jaehoon Chung Signed-off-by: Marek V

[RESEND PATCH v2] xilinx: versal: Setup 30MHz as default spi frequency

2023-10-31 Thread Michal Simek
Align default SPI configuration with ZynqMP/Versal NET. There is no reason to run on lower frequencies. Signed-off-by: Michal Simek --- Changes in v2: - sync Kconfig location v2 didn't land in lore.kernel.org but it is present here https://lists.denx.de/pipermail/u-boot/2023-October/535418.html

Re: [PATCH v2 3/4] board: ti: am62x: add am62x_lpsk_*_defconfigs fragments

2023-10-31 Thread Dhruva Gole
Hi Nitin, On Oct 30, 2023 at 16:31:37 +0530, Nitin Yadav wrote: > Add defconfig fragments for AM62x LP SK for for AM62x LP SK. Please check and re-word the commit message. > > Signed-off-by: Nitin Yadav > --- > board/ti/am62x/am62x_lpsk_a53.config | 5 + > board/ti/am62x/am62x_lpsk_r5.con

Re: [PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
On 10/31/23 09:26, Lothar Waßmann wrote: Hi, On Tue, 10 Oct 2023 14:47:28 +0200 Marek Vasut wrote: Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into

Re: [PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 04:03:18PM +0900, Masahiro Yamada wrote: > On Tue, Oct 31, 2023 at 1:12 AM Tom Rini wrote: > > > > On Mon, Oct 30, 2023 at 03:35:34PM +, Russell King (Oracle) wrote: > > > On Sun, Oct 29, 2023 at 05:46:12AM +1300, Simon Glass wrote: > > > > Hi Masahiro, > > > > > > > >

Re: [PATCH v2 1/4] arm: dts: Refactor common dtsi file for R5 and A53 SPL

2023-10-31 Thread Nishanth Menon
On 16:31-20231030, Nitin Yadav wrote: [...] > --- > diff --git a/arch/arm/dts/k3-am625-sk-u-boot.dtsi > b/arch/arm/dts/k3-am625-sk-u-boot.dtsi > index c1685bc9ca..1a5238fb11 100644 > --- a/arch/arm/dts/k3-am625-sk-u-boot.dtsi > +++ b/arch/arm/dts/k3-am625-sk-u-boot.dtsi > @@ -1,102 +1,12 @@ > //

Re: [PATCH 1/1] board: sifive: unmatched: move kernel load address to 0x80200000

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 03:56:45PM +0800, Yong-Xuan Wang wrote: > Hi Tom, > > 0x8020 comes from the result of the relocated_addr in booti_setup() > on HiFive Unmatched board. If we load the Kernel Image to this address, > it will not be moved. Currently one of the first two 8-byte of RISC-V >

Re: [PATCH 1/3] sunxi: board: simplify early PMIC setup conditions

2023-10-31 Thread Andre Przywara
On Tue, 31 Oct 2023 15:42:54 +0900 "Jaehoon Chung" wrote: Hi Jaehoon, > Hi, > > > -Original Message- > > From: Andre Przywara > > Sent: Sunday, October 22, 2023 6:19 AM > > To: Jernej Škrabec > > Cc: Jagan Teki ; Jaehoon Chung > > ; Samuel Holland > > ; SASANO Takayoshi ; Mikhail >

Re: [PATCH v2 2/4] arm: dts: Add support for AM62x LP SK

2023-10-31 Thread Nishanth Menon
On 16:31-20231030, Nitin Yadav wrote: > The AM62x LP SK board is similar to the AM62x SK board, > but has some significant changes that requires different > device tree. > > The differences are mainly: > - AM62x SoC in the AMC package that meets AECQ100 automotive standard. > - LPDDR4 versus DDR4

Re: [PATCH v3] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Fabio Estevam
Hi Marek, On Tue, Oct 31, 2023 at 7:16 AM Marek Vasut wrote: > +config CMD_MMC_REG > + bool "Enable support for reading card registers in the mmc command" > + depends on CMD_MMC > + default n "default n" could be dropped, since it is already the default.

Re: [PATCH v2 4/4] doc: ti: Add AM62x LP SK Board information

2023-10-31 Thread Nishanth Menon
$subject missing am62x_sk On 16:31-20231030, Nitin Yadav wrote: > Add link for AM62x LP SK in platform information. AM62x LP SK > has config fragments to build U-boot, Adding information to > update UBOOT_CFG_CORTEXR with lpsk fragments over am62x defconfig. > > Signed-off-by: Nitin Yadav > ---

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Heinrich Schuchardt
On 10/31/23 09:53, Xiang W wrote: setjmp can be called in set_resume. Unfortunately this is not possible. A longjmp buffer only stores register values and not the stack content. Let's assume that setjmp() is moved into set_resume(): Let a function call set_resume(). The caller's address wil

[PATCH v4] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into an environment variable. Tested-by: Jaehoon Chung Reviewed-by: Jaehoon Chung Signed-off-by: Marek V

Re: [PATCH v3] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
On 10/31/23 13:06, Fabio Estevam wrote: Hi Marek, On Tue, Oct 31, 2023 at 7:16 AM Marek Vasut wrote: +config CMD_MMC_REG + bool "Enable support for reading card registers in the mmc command" + depends on CMD_MMC + default n "default n" could be dropped, since it is already

[UBOOT PATCH v2] test/py: net: Add a TFTP put test

2023-10-31 Thread Love Kumar
Execute tftpput command for uploading files to a server and validate its size & CRC32. Signed-off-by: Love Kumar --- Changes in v2: - Add marking for cmd_tftpput config --- test/py/tests/test_net.py | 72 +++ 1 file changed, 72 insertions(+) diff --git a/test

[PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-31 Thread Heinrich Schuchardt
The Zkr ISA extension (ratified Nov 2021) introduced the seed CSR. It provides an interface to a physical entropy source. A RNG driver based on the seed CSR is provided. It depends on mseccfg.sseed being set in the SBI firmware. If the seed CSR readable, is not determinable by S-mode without risk

[PATCH v3 1/2] riscv: allow resume after exception

2023-10-31 Thread Heinrich Schuchardt
If CSRs like seed are readable by S-mode, may not be determinable by S-mode. For safe driver probing allow to resume via a longjmp after an exception. Signed-off-by: Heinrich Schuchardt --- v3: Add API documentation v2: New patch --- arch/riscv/lib/interrupts.c | 13 +++

[PATCH v3 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-31 Thread Heinrich Schuchardt
The Zkr ISA extension (ratified Nov 2021) introduced the seed CSR. It provides an interface to a physical entropy source. A RNG driver based on the seed CSR is provided. It depends on mseccfg.sseed being set in the SBI firmware. Signed-off-by: Heinrich Schuchardt Reviewed-by: Leo Yu-Chi Liang -

[UBOOT PATCH v2] test/py: net: Add dhcp abort test

2023-10-31 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency --- test/py/tests/test_net.py | 45 +++ 1 file changed, 45 insertions(+) d

Re: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 05:24:38PM +0900, Jaehoon Chung wrote: > Add gpio-restart node to do reset. > > Before applied this patch, System Reset Extension doesn't appear with > sbi command. > > OpenSBI 1.3 > Machine: > Vendor ID 489 > Architecture ID 8007 > Implementation ID 421

Re: [UBOOT PATCH v2] test/py: net: Add a TFTP put test

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 06:22:29PM +0530, Love Kumar wrote: > Execute tftpput command for uploading files to a server and validate its > size & CRC32. > > Signed-off-by: Love Kumar > --- > Changes in v2: > - Add marking for cmd_tftpput config > --- > test/py/tests/test_net.py | 72 +

[PATCH v2 0/5] Move video memory reservation for SPL to the

2023-10-31 Thread Devarsh Thakkar
Move video memory reservation for SPL at end of RAM so that it does not interefere with reservations for next stage so that the next stage need not have holes in between for passed regions and instead it can maintain continuity in reservations. Also catch the bloblist before starting reservations

[PATCH v2 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-31 Thread Devarsh Thakkar
Add function spl_reserve_video which is a wrapper around video_reserve to setup video memory and update the relocation address pointer. Setup video memory before page table reservation so that framebuffer memory gets reserved from the end of RAM. This is as per the new policy being discussed for

[PATCH v2 2/5] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-10-31 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: No change --- board/ti/am62x/evm.c | 18 -- 1 file change

[PATCH v2 3/5] common/board_f: Catch bloblist before starting resevations

2023-10-31 Thread Devarsh Thakkar
Start reservations needed for init sequence only after catching bloblists from previous stage. This is to avoid catching bloblists in the middle causing gaps while u-boot is reserving. Adjust the relocaddr as per video hand-off information received from previous stage so that further reservations

[PATCH v2 4/5] video: Skip framebuffer reservation if already reserved

2023-10-31 Thread Devarsh Thakkar
Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: - Add debug prints - Fix commenting style --- drivers/video/video-uclass.c | 12 1 file chan

[PATCH v2 5/5] video: Fill video handoff in video post probe

2023-10-31 Thread Devarsh Thakkar
Fill video handoff fields in video_post_probe as at this point we have full framebuffer related information. Also fill all the fields available in video hand-off struct as those were missing earlier and u-boot framework expects them to be filled for some of the functionalities. Reported-by: Simon

Re: [PATCH v2 4/4] doc: ti: Add AM62x LP SK Board information

2023-10-31 Thread Dhruva Gole
Hi, On Oct 30, 2023 at 16:31:38 +0530, Nitin Yadav wrote: > Add link for AM62x LP SK in platform information. AM62x LP SK > has config fragments to build U-boot, Adding information to > update UBOOT_CFG_CORTEXR with lpsk fragments over am62x defconfig. > > Signed-off-by: Nitin Yadav > --- > doc

[PATCH 0/6] Add AM62SIP SK support

2023-10-31 Thread Nitin Yadav
This series adds support of AM62SIP SK board. The AM62SIP SK is different from AM62x SK in terms of DDR Memory size which is reduced to 512 M and embedded as part of SoC. Note: - Please apply this series after applying AM62x LP SK support series. (https://lore.kernel.org/all/20231030110138.134

[PATCH 3/6] board: ti: am62x: Avoid overwriting reserve mem for AM62 SIP

2023-10-31 Thread Nitin Yadav
AM62 SIP has 512MB RAM. But the top of the RAM is reserved for TF-A and OPTEE. U-Boot relocating there would cause overwriting of these reserved regions. Fix this by limit U-Boot to first 64MB of RAM for all boards with 512MB. Signed-off-by: Vignesh Raghavendra Signed-off-by: Nitin Yadav --- bo

[PATCH 4/6] arm: dts: Add support for AM62x SIP SKEVM at R5 SPL

2023-10-31 Thread Nitin Yadav
The AM62x SIP SKEVM board has different type of DDR than AM62x SK board. This requires different r5 SPL device tree. These dt changes add support for AM62x SIP SKEVM at R5 SPL. SK-AM62-SIP: https://www.ti.com/tool/download/SPRR482 Signed-off-by: Nitin Yadav --- arch/arm/dts/Makefile

[PATCH 1/6] arm: dts: k3-am62x-sip-ddr-lp4-50-800: Add DDR configuration for AM62-SIP

2023-10-31 Thread Nitin Yadav
AM62x SIP SKEVM has DDR type LPDDR4. Add DDR configuration for AM62x SK EVM in k3-am62x-sip-ddr-lp4-50-800.dtsi Signed-off-by: Bryan Brattlof Signed-off-by: Nitin Yadav --- arch/arm/dts/k3-am62x-sip-ddr-lp4-50-800.dtsi | 2191 + 1 file changed, 2191 insertions(+) create mode 10

[PATCH 2/6] ram: k3-ddrss: k3-ddrss: Fix updating ddr size with ecc off

2023-10-31 Thread Nitin Yadav
When DDR ECC is off (ecc_reserved_space = 0) k3_ddrss_ddr_fdt_fixup() doesn't update the DDR size in the memory node of DT. Fix this by dropping check for ecc_reserved_space to be non zero. This allows R5 SPL to fixup A53 SPL DT with right DDR size as discovered during DDR init or based on R5 SPL

[PATCH 5/6] board: ti: am62x: Add am62xsip_sk_r5.config defconfig fragment

2023-10-31 Thread Nitin Yadav
Add config fragments am62xsip_sk_r5.config for R5 configuration. Signed-off-by: Nitin Yadav --- board/ti/am62x/am62xsip_sk_r5.config | 5 + 1 file changed, 5 insertions(+) create mode 100644 board/ti/am62x/am62xsip_sk_r5.config diff --git a/board/ti/am62x/am62xsip_sk_r5.config b/board/ti/

[PATCH 6/6] doc: ti: Add AM62SIP SK Board information

2023-10-31 Thread Nitin Yadav
Add link for AM62SIP SK in platform information. AM62SIP SK has config fragment for R5 SPL to build U-boot, Adding information to update UBOOT_CFG_CORTEXR with am62sip fragment over am62x defconfig. Signed-off-by: Nitin Yadav --- doc/board/ti/am62x_sk.rst | 7 +++ 1 file changed, 7 insertion

[PATCH 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-10-31 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am62x.rst | 125 + doc/board/ti/k3.rst| 1 + 3 files changed, 127 insertions(+) create mode 100644 d

Re: [PATCH] fastboot: fix CRC32 chunk size checking

2023-10-31 Thread Mattijs Korpershoek
Hi, On Mon, 25 Sep 2023 12:37:15 +0200, Wojciech Nizinski wrote: > genimage create android-sparse file with CRC32 chunk at end. When > U-Boot's fastboot receives this chunk it returns error message: > `Fail Bogus chunk size for chunk type Dont Care` > > According to reference implementation of An

Re: [PATCH 3/6] board: ti: am62x: Avoid overwriting reserve mem for AM62 SIP

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 06:58:06PM +0530, Nitin Yadav wrote: > AM62 SIP has 512MB RAM. But the top of the RAM is reserved for > TF-A and OPTEE. U-Boot relocating there would cause overwriting > of these reserved regions. Fix this by limit U-Boot to first > 64MB of RAM for all boards with 512MB. >

Re: [PATCH] dfu: mmc: Add support for exposing whole mmc device

2023-10-31 Thread Mattijs Korpershoek
Hi, On Sun, 29 Oct 2023 23:37:22 +0100, Marek Vasut wrote: > Add support for exposing the whole mmc device by setting the 'size' > parameter to 0. This can be useful in case it is not clear what the > total device size is up front. Update the documentation accordingly. > > Thanks, Applied to ht

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-31 Thread Abdellatif El Khlifi
Hi Tom, > > > > > > > > > > *** CID 464361: Control flow issues (DEADCODE) > > > > > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148 in > > > > > ffa_print_error_log() > > > > > 142 > > > >

[PATCH 0/6] arm: mach-snapdragon: Qualcomm pinctrl driver cleanup

2023-10-31 Thread Caleb Connolly
This series moves the Qualcomm pinctrl drivers from mach-snapdragon and mach-ipq40xx to drivers/pinctrl/qcom. It then makes the necessary changes to enable compatibility with Linux DTs. The pinctrl hardware on most Qualcomm platforms is made up of "tiles", these are just banks of pins at different

[PATCH 2/6] pinctrl: qcom: make compatible with linux DTs

2023-10-31 Thread Caleb Connolly
The pinctrl and GPIO drivers are currently heavily incompatible with upstream. Most Qualcomm pinctrl blocks feature "tiles" of pins, each at it's own address. Introduce support for these by allowing the soc driver to specify per-pin register offsets similarly to the Linux driver. Adjust the GPIO d

[PATCH 1/6] pinctrl: qcom: move out of mach-snapdragon

2023-10-31 Thread Caleb Connolly
Move the Qualcomm pinctrl drivers out of mach-snapdragon and over to the rest of the pinctrl drivers, adjust the drivers so that support for each platform can be enabled/disabled individually and introduce platform specific configuration options. Signed-off-by: Caleb Connolly --- arch/arm/mach-s

[PATCH 3/6] pinctrl: qcom: handle reserved ranges

2023-10-31 Thread Caleb Connolly
Some Qualcomm boards feature reserved ranges of pins which are protected by firmware. Attempting to read or write any registers associated with these pins results the board resetting. Add support for parsing these ranges from devicetree and ensure that the pinctrl and GPIO drivers don't try to int

[PATCH 4/6] msm_qcom: use unsigned int

2023-10-31 Thread Caleb Connolly
Replaces the uses of "unsigned" with "unsigned int". Signed-off-by: Caleb Connolly --- drivers/gpio/msm_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index 7a09abdafb2e..7d01fecf46f2 100644 --- a/drivers/gpio/

[PATCH 5/6] pinctrl: qcom: move ipq4019 driver from mach-ipq40xx

2023-10-31 Thread Caleb Connolly
Drop the duplicated pinctrl-snapdragon driver from mach-ipq40xx and add it to drivers/pinctrl/qcom. Signed-off-by: Caleb Connolly --- arch/arm/Kconfig | 1 + arch/arm/mach-ipq40xx/Makefile | 8 - arch/arm/mach-ipq40xx/pinctrl-snapdragon.c

[PATCH 6/6] pinctrl: qcom: rename msm -> qcom

2023-10-31 Thread Caleb Connolly
The "MSM" naming hasn't been correct for quite a while now, in line with Linux lets rename all these msm_* functions to qcom_* as well as ensure namespacing is consistent across the pinctrl and GPIO drivers. Signed-off-by: Caleb Connolly --- configs/dragonboard410c_defconfig| 2 +- conf

[PATCH] arm64: zynqmp: Comment all smmu entries

2023-10-31 Thread Michal Simek
SMMU is disabled by default and not all masters can be enabled at the same time because of limited number of entries. That's why comment all iommu properties but keep them for reference in DT. In XEN case they should be added back and Xen should have SMMU enabled by default. Signed-off-by: Michal

Re: [PATCH] dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

2023-10-31 Thread Mattijs Korpershoek
Hi Jaehoon, Thank you for your patch. On lun., juin 20, 2022 at 20:13, Jaehoon Chung wrote: > Add CONFIG_DFU_NAME_MAX_SIZE to change the proper size. > If name is longer than default size, it can do wrong behavior during updating > image. So it need to change the proper maximum size. > > This p

Re: [PATCH] dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

2023-10-31 Thread Mattijs Korpershoek
Hi, On Mon, 20 Jun 2022 20:13:54 +0900, Jaehoon Chung wrote: > Add CONFIG_DFU_NAME_MAX_SIZE to change the proper size. > If name is longer than default size, it can do wrong behavior during updating > image. So it need to change the proper maximum size. > > This patch is proviced the solution to

Re: [PATCH 2/3] configs: rzg2_beacon: Realign ENV location and offset

2023-10-31 Thread Adam Ford
On Wed, Oct 25, 2023 at 6:13 PM Adam Ford wrote: > > The ENV size and offset were changed to different > values in Beacon's downstream release. Change them to the > same values as the downstream for consistent behavior. > > Signed-off-by: Adam Ford Marek, I know you had some feedback on other

[PATCH] MAINTAINERS: update Qualcomm maintainer

2023-10-31 Thread Caleb Connolly
As Ramon has been inactive for some time now, add myself and Neil Armstrong to maintain Qualcomm efforts going forwards. Signed-off-by: Caleb Connolly --- I greatly appreciate the work done by Ramon Fried in keeping Qualcomm support alive in U-Boot the last few years. However it's clear that he h

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Xiang W
Thank you, I understand. Regards, Xiang W Heinrich Schuchardt 于2023年10月31日周二 20:09写道: > > On 10/31/23 09:53, Xiang W wrote: > > setjmp can be called in set_resume. > > Unfortunately this is not possible. A longjmp buffer only stores > register values and not the stack content. > > Let's assume t

Re: [PATCH v7 2/2] schemas: Add some common reserved-memory usages

2023-10-31 Thread Simon Glass
Hi Rob, On Mon, 16 Oct 2023 at 15:54, Simon Glass wrote: > > Hi Rob, > > On Mon, 16 Oct 2023 at 10:50, Rob Herring wrote: > > > > On Fri, Oct 13, 2023 at 4:09 PM Simon Glass wrote: > > > > > > Hi Rob, > > > > > > On Fri, 13 Oct 2023 at 13:42, Rob Herring wrote: > > > > > > > > On Fri, Oct 6, 2

Re: [PATCH] MAINTAINERS: update Qualcomm maintainer

2023-10-31 Thread Neil Armstrong
On 31/10/2023 16:19, Caleb Connolly wrote: As Ramon has been inactive for some time now, add myself and Neil Armstrong to maintain Qualcomm efforts going forwards. Signed-off-by: Caleb Connolly --- I greatly appreciate the work done by Ramon Fried in keeping Qualcomm support alive in U-Boot the

Re: [PATCH v4] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Fabio Estevam
On Tue, Oct 31, 2023 at 9:20 AM Marek Vasut wrote: > > Add extension to the 'mmc' command to read out the card registers. > Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are > supported. A register value can either be displayed or read into > an environment variable. > > Tested-by:

Re: [PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-10-31 Thread Jonas Karlman
On 2023-10-31 17:13, Slawomir Stepien wrote: > Mark the flash@0 as BROM_BOOTSOURCE_SPINAND. > Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5 > Plus. > > Signed-off-by: Slawomir Stepien > --- > arch/arm/mach-rockchip/rk3588/rk3588.c | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Jonas Karlman
On 2023-10-31 17:13, Slawomir Stepien wrote: > Flashing this image to the on-board flash is useful when you want to > start Linux from a medium (e.g. nvme) without flashing u-boot elements > to it. > > Signed-off-by: Slawomir Stepien > --- > configs/orangepi-5-plus-rk3588_defconfig | 1 + > 1 fi

[PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-10-31 Thread Slawomir Stepien
Mark the flash@0 as BROM_BOOTSOURCE_SPINAND. Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5 Plus. Signed-off-by: Slawomir Stepien --- arch/arm/mach-rockchip/rk3588/rk3588.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3588/rk3588.c b/arch/a

[PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Slawomir Stepien
Flashing this image to the on-board flash is useful when you want to start Linux from a medium (e.g. nvme) without flashing u-boot elements to it. Signed-off-by: Slawomir Stepien --- configs/orangepi-5-plus-rk3588_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/orangepi-5-p

Re: [PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Slawomir Stepien
On paź 31, 2023 17:49, Jonas Karlman wrote: > On 2023-10-31 17:13, Slawomir Stepien wrote: > > Flashing this image to the on-board flash is useful when you want to > > start Linux from a medium (e.g. nvme) without flashing u-boot elements > > to it. > > > > Signed-off-by: Slawomir Stepien > > ---

Re: [PATCH v4 1/4] pinctrl: npcm8xx: Add name for gpio function

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:22PM +0800, Jim Liu wrote: > GPIO function name is needed in the debug log > > Signed-off-by: Jim Liu > > Changes for v2: >- add commit message > Changes for v3: >- no change > Changes for v4: >- no change Applied to u-boot/master, thanks! -- Tom s

Re: [PATCH v4 2/4] configs: npcm: Support more uart baud rate

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:23PM +0800, Jim Liu wrote: > Add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) > > Signed-off-by: Jim Liu > > Changes for v2: >- Add commit message > Changes for v3: >- Modify CONFIG_SYS_BAUDRATE_TABLE > Changes for v4: >- No change Applied

Re: [PATCH v4 3/4] board: nuvuton: arbel: Fix incorrect ram size

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:24PM +0800, Jim Liu wrote: > 1. Fix incorrect ram size of 4GB dram with ECC enabled > 2. Fix wrong place to set dram bank size >- The dram bank size should be set in dram_init_banksize >- Dram_init should not access gd->bd because the board info > struct

Re: [PATCH v4 4/4] configs: nuvoton: npcm8xx: Disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:25PM +0800, Jim Liu wrote: > disable this config to improve flash program time > > Signed-off-by: Jim Liu > > Changes for v2: >- add commit message > Changes for v3: >- no change > Changes for v4: >- no change Applied to u-boot/master, thanks! -- Tom

Re: [RESEND PATCH 1/1] clk: ti: k3-pll: Add calibration support for non fractional mode

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 08:35:46AM -0500, Vishal Mahaveer wrote: > PLL calibration needs to be enabled when operating in non fractional > mode. Add the sequence to do a fast calibration when using PLL > in this mode. > > Signed-off-by: Vishal Mahaveer Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/3] board: developerbox: remove obsolete NOR flash layout definition

2023-10-31 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:51:01PM +0900, Masahisa Kojima wrote: > There are two kinds of NOR flash layout for the Developerbox. > Capsule update for the old layout is no longer available since > it has small capacity for secure world images and can not > house the TA such as fTPM. > This commit r

Re: [PATCH 2/3] board: developerbox: update old NOR flash layout build instruction

2023-10-31 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:51:02PM +0900, Masahisa Kojima wrote: > v2023.07 is the last version supporting old NOR flash layout > by default. The later versions of U-Boot, Developerbox is > configured to enable A/B update and new NOR Flash layout > by default. > This commit updates the documentati

Re: [PATCH 3/3] board: developerbox: update flash rawwrite binary size

2023-10-31 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:51:03PM +0900, Masahisa Kojima wrote: > Current documentation limits the firmware size to 1.5MB. > When the fTPM and StandaloneMM-based RPMB secure storage is > enabled, firmware size is bigger than that size. > Let's specify the A/B update bank size(4MB) for flash > raw

Re: [PATCH 1/3] corstone1000: add compressed kernel support

2023-10-31 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:50:49PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > unzip the kernel before executing it > > The Corstone-1000 kernel has become too large to fit in the available > storage. Switching to a compressed kernel avoids the problem, but > req

Re: [PATCH 2/3] corstone1000: enable distro booting command

2023-10-31 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:50:50PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > enable distro_bootcmd > > Signed-off-by: Abdellatif El Khlifi > Signed-off-by: Rui Miguel Silva Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/3] corstone1000: enable PSCI reset

2023-10-31 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:50:51PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Emekcan Aras > > enable PSCI reset used for the system reset > > Even though Corstone-1000 does not implement the entire PSCI APIs, > it relies on PSCI reset interface for the system reset. > > Signed-off-by:

[PATCH v1 0/1] Step up as co-maintainer of Tegra SOC platform

2023-10-31 Thread Svyatoslav Ryhel
I would like to volunteer as Tegra SOC co-maintainer. Svyatoslav Ryhel (1): MAINTAINERS: Step up as co-maintainer of Tegra SOC platform MAINTAINERS | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.39.2

[PATCH v1 1/1] MAINTAINERS: Step up as co-maintainer of Tegra SOC platform

2023-10-31 Thread Svyatoslav Ryhel
Update maintainers for Tegra SoC platform. Include device trees and drivers which contain tegra in the name. Signed-off-by: Svyatoslav Ryhel --- MAINTAINERS | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index cde778bc4d..f07386dc77 100644 --

Re bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Simon Glass
Hi Tony, Sorry I cannot reply to the patch[1]. Can you please send the console trace for this situation? I don't want to ignore errors completely, so wonder if there is a special error code which could be produced when a device is missing? Regards, Simon [1] https://patchwork.ozlabs.org/projec

  1   2   >