[PATCH 2/2] configs: imx8mn_beacon: Enable QSPI Support

2021-04-02 Thread Adam Ford
There is a QSPI chip connected to the FSPI. Enable the defconfig to support it. Signed-off-by: Adam Ford diff --git a/configs/imx8mn_beacon_defconfig b/configs/imx8mn_beacon_defconfig index d6a3385d8d..567a6e5e1e 100644 --- a/configs/imx8mn_beacon_defconfig +++ b/configs/imx8mn_beacon_defconfig

[PATCH 1/2] arm: dts: imx8mn, imx8mn-beacon: Sync dts files with Kernel 5.12-rc5

2021-04-02 Thread Adam Ford
There have been a few updates including flexspi, so it's necessary to re-sync. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-beacon-baseboard.dtsi b/arch/arm/dts/imx8mn-beacon-baseboard.dtsi index 49bff19a78..376ca8ff72 100644 --- a/arch/arm/dts/imx8mn-beacon-baseboard.dtsi +++ b/ar

Re: Locking down U-Boot env with ENV_WRITEABLE_LIST

2021-04-02 Thread Tim Harvey
On Fri, Mar 26, 2021 at 11:34 AM Marek Vasut wrote: > > On 3/26/21 7:15 PM, Tim Harvey wrote: > > Greetings, > > Hi, > > > I'm trying to understand best how to lock down a U-Boot environment > > using ENV_WRITEABLE_LIST=y. > > > > My understanding is that I should define all vars that I wish to be

Re: [PATCH v2 00/10] spi: dw: Add support for DUAL/QUAD/OCTAL modes

2021-04-02 Thread Sean Anderson
On 4/2/21 7:05 PM, Sean Anderson wrote: This series adds support for enhanced SPI modes. It was tested on a K210 (DWC SSI with QSPI flash). If anyone has a designware device with QSPI flash attached (especially a DW SSI APB device), I'd greatly appreciate them testing out this patch series. Give

[PATCH v2 09/10] spi: dw: Support enhanced SPI

2021-04-02 Thread Sean Anderson
This adds support for DUAL/QUAD/OCTAL transfers. This adds dw_spi_supports_op to do some sanity checks which would otherwise live in exec_op. We only support byte transfers, but as far as I could tell only bytes are supported by mem_ops (e.g. every part of the opcode has nbytes). Signed-off-by: Se

[PATCH v2 10/10] spi: dw: Support clock stretching

2021-04-02 Thread Sean Anderson
We don't always read/write to the FIFO fast enough. Enable clock stretching for enhanced SPI transfers. This is only possible with DWC SSI devices more recent than 1.01a. We also need to set the RXFTLR register to tell the device when to start reciving again. In particular, the default of 0 will re

[PATCH v2 08/10] spi: dw: Define registers for enhanced mode

2021-04-02 Thread Sean Anderson
This adds some registers needed for DUAL/QUAD/OCTAL modes. It also adds the fields in (R)ISR so we can check for over-/under-flow. Signed-off-by: Sean Anderson --- (no changes since v2) Changes in v2: - Fix some inconsistencies in register naming and usage drivers/spi/designware_spi.c | 60 ++

[PATCH v2 07/10] spi: dw: Add ENHANCED cap

2021-04-02 Thread Sean Anderson
This capability corresponds to an SSIC_SPI_MODE of 1, 2, or 3. This doesn't do much yet, but it does add support for detection and for disallowing unsupported modes. Unfortunately, we cannot discriminate between these modes (only that SSIC_SPI_MODE != 0), so we just pretend to have DUAL+QUAD+OCTAL

[PATCH v2 06/10] spi: dw: Rewrite poll_transfer logic

2021-04-02 Thread Sean Anderson
This rewrites poll_transfer, dw_writer, and dw_reader. * We now use RO transfers (instead of always using TR). This eliminates the need to send out dummy words, and simplifies the transmit logic. * All parameters (except regs and bits_per_word) are passed explicitly. * Most parameters have been

[PATCH v2 05/10] spi: dw: Switch to capabilities

2021-04-02 Thread Sean Anderson
Since Linux commit cc760f3143f5 ("spi: dw: Convert CS-override to DW SPI capabilities"), the Linux driver has used capability flags instead of using ad-hoc flags and functions. This is a great idea, and we should use it as well. The .data field in the compatible array has switched from being an in

[PATCH v2 04/10] spi: dw: Actually mask interrupts

