Re: [PATCH 00/10] board: sl28: add sl28cpld support and board cleanups

2022-01-30 Thread Michael Walle
Am 2021-11-15 23:45, schrieb Michael Walle: Add support for the sl28cpld management controller found on this board. This is especially useful, because of the integrated watchdog in this controller. It is used to supervise the bootup of the bootloader and will automatically switch to the

[PATCH 1/2] powerpc: mpc8xx: drop CONFIG_SYS_RESET_ADDRESS

2022-01-30 Thread Ovidiu Panait
There are no boards that define CONFIG_SYS_RESET_ADDRESS, so drop the associated mpc8xx code that checks for it. Signed-off-by: Ovidiu Panait --- arch/powerpc/cpu/mpc8xx/cpu.c | 11 ++- scripts/config_whitelist.txt | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git

[PATCH 2/2] common: drop CONFIG_SYS_RESET_ADDR

2022-01-30 Thread Ovidiu Panait
There are no boards that define CONFIG_SYS_RESET_ADDR, so drop the remaining comments referencing it and also the config_whitelist.txt entry. Signed-off-by: Ovidiu Panait --- include/configs/10m50_devboard.h | 9 - include/configs/3c120_devboard.h | 9 -

Re: [PATCH] arm: kirkwood: Dreamplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-01-30 Thread Stefan Roese
On 1/31/22 00:02, Tony Dinh wrote: The Globalscale Technologies Dreamplug board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 driver to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h

Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID

2022-01-30 Thread Heinrich Schuchardt
On 1/31/22 00:14, Simon Glass wrote: Hi Heinrich, On Sat, 29 Jan 2022 at 14:40, Heinrich Schuchardt wrote: On 1/29/22 22:09, Simon Glass wrote: Hi Heinrich, On Fri, 28 Jan 2022 at 11:42, Heinrich Schuchardt wrote: On RISC-V a new UEFI protocol has been introduced. Support printing

RE: [PATCH v10 00/14] Add CAAM driver model support

2022-01-30 Thread Gaurav Jain
Hi Stefano Can you help to review and merge this patch series. Regards Gaurav Jain > -Original Message- > From: Gaurav Jain > Sent: Wednesday, January 12, 2022 7:02 PM > To: u-boot@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; > Peng Fan ; Simon Glass ; Michael > Walle ; Priyanka

[PATCH 4/4] spi: zynq_qspi: Add SPI memory operations to zynq qspi

2022-01-30 Thread Ashok Reddy Soma
From: T Karthik Reddy Spi memory operation interface is added to zynq qspi driver to provide an high-level interface to execute qspi controller specific memory operations by avoiding spi_mem_exec_op() from spi-mem framework. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma ---

[PATCH 3/4] spi: zynq_qspi: Add a check for baudrate and set default if not in limits

2022-01-30 Thread Ashok Reddy Soma
From: Siva Durga Prasad Paladugu Add a check afer baudrate calculation to see if the resultant value falls within the range, else set it to default baudrate value. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynq_qspi.c | 6 ++ 1 file

[PATCH 1/4] spi: zynq_qspi: Typecast rxbuf properly

2022-01-30 Thread Ashok Reddy Soma
From: Siva Durga Prasad Paladugu This patch typecasts and accesses rx buf properly as an unaligned rxbuf, typecasting with u16 and accessing it causes data abort exception and this patch fixes it. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek Signed-off-by: Ashok Reddy

[PATCH 0/4] Zynq qspi updates

2022-01-30 Thread Ashok Reddy Soma
This patch series does below updates to zynq qspi driver. 1. Fix typecast to rxbuf in zynq_qspi_read_data() 2. Fix data abort issue incase of un-aligned writes 3. Add a check for baudrate and if not in limits set to default 4. Add zynq_qspi_exec_op() to avoid spi_mem_exec_op() from spi-mem

[PATCH 2/4] spi: zynq_qspi: Read only one byte at a time from txbuf

