[PATCH] mtd: sf: Set SF parameters as env variables

2021-09-13 Thread Marek Vasut
Set the SF page size, erase block size and total size as an environment variable after "sf probe". This lets us discern boards with multiple distinct SPI flash options and also e.g. set mtdparts accordingly. Signed-off-by: Marek Vasut Cc: Jagan Teki Cc: Vignesh R ---

[PATCH] dfu: dfu_sf: Add support for multiple flashes

2021-09-13 Thread Marek Vasut
Add dfu_alt_info option which allows specifying multiple SPI flashes as an alt info. The syntax is as follows: altname sf bus:cs[:speed[:mode]] Example: dfu_alt_info=qspi0 sf 0:0;qspi1 sf 0:1 Signed-off-by: Marek Vasut Cc: Lukasz Majewski --- drivers/dfu/dfu_sf.c | 21 +++--

[PATCH] dfu: dfu_sf: Read the SPI flash in 16 MiB chunks

2021-09-13 Thread Marek Vasut
Not all SPI flashes and controllers can do continuous transfer longer than 16 MiB, so perform the DFU read in 16 MiB chunks. Signed-off-by: Marek Vasut Cc: Lukasz Majewski --- drivers/dfu/dfu_sf.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

[PATCH 7/8] arm: socfpga: vining: Enable DW I2C driver

2021-09-13 Thread Marek Vasut
The Designware I2C IP is used to communicate with I2C peripherals on SoCFPGA, and required to access I2C EEPROM on this board. Enable it. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- configs/socfpga_vining_fpga_defconfig | 1 + 1 file changed, 1

[PATCH 6/8] arm: socfpga: vining: Fix UDC controller phandle in DT

2021-09-13 Thread Marek Vasut
The USB peripheral controller is the DWC2 controller 1, not 0. Update the phandle to fix UDC support on this board. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi | 2 +- 1 file changed, 1

[PATCH 8/8] arm: socfpga: vining: Let DWMAC configure PHY reset GPIO

2021-09-13 Thread Marek Vasut
The DM DWMAC driver is perfectly capable of configuring the ethernet PHY reset GPIO, let the driver do it instead of doing it in the board file. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- board/softing/vining_fpga/socfpga.c | 7 --- 1 file

[PATCH 5/8] arm: socfpga: vining: Un-disable WDT in DT

2021-09-13 Thread Marek Vasut
The WDT on this system should be enabled, make it so. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git

[PATCH 4/8] arm: socfpga: vining: Set default SPI NOR mode and frequency

2021-09-13 Thread Marek Vasut
The SPI NOR bus mode is 0 on this system, update it accordingly. Increase frequency to 40 MHz and enable SFDP parsing, since the flashes on this system support that and it is a huge performance improvement. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee

[PATCH 3/8] arm: socfpga: vining: Set USB gadget manufacturer to Softing with capital S

2021-09-13 Thread Marek Vasut
This was configured in downstream, so it is likely that most of the custom software used around the device depends on it. Make upstream compatible. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- configs/socfpga_vining_fpga_defconfig | 2 +- 1 file

[PATCH 2/8] arm: socfpga: vining: Increase environment size

2021-09-13 Thread Marek Vasut
Increase the environment size from 4k to 16k to prevent environment from becoming full. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- configs/socfpga_vining_fpga_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/8] arm: socfpga: vining: Drop meaningless comment

2021-09-13 Thread Marek Vasut
The comment is no longer meaningful due to DT conversion, drop it. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- include/configs/socfpga_vining_fpga.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/socfpga_vining_fpga.h

[PATCH] mtd: cqspi: Wait for transfer completion

2021-09-13 Thread Marek Vasut
Wait for the read/write transfer finish bit get actually cleared, this does not happen immediately on at least SoCFPGA Gen5. Signed-off-by: Marek Vasut Cc: Jagan Teki Cc: Vignesh R Cc: Pratyush Yadav --- drivers/spi/cadence_qspi_apb.c | 17 + 1 file changed, 17 insertions(+)

[PATCH] mtd: cqspi: Fix division by zero