2021-04-02 Thread Sean Anderson
Writing 1s to this register *unmasks* interrupts. Mask them instead. Signed-off-by: Sean Anderson --- (no changes since v2) Changes in v2: - Actually mask interrupts drivers/spi/designware_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/designware_spi.c b

[PATCH v2 02/10] spi: spi-mem: Add debug message for spi-mem ops

2021-04-02 Thread Sean Anderson
This prints some basic metadata about the SPI memory op. This information may be used to debug SPI drivers (e.g. determining the expected SPI mode). It is also helpful for verifying that the data on the wire matches the data intended to be transmitted (e.g. with a logic analyzer). The opcode is pri

[PATCH v2 03/10] spi: dw: Log status register on timeout

2021-04-02 Thread Sean Anderson
This logs the status register on timeout, so it is easier to determine the cause of the failure. Signed-off-by: Sean Anderson --- (no changes since v1) drivers/spi/designware_spi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.

[PATCH v2 01/10] mtd: spi-mem: Export spi_mem_default_supports_op

2021-04-02 Thread Sean Anderson
This is useful for extending the default functionality. This mirrors the change in Linux commit 46109648052f ("spi: spi-mem: export spi_mem_default_supports_op()"). Signed-off-by: Sean Anderson Reviewed-by: Bin Meng Reviewed-by: Pratyush Yadav --- (no changes since v1) include/spi-mem.h | 3

[PATCH v2 00/10] spi: dw: Add support for DUAL/QUAD/OCTAL modes

2021-04-02 Thread Sean Anderson
This series adds support for enhanced SPI modes. It was tested on a K210 (DWC SSI with QSPI flash). If anyone has a designware device with QSPI flash attached (especially a DW SSI APB device), I'd greatly appreciate them testing out this patch series. Given that there has been no testing of v2 ove

Re: [PATCH v6 0/6] wdt: Add support for watchdogs on Kendryte K210

2021-04-02 Thread Sean Anderson
On 3/10/21 9:02 PM, Sean Anderson wrote: Please merge! I don't want to have to keep rebasing. Changes in v6: - Rebase on u-boot/master Changes in v5: - Note dependency on "time: Fix get_ticks being non-monotonic" - Add a few signed-off-bys which were sent for version 1 - Rebase on u-boot/mas

Re: [RFC PATCH v4 1/2] arch: riscv: cpu: Add callback to init each core

2021-04-02 Thread Sean Anderson
On 3/30/21 1:26 AM, Green Wan wrote: Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to allow different riscv hart perform setup code for each hart as early as possible. Since all the harts enter the callback, they must be able to run the same setup. Signed-off-by: Green Wan

Re: [PATCH v8 04/28] spi: spi-mem: add spi_mem_dtr_supports_op()

2021-04-02 Thread Sean Anderson
On 4/1/21 3:31 PM, Pratyush Yadav wrote: spi_mem_default_supports_op() rejects DTR ops by default to ensure that the controller drivers that haven't been updated with DTR support continue to reject them. It also makes sure that controllers that don't support DTR mode at all (which is most of them

Re: [PATCH v8 02/28] spi: spi-mem: allow specifying a command's extension

2021-04-02 Thread Sean Anderson
On 4/1/21 3:31 PM, Pratyush Yadav wrote: In xSPI mode, flashes expect 2-byte opcodes. The second byte is called the "command extension". There can be 3 types of extensions in xSPI: repeat, invert, and hex. When the extension type is "repeat", the same opcode is sent twice. When it is "invert", th

Re: [PATCH v8 00/28] mtd: spi-nor-core: add xSPI Octal DTR support

2021-04-02 Thread Sean Anderson
On 4/1/21 3:31 PM, Pratyush Yadav wrote: Hi, This series adds support for octal DTR flashes in the SPI NOR framework, As an overall question, is this the same as "DDR" mode? --Sean and then adds hooks for the Cypress S28HS512T and Micron MT35XU512ABA flashes. Reviving this series after a lo

Re: [PATCH v8 01/28] spi: spi-mem: allow specifying whether an op is DTR or not

2021-04-02 Thread Sean Anderson
On 4/1/21 3:31 PM, Pratyush Yadav wrote: Each phase is given a separate 'dtr' field so mixed protocols like 4S-4D-4D can be supported. Signed-off-by: Pratyush Yadav --- drivers/spi/spi-mem.c | 3 +++ include/spi-mem.h | 8 2 files changed, 11 insertions(+) diff --git a/drive

Re: [PATCH v8 03/28] spi: spi-mem: export spi_mem_default_supports_op()

2021-04-02 Thread Sean Anderson
On 4/1/21 3:31 PM, Pratyush Yadav wrote: Controllers can use this function to perform basic sanity checking on the spi-mem op. Signed-off-by: Pratyush Yadav --- include/spi-mem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spi-mem.h b/include/spi-mem.h index 3e5b771045..dc

[PATCH 2/2] binman: Support adding sections to FMAPs

2021-04-02 Thread Simon Glass
When used with hierarchical images, use the Chromium OS convention of adding a section before all the subentries it contains. Signed-off-by: Simon Glass --- tools/binman/entries.rst | 13 +-- tools/binman/etype/fmap.py | 20 +++-- tools/binm

[PATCH 1/2] binman: Tweak implementation of fmap

2021-04-02 Thread Simon Glass
Use an interator in two of the fmap tests so it is easier to add new items. Also check the name first since that is the first indication that something is wrong. Use a variable for the expected size of the fmap to avoid repeating the code. Signed-off-by: Simon Glass --- tools/binman/ftest.py |

[PATCH 7/8] ARM: sheep-rk3368: Enable the rk3368 network driver

2021-04-02 Thread Peter Robinson
There's currently no network enabled in the sheep but we now have all the bits in place so enable the driver and DM_ETH to fix the warning. Signed-off-by: Peter Robinson Cc: Andy Yan --- configs/sheep-rk3368_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sheep-rk3368_de

[PATCH 8/8] ARM: CHIP: Enable DM_USB

2021-04-02 Thread Peter Robinson
The CHIP devices doesn't enable distro defaults due to primary storage being NAND so it doesn't get DM_USB by default so enable it and a few other useful USB bits. Signed-off-by: Peter Robinson --- configs/CHIP_defconfig | 2 ++ configs/CHIP_pro_defconfig | 3 +++ 2 files changed, 5 insertio

[PATCH 6/8] ARM: geekbox: Enable the rk3368 network driver

2021-04-02 Thread Peter Robinson
There's currently no network enabled in the geekbox but we now have all the bits in place so enable the driver and DM_ETH to fix the warning. Signed-off-by: Peter Robinson Cc: "Andreas Färber" --- configs/geekbox_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/geekbox_de

[PATCH 5/8] ARM: Rock: Disable network support

2021-04-02 Thread Peter Robinson
There's not currently any network support on the rock but the minor network config still triggers the DM_ETH warning even though there's no even a USB network interface so lets disable network support to mitigate the warning. Signed-off-by: Peter Robinson Cc: Heiko Stuebner --- configs/rock_def

[PATCH 4/8] ARM: odroid: Enable DM_ETH

2021-04-02 Thread Peter Robinson
The odroid has USB ethernet so enable DM Ethernet support. Signed-off-by: Peter Robinson Jaehoon Chung --- configs/odroid_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/odroid_defconfig b/configs/odroid_defconfig index 9f2b0b205d..1d7949b6d0 100644 --- a/configs/odroid_de

[PATCH 3/8] ARM: odroid-xu3: Enable DM_ETH

2021-04-02 Thread Peter Robinson
The odroid-xu3 has USB ethernet so enable DM Ethernet support. Signed-off-by: Peter Robinson Cc: Jaehoon Chung Cc: Lukasz Majewski --- configs/odroid-xu3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/odroid-xu3_defconfig b/configs/odroid-xu3_defconfig index 755a2ca9ad..

[PATCH 2/8] ARM: dragonboard820c: Disable network support

2021-04-02 Thread Peter Robinson
There's not currently any network support on the 820c but the minor network config still triggers the DM_ETH warning even though there's no even a USB network interface so lets disable network support to mitigate the warning. Signed-off-by: Peter Robinson Cc: Jorge Ramirez-Ortiz --- configs/dra

[PATCH 1/8] ARM: dragonboard410c: Enable DM_ETH

2021-04-02 Thread Peter Robinson
The dragonboard410c only uses USB ethernet interfaces so just enable DM_ETH. Signed-off-by: Peter Robinson Cc: Ramon Fried --- configs/dragonboard410c_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index f5db4

[PATCH 1/1] efi_loader: EFI_UNACCEPTED_MEMORY_TYPE

2021-04-02 Thread Heinrich Schuchardt
* UEFI spec 2.9 introduced a new memory type EFI_UNACCEPTED_MEMORY_TYPE. Add it to enum EFI_MEMORY_TYPE. * Add missing EFI_MEMORY_CPU_CRYPTO constant * Improve description of EFI_PERSISTENT_MEMORY_TYPE Signed-off-by: Heinrich Schuchardt --- include/efi.h | 7 ++- 1 file changed, 6 insertio

[PATCH 4/5] ARM: board: warp: convert to DM_USB

2021-04-02 Thread Peter Robinson
Convert Warp to use DM USB. Signed-off-by: Peter Robinson Cc: Otavio Salvador Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp_defconfig | 1 + include/configs/warp.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/warp_defconfig b/configs/warp_defconfig index

[PATCH 3/5] ARM: board: warp: convert to DM_MMC

2021-04-02 Thread Peter Robinson
Convert Warp to use DM MMC. Signed-off-by: Peter Robinson Cc: Otavio Salvador Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx6sl-warp-u-boot.dtsi | 7 ++ board/warp/warp.c| 33 configs/warp_defconfig | 1 + 3 files

[PATCH 5/5] ARM: board: warp7: Minor cleanups and DM_ETH

2021-04-02 Thread Peter Robinson
We don't need a random MAC as the only network that's supported is over USB and that has a hardcoded MAC, enable DM_ETH for the USB, and the device doesn't have MTD storage so drop that. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig | 3 +--

[PATCH 2/5] ARM: board: warp: Enable OF_CONTROL and DM gpio/pin control

2021-04-02 Thread Peter Robinson
Enable OF_CONTROL and DM for gpio and pin control support on the i.MX6SL based Warp. Signed-off-by: Peter Robinson Cc: Otavio Salvador Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/warp_defconfig b/configs/war

[PATCH 1/5] ARM: board: warp: Import dts files

2021-04-02 Thread Peter Robinson
Import the i.MX6 based Warp dts files from Linux 5.12-rc1. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile| 4 +- arch/arm/dts/imx6sl-warp.dts | 234 +++ 2 files changed, 237 insertions(+), 1 deletion(-) cre

RE: Ethernet Gadget on STM32MP1 not working

2021-04-02 Thread Patrice CHOTARD
Hi Herbert I will have a look at this issue. Thanks for the information and start of debug. Patrice De : Herbert Poetzl Envoyé : jeudi 1 avril 2021 12:58 À : u-boot@lists.denx.de Cc : Patrick DELAUNAY ; Patrice CHOTARD Objet : Ethernet Gadget on STM32MP1 not

[PATCH] lib/rsa: Use EVP_PKEY instead of RSA

2021-04-02 Thread Chan, Donald
Most modern OpenSSL engines have methods overridden at the EVP level rather than at RSA level, to make these engines work properly with mkimage, the RSA signing code needs to switch to using EVP_* APIs as much as possible. Signed-off-by: Donald Chan --- lib/rsa/rsa-sign.c | 168 +

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-02 Thread Manuel Luís Reis
FYI: the output from serial port: board_init_f spl_atmel.c 130 mem_init 182 ddr2_init mpddr.c 66udelay lib time.c 196__udelay lib time.c 177Could not initialize timer (err -11) udelay lib time.c 196__udelay lib time.c 177Could not initialize timer (err -11) udelay lib time.c 196__udelay lib tim

Re: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94

2021-04-02 Thread Manuel Luís Reis
> As it seems from the dump of dm_dump_all() the atmel_pit_timer is not > probed. I did a bit of debug and the dm_timer_init() -> > uclass_first_device() -> uclass_find_first_device() found zero timers > registered for UCLASS_TIMER. The driver is compiled. Also checked that > atmel_pit_timer probe

[PATCH 4/5] ARM: imx: udoo: Convert block devices to DM

2021-04-02 Thread Peter Robinson
Enable DM block, DM MMC and DM SATA support on iMX6 Udoo convert board code to match the DM support. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx6qdl-udoo-u-boot.dtsi | 7 +++ board/udoo/udoo.c | 30 ---

[PATCH 5/5] ARM: imx: udoo: convert to DM_ETH

2021-04-02 Thread Peter Robinson
Convert the UDOO board to use DM_ETH. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- board/udoo/udoo.c | 75 ++ configs/udoo_defconfig | 2 ++ include/configs/udoo.h | 8 - 3 files changed, 4 insertions(+), 81 deletions(

[PATCH 3/5] ARM: imx: udoo: drop MTD config

2021-04-02 Thread Peter Robinson
The UDOO doesn't have any MTD storage so drop the config. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- configs/udoo_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig index bcc88356ce..deec4bc82f 100644 --- a/co

[PATCH 1/5] ARM: board: udoo: Import UDOO dts files

2021-04-02 Thread Peter Robinson
Import the i.MX6 based UDOO dts files from Linux 5.12-rc1. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx6dl-udoo.dts | 14 ++ arch/arm/dts/imx6q-udoo.dts| 18 ++ arch/arm/dts/imx6qdl-udoo.dtsi | 324 ++

[PATCH 2/5] ARM: imx: udoo: Enable OF_CONTROL and DM gpio/pin control

2021-04-02 Thread Peter Robinson
Enable OF_CONTROL and DM for gpio and pin control support on the i.MX6 based Udoo boards. Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- configs/udoo_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig inde

Re: Pull request for efi-2021-04-rc6

2021-04-02 Thread Tom Rini
On Wed, Mar 31, 2021 at 06:52:53PM +0200, Heinrich Schuchardt wrote: > Hello Tom, > > this fixes the Coverity issue that you reported. > > The following changes since commit d8eafb16c85bc3b5d85d7ba8ebb1438cc0ae168f: > > Prepare v2021.04-rc5 (2021-03-29 17:20:13 -0400) > > are available in th

[PATCH 8/8] ARM: embestmx6boards: convert the mars/riot boards to DM SPI

2021-04-02 Thread Peter Robinson
Enable DM_SPI and DM_SPI_FLASH on the mars/riot boards. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- configs/marsboard_defconfig | 2 ++ configs/riotboard_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/marsboard_defconfig b/

[PATCH 7/8] ARM: embestmx6boards: convert mars/riot boards to DM_ETH

2021-04-02 Thread Peter Robinson
Convert the boards to use DM_ETH. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- board/embest/mx6boards/mx6boards.c | 26 +- configs/marsboard_defconfig| 2 ++ configs/riotboard_defconfig| 2 ++ include/configs

[PATCH 5/8] ARM: embestmx6boards: convert the mars/riot boards to DM_MMC

2021-04-02 Thread Peter Robinson
Convert the two Embest boards to use DM MMC. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx6dl-riotboard-u-boot.dtsi | 8 ++ arch/arm/dts/imx6q-marsboard-u-boot.dtsi | 8 ++ board/embest/mx6boards/mx6boards.c| 137

[PATCH 6/8] ARM: embestmx6boards: convert mars/riot boards to DM_USB

2021-04-02 Thread Peter Robinson
Convert the marsboard/riotboard to use DM_USB. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- configs/marsboard_defconfig | 1 + configs/riotboard_defconfig | 1 + include/configs/embestmx6boards.h | 1 - 3 files changed, 2 insertions(+), 1

[PATCH 4/8] ARM: riotboard: Enable OF_CONTROL and DM gpio/pin control

2021-04-02 Thread Peter Robinson
Enable OF_CONTROL and DM for gpio and pin control support on the i.MX6D based riotboard. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- configs/riotboard_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/riotboard_defconfig b/

[PATCH 3/8] ARM: embestmx6boards: merge the riotboard's configs together

2021-04-02 Thread Peter Robinson
It doesn't make much sense to have two separate configs for the riotboard so let's merge the SPL config into the main one for less duplication. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- configs/riotboard_defconfig | 14 ++- configs/riotboa

[PATCH 1/8] ARM: embestmx6boards: Import the marsboard/riotboard. dts files

2021-04-02 Thread Peter Robinson
Import the iMX6 based marsboard and riotboard. dts files from Linux 5.12-rc1 Signed-off-by: Peter Robinson Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx6dl-riotboard.dts | 594 ++ arch/arm/dts/imx6q-marsboard.dts

[PATCH 2/8] ARM: marsboard: Enable OF_CONTROL and DM gpio/pin control

2021-04-02 Thread Peter Robinson
Enable OF_CONTROL and DM for gpio and pin control support on the i.MX6Q based embestmx6boards marsboard. Signed-off-by: Peter Robinson Cc: "Eric Bénard" Cc: Fabio Estevam Cc: Stefano Babic --- configs/marsboard_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/marsbo

[PATCH v4 7/7] board: Add rt-thread art-pi board support

2021-04-02 Thread dillon . minfei
From: dillon min All these files are add for support rt-thread art-pi board - add board/st/stm32h750-art-pi, defconfig, header support for u-boot for more information about art-pi, please goto: https://art-pi.gitee.io/website/ Signed-off-by: dillon min --- v4: update CONFIG_BOOTARGS, remove rd

[PATCH v4 6/7] ram: stm32: fix strsep failed on read only memory

2021-04-02 Thread dillon . minfei
From: dillon min strsep will change data from original memory address, in case the memory is in non-sdram/sram place, will run into a bug(hang at SDRAM: ) just add a temporary array to store bank_name[] to fix this bug. Signed-off-by: dillon min --- v4: use strlcpy suggested by Patrice CHOTARD

[PATCH v4 5/7] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-04-02 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add pin groups for usart3/uart4/spi1/sdmmc2 - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add stm32h750i-art-pi.dts to support art-pi board - add stm32h750i-art-pi-u-bo

[PATCH v4 4/7] ARM: dts: stm32: fix i2c node typo in stm32h743, update dmamux1 register

2021-04-02 Thread dillon . minfei
From: dillon min Replace upper case by lower case in i2c nodes name. update dmamux1 register range. Signed-off-by: dillon min --- v4: sync with kernel side commit link: https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git/commit/?h=stm32-dt-for-v5.13&id=978783f90ab71f830207b7e9b49a

[PATCH v4 3/7] ARM: dts: stm32: add new instances for stm32h743 MCU

2021-04-02 Thread dillon . minfei
From: dillon min Some instances are missing in current support of stm32h743 MCU. This commit adds usart3/uart4 and sdmmc2 support. Signed-off-by: dillon min --- v4: sync with kernel side commit link: https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git/commit/?h=stm32-dt-for-v5.13&

[PATCH v4 2/7] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-04-02 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move 'pin-controller' from stm32h7-pinctrl.dtsi to stm32h743.dtsi - update stm32h743i-{disco,

[PATCH v4 1/7] ARM: dts: stm32: split sdram pin & timing parameter into specific board dts

2021-04-02 Thread dillon . minfei
From: dillon min As different boards has their own sdram hw connection, mount different sdram modules, so move sdram timing parameter and pin configuration to their board device tree. Signed-off-by: dillon min Reviewed-by: Patrice Chotard --- v4: no changes arch/arm/dts/stm32h7-u-boot.dtsi

[PATCH v4 0/7] Add rt-thread art-pi board support

2021-04-02 Thread dillon . minfei
From: dillon min These patches aim to adds u-boot support on art-pi board. the board resources: - stm32h750xbh6 128k flash, 1024k sram - 32MiB sdram - 16MiB spi flash - 8MiB qspi flash - onboard wifi, bt, fm the detail board information can be found at: https://art-pi.gitee.io/website/ --- cha

[PATCH v2 1/2] dm: core: Add size operations on device tree references

2021-04-02 Thread chenguanqiao
Add functions to add size of addresses in the device tree using ofnode references. Signed-off-by: Chen Guanqiao --- drivers/core/ofnode.c | 9 + include/dm/ofnode.h | 10 ++ 2 files changed, 19 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index fa0

[PATCH v2 2/2] test: dm: add test item for ofnode_get_addr() and ofnode_get_size()

2021-04-02 Thread chenguanqiao
Add test item for getting address and size functions Test the following function: - ofnode_get_addr() - ofnode_get_size() Signed-off-by: Chen Guanqiao --- test/dm/ofnode.c | 24 1 file changed, 24 insertions(+) diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index c53

[PATCH v2 0/2] dm: core: Add size operations on device tree references

2021-04-02 Thread chenguanqiao
Currently, there is only an interface for obtaining address from node, and if you want to get the size, you need to traverse the node. So I added the function to get the size ,and added related test case. Changes for v2: - Add a test to test/dm/ofnode.c Chen Guanqiao (2): dm: core: Add size op

RK1808 DDR3 test uboot

2021-04-02 Thread Camilo S.
Hi everyone, hope is the right place to ask but we are running out of ideas hehe, we need some help with a problem we have for a rockchip rk1808 based pcb we designed related with our DDR memory: So the problem is that we are not able to go further from the execution of the ddr init code from psra

[PATCH 19/19] ARM: imx8m: verdin-imx8mm: Enable USB Host support

2021-04-02 Thread Marek Vasut
Enable USB host support on MX8MM Verdin. Signed-off-by: Marek Vasut Cc: Marcel Ziswiler Cc: Max Krummenacher Cc: Oleksandr Suvorov --- configs/verdin-imx8mm_defconfig | 8 +++- include/configs/verdin-imx8mm.h | 6 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/confi

[PATCH 18/19] usb: ehci-mx6: Add iMX8M support

2021-04-02 Thread Marek Vasut
The iMX8M uses nop PHY, select PHY and NOP_PHY automatically. Otherwise, the DM capable driver is now perfectly compatible. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/usb/host/Kconfig | 4 +++- 1 file changed, 3 insertions

[PATCH 17/19] usb: ehci-mx6: Add fsl,imx7d-usb compatible string

2021-04-02 Thread Marek Vasut
Add new compatible string, used by some more up-to-date DTs. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/usb/host/ehci-mx6.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host

[PATCH 16/19] usb: ehci-mx6: Add generic EHCI PHY support

2021-04-02 Thread Marek Vasut
In case PHY support is enabled, use the generic EHCI PHY support to start and stop the PHY. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/usb/host/ehci-mx6.c | 17 - 1 file changed, 16 insertions(+), 1 deletio

[PATCH 15/19] usb: ehci-mx6: Use portnr in DM only if PHY is disabled

2021-04-02 Thread Marek Vasut
In case of legacy platforms which do not implement PHY support, determine portnr from PHY node DT aliases, just like Linux does. This is not necessary in case PHY support is enabled and a PHY driver is available, so only enable the portnr handling for the legacy platforms. Fixes: 4de51cc25b5 ("usb

[PATCH 14/19] usb: ehci-mx6: Pass MISC address to usb_oc_config()

2021-04-02 Thread Marek Vasut
Instead of passing ad-hoc sequence number to usb_oc_config(), pass in the USB MISC address itself. The USB MISC address comes from DT in DM case, and from the old method using controller index in non-DM case. Fixes: 4de51cc25b5 ("usb: ehci-mx6: Drop assignment of sequence number") Signed-off-by: M

[PATCH 13/19] usb: ehci-mx6: Split usb_power_config()

2021-04-02 Thread Marek Vasut
Split usb_power_config() per SoC and pass in USB PHY, USBNC and ANATOP addresses instead of ad-hoc sequence numbers. This is only applicable on legacy systems which do not implement proper PHY support. Once PHY support is available, parts of this can be removed altogether and moved to the PHY drive

[PATCH 12/19] usb: ehci-mx6: Pass PHY address to usb_*_phy*()

2021-04-02 Thread Marek Vasut
Instead of passing ad-hoc index to USB PHY handling functions and then try and figure out the PHY address, pass in the PHY address itself. For DM case, this address comes easily from DT. For non-DM case, the previous method is still present, however the non-DM case will soon be removed. Fixes: 4de

[PATCH 11/19] usb: ehci-mx6: Split ehci_mx6_common_init()

2021-04-02 Thread Marek Vasut
In order to pass component addresses around easily instead of passing ad-hoc sequence numbers, it is necessary to split ehci_mx6_common_init(). Make it so and call the separate functions instead. Since board_ehci_hcd_init() makes no sense in DM case, do not call it in DM case. Fixes: 4de51cc25b5

[PATCH 10/19] usb: ehci-mx6: Parse USB PHY and MISC offsets from DT

2021-04-02 Thread Marek Vasut
In case DM and OF controler is enabled, but PHY support is disabled, parse USB PHY and MISC component addresses from DT manually. Those component addresses will be used in subsequent patches to access the ANATOP, PHY and MISC registers matching the controller and thus get rid of the ad-hoc controll

[PATCH 06/19] imx: power-domain: Add fsl, imx8mm-gpc compatible string

2021-04-02 Thread Marek Vasut
The driver is compatible with iMX8MM, add missing compatible string. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/power/domain/imx8m-power-domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/domain/imx

[PATCH 09/19] usb: ehci-mx6: Unify USBNC registers

2021-04-02 Thread Marek Vasut
Merge USBNC register layout structure into a single one, instead of having three separate structures and a lot of ifdeffery. No functional change. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/usb/host/ehci-mx6.c | 53 +++

[PATCH 08/19] usb: ehci-mx6: Add DM clock support

2021-04-02 Thread Marek Vasut
Add support for using DM clock framework to enable and disable all the necessary clock for the USB controller. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/usb/host/ehci-mx6.c | 37 - 1 fi

[PATCH 07/19] usb: ehci-mx6: Turn off Vbus on probe failure

2021-04-02 Thread Marek Vasut
The driver turns on Vbus regulator in probe, but fails to turn it back off in case of probe failure. Add the missing code. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- drivers/usb/host/ehci-mx6.c | 29 +++--

[PATCH 05/19] ARM: dts: imx8mm: Add power domain nodes

2021-04-02 Thread Marek Vasut
Add power domain nodes to DT. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- arch/arm/dts/imx8mm.dtsi | 73 include/dt-bindings/power/imx8mm-power.h | 22 +++ 2 files changed, 95 insertions

[PATCH 04/19] ARM: dts: imx8mm: Replace deprecated fsl, usbphy DT props with phys

2021-04-02 Thread Marek Vasut
The fsl,usbphy DT property is deprecated, replace it with phys DT property and specify #phy-cells, so that the generic PHY framework can parse the PHY bindings without any extra hacking. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx ---

[PATCH 03/19] ARM: dts: k2g-evm: Use standard compatible string for USB no-op PHY

2021-04-02 Thread Marek Vasut
The standard compatible string is "usb-nop-xceiv", use it. Note that keystone-k2g.dtsi already uses the aforementioned compat string, so this patch can only remove the override. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Eugeniy Paltsev Cc: Fabio Estevam Cc: Jean-Jacques Hiblot Cc: Mur

[PATCH 02/19] arc: emsdp/iotdk: Use standard compatible string for USB no-op PHY

2021-04-02 Thread Marek Vasut
The standard compatible string is "usb-nop-xceiv", use it. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Eugeniy Paltsev Cc: Fabio Estevam Cc: Jean-Jacques Hiblot Cc: Murali Karicheri Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- arch/arc/dts/iot_devkit.dts | 2 +- 1 fi

[PATCH 01/19] phy: nop-phy: Add standard usb-nop-xceiv compat string

2021-04-02 Thread Marek Vasut
The USB no-op PHY uses "usb-nop-xceiv" compatible string. This driver is compatible with USB no-op PHY, so add the compatible string. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Eugeniy Paltsev Cc: Fabio Estevam Cc: Jean-Jacques Hiblot Cc: Murali Karicheri Cc: Peng Fan Cc: Stefano Bab

Re: [PATCH 1/1] Azure/GitLab: bump OpenSBI version to 0.9

2021-04-02 Thread Bin Meng
On Fri, Apr 2, 2021 at 5:42 PM Heinrich Schuchardt wrote: > > Version 0.9 of OpenSBI provides the system reset extension which allows us > to reset and power off boards without board specific code. > > Signed-off-by: Heinrich Schuchardt > --- > .azure-pipelines.yml | 8 > .gitlab-ci.yml

[PATCH] stm32mp: stm32prog: add FIP header support

2021-04-02 Thread Patrick Delaunay
Add support of TF-A FIP header in command stm32prog for all the boot partition and not only the STM32IMAGE. This patch is a preliminary patch to support FIP as second boot stage after TF-A BL2 when CONFIG_TFABOOT is activated for trusted boot chain. The FIP is archive binary loaded by TF-A BL2, w

[PATCH 1/1] efi_loader: simplify efi_get_device_path_text()

2021-04-02 Thread Heinrich Schuchardt
Replace static function efi_get_device_handle_info() by a simplified function efi_get_device_path_text() avoiding EFI_CALL(). Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/cmd/efidebug.c

[PATCH 1/1] Azure/GitLab: bump OpenSBI version to 0.9

2021-04-02 Thread Heinrich Schuchardt
Version 0.9 of OpenSBI provides the system reset extension which allows us to reset and power off boards without board specific code. Signed-off-by: Heinrich Schuchardt --- .azure-pipelines.yml | 8 .gitlab-ci.yml | 8 2 files changed, 8 insertions(+), 8 deletions(-) dif

Re: [PATCH] configs: qemu-riscv64_spl_defconfig enable CMD_SBI

2021-04-02 Thread Bin Meng
On Fri, Apr 2, 2021 at 4:35 PM Heinrich Schuchardt wrote: > > At least on one board we should compile the sbi command. > Enabling it on QEMU will allow to write a test for it. > > Signed-off-by: Heinrich Schuchardt > --- > configs/qemu-riscv64_spl_defconfig | 1 + > 1 file changed, 1 insertion(+

[PATCH] configs: qemu-riscv64_spl_defconfig enable CMD_SBI

2021-04-02 Thread Heinrich Schuchardt
At least on one board we should compile the sbi command. Enabling it on QEMU will allow to write a test for it. Signed-off-by: Heinrich Schuchardt --- configs/qemu-riscv64_spl_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qemu-riscv64_spl_defconfig b/configs/qemu-riscv64

Re: [PATCH V2] doc: mmc man-page

2021-04-02 Thread Jaehoon Chung
On 4/2/21 1:15 PM, Heinrich Schuchardt wrote: > On 4/2/21 2:15 AM, Jaehoon Chung wrote: >> Provide a man-pages for the mmc command. >> >> Signed-off-by: Jaehoon Chung >> --- >> Changelog on V2 >> - Add missing empty line >> - Add bootbus's arguments descriptions >> --- >>   doc/usage/index.rst |