Re: [PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2022-07-09 Thread Jagan Teki
On Fri, Jun 3, 2022 at 12:31 PM Vaishnav Achath wrote: > > During SFDP header parse and BFPT parse, structures in stack are used > to perform spi_nor_read_sfdp() which expects a dma-safe buffer. > > This commit introduces spi_nor_read_sfdp_dma_unsafe() to wrap > spi_nor_read_sfdp() using a kmalloc

Re: [PATCH] mtd: spi-nor-ids: add winbond w25q512nw family support

2022-07-09 Thread Jagan Teki
On Sat, Jul 9, 2022 at 12:10 AM Jae Hyun Yoo wrote: > > Add Winbond w25q512nwiq/in and w25q512nwim support. > > datasheet: > https://www.winbond.com/resource-files/W25Q512NW%20RevB%2007192021.pdf > > Signed-off-by: Jae Hyun Yoo > --- Applied to u-boot-spi/master

Re: [PATCH v2] sunxi: dts: Fix SPI NOR campatible on Orange Pi Zero

2022-07-09 Thread Andre Przywara
On Sat, 9 Jul 2022 08:59:45 +0200 Michal Suchanek wrote: Hi Michal, > The device tree should include generic "jedec,spi-nor" compatible, and a > manufacturer-specific one. > The macronix part is what is shipped on the boards that come with a > flash chip. thanks for taking care and trying to b

[PATCH v2 11/11] rockchip: configs: mk808: add idb configs

2022-07-09 Thread Johan Jonker
Add IDB configs for mk808. Signed-off-by: Johan Jonker --- This patch comes on top of a serie called: [PATCH v1 00/17] Add rk3066 ADC and USB support --- configs/mk808_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/mk808_defconfig b/configs/mk808_defconfig index 6ae41

[PATCH v2 10/11] arm: dts: rockchip: enable nfc node in spl for rk3066 mk808

2022-07-09 Thread Johan Jonker
Enable the nfc node in spl for rk3066 mk808 in the rk3066a-mk808-u-boot.dtsi file. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3066a-mk808-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/rk3066a-mk808-u-boot.dtsi b/arch/arm/dts/rk3066a-mk808-u-boot.dtsi i

[PATCH v2 09/11] arm: dts: rockchip: sync rk3066/rk3188 DT files from Linux

2022-07-09 Thread Johan Jonker
Sync rk3066/rk3188 DT files from Linux. This is the state as of v5.18 in Linux + nfc node for MK808 rk3066a. CRU nodes now have a clock property. To prefend dtoc errors a fixed clock must also be included for tpl/spl in the rk3xxx-u-boot.dtsi file. Signed-off-by: Johan Jonker --- arch/arm/dts/rk

[PATCH v2 08/11] rockchip: rk3066: add Rockchip IDB block device as boot action

2022-07-09 Thread Johan Jonker
Add Rockchip IDB block device as boot action for rk3066. When a key is pressed the NAND IDB blocks can be accessed by a USB gadget like rockusb. Signed-off-by: Johan Jonker --- This patch comes on top of a serie called: [PATCH v1 00/17] Add rk3066 ADC and USB support --- arch/arm/mach-rockchip/

[PATCH v2 07/11] rockchip: spl: allow more boot devices

2022-07-09 Thread Johan Jonker
Rockchip SoCs have more boot device options then currently included in the function spl_boot_device(). Make this function generic for SPI and NAND. Signed-off-by: Johan Jonker --- This patch should replace a patch in the serie called: [PATCH v1 02/17] rockchip: spl: allow more boot devices https

[PATCH v2 06/11] rockchip: idb: add randomizer option

2022-07-09 Thread Johan Jonker
Add randomizer option as on some NAND chip all data writen by Rockchip tools after the IDB blocks is scrambled. Signed-off-by: Johan Jonker --- optional --- arch/arm/mach-rockchip/rockchip_idb.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/arch/arm/mach-rockc

[PATCH v2 05/11] rockchip: idb: add sector1 info

2022-07-09 Thread Johan Jonker
Add Rockchip IDB sector1 info to make it easier to identify the IDB date and version. Sector1 data is currently not added by U-boot tools, but is generated by external tools that have support for it. Signed-off-by: Johan Jonker --- optional --- arch/arm/mach-rockchip/rockchip_idb.c | 46 +++

[PATCH v2 04/11] rockchip: idb: add info and stop command

2022-07-09 Thread Johan Jonker
Add info and stop command to become aware of what goes on inside the driver and to release some resources. Signed-off-by: Johan Jonker --- optional --- arch/arm/mach-rockchip/rockchip_idb.c | 116 ++ 1 file changed, 116 insertions(+) diff --git a/arch/arm/mach-rockchip/

[PATCH v2 03/11] rockchip: idb: add IDB block device

2022-07-09 Thread Johan Jonker
The Rockchip SoCs with a NAND as boot device need a special Rockchip IDB block device to transfer the data from the rockusb gadget to the NAND driver. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rockchip_idb.c | 402 ++ 1 file changed, 402 insertions(+) diff -

[PATCH v2 02/11] rockchip: idb: add basic functions

2022-07-09 Thread Johan Jonker
On Rockchip SoCs with a NAND as boot device the information data base (IDB) loaded by the boot ROM is stored at the beginning of several erase blocks. Add basic functions for reading and writing. Signed-off-by: Johan Jonker --- Changed V2: remove CamelCases remove randomizer remove sector1

[PATCH v2 01/11] rockchip: idb: prepare IDB block device

2022-07-09 Thread Johan Jonker
Prepare for the IDB block device by adding some constants and function extentions. Signed-off-by: Johan Jonker --- drivers/block/blk-uclass.c | 2 ++ include/blk.h| 1 + include/dm/uclass-id.h | 1 + include/efi_loader.h | 4 lib/efi_loade

[PATCH v2 00/11] Add Rockchip IDB device

2022-07-09 Thread Johan Jonker
Add Rockchip IDB device for U-boot. On Rockchip SoCs with a NAND as boot device the information data base (IDB) loaded by the boot ROM is stored at the beginning of several erase blocks. Rewriting NAND blocks makes them wear out, so some spare blocks and a writing strategy are required. A closed

Re: [PULL] u-boot-mips for u-boot/next (v2022.10)

2022-07-09 Thread Daniel Schwierzeck
On 09.07.22 14:43, Tom Rini wrote: On Sat, Jul 09, 2022 at 02:01:01PM +0200, Daniel Schwierzeck wrote: Hi Tom, On 08.07.22 18:50, Tom Rini wrote: On Fri, Jul 08, 2022 at 05:21:48PM +0200, Daniel SchwierzeckHi Tom, wrote: Gitlab CI: https://source.denx.de/u-boot/custodians/u-boot-mips/

Re: [PATCH 1/6] Convert CONFIG_SYS_CACHE_STASHING to Kconfig

2022-07-09 Thread Tom Rini
On Mon, Jun 27, 2022 at 01:35:46PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_CACHE_STASHING > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/4] doc: Migrate Process wiki page to sphinx