2021-09-13 Thread Marek Vasut
Both dummy.nbytes and dummy.buswidth may be zero. By not checking the later, it is possible to trigger division by zero and a crash. This does happen with tiny SPI NOR framework in SPL. Fix this by adding the check and returning zero dummy bytes in such a case. Fixes: 38b0852b0ea ("spi:

[PATCH] mtd: spi-nor-ids: Reinstate Micron MT25QL02G

2021-09-13 Thread Marek Vasut
This ID disappeared in 5b66fdb29dc ("mtd: spi: Remove unused files"), add the ID back, since the chip is used on devices supported by U-Boot. Fixes: 5b66fdb29dc ("mtd: spi: Remove unused files") Signed-off-by: Marek Vasut Cc: Horatiu Vultur Cc: Jagan Teki Cc: Simon Goldschmidt Cc: Stefan

[PATCH] ddr: altera: use KBUILD_BASENAME instead of __FILE__

2021-09-13 Thread Marek Vasut
The KBUILD_BASENAME contains just the name of the compiled module, in this case 'sequencer', rather than a full path to the compiled file. Use it to prevent pulling the full path into the U-Boot binary, which is useless and annoying. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon

[PATCH] bootstage: Add SPL support

2021-09-13 Thread Marek Vasut
Allow usage of the bootstage facilities in SPL. Signed-off-by: Marek Vasut Cc: Simon Glass --- common/Kconfig.boot | 9 + include/bootstage.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index 902a5b8fbea..c230b5c76e4

[PATCH] efi_loader: Set EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT again in efi_net_receive()

2021-09-13 Thread Masami Hiramatsu
From: Kazuhiko Sakamoto Since 'this->int_status' is cleared by efi_net_get_status(), if user does wait_for_event(wait_for_packet) and efi_net_get_status() loop and there are several received packets on the buffer, the second efi_net_get_status() does not return

Re: Pull request: u-boot-sunxi/master for v2021.10

2021-09-13 Thread Tom Rini
On Tue, Sep 14, 2021 at 12:27:28AM +0100, Andre Przywara wrote: > Hi Tom, > > please pull the master branch from u-boot-sunxi, containing a fix for > U-Boot 2021.10 to bring back MMC boot on older boards. > > Build-tested on all 158 sunxi boards, boot tested on some of them. > > Thanks, >

Re: [PATCH v2 31/32] pci: Drop DM_PCI

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:44PM -0600, Simon Glass wrote: > This option has not effect now. Drop it, using PCI instead where needed. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 30/32] pci: Drop PCI_INDIRECT_BRIDGE

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:43PM -0600, Simon Glass wrote: > This does not work with driver model so can be removed. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 21/32] net: Drop DM_PCI check from designware driver

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:34PM -0600, Simon Glass wrote: > We don't need this check anymore since when PCI is enabled, driver model > is always used. > > Drop it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 12/32] pci: acpi: Drop DM_PCI check from ahci

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:25PM -0600, Simon Glass wrote: > We don't need these checks anymore since when PCI is enabled, driver model > is always used. > > Drop them. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 05/32] pci: Drop DM_PCI check from fdtdec

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:18PM -0600, Simon Glass wrote: > We don't need this check anymore since when PCI is enabled, driver model > is always used. > > Sadly this doesn't work with nds32 for some reason to do with the > toolchain. Add a work-around for that. > > Signed-off-by: Simon Glass

Re: [PATCH v2 03/32] pci: Drop old code from header file

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:16PM -0600, Simon Glass wrote: > We don't need this code anymore since when PCI is enabled, driver model is > always used. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 02/32] ppc: Remove UCP1020 board

2021-09-13 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:15PM -0600, Simon Glass wrote: > This board has not been converted to CONFIG_DM_PCI by the deadline. > Remove it. > > Note that we have to add CONFIG_SPIFLASH to scripts/config_whitelist.txt > because it's not really migrated at this point. > > Acked-by: Michael

Re: [PATCH 3/3] sunxi: gpio: Remove bank-specific size macros

2021-09-13 Thread Andre Przywara
On Sat, 11 Sep 2021 16:50:49 -0500 Samuel Holland wrote: > Since the beginning, all banks have had space for 32 pins, even when > not all pins were implemented. Let's use a single constant for the GPIO > bank size here, like the GPIO driver is already doing. Yeah, I always found some code in

Re: [PATCH 2/3] sunxi: gpio: Remove name_to_gpio macro

2021-09-13 Thread Andre Przywara
On Sat, 11 Sep 2021 16:50:48 -0500 Samuel Holland wrote: > This clarifies which callers must be updated to complete the DM_GPIO > conversion. > > The only remaining caller of name_to_gpio in generic code is inside the > !DM_GPIO block in cmd/gpio.c. DM_GPIO is always selected on sunxi, so >

Re: [PATCH 1/3] sunxi: Clean up inclusions of asm/arch/gpio.h

2021-09-13 Thread Andre Przywara
On Sat, 11 Sep 2021 16:50:47 -0500 Samuel Holland wrote: > As part of migrating to DM_GPIO and DM_PINCTRL, eventually we will > remove the asm/arch/gpio.h header. In preparation, clean up the various > files that include it. > > Some files did not contain any GPIO code at all, so this header

Pull request: u-boot-sunxi/master for v2021.10

2021-09-13 Thread Andre Przywara
Hi Tom, please pull the master branch from u-boot-sunxi, containing a fix for U-Boot 2021.10 to bring back MMC boot on older boards. Build-tested on all 158 sunxi boards, boot tested on some of them. Thanks, Andre == The following changes since commit

Re: [PATCH 5/5] serial: Rework CONFIG_SYS_BAUDRATE_TABLE

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 05:03:13PM -0500, Alex G. wrote: [snip] > Suggestion II: Define the Kconfig SYS_BAUDRATE_TABLE table to a C array, > like 'default "{ 300, 420, 690}" ' and forego the #ifdefs in serial.h Oh! And FWIW, I don't _think_ this works. I'd be quite happy to be proven wrong,

Re: [PATCH 5/5] serial: Rework CONFIG_SYS_BAUDRATE_TABLE

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 05:03:13PM -0500, Alex G. wrote: > > > On 9/13/21 4:24 PM, Tom Rini wrote: > > In order to move CONFIG_SYS_BAUDRATE_TABLE to Kconfig, we need to rework > > the logic a bit. Rename the users of CONFIG_SYS_BAUDRATE_TABLE to > > SYS_BAUDRATE_TABLE. Introduce a series of

Re: [PATCH 5/5] serial: Rework CONFIG_SYS_BAUDRATE_TABLE

2021-09-13 Thread Alex G.
On 9/13/21 4:24 PM, Tom Rini wrote: In order to move CONFIG_SYS_BAUDRATE_TABLE to Kconfig, we need to rework the logic a bit. Rename the users of CONFIG_SYS_BAUDRATE_TABLE to SYS_BAUDRATE_TABLE. Introduce a series of CONFIG_BAUDRATE_TABLE_... that include some number of baud rates. These

Re: [PATCH] mmc: fsl_esdhc: remove 1ms sleep in esdhc_send_cmd_common()

2021-09-13 Thread Jaehoon Chung
Hi, On 9/10/21 6:20 PM, Michael Walle wrote: > Since the beginning of this driver which was initially for the MPC8379 > and MPC8536 SoCs, there is this spurious 1ms delay. According to the > comment it should actually be only 8 clock cycles. Esp. during EFI block > transfers, this 1ms add up to a

[PATCH 5/5] serial: Rework CONFIG_SYS_BAUDRATE_TABLE

2021-09-13 Thread Tom Rini
In order to move CONFIG_SYS_BAUDRATE_TABLE to Kconfig, we need to rework the logic a bit. Rename the users of CONFIG_SYS_BAUDRATE_TABLE to SYS_BAUDRATE_TABLE. Introduce a series of CONFIG_BAUDRATE_TABLE_... that include some number of baud rates. These match all existing users. The help for

Re: [PULL] Please pull mmc-2021-9-13

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 05:59:15AM +, Peng Fan (OSS) wrote: > Hi Tom, > > Please pull mmc-2021-9-13 > > CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/9096 Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 3/5] serial: Use the default CONFIG_SYS_BAUDRATE_TABLE in more platforms

2021-09-13 Thread Tom Rini
A number of platforms are still defining CONFIG_SYS_BAUDRATE_TABLE to the fallback default of "{ 9600, 19200, 38400, 57600, 115200 }", but with varying whitespace, or were introduced after the default fallback was added. Use the default table here. Signed-off-by: Tom Rini ---

[PATCH 4/5] serial: Remove extraneous SYS_MALLOC_F check

2021-09-13 Thread Tom Rini
We enforce that DM_SERIAL will have SYS_MALLOC_F enabled and so SYS_MALLOC_F_LEN will have a value. Remove the build-time check. Cc: Simon Glass Signed-off-by: Tom Rini --- drivers/serial/serial-uclass.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/serial/serial-uclass.c

[PATCH 2/5] Convert CONFIG_BAUDRATE to Kconfig

2021-09-13 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BAUDRATE Signed-off-by: Tom Rini --- include/configs/cgtqmx8.h | 3 --- include/configs/synquacer.h | 1 - 2 files changed, 4 deletions(-) diff --git a/include/configs/cgtqmx8.h b/include/configs/cgtqmx8.h index 304c876e8b9b..4012814988d0

[PATCH 1/5] kgdb: Remove unused serial related options

2021-09-13 Thread Tom Rini
We have a few CONFIG options for KGDB that are not referenced, remove them. Signed-off-by: Tom Rini --- README | 5 - include/configs/MPC8349EMDS.h | 4 include/configs/MPC8349EMDS_SDRAM.h | 4 include/configs/MPC837XERDB.h | 4

Re: [PATCH 2/2] tee: add a stub for tee_find_device

2021-09-13 Thread Jens Wiklander
Hi Patrick, On Thu, Sep 2, 2021 at 11:56 AM Patrick Delaunay wrote: > > Add stub for tee_find_device function when CONFIG_TEE is not activated > to simplify the caller code. > > This patch allows to remove the CONFIG_IS_ENABLED(OPTEE) tests > for stm32 platform. > > Signed-off-by: Patrick

Re: [PATCH v2 02/32] ppc: Remove UCP1020 board

2021-09-13 Thread Arcturus Support
This board has not been converted to CONFIG_DM_PCI by the deadline. Remove it. Leave the Kconfig options to avoid warnings on other boards. Signed-off-by: Simon Glass Acked-by: Michael Durrant Acked-by: Oleksandr Zhadan Acked-by: Oleksandr Zhadan and Michael Durrant --- Changes in v2: -

Re: [PATCH 7/9] net: macb: Fix -Wint-to-pointer-cast warnings

2021-09-13 Thread Ramon Fried
On Sun, Sep 12, 2021 at 6:16 AM Bin Meng wrote: > > The following warning is seen in macb.c in a 32-bit build: > > warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > > Change to use dev_read_addr_index_ptr(), or cast with uintptr_t. > > Signed-off-by: Bin Meng

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 06:08:10PM +0200, François Ozog wrote: > On Mon, 13 Sept 2021 at 17:36, Tom Rini wrote: > > > On Mon, Sep 13, 2021 at 04:59:35PM +0200, Jan Kiszka wrote: > > > On 13.09.21 16:56, Tom Rini wrote: > > > > On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote: > > > >>

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Jan Kiszka
On 13.09.21 17:36, Tom Rini wrote: > On Mon, Sep 13, 2021 at 04:59:35PM +0200, Jan Kiszka wrote: >> On 13.09.21 16:56, Tom Rini wrote: >>> On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote: On 13.09.21 14:34, Tom Rini wrote: > On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread François Ozog
On Mon, 13 Sept 2021 at 17:36, Tom Rini wrote: > On Mon, Sep 13, 2021 at 04:59:35PM +0200, Jan Kiszka wrote: > > On 13.09.21 16:56, Tom Rini wrote: > > > On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote: > > >> On 13.09.21 14:34, Tom Rini wrote: > > >>> On Mon, Sep 13, 2021 at

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 04:59:35PM +0200, Jan Kiszka wrote: > On 13.09.21 16:56, Tom Rini wrote: > > On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote: > >> On 13.09.21 14:34, Tom Rini wrote: > >>> On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka wrote: > On 11.09.21 02:10, Tom

[PATCH v2 5/5] board: sl28: add update image documentation

2021-09-13 Thread Michael Walle
Document the update image and how to use the EFI UpdateCapsule. Signed-off-by: Michael Walle --- changes since v1: - new patch doc/board/kontron/sl28.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/doc/board/kontron/sl28.rst b/doc/board/kontron/sl28.rst index

[PATCH v2 1/5] board: sl28: enable EFI_SET_TIME support

2021-09-13 Thread Michael Walle
Allow EFI to actually set the time before ExitBootServices(). Signed-off-by: Michael Walle --- changes since v1: - none configs/kontron_sl28_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig index

[PATCH v2 3/5] board: sl28: enable EFI UpdateCapsule support

2021-09-13 Thread Michael Walle
Enable support for update over EFI UpdateCapsule mechanism. This board doesn't support setting EFI variables after ExitBootservices(). Therefore, we are also enabling EFI_IGNORE_OSINDICATIONS. Signed-off-by: Michael Walle --- changes since v1: - new patch configs/kontron_sl28_defconfig | 6

[PATCH v2 2/5] board: sl28: generate FIT update image

2021-09-13 Thread Michael Walle
Generate a FIT update image during build. The image will be called "u-boot.update" and can be used to build an EFI UpdateCapsule or during DFU mode. Although, the latter isn't supported because there is no USB OTG driver yet. Signed-off-by: Michael Walle --- changes since v1: - new patch

[PATCH v2 4/5] doc: board: kontron: sl28: Reduce section levels and change title

2021-09-13 Thread Michael Walle
From: Frieder Schrempf In order to add other Kontron boards to the docs alongside the existing sl28 board, we need to reduce the levels of the sections and change the title. Cc: Fabio Estevam Signed-off-by: Frieder Schrempf Acked-by: Michael Walle --- Frieder, Fabio, I took the liberty and

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Jan Kiszka
On 13.09.21 16:56, Tom Rini wrote: > On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote: >> On 13.09.21 14:34, Tom Rini wrote: >>> On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka wrote: On 11.09.21 02:10, Tom Rini wrote: > On Tue, Aug 03, 2021 at 04:24:05PM +0200, Jan Kiszka

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote: > On 13.09.21 14:34, Tom Rini wrote: > > On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka wrote: > >> On 11.09.21 02:10, Tom Rini wrote: > >>> On Tue, Aug 03, 2021 at 04:24:05PM +0200, Jan Kiszka wrote: > >>> > From: Jan Kiszka

Re: [PATCH] board: atmel: sama7g5ek: avoid rewriting of configured CONFIG_BOOTCOMMAND

2021-09-13 Thread Eugen.Hristev
On 8/19/21 2:09 PM, Eugen Hristev wrote: > Rewrite the CONFIG_BOOTCOMMAND only if it's not previously configured from > defconfig file. > This allows the user to select from defconfig/menuconfig the desired > boot command. > Adjust the current board defconfigs to reflect the default booting

Re: [PATCH 1/2] xyz-modem: Wait infinitely for initial y-modem packet

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 01:08:06PM +0200, Pali Rohár wrote: > On Monday 13 September 2021 12:42:42 Wolfgang Denk wrote: > > Dear Pali Rohár, > > > > In message <20210910204653.3066-1-p...@kernel.org> you wrote: > > > Now when command loady can be aborted / cancelled by CTRL+C, change wait > > >

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Jan Kiszka
On 13.09.21 14:34, Tom Rini wrote: > On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka wrote: >> On 11.09.21 02:10, Tom Rini wrote: >>> On Tue, Aug 03, 2021 at 04:24:05PM +0200, Jan Kiszka wrote: >>> From: Jan Kiszka This allows to use the watchdog in custom scripts but does not

[PATCH] mtd: nand: raw: convert nand_dt_init() to ofnode_xx() interface

2021-09-13 Thread Patrice Chotard
nand_dt_init() is still using fdtdec_xx() interface. If OF_LIVE flag is enabled, dt property can't be get anymore. Updating all fdtdec_xx() interface to ofnode_xx() to solve this issue. For doing this, node parameter type must be ofnode. First idea was to convert "node" parameter to ofnode type

Re: Bug: qemu_arm64: Cannot access the second flash bank

2021-09-13 Thread Peter Maydell
On Mon, 13 Sept 2021 at 10:31, Matthias Brugger wrote: > > Hi Robin, > > It's a long long time that you reported this issue. > > I prepared a fix in qemu for it. Would you mind to try it out? You can find a > branch with the fix on top here: > https://github.com/mbgg/qemu/tree/vrit-flash-dtb-bug

Re: [PATCH 1/1] Revert "arm64: Layerscape: Survive LPI one-way reset workaround"

2021-09-13 Thread Rayagonda Kokatanur
On Mon, Sep 13, 2021 at 11:29 AM Priyanka Jain (OSS) wrote: > > > > >-Original Message- > >From: U-Boot On Behalf Of Z.Q. Hou > >Sent: Friday, September 10, 2021 12:13 PM > >To: Tom Rini ; u-boot@lists.denx.de; > >rayagonda.kokata...@broadcom.com > >Cc: Priyanka Jain > >Subject: RE:

Re: [PATCH v1] driver: spi: add bcm iproc qspi support.

2021-09-13 Thread Rayagonda Kokatanur
On Wed, Aug 25, 2021 at 6:55 PM Bharat Kumar Reddy Gooty wrote: > > From: Rayagonda Kokatanur > > IPROC qspi driver supports both BSPI and MSPI modes. > > Signed-off-by: Rayagonda Kokatanur > Signed-off-by: Bharat Gooty > --- > drivers/spi/Kconfig | 6 + > drivers/spi/Makefile |

Re: [PATCH v1 1/2] pinctrl: single: Parse gpio details from dt

2021-09-13 Thread Rayagonda Kokatanur
On Tue, Aug 24, 2021 at 3:46 PM Bharat Kumar Reddy Gooty wrote: > > From: Bharat Gooty > > Parse different gpio properties from dt as part of probe > function. This detail is required to enable pinctrl pad > later when gpio lines are requested. > > Signed-off-by: Rayagonda Kokatanur >

Re: [PATCH v1 2/2] pinctrl: single: Add request() api

2021-09-13 Thread Rayagonda Kokatanur
On Tue, Aug 24, 2021 at 3:46 PM Bharat Kumar Reddy Gooty wrote: > > From: Bharat Gooty > > Add pinctrl_ops->request api to configure pctrl > pad register in gpio mode. > > Signed-off-by: Rayagonda Kokatanur > Signed-off-by: Bharat Gooty > --- > drivers/pinctrl/pinctrl-single.c | 34

[PATCH v3 4/4] mtd: spi-nor-core: Add support for Macronix Octal flash

2021-09-13 Thread JaimeLiao
Adding Macronix Octal flash for Octal DTR support. The octaflash series can be divided into the following types: MX25 series : Serial NOR Flash. MX66 series : Serial NOR Flash with stacked die.(Size larger than 1Gb) LM/UM series : Up to 250MHz clock frequency with both DTR/STR operation. LW/UW

[PATCH v3 3/4] mtd: spi-nor-core: set 4byte opcode when possible

2021-09-13 Thread JaimeLiao
Following linux kernel to check address width and 4byte flag to enable 4byte opcode setting. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

[PATCH v3 2/4] mtd: spi-nor-core: Adding different type of command extension in Soft Reset

2021-09-13 Thread JaimeLiao
Power-on-Reset is a method to restore flash back to 1S-1S-1S mode from 8D-8D-8D in the begging of probe. Command extension type is not standardized across flash vendors in DTR mode. For suiting different vendor flash devices, adding a flag to seperate types if nor->cmd_ext_type didn't configure

[PATCH v3 1/4] mtd: spi-nor: macronix: add support for Macronix Octal

2021-09-13 Thread JaimeLiao
Follow patch "f6adec1af4b2f5d3012480c6cdce7743b74a6156" for adding Macronix flash in Octal DTR mode. Enable Octal DTR mode with 20 dummy cycles to allow running at the maximum supported frequency. -https://www.mxic.com.tw/Lists/Datasheet/Attachments/7841/MX25LM51245G,%203V,%20512Mb,%20v1.1.pdf

[PATCH v3 0/4] Add octal DTR support for Macronix flash

2021-09-13 Thread JaimeLiao
This series add support for Macronix octal DTR flash, add second time Softreset with "INVERT" command extension type and follow linux kernel to enable 4byte opcode when possible. v3: Add flag SPI_NOR_CMD_EXT_INVERT to seperate command extension types. replace CONFIG_SPI_FLASH_MACRONIX with

Re: Bug: qemu_arm64: Cannot access the second flash bank

2021-09-13 Thread Matthias Brugger
On 13/09/2021 11:40, Peter Maydell wrote: On Mon, 13 Sept 2021 at 10:31, Matthias Brugger wrote: Hi Robin, It's a long long time that you reported this issue. I prepared a fix in qemu for it. Would you mind to try it out? You can find a branch with the fix on top here:

Re: [PATCH 1/1] Revert "arm64: Layerscape: Survive LPI one-way reset workaround"

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 01:22:10PM +0530, Rayagonda Kokatanur wrote: > On Mon, Sep 13, 2021 at 11:29 AM Priyanka Jain (OSS) > wrote: > > > > > > > > >-Original Message- > > >From: U-Boot On Behalf Of Z.Q. Hou > > >Sent: Friday, September 10, 2021 12:13 PM > > >To: Tom Rini ;

Re: [PATCH 1/2] xyz-modem: Wait infinitely for initial y-modem packet

2021-09-13 Thread Wolfgang Denk
Dear Pali Rohár, In message <20210913122245.my6ik4yjy7rwlh65@pali> you wrote: > > Timeout is not too slow, but sometimes user is (when is interrupted by > other things during selecting file). And then it is not obvious why > sx/sb command is failing... compared to transfer via gkermit which do >

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Tom Rini
On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka wrote: > On 11.09.21 02:10, Tom Rini wrote: > > On Tue, Aug 03, 2021 at 04:24:05PM +0200, Jan Kiszka wrote: > > > >> From: Jan Kiszka > >> > >> This allows to use the watchdog in custom scripts but does not enforce > >> that the OS has to

Re: [PATCH 1/2] xyz-modem: Wait infinitely for initial y-modem packet

2021-09-13 Thread Pali Rohár
On Monday 13 September 2021 14:12:54 Wolfgang Denk wrote: > Dear Pali Rohár, > > In message <20210913110806.27hc36n6gmhw6uq4@pali> you wrote: > > > > > If you use loady in any kind of scripts, this would now hard hang > > > the system, while until now it was possible to recover from the > > >

Re: [PATCH 1/2] xyz-modem: Wait infinitely for initial y-modem packet

2021-09-13 Thread Wolfgang Denk
Dear Pali Rohár, In message <20210913110806.27hc36n6gmhw6uq4@pali> you wrote: > > > If you use loady in any kind of scripts, this would now hard hang > > the system, while until now it was possible to recover from the > > error. > > Yes, this is a good point. But on the other hand, 'loadb' and

Re: [PATCH 1/2] xyz-modem: Wait infinitely for initial y-modem packet

2021-09-13 Thread Pali Rohár
On Monday 13 September 2021 12:42:42 Wolfgang Denk wrote: > Dear Pali Rohár, > > In message <20210910204653.3066-1-p...@kernel.org> you wrote: > > Now when command loady can be aborted / cancelled by CTRL+C, change wait > > timeout for initial packet to infinite. This would allow user to not be >

Re: [PATCH 2/2] xyz-modem: Wait infinitely for initial x-modem packet

2021-09-13 Thread Wolfgang Denk
Dear Pali Rohár, In message <20210910204653.3066-2-p...@kernel.org> you wrote: > Implement same thing also for x-modem protocol. As x-modem protocol does > not have header packet, first packet is directly first data packet. > > Signed-off-by: Pali Rohár > --- > common/xyzModem.c | 7 ++- >

Re: [PATCH 1/2] xyz-modem: Wait infinitely for initial y-modem packet

2021-09-13 Thread Wolfgang Denk
Dear Pali Rohár, In message <20210910204653.3066-1-p...@kernel.org> you wrote: > Now when command loady can be aborted / cancelled by CTRL+C, change wait > timeout for initial packet to infinite. This would allow user to not be > hurry when locating file which want to send. Commands loadb and

Re: [PATCH] efi_driver: simplify efi_bl_bind()

2021-09-13 Thread AKASHI Takahiro
On Mon, Sep 13, 2021 at 11:19:22AM +0200, Heinrich Schuchardt wrote: > On 9/13/21 8:01 AM, AKASHI Takahiro wrote: > > blk_create_devicef() is what blk_create_device() + > > device_set_name_alloced() really does. > > The resultant name will be a bit changed. > > without the patch after a device

Re: Bug: qemu_arm64: Cannot access the second flash bank

2021-09-13 Thread Matthias Brugger
Hi Robin, It's a long long time that you reported this issue. I prepared a fix in qemu for it. Would you mind to try it out? You can find a branch with the fix on top here: https://github.com/mbgg/qemu/tree/vrit-flash-dtb-bug Basically I fix the reg property to reflect the fact that the

Re: [PATCH] efi_driver: simplify efi_bl_bind()

2021-09-13 Thread Heinrich Schuchardt
On 9/13/21 8:01 AM, AKASHI Takahiro wrote: blk_create_devicef() is what blk_create_device() + device_set_name_alloced() really does. The resultant name will be a bit changed. without the patch after a device has been generated by the UEFI subsystem: => dm tree Class Index Probed Driver

[PATCH v2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-13 Thread Patrick Delaunay
Force the mtd name of spi-nor to "nor" + the driver sequence number: "nor0", "nor1"... This patch is coherent with existing "nand" and "spi-nand" mtd device names. I keep the existing "nor" name to don't disturb the existing users of mtd functions. The mtd name 'nor' was configured previously by

Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it

2021-09-13 Thread Jan Kiszka
On 11.09.21 02:10, Tom Rini wrote: > On Tue, Aug 03, 2021 at 04:24:05PM +0200, Jan Kiszka wrote: > >> From: Jan Kiszka >> >> This allows to use the watchdog in custom scripts but does not enforce >> that the OS has to support it as well. >> >> Signed-off-by: Jan Kiszka > > Sorry for the late

Re: [PATCH] sf: Querying write-protect status before operating the flash

2021-09-13 Thread Jan Kiszka
Hi all, Chao, please no top-post on mailing list. Also check your mail client, it seems to inject a lot of bogus newlines. On 08.09.21 06:55, chaochao2021666 wrote: > > > > HI Jagan > > > > sorry for the delay response. > > > And I have checked the maser. There is still a problem with

[PATCH] mtd: spi: nor: force mtd name to "nor%d"

2021-09-13 Thread Patrick Delaunay
Force the mtd name of spi-nor to "nor" + the driver sequence number: "nor0", "nor1"... This patch is coherent with existing "nand" and "spi-nand" mtd device names. I keep the existing "nor" name to don't disturb the existing users of mtd functions. The mtd name 'nor' was configured previously by

RE: [PATCH v2 14/15] PPC: Enable Job ring driver model in U-Boot

2021-09-13 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Gaurav Jain >Sent: Friday, September 3, 2021 12:33 PM >To: u-boot@lists.denx.de >Cc: Stefano Babic ; Fabio Estevam ; >Peng Fan ; Simon Glass ; Priyanka >Jain ; Ye Li ; Horia Geanta >; Ji Luo ; Franck Lenormand >; Silvano Di Ninno ; >Sahil

RE: [PATCH v2 13/15] PPC: Add crypto node in device tree

2021-09-13 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Gaurav Jain >Sent: Friday, September 3, 2021 12:33 PM >To: u-boot@lists.denx.de >Cc: Stefano Babic ; Fabio Estevam ; >Peng Fan ; Simon Glass ; Priyanka >Jain ; Ye Li ; Horia Geanta >; Ji Luo ; Franck Lenormand >; Silvano Di Ninno ; >Sahil

RE: [PATCH v2 12/15] Layerscape: Enable Job ring driver model in U-Boot.

2021-09-13 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Gaurav Jain >Sent: Friday, September 3, 2021 12:33 PM >To: u-boot@lists.denx.de >Cc: Stefano Babic ; Fabio Estevam ; >Peng Fan ; Simon Glass ; Priyanka Jain >; Ye Li ; Horia Geanta >; Ji Luo ; Franck Lenormand >; Silvano Di Ninno ; >Sahil

RE: [PATCH v2 11/15] Layerscape: Add crypto node in device tree

2021-09-13 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Gaurav Jain >Sent: Friday, September 3, 2021 12:33 PM >To: u-boot@lists.denx.de >Cc: Stefano Babic ; Fabio Estevam ; >Peng Fan ; Simon Glass ; Priyanka Jain >; Ye Li ; Horia Geanta >; Ji Luo ; Franck Lenormand >; Silvano Di Ninno ; >Sahil

[PATCH] efi_driver: simplify efi_bl_bind()

2021-09-13 Thread AKASHI Takahiro
blk_create_devicef() is what blk_create_device() + device_set_name_alloced() really does. The resultant name will be a bit changed. Signed-off-by: AKASHI Takahiro --- lib/efi_driver/efi_block_device.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git

[PATCH v7] arm: add initial support for the Phytium Pomelo Board

2021-09-13 Thread nicholas_zheng
From: weichangzheng This adds platform code and the device tree for the Phytium Pomelo Board. The initial support comprises the UART and the PCIE. Signed-off-by: weichangzheng Changes since v1: updated to DT Changes since v2: Modify some explicit types and macro Changes since