2022-01-30 Thread Ashok Reddy Soma
From: Siva Durga Prasad Paladugu Read only one byte at a time from txbuf as txbuf may not be aligned and accessing more than a byte at a time may cause alignment issues. This fixes the issue of data abort exception while writing to flash device. Signed-off-by: Siva Durga Prasad Paladugu

[PATCH] spl: ymodem: Fix buffer overflow during Image copy

2022-01-30 Thread Vignesh Raghavendra
ymodem_read_fit() driver will end copying up to BUF_SIZE boundary even when requested size of copy operation is less than that. For example, if offset = 0, size = 1440B, ymodem_read_fit() ends up copying 2KB from offset = 0, to destination buffer addr This causes data corruption when malloc'd

[PATCH v2 5/5] cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB

2022-01-30 Thread Masami Hiramatsu
Since dfu is not only used for USB, and some platform only supports DFU_OVER_TFTP or EFI capsule update, dfu_alt_info is defined on such platforms too. For such platform, 'dfu list' command is useful to check how the current dfu_alt_info setting is parsed. Signed-off-by: Masami Hiramatsu ---

[PATCH v2 4/5] doc: usage: DFU: Fix dfu_alt_info document

2022-01-30 Thread Masami Hiramatsu
Fix some typo and wrong information about dfu_alt_info. - Add the parameter format, decimal only or hexadecimal. - Use same parameter name for the same kind of parameters. (e.g. dev -> dev_id) Signed-off-by: Masami Hiramatsu --- doc/usage/dfu.rst | 57

[PATCH v2 3/5] DFU: Check the number of arguments and argument string strictly

2022-01-30 Thread Masami Hiramatsu
When parsing the dfu_alt_info, check the number of arguments and argument string strictly. If there is any garbage data (which is not able to be parsed correctly) in dfu_alt_info, that means something wrong and user may make a typo or mis- understanding about the syntax. Since the dfu_alt_info is

[PATCH v2 2/5] DFU: Accept redundant spaces and tabs in dfu_alt_info

2022-01-30 Thread Masami Hiramatsu
If dfu_alt_info has repeated spaces or tab (for indentation or readability), the dfu fails to parse it. For example, if dfu_alt_info="mtd nor1=image raw 10 20" (double spaces after "raw"), the image entity start address is '0' and the size '0x10'. This is because the repeated space is

[PATCH v2 1/5] DFU: Do not copy the entity name over the buffer size

2022-01-30 Thread Masami Hiramatsu
Use strlcpy() instead of strcpy() to prevent copying the entity name over the name buffer size. Signed-off-by: Masami Hiramatsu --- drivers/dfu/dfu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index af3975925a..66c41b5e76 100644

[PATCH v2 0/5] DFU: Update dfu_alt_info parser etc.

2022-01-30 Thread Masami Hiramatsu
Hi, Here is the 2nd version of improving DFU subsystem series. This improves dfu_alt_info parser and fixing documents etc. In this version I fixed a build error of cmd/dfu.c so that it can be build without DFU_OVER_USB and DFU_OVER_TFTP (in this case, the platform will use the DFU only for EFI

Re: Pull request: u-boot-sunxi/master for 2022.04

2022-01-30 Thread Tom Rini
On Sun, Jan 30, 2022 at 10:10:56PM +, Andre Przywara wrote: > Hi Tom, > > a bit delayed, the first batch of the sunxi pull request for this cycle. > This is mostly collecting some patches that were lying around for a while, > plus some recent fixes. Nothing too exciting at this point, but of

Re: Please test U-Boot Allwinner F1C100s support

2022-01-30 Thread Jesse Taube
On 1/30/22 21:04, Andre Przywara wrote: Hi, thanks to the tireless work of Jesse, I think the basic Allwinner F1C100s support for mainline U-Boot is now ready to be merged. Since I don't have the hardware, can any of you who have boards please give it a try on their hardware? I would really

Please test U-Boot Allwinner F1C100s support

2022-01-30 Thread Andre Przywara
Hi, thanks to the tireless work of Jesse, I think the basic Allwinner F1C100s support for mainline U-Boot is now ready to be merged. Since I don't have the hardware, can any of you who have boards please give it a try on their hardware? I would really love to see some confirmations before I merge

Re: [PATCH 5/5] cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB

2022-01-30 Thread Masami Hiramatsu
Hi Tom, Thanks for testing, I confirmed the error. CC cmd/dfu.o cmd/dfu.c: In function ‘do_dfu’: cmd/dfu.c:53:30: error: ‘interface’ undeclared (first use in this function); did you mean ‘usb_interface’? 53 | ret = dfu_init_env_entities(interface, devstring); |

Re: [PATCH] binman: Skip node generation for images read from files

2022-01-30 Thread Simon Glass
Hi Jan, On Fri, 28 Jan 2022 at 12:37, Jan Kiszka wrote: > > From: Jan Kiszka > > We can and should run the node generator only when creating a new image. > When we read it back, there is no need to generate nodes - they already > exits, and binman does not dive that deep into the image - and

Re: [PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

2022-01-30 Thread Simon Glass
Hi Michal, On Sun, 30 Jan 2022 at 12:41, Michal Simek wrote: > > > > On 1/30/22 16:52, Simon Glass wrote: > > More than a year after this migration message appeared, we still have new > > boards being added with this option. Add a check against this. > > > > Signed-off-by: Simon Glass > > --- >

Re: [PATCH] dm: Use parenthesis for the device_get_ops macro argument

2022-01-30 Thread Simon Glass
On Sat, 29 Jan 2022 at 12:21, Sughosh Ganu wrote: > > Use parenthesis for the device_get_ops macro argument. This prevents > errors when using an expression for the parameter. > > Signed-off-by: Sughosh Ganu > --- > include/dm/device.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v1 3/5] scripts: Makefile.autoconf: allow CONFIG_SYS_CONFIG_NAME file to live in board directory

2022-01-30 Thread Simon Glass
Hi Troy, On Thu, 6 Jan 2022 at 14:09, Troy Kisky wrote: > > On 12/28/2021 12:33 AM, Simon Glass wrote: > > Hi Troy, > > > > On Fri, 17 Dec 2021 at 16:02, Troy Kisky > > wrote: > >> > >> Let the board specific include file live in the board directory. > >> > >> Signed-off-by: Troy Kisky > >>

Re: [PATCH v1 0/5] Move board specific files to board directory

2022-01-30 Thread Simon Glass
Hi Troy, On Fri, 7 Jan 2022 at 11:33, Troy Kisky wrote: > > On 1/7/2022 7:12 AM, Tom Rini wrote: > > On Thu, Jan 06, 2022 at 01:14:40PM -0800, Troy Kisky wrote: > >> On 12/28/2021 5:11 AM, Tom Rini wrote: > >>> On Tue, Dec 28, 2021 at 01:33:05AM -0700, Simon Glass wrote: > Hi Troy, > >

Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID

2022-01-30 Thread Simon Glass
Hi Heinrich, On Sat, 29 Jan 2022 at 14:40, Heinrich Schuchardt wrote: > > > > On 1/29/22 22:09, Simon Glass wrote: > > Hi Heinrich, > > > > On Fri, 28 Jan 2022 at 11:42, Heinrich Schuchardt > > wrote: > >> > >> On RISC-V a new UEFI protocol has been introduced. Support printing > >> its GUID

Re: [PATCH] moveconfig: Fix code relying on now-stripped newline characters

2022-01-30 Thread Simon Glass
Hi Alper, On Sun, 30 Jan 2022 at 13:14, Alper Nebi Yasak wrote: > > On 30/01/2022 00:09, Simon Glass wrote: > > On Sat, 29 Jan 2022 at 08:22, Alper Nebi Yasak > > wrote: > >> Commit 37f815cad07d ("moveconfig: Use a function to read files") adds a > >> helper function that can read a file as

[PATCH] arm: kirkwood: Dreamplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-01-30 Thread Tony Dinh
The Globalscale Technologies Dreamplug board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 driver to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h for all Kirkwood boards with

Re: [PATCH 1/2] sunxi: fix H616 DRAM ODT support

2022-01-30 Thread Andre Przywara
On Sat, 29 Jan 2022 16:58:42 +0100 Jernej Skrabec wrote: > Kconfig symbol is missing CONFIG_ prefix, so compiler will always > skip ODT configuration. > > Fix symbol name. Oops, nice catch! Reviewed-by: Andre Przywara Applied to sunxi/master. Cheers, Andre > > Fixes: f4317dbd06b6

Re: [PATCH 2/2] sunxi: Fix H616 DRAM read calibration for dual rank

2022-01-30 Thread Andre Przywara
On Sat, 29 Jan 2022 16:58:43 +0100 Jernej Skrabec wrote: > Although it isn't known what bit 0 in PHY reg 8 does, it's obvious that > it has to be set before read calibration and cleared afterwards. This is > already done for first rank, but not for second (copy & paste error.) Indeed looks like

Pull request: u-boot-sunxi/master for 2022.04

2022-01-30 Thread Andre Przywara
Hi Tom, a bit delayed, the first batch of the sunxi pull request for this cycle. This is mostly collecting some patches that were lying around for a while, plus some recent fixes. Nothing too exciting at this point, but of course they should be merged nevertheless. There is the much bigger

Re: [PATCH] moveconfig: Fix code relying on now-stripped newline characters

2022-01-30 Thread Alper Nebi Yasak
On 30/01/2022 00:09, Simon Glass wrote: > On Sat, 29 Jan 2022 at 08:22, Alper Nebi Yasak > wrote: >> Commit 37f815cad07d ("moveconfig: Use a function to read files") adds a >> helper function that can read a file as lines, but strips the newline >> characters. This change broke parts of

Re: [PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

2022-01-30 Thread Michal Simek
On 1/30/22 16:52, Simon Glass wrote: More than a year after this migration message appeared, we still have new boards being added with this option. Add a check against this. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master Makefile | 6

Re: [PATCH 1/3] sunxi: prcm: Add a few registers

2022-01-30 Thread Samuel Holland
On 1/30/22 8:27 AM, Jernej Skrabec wrote: > H6 and H616 SPL code has a few writes to unknown PRCM registers. Now > that we know what they are, let's replace magic offsets with proper > register names. > > Signed-off-by: Jernej Skrabec Reviewed-by: Samuel Holland

[PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

2022-01-30 Thread Simon Glass
More than a year after this migration message appeared, we still have new boards being added with this option. Add a check against this. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master Makefile | 6 scripts/fit_gen_whitelist.txt | 65

[PATCH v2 1/2] Makefile: Create a file to indicate the config

2022-01-30 Thread Simon Glass
At present it is not actually possible to discover the defconfig file that was used to build U-Boot, so far as I can tell. Write this out to a file in the build directory, so this is visible. Signed-off-by: Simon Glass --- (no changes since v1) scripts/kconfig/Makefile | 2 ++ 1 file changed,

[PATCH 3/3] sunxi: clock: H6: Adjust PLL LDO before clock setup

2022-01-30 Thread Jernej Skrabec
BSP boot0 adjust PLL LDO regulator before clocks are initialized. Let's do that. Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/clock_sun50i_h6.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-sunxi/clock_sun50i_h6.c b/arch/arm/mach-sunxi/clock_sun50i_h6.c

[PATCH 2/3] sunxi: clock: H6/H616: Add resistor calibration

2022-01-30 Thread Jernej Skrabec
BSP boot0 executes resistor calibration before clocks are initialized. Let's do that. Signed-off-by: Jernej Skrabec --- arch/arm/mach-sunxi/clock_sun50i_h6.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-sunxi/clock_sun50i_h6.c

[PATCH 1/3] sunxi: prcm: Add a few registers

2022-01-30 Thread Jernej Skrabec
H6 and H616 SPL code has a few writes to unknown PRCM registers. Now that we know what they are, let's replace magic offsets with proper register names. Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/prcm_sun50i.h | 10 ++ arch/arm/mach-sunxi/clock_sun50i_h6.c

[PATCH 0/3] sunxi: H6/H616: PRCM updates

2022-01-30 Thread Jernej Skrabec
During H616 boot0 blob and H6 boot0 sources analysis, I noticed that SPL doesn't set resistor calibration and PLL LDO on H6. Tests didn't show any observable difference, but nevertheless it's better to mimick boot0 behaviour. In the process I also added names for few PRCM registers so it's

Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit

2022-01-30 Thread Fabio Estevam
Hi Angus, On Sun, Jan 30, 2022 at 10:10 AM Angus Ainslie wrote: > I added this because I wanted to use it in the SPL. I can put it in the > header file for my board but I think it would be better in an imx8m > header file. If not the pinfunc header is there another imx8m header you > could

Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit

2022-01-30 Thread Angus Ainslie
Hi Fabio, On 2022-01-29 10:58, Fabio Estevam wrote: Hi Angus, On Fri, Jan 28, 2022 at 1:21 PM Angus Ainslie wrote: SION (Software Input On Field) - force the select mode input path Signed-off-by: Angus Ainslie --- arch/arm/dts/imx8mq-pinfunc.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] [v2] add kaslr-seed generation to extlinux.conf

2022-01-30 Thread Zhang Ning
just test today, I find the code doesn't work as expect. add kaslr-seed to fdt returns -ERR_FDT_NOSPACE, after review code for dtb_overlay, I guess I need to resize main fdt to hold the new property. I will resend patch after I comfirm it work. On Sun, Jan 30, 2022 at 01:10:09PM +0800, Zhang

Re: [PATCH 1/2] clk: imx: select [SPL_]CLK_COMPOSITE_CCF for imxrt10{20|50}

2022-01-30 Thread Giulio Benetti
Hi Heiko, > Il giorno 30 gen 2022, alle ore 07:38, Heiko Thiery > ha scritto: > > The clock composite is required when using the clock framework. So > select it automatically. > > Signed-off-by: Heiko Thiery Thank you Reviewed-by: Giulio Benetti Best regards —- Giulio Benetti Benetti

Re: [PATCH 2/2] configs/*imxrt10*: remove [SPL_]CLK_COMPOSITE_CCF

2022-01-30 Thread Giulio Benetti
Hi Heiko, > Il giorno 30 gen 2022, alle ore 07:39, Heiko Thiery > ha scritto: > > This option is selected implicitly when [SPL_]CLK_IMXRT10{20|50} is selected. > > Signed-off-by: Heiko Thiery Thank you Reviewed-by: Giulio Benetti Best regards —- Giulio Benetti Benetti Engineering sas >

Re: [PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-30 Thread Dzmitry Sankouski
This patch series reimplemented in more generic way in `save prev bootloader data, when u-boot chainloaded` patch series вт, 11 янв. 2022 г. в 19:19, Tom Rini : > On Tue, Jan 11, 2022 at 07:01:59PM +0300, Dzmitry Sankouski wrote: > > > - add FIT image support > > - increase LMB_MAX_REGIONS, to

[PATCH 3/3 v2] board: axy17lte: get board usable - add bootcmd and docs

2022-01-30 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

[PATCH 2/3 v2] board: starqltechn: get board usable - add bootcmd and docs

2022-01-30 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

[PATCH 1/3 v2] arm: init: save previous bootloader data

2022-01-30 Thread Dzmitry Sankouski
When u-boot is used as a chain-loaded bootloader (replacing OS kernel), previous bootloader leaves data in RAM, that can be reused. For example, on recent arm linux system, when chainloading u-boot, there are initramfs and fdt in RAM prepared for OS booting. Initramfs may be modified to store

[PATCH 0/3] save prev bootloader data, when u-boot chainloaded

2022-01-30 Thread Dzmitry Sankouski
When u-boot is used as a chain-loaded bootloader (replacing OS kernel), previous bootloader leaves data in RAM, that can be reused. For example, on recent arm linux system, when chainloading u-boot, there are initramfs and fdt in RAM prepared for OS booting. Initramfs may be modified to store