2022-07-09 Thread Tom Rini
On Sat, Jul 09, 2022 at 08:55:48AM +0200, Heinrich Schuchardt wrote: > On 6/27/22 19:17, Tom Rini wrote: [snip] > > +Phases of the Development Process > > +- > > + > > +U-Boot development takes place in `Release Cycles > > +

Re: rk3399 after reboot mmc1 is inaceessible

2022-07-09 Thread Michal Suchánek
U-Boot TPL 2022.07-rc6-00020-g049b3b43be-dirty (Jul 09 2022 - 12:52:27) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride lpddr4_set_rate: change freq to

Re: [PULL] u-boot-mips for u-boot/next (v2022.10)

2022-07-09 Thread Tom Rini
On Sat, Jul 09, 2022 at 02:01:01PM +0200, Daniel Schwierzeck wrote: > Hi Tom, > > On 08.07.22 18:50, Tom Rini wrote: > > On Fri, Jul 08, 2022 at 05:21:48PM +0200, Daniel SchwierzeckHi Tom, wrote: > > > > > > Gitlab CI: > > >https://source.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/1265

Re: [PATCH 4/4] doc: Migrate Process wiki page to sphinx

2022-07-09 Thread Tom Rini
On Sat, Jul 09, 2022 at 08:55:48AM +0200, Heinrich Schuchardt wrote: > On 6/27/22 19:17, Tom Rini wrote: > > Move the current Process wiki page to doc/develop/process.rst. The > > changes here are for formatting or slight rewording so that it reads > > well when linking to other sphinx documents.

Re: [PATCH 2/4] doc: Migrate DesignPrinciples wiki page to sphinx

2022-07-09 Thread Tom Rini
On Sat, Jul 09, 2022 at 08:37:12AM +0200, Heinrich Schuchardt wrote: > On 6/27/22 19:17, Tom Rini wrote: > > Move the current DesignPrinciples wiki page to > > doc/develop/designprinciples.rst. The changes here are for formatting > > or slight rewording so that it reads well when linking to other

Re: [PATCH 1/4] doc: Migrate CodingStyle wiki page to sphinx

2022-07-09 Thread Tom Rini
On Sat, Jul 09, 2022 at 08:12:27AM +0200, Heinrich Schuchardt wrote: > On 6/27/22 19:17, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > > The changes here are for formatting or slight rewording so that it reads > > well when linking to other sphinx docu

Re: [PATCH 1/4] doc: Migrate CodingStyle wiki page to sphinx

2022-07-09 Thread Tom Rini
On Sat, Jul 09, 2022 at 08:12:27AM +0200, Heinrich Schuchardt wrote: > On 6/27/22 19:17, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > > The changes here are for formatting or slight rewording so that it reads > > well when linking to other sphinx docu

Re: [PULL] u-boot-mips for u-boot/next (v2022.10)

2022-07-09 Thread Daniel Schwierzeck
Hi Tom, On 08.07.22 18:50, Tom Rini wrote: On Fri, Jul 08, 2022 at 05:21:48PM +0200, Daniel SchwierzeckHi Tom, wrote: Gitlab CI: https://source.denx.de/u-boot/custodians/u-boot-mips/-/pipelines/12656 Azure: https://dev.azure.com/danielschwierzeck/u-boot/_build/results?buildId=30&view=r

Re: [RFC PATCH 0/2] Support UEFI SPI I/O protocol

2022-07-09 Thread Paul Barker
Hi Heinrich, On 08/07/2022 21:33, Heinrich Schuchardt wrote: Hello Paul, up to now U-Boot does not implement any part of the PI specification. Please, explain why we should implement this protocol. Implementing this protocol allows a UEFI application to interact with a device on the SPI bus

[PATCH v2] sunxi: dts: Fix SPI NOR campatible on Orange Pi Zero

2022-07-09 Thread Michal Suchanek
The device tree should include generic "jedec,spi-nor" compatible, and a manufacturer-specific one. The macronix part is what is shipped on the boards that come with a flash chip. Fixes: 280294c5df ("sunxi: boards: Enable SPI flash support in U-Boot proper") Signed-off-by: Michal Suchanek --- v2: