[U-Boot] [PATCH v2 6/7] arm64: dts: ti: k3-am65: add mcu navss nodes

2019-01-25 Thread Vignesh R
From: Grygorii Strashko Add DT node for MCU NAVSS its components to get DMA working on AM654 SoC. Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 46 1 file changed, 46 insertions

[U-Boot] [PATCH v2 7/7] configs: am65x_evm_a53: Enable DMA related configs

2019-01-25 Thread Vignesh R
From: Grygorii Strashko Enable TI K3 AM65x PSI-L, Ring Accelerator and UDMA drivers Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs

[U-Boot] [PATCH v2 4/7] dma: ti: add driver to K3 UDMA

2019-01-25 Thread Vignesh R
Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- drivers/dma/Kconfig |2 + drivers/dma/Makefile |2 + drivers/dma/ti/Kconfig| 14 + drivers/dma/ti/Makefile |3 + drivers/dma/ti/k3-udma-hwdef.h| 184 +++ drivers/dma/ti/k3

[U-Boot] [PATCH v2 5/7] soc: keystone: Merge into ti specific directory

2019-01-25 Thread Vignesh R
Merge drivers/soc/keystone/ into drivers/soc/ti/ and convert CONFIG_TI_KEYSTONE_SERDES into Kconfig. Signed-off-by: Vignesh R --- arch/arm/mach-keystone/Kconfig | 8 drivers/soc/Makefile | 1 - drivers/soc/keystone/Makefile | 3

[U-Boot] [PATCH v2 1/7] firmware: ti_sci: Add support for NAVSS resource management

2019-01-25 Thread Vignesh R
I-SCI firmware. Signed-off-by: Peter Ujfalusi Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R --- v2: Update ti_sci node to use upstream linux compatible string Align code to that of Linux driver for Resource management. arch/arm/dts/k3-am65-wakeup.dtsi | 2 +- drivers/fir

[U-Boot] [PATCH v2 0/7] AM65x: Add DMA support

2019-01-25 Thread Vignesh R
/cover/10612465/ Grygorii Strashko (5): firmware: ti_sci: Add support for NAVSS resource management soc: ti: k3: add navss ringacc driver soc: ti: k3: add CPPI5 description and helpers arm64: dts: ti: k3-am65: add mcu navss nodes configs: am65x_evm_a53: Enable DMA related configs Vignesh R (2):

[U-Boot] [PATCH v2 3/7] soc: ti: k3: add CPPI5 description and helpers

2019-01-25 Thread Vignesh R
From: Grygorii Strashko Add TI Communications Port Programming Interface (CPPI) 5 interface description and helpers Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by: Tom Rini --- include/linux/soc/ti/cppi5.h | 995 +++ 1 file changed

[U-Boot] [PATCH v2 2/7] soc: ti: k3: add navss ringacc driver

2019-01-25 Thread Vignesh R
x27;s done this way because, Linux driver implements two stage Rings allocation and configuration (allocate ring and configure ring) while TI-SCI Message Protocol supports only one combined operation (allocate+configure). Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R Reviewed-by

Re: [U-Boot] [PATCH 2/6] soc: ti: k3: add navss ringacc driver

2019-01-23 Thread Vignesh R
On 23/01/19 12:26 AM, Tom Rini wrote: > On Tue, Jan 22, 2019 at 08:33:55PM +0530, Vignesh R wrote: > >> From: Grygorii Strashko >> >> The Ring Accelerator (RINGACC or RA) provides hardware acceleration to >> enable straightforward passing of work between a produc

Re: [U-Boot] [PATCH 1/6] firmware: ti_sci: Add support for NAVSS resource management

2019-01-23 Thread Vignesh R
On 23/01/19 12:26 AM, Tom Rini wrote: > On Tue, Jan 22, 2019 at 08:33:54PM +0530, Vignesh R wrote: > >> From: Grygorii Strashko >> >> Texas Instruments' System Control Interface (TI-SCI) Message Protocol >> abstracts management of NAVSS resources, like PSI-L

Re: [U-Boot] [PATCH 4/6] dma: ti: add driver to K3 UDMA

2019-01-23 Thread Vignesh R
Tom, On 23/01/19 4:05 PM, Peter Ujfalusi wrote: > Tom, > > On 22/01/2019 20.56, Tom Rini wrote: >> On Tue, Jan 22, 2019 at 08:33:57PM +0530, Vignesh R wrote: >> >>> The UDMA-P is intended to perform similar (but significantly upgraded) >>> functions

[U-Boot] [PATCH 6/6] configs: am65x_evm_a53: Enable DMA related configs

2019-01-22 Thread Vignesh R
From: Grygorii Strashko Enable TI K3 AM65x PSI-L, Ring Accelerator and UDMA drivers Signed-off-by: Grygorii Strashko --- configs/am65x_evm_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig inde

[U-Boot] [PATCH 4/6] dma: ti: add driver to K3 UDMA

2019-01-22 Thread Vignesh R
Signed-off-by: Vignesh R --- drivers/dma/Kconfig |2 + drivers/dma/Makefile |2 + drivers/dma/ti/Kconfig| 14 + drivers/dma/ti/Makefile |3 + drivers/dma/ti/k3-udma-hwdef.h| 184 +++ drivers/dma/ti/k3-udma.c | 1749

[U-Boot] [PATCH 3/6] soc: ti: k3: add CPPI5 description and helpers

2019-01-22 Thread Vignesh R
From: Grygorii Strashko Add TI Communications Port Programming Interface (CPPI) 5 interface description and helpers Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh R --- include/linux/soc/ti/cppi5.h | 995 +++ 1 file changed, 995 insertions(+) create

[U-Boot] [PATCH 5/6] arm64: dts: ti: k3-am65: add mcu navss nodes

2019-01-22 Thread Vignesh R
From: Grygorii Strashko Add DT node for MCU NAVSS its components to get DMA working on AM654 SoC. Signed-off-by: Grygorii Strashko --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.

[U-Boot] [PATCH 2/6] soc: ti: k3: add navss ringacc driver

2019-01-22 Thread Vignesh R
Strashko Signed-off-by: Vignesh R --- drivers/Kconfig |2 + drivers/soc/Kconfig |5 + drivers/soc/Makefile|1 + drivers/soc/ti/Kconfig | 20 + drivers/soc/ti/Makefile |5 + drivers

[U-Boot] [PATCH 1/6] firmware: ti_sci: Add support for NAVSS resource management

2019-01-22 Thread Vignesh R
From: Grygorii Strashko Texas Instruments' System Control Interface (TI-SCI) Message Protocol abstracts management of NAVSS resources, like PSI-L pairing and unpairing, UDMAP tx/rx/flow configuration and Rings. This patch adds support for requesting and configuring such resources from TI-SCI fir

[U-Boot] [PATCH 0/6] AM65x: Add DMA support

2019-01-22 Thread Vignesh R
ringacc driver soc: ti: k3: add CPPI5 description and helpers arm64: dts: ti: k3-am65: add mcu navss nodes configs: am65x_evm_a53: Enable DMA related configs Vignesh R (1): dma: ti: add driver to K3 UDMA arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 49 + configs/am65x_ev

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-21 Thread Vignesh R
On 21-Jan-19 5:40 PM, Jagan Teki wrote: > On Mon, Jan 21, 2019 at 5:28 PM Vignesh R wrote: >> >> >> >> On 14/01/19 8:32 PM, Vignesh R wrote: >>> Hi Jagan, >>> >>> Could you please review v2? If we plan to merge this series for >>>

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-21 Thread Vignesh R
On 14/01/19 8:32 PM, Vignesh R wrote: > Hi Jagan, > > Could you please review v2? If we plan to merge this series for > v2019.04, we should probably plan to take it a bit early so as to > address any regression or fall out in time. Thanks! > Gentle ping... Jagan could you

[U-Boot] [PATCH] configs: Remove am43xx_evm_ethboot_defconfig

2019-01-16 Thread Vignesh R
am43xx_evm_ethboot_defconfig is not being actively used and has not been moved to DM or DT. Also, ethboot cannot be tested on AM43xx EVM as such due EVM limitations. Therefore delete it. Signed-off-by: Vignesh R --- board/ti/am43xx/MAINTAINERS | 1 - configs

[U-Boot] [PATCH] configs: Remove unused am335x_evm defconfigs

2019-01-16 Thread Vignesh R
These defconfigs don't seem be actively used any more, and have not been moved to adapt DM or DT. Therefore delete them. Signed-off-by: Vignesh R --- board/ti/am335x/MAINTAINERS | 3 -- configs/am335x_evm_nor_defconfig | 52 co

[U-Boot] [PATCH] configs: am335x_evm: Enable DM_SPI and DM_SPI_FLASH

2019-01-15 Thread Vignesh R
Enable DM_SPI and DM_SPI_FLASH for actively used defconfigs for am335x_evm. Signed-off-by: Vignesh R --- configs/am335x_evm_defconfig | 2 ++ configs/am335x_hs_evm_defconfig | 2 ++ configs/am335x_hs_evm_uart_defconfig | 2 ++ 3 files changed, 6 insertions(+) diff --git a/configs

Re: [U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Vignesh R
On 15/01/19 9:12 PM, Abel Vesa wrote: > On 19-01-15 18:38:00, Vignesh R wrote: >> >> >> On 15/01/19 4:37 PM, Abel Vesa wrote: >>> Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. >>> Make a separate config for SPL and keep the

Re: [U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Vignesh R
On 15/01/19 4:37 PM, Abel Vesa wrote: > Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. > Make a separate config for SPL and keep the same depends on conditions but > for SPL. > > Signed-off-by: Abel Vesa > --- > common/Makefile| 2 +- > configs/apa

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-14 Thread Vignesh R
Hi Jagan, Could you please review v2? If we plan to merge this series for v2019.04, we should probably plan to take it a bit early so as to address any regression or fall out in time. Thanks! Regards Vignesh On 21/12/18 12:08 PM, Vignesh R wrote: > U-Boot SPI NOR support (sf layer) is qu

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-09 Thread Vignesh R
On 22/12/18 1:13 PM, Simon Goldschmidt wrote: > Am 21.12.2018 um 14:29 schrieb Simon Goldschmidt: >> Am 21.12.2018 um 12:11 schrieb Vignesh R: >>> Hi Simon, >>> [...] >>>> >>>> Hi Vignesh, >>>> >>>> I just did a quick t

Re: [U-Boot] [RFC PATCH] bitops: Fix GENMASK definition for Sandbox

2019-01-09 Thread Vignesh R
On 17/12/18 7:02 PM, Vignesh R wrote: > In arch/sandbox/include/asm/types.h we have > Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as > CONFIG_PHYS64 is not set > > This messes up the current logic of GENMASK macro due to mismatch b/w > size of unsigned

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-21 Thread Vignesh R
AR and SF_DUAL_FLASH as these are no longer used > RFC v2: https://patchwork.ozlabs.org/cover/1007589/ > > Since RFC v1: > Add lightweight SPI flash stack for boards with SPL size constraints > Provide non DM version of spi-mem > Fix build issues on different platf

[U-Boot] [PATCH v2 11/11] MAINTAINERS: Add an entry for SPI NOR

2018-12-20 Thread Vignesh R
Add myself as co-maintainer for U-Boot SPI NOR subsystem. Signed-off-by: Vignesh R --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0fb089807c57..a6d2b6e1bd5a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -634,6 +634,15 @@ F: drivers

[U-Boot] [PATCH v2 09/11] configs: Remove SF_DUAL_FLASH

2018-12-20 Thread Vignesh R
SF_DUAL_FLASH claims to enable support for SF_DUAL_STACKED_FLASH and SF_DUAL_PARALLEL_FLASH. But, in current U-Boot code, grepping for above enums yield no user and therefore support seems to be incomplete. Remove these configs so as to avoid confusion. Signed-off-by: Vignesh R --- configs

[U-Boot] [PATCH v2 10/11] configs: Don't use SPI_FLASH_BAR as default

2018-12-20 Thread Vignesh R
ality. Signed-off-by: Vignesh R --- arch/arm/mach-omap2/am33xx/Kconfig | 1 - configs/alt_defconfig| 1 - configs/am57xx_evm_defconfig | 1 - configs/am57xx_hs_evm_defconfig | 1 - configs/ap121_defc

[U-Boot] [PATCH v2 04/11] mtd: spi: Port SPI NOR framework from Linux

2018-12-20 Thread Vignesh R
pport on top. in order to gain 4 byte addressing support, SFDP support and a way to support SPI controllers with MMIO flash interface. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi-nor-core.c | 2590 include/linux/mtd/cfi.h| 32 + include/linux/mtd/s

[U-Boot] [PATCH v2 08/11] configs: Enable SPI_FLASH_TINY for resource constrained boards

2018-12-20 Thread Vignesh R
Enable SPI_FLASH_TINY to reduce SPL size on boards that are too short of memory. SPI_FLASH_TINY provides a read only implementation of SPI NOR stack for use in SPL. Signed-off-by: Vignesh R --- configs/axm_defconfig | 1 + configs/da850_am18xxevm_defconfig | 1 + configs

[U-Boot] [PATCH v2 06/11] mtd: spi: Remove unused files

2018-12-20 Thread Vignesh R
spi_flash and spi_flash_ids are no longer needed after SPI NOR migration. Remove them. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi_flash.c | 1337 --- drivers/mtd/spi/spi_flash_ids.c | 211 - 2 files changed, 1548 deletions(-) delete mode 100644

[U-Boot] [PATCH v2 07/11] mtd: spi: Add lightweight SPI flash stack for SPL

2018-12-20 Thread Vignesh R
reducing spi flash id table by Simon Goldschmidt Signed-off-by: Vignesh R --- common/spl/Kconfig | 10 +- drivers/mtd/spi/Makefile | 10 +- drivers/mtd/spi/sf_internal.h | 2 + drivers/mtd/spi/spi-nor-core.c | 266 +-- drivers/mtd/spi/spi-nor-ids.c | 297

[U-Boot] [PATCH v2 05/11] mtd: spi: Switch to new SPI NOR framework

2018-12-20 Thread Vignesh R
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD layer. Fix up sf_dataflash to work in legacy way. And update sandbox to use new interfaces/defintions Keep U-Boot feature SPI_FLASH_BAR as is. Signed-off-by: Vignesh R --- common/spl/Kconfig | 13 +- drivers

[U-Boot] [PATCH v2 03/11] sh: bitops: add hweight*() macros

2018-12-20 Thread Vignesh R
Add hweight*() macros required for moving to new SF layer Signed-off-by: Vignesh R --- arch/sh/include/asm/bitops.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index 8cb8385d76db..765f28f116bc 100644 --- a/arch/sh/include

[U-Boot] [PATCH v2 02/11] spi: Add non DM version of SPI_MEM

2018-12-20 Thread Vignesh R
Add non DM version of SPI_MEM to support easy migration to new SPI NOR framework. This can be removed once DM_SPI conversion is complete. Signed-off-by: Vignesh R --- drivers/spi/Kconfig| 4 +- drivers/spi/Makefile | 1 + drivers/spi/spi-mem-nodm.c | 89

[U-Boot] [PATCH v2 01/11] spi-mem: Claim SPI bus before spi mem access

2018-12-20 Thread Vignesh R
It is necessary to call spi_claim_bus() before starting any SPI transactions and this restriction would also apply when calling spi-mem operationss. Therefore claim and release bus before requesting transfer via exec_op. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 6 ++ 1 file

[U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-20 Thread Vignesh R
are no longer used RFC v2: https://patchwork.ozlabs.org/cover/1007589/ Since RFC v1: Add lightweight SPI flash stack for boards with SPL size constraints Provide non DM version of spi-mem Fix build issues on different platforms as reported by travis-ci on v1 RFC v1: https://patchwork.ozlabs.org/cover/1004689/

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-12-19 Thread Vignesh R
Hi, >> >> Unfortunately thats a problem with U-Boot spi_flash layer today. Many >> newer flashes like Micron's mt35x series dont support BAR registers. >> Accessing above 16MB is broken for such flashes today. >> >>> Also, initially I wanted to make SFDP optional so that none of the drivers >> are

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-18 Thread Vignesh R
On 18-Dec-18 6:02 PM, Jagan Teki wrote: > On Sat, Dec 15, 2018 at 9:13 PM Vignesh R wrote: >> >>>>> 2) For BAR support, lets place it as it is and support via spi-nor >>>> >>>> Problem is, it not desirable to use BAR as default because its not

[U-Boot] [RFC PATCH] bitops: Fix GENMASK definition for Sandbox

2018-12-17 Thread Vignesh R
CONFIG_SANDBOX_BITS_PER_LONG which is set to 64/32 based on the host machine on which its being compiled. Without this patch: GENMASK(14,0) => 0x7fff After this patch: GENMASK(14,0) => 0x7fff Signed-off-by: Vignesh R --- I marked it as RFC because, I am not really sure if I am running Sandbox

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-15 Thread Vignesh R
>>> 2) For BAR support, lets place it as it is and support via spi-nor >> >> Problem is, it not desirable to use BAR as default because its not >> stateless and does not work with all flash parts. OTOH, it seems like 4 >> byte addressing (stateless dedicated opcode or with enter/exit 4 byte >> mode

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-15 Thread Vignesh R
>>> 2) For BAR support, lets place it as it is and support via spi-nor >> >> Problem is, it not desirable to use BAR as default because its not >> stateless and does not work with all flash parts. OTOH, it seems like 4 >> byte addressing (stateless dedicated opcode or with enter/exit 4 byte >> mode

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Vignesh R
>> >>     > 2) For BAR support, lets place it as it is and support via > spi-nor >> > >     Problem is, it not desirable to use BAR as default because its not > >     stateless and does not work with all flash parts. OTOH, it > seems like 4 > >     byte addressing (stateless dedicat

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Vignesh R
On 14-Dec-18 9:44 PM, Simon Goldschmidt wrote: > > > Am Fr., 14. Dez. 2018, 16:59 hat Vignesh R <mailto:vigne...@ti.com>> geschrieben: > > On 14/12/18 3:43 PM, Jagan Teki wrote: > > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R <mailto:vigne...@ti

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-14 Thread Vignesh R
On 14/12/18 3:43 PM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R wrote: >> >> U-Boot SPI NOR support (sf layer) is quite outdated as it does not >> support 4 byte addressing opcodes, SFDP table parsing and different types of >> quad mode enable seque

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-14 Thread Vignesh R
Hi, On 14/12/18 3:32 PM, Jagan Teki wrote: > On Thu, Dec 13, 2018 at 2:19 PM Vignesh R wrote: >> >> >> >> On 13/12/18 1:55 AM, Jagan Teki wrote: >>> On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote: >>>> >>>> Add non DM version of SPI

Re: [U-Boot] [PATCH 16/16] MAINTAINERS: Add an entry for SPI NOR

2018-12-14 Thread Vignesh R
On 13/12/18 2:31 AM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:19 PM Vignesh R <mailto:vigne...@ti.com>> wrote: >> >> Add myself as co-maintainer for U-Boot SPI NOR subsystem >> >> Signed-off-by: Vignesh R mailto:vigne...@ti.com>> >> --

Re: [U-Boot] [PATCH 05/16] mtd: spi: Port SPI NOR framework from Linux

2018-12-13 Thread Vignesh R
On 13/12/18 8:31 AM, Tom Rini wrote: > On Thu, Dec 13, 2018 at 04:51:56AM +0530, Jagan Teki wrote: >> On Thu, Dec 13, 2018 at 4:26 AM Tom Rini wrote: >>> >>> On Thu, Dec 13, 2018 at 02:01:15AM +0530, Jagan Teki wrote: >>>> On Wed, Dec 12, 2018 at 11:10 PM

Re: [U-Boot] [PATCH 10/16] configs: Get rid of SPI_FLASH_BAR

2018-12-13 Thread Vignesh R
On 13/12/18 2:11 AM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:15 PM Vignesh R wrote: >> >> Now that we have new SPI NOR framework in place that supports 4 byte >> addressing mode by default, get rid of CONFIG_SPI_FLASH_BAR > > I already mentioned in prev

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-13 Thread Vignesh R
gt;>>> On Thu, Dec 13, 2018 at 2:10 AM Boris Brezillon >>>> wrote: >>>>> >>>>> Hi Jagan, >>>>> >>>>> On Thu, 13 Dec 2018 01:55:08 +0530 >>>>> Jagan Teki wrote: >>>>> >>>>>> O

Re: [U-Boot] [PATCH 07/16] mtd: spi: Remove unused files

2018-12-13 Thread Vignesh R
On 13/12/18 2:08 AM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:12 PM Vignesh R wrote: >> >> spi_flash and spi_flash_ids are no longer needed after SPI NOR >> migration. Remove them. >> >> Signed-off-by: Vignesh R >> --- >

Re: [U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-13 Thread Vignesh R
On 13/12/18 1:55 AM, Jagan Teki wrote: > On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote: >> >> Add non DM version of SPI_MEM to support easy migration to new SPI NOR >> framework. This can be removed once DM_SPI conversion is complete. > > Our intention to use new

Re: [U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-13 Thread Vignesh R
Boris, Stefan, Daniel On 12/12/18 11:02 PM, Vignesh R wrote: > Now that there is new SPI NOR framework, simplify mtd device > registration and read/write/erase operations. > > Signed-off-by: Vignesh R > --- Oops, sorry I messed up rebase-ing this patch onto latest mainline.

[U-Boot] [PATCH 16/16] MAINTAINERS: Add an entry for SPI NOR

2018-12-12 Thread Vignesh R
Add myself as co-maintainer for U-Boot SPI NOR subsystem Signed-off-by: Vignesh R --- Jagan, If you agree, I can help in co-maintaining SPI NOR part especially for the code that is added/sync'd from Linux. MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAIN

[U-Boot] [PATCH 11/16] configs: Remove SF_DUAL_FLASH

2018-12-12 Thread Vignesh R
SF_DUAL_FLASH claims to enable support for SF_DUAL_STACKED_FLASH and SF_DUAL_PARALLEL_FLASH. But, in current U-Boot code, grepping for above enums yield no user and therefore support seems to be incomplete. Remove these configs so as to avoid confusion. Signed-off-by: Vignesh R --- configs

[U-Boot] [PATCH 15/16] turris_omnia_defconfig: Enable tiny printf

2018-12-12 Thread Vignesh R
Enable tiny printf to reduce SPL size Signed-off-by: Vignesh R --- configs/turris_omnia_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 38c5de18bb2d..4655d6561a13 100644 --- a/configs

[U-Boot] [PATCH 13/16] taurus_defconfig: Enable simple malloc in SPL

2018-12-12 Thread Vignesh R
Enable SPL simple malloc to reduce SPL size Signed-off-by: Vignesh R --- configs/taurus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/taurus_defconfig b/configs/taurus_defconfig index e53e075d4825..9c3a1276aa8f 100644 --- a/configs/taurus_defconfig +++ b/configs

[U-Boot] [PATCH 12/16] axm_defconfig: Enable simple malloc in SPL

2018-12-12 Thread Vignesh R
Enable CONFIG_SPL_SYS_MALLOC_SIMPLE in SPL to reduce SPL size Signed-off-by: Vignesh R --- configs/axm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/axm_defconfig b/configs/axm_defconfig index 89d6b6f2012c..16c093b37b83 100644 --- a/configs/axm_defconfig +++ b/configs

[U-Boot] [PATCH 14/16] da850_am18xxevm: Enable tiny printf

2018-12-12 Thread Vignesh R
Enable tiny printf to reduce SPL size Signed-off-by: Vignesh R --- configs/da850_am18xxevm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/da850_am18xxevm_defconfig b/configs/da850_am18xxevm_defconfig index 58745fec8267..5fecfccba50c 100644 --- a/configs

[U-Boot] [PATCH 10/16] configs: Get rid of SPI_FLASH_BAR

2018-12-12 Thread Vignesh R
Now that we have new SPI NOR framework in place that supports 4 byte addressing mode by default, get rid of CONFIG_SPI_FLASH_BAR Signed-off-by: Vignesh R --- arch/arm/mach-omap2/am33xx/Kconfig | 1 - configs/alt_defconfig| 1 - configs

[U-Boot] [PATCH 08/16] mtd: spi: Add lightweight SPI flash stack for SPL

2018-12-12 Thread Vignesh R
reducing spi flash id table by Simon Goldschmidt Signed-off-by: Vignesh R --- common/spl/Kconfig | 9 + drivers/mtd/spi/Makefile | 10 +- drivers/mtd/spi/sf_internal.h | 2 + drivers/mtd/spi/spi-nor-core.c | 266 +-- drivers/mtd/spi/spi-nor-ids.c | 294

[U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-12 Thread Vignesh R
Now that there is new SPI NOR framework, simplify mtd device registration and read/write/erase operations. Signed-off-by: Vignesh R --- drivers/mtd/spi/sf_internal.h | 2 +- drivers/mtd/spi/sf_mtd.c | 52 ++- drivers/mtd/spi/sf_probe.c| 5 ++-- 3 files

[U-Boot] [PATCH 07/16] mtd: spi: Remove unused files

2018-12-12 Thread Vignesh R
spi_flash and spi_flash_ids are no longer needed after SPI NOR migration. Remove them. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi_flash.c | 1337 --- drivers/mtd/spi/spi_flash_ids.c | 211 - 2 files changed, 1548 deletions(-) delete mode 100644

[U-Boot] [PATCH 05/16] mtd: spi: Port SPI NOR framework from Linux

2018-12-12 Thread Vignesh R
pport on top. in order to gain 4 byte addressing support, SFDP support and a way to support SPI controllers with MMIO flash interface. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi-nor-core.c | 2647 include/linux/mtd/cfi.h| 32 + include/linux/mtd/s

[U-Boot] [PATCH 06/16] mtd: spi: Switch to new SPI NOR framework

2018-12-12 Thread Vignesh R
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD layer. Fix up sf_dataflash to work in legacy way. And update sandbox to use new interfaces/defintions Signed-off-by: Vignesh R --- common/spl/Kconfig | 12 +- drivers/mtd/spi/Kconfig| 15 ++- drivers

[U-Boot] [PATCH 02/16] spi-mem: Claim SPI bus before spi mem access

2018-12-12 Thread Vignesh R
It is necessary to call spi_claim_bus() before starting any SPI transactions and this restriction would also apply when calling spi-mem operationss. Therefore claim and release bus before requesting transfer via exec_op. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 6 ++ 1 file

[U-Boot] [PATCH 03/16] spi: Add non DM version of SPI_MEM

2018-12-12 Thread Vignesh R
Add non DM version of SPI_MEM to support easy migration to new SPI NOR framework. This can be removed once DM_SPI conversion is complete. Signed-off-by: Vignesh R --- drivers/spi/Kconfig| 4 +- drivers/spi/Makefile | 1 + drivers/spi/spi-mem-nodm.c | 89

[U-Boot] [PATCH 04/16] sh: bitops: add hweight*() macros

2018-12-12 Thread Vignesh R
Add hweight*() macros required for moving to new SF layer Signed-off-by: Vignesh R --- arch/sh/include/asm/bitops.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index 8cb8385d76db..765f28f116bc 100644 --- a/arch/sh/include

[U-Boot] [PATCH 01/16] spi: spi-mem: Allow use of spi_mem_exec_op for all SPI modes

2018-12-12 Thread Vignesh R
SPI controllers support all types of SPI modes including dual/quad bus widths. Therefore remove constraint wrt SPI mode from spi-mem layer. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi

[U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-12 Thread Vignesh R
r used RFC v2: https://patchwork.ozlabs.org/cover/1007589/ Since RFC v1: Add lightweight SPI flash stack for boards with SPL size constraints Provide non DM version of spi-mem Fix build issues on different platforms as reported by travis-ci on v1 RFC v1: https://patchwork.ozlabs.org/cover/1004689/

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-10 Thread Vignesh R
On 10-Dec-18 6:32 PM, Jagan Teki wrote: > On Thu, Dec 6, 2018 at 11:55 PM Vignesh R wrote: >> >> Hi Jagan, >> >> On 06-Dec-18 10:44 PM, Jagan Teki wrote: >>> On Tue, Dec 4, 2018 at 5:56 PM Vignesh R wrote: >>>> >>>> U-Boot

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-09 Thread Vignesh R
On 07/12/18 3:21 PM, Boris Brezillon wrote: > On Thu, 6 Dec 2018 23:55:30 +0530 > Vignesh R wrote: > >> On 06-Dec-18 10:44 PM, Jagan Teki wrote: >>> On Tue, Dec 4, 2018 at 5:56 PM Vignesh R wrote: >>>> >>>> U-Boot SPI NOR support (sf layer)

Re: [U-Boot] [PATCH v3 13/28] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH is selected

2018-12-09 Thread Vignesh R
On 06/12/18 9:49 PM, Simon Goldschmidt wrote: > Am 06.12.2018 um 16:59 schrieb Tom Rini: >> On Thu, Dec 06, 2018 at 04:23:00PM +0100, Miquel Raynal wrote: >>> Hi Wolfgang, >>> >>> Wolfgang Denk wrote on Thu, 06 Dec 2018 10:32:14 +0100: >>> [...] >> Please understand that there is a fundament

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-06 Thread Vignesh R
On 07/12/18 12:47 AM, Simon Goldschmidt wrote: > Am 06.12.2018 um 18:39 schrieb Vignesh R: >> On 06/12/18 10:06 PM, Simon Goldschmidt wrote: >>> Am 06.12.2018 um 14:54 schrieb Simon Goldschmidt: >>>> On Thu, Dec 6, 2018 at 2:45 PM Vignesh R wrote: >>>&g

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-06 Thread Vignesh R
Hi Jagan, On 06-Dec-18 10:44 PM, Jagan Teki wrote: > On Tue, Dec 4, 2018 at 5:56 PM Vignesh R wrote: >> >> U-Boot SPI NOR support (sf layer) is quite outdated as it does not >> support 4 byte addressing opcodes, SFDP table parsing and different types of >> quad mode e

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-06 Thread Vignesh R
On 06/12/18 10:06 PM, Simon Goldschmidt wrote: > Am 06.12.2018 um 14:54 schrieb Simon Goldschmidt: >> On Thu, Dec 6, 2018 at 2:45 PM Vignesh R wrote: >>> >>> Hi Simon, >>> >>> On 06/12/18 2:15 AM, Simon Goldschmidt wrote: >>>> Am 05.12.2

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-06 Thread Vignesh R
Hi Simon, On 06/12/18 2:15 AM, Simon Goldschmidt wrote: > Am 05.12.2018 um 07:55 schrieb Simon Goldschmidt: >> On Wed, Dec 5, 2018 at 7:51 AM Vignesh R wrote: [...] >>>> I did some compilation tests first and I'm happy to say that with the >>>> SPL_SPI_FLAS

Re: [U-Boot] [RFC PATCH v2 06/11] mtd spi: Switch to new SPI NOR framework

2018-12-05 Thread Vignesh R
On 05/12/18 12:34 PM, Simon Goldschmidt wrote: > On Tue, Dec 4, 2018 at 1:27 PM Vignesh R wrote: >> >> Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD >> layer. Fix up sf_dataflash to work in legacy way. And update sandbox to >> us

Re: [U-Boot] [RFC PATCH v2 08/11] mtd: spi: Add lightweight SPI flash stack for SPL

2018-12-05 Thread Vignesh R
On 05/12/18 12:31 PM, Simon Goldschmidt wrote: > On Tue, Dec 4, 2018 at 1:27 PM Vignesh R wrote: >> >> Add a tiny SPI flash stack that just supports reading data/images from >> SPI flash. This is useful for boards that have SPL size constraints and >> would need to u

Re: [U-Boot] [RFC PATCH v2 09/11] sf_mtd: Simply mtd operations

2018-12-05 Thread Vignesh R
Hi Boris, On 04/12/18 6:19 PM, Boris Brezillon wrote: > On Tue, 4 Dec 2018 17:56:57 +0530 > Vignesh R wrote: > >> Now that there is new SPI NOR framework, simplify mtd device >> registration and read/write/erase operations. >> >> Signed-off-by: Vign

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-04 Thread Vignesh R
On 05/12/18 1:41 AM, Simon Goldschmidt wrote: > Am 04.12.2018 um 13:55 schrieb Boris Brezillon: >> On Tue, 4 Dec 2018 17:56:48 +0530 >> Vignesh R wrote: >> >>> U-Boot SPI NOR support (sf layer) is quite outdated as it does not >>> support 4 byte add

Re: [U-Boot] [PATCH v3 07/28] mtd: ensure MTD is compiled when there is a SPI NOR flash using MTD

2018-12-04 Thread Vignesh R
Hi Miquel, On 05/12/18 5:26 AM, Miquel Raynal wrote: > MTD must be enabled when there is a SPI NOR flash using the > SPI_FLASH_MTD config entry. > I suggest to add Kconfig dependency b/w SPI_FLASH_MTD and MTD. Something like: diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index

[U-Boot] [RFC PATCH v2 11/11] axm_defconfig: Enable simple malloc in SPL

2018-12-04 Thread Vignesh R
Enable CONFIG_SPL_SYS_MALLOC_SIMPLE in SPL to reduce SPL size Signed-off-by: Vignesh R --- configs/axm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/axm_defconfig b/configs/axm_defconfig index 89d6b6f2012c..16c093b37b83 100644 --- a/configs/axm_defconfig +++ b/configs

[U-Boot] [RFC PATCH v2 10/11] taurus_defconfig: Enable simple malloc in SPL

2018-12-04 Thread Vignesh R
Enable SPL simple malloc to reduce SPL size Signed-off-by: Vignesh R --- configs/taurus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/taurus_defconfig b/configs/taurus_defconfig index e53e075d4825..9c3a1276aa8f 100644 --- a/configs/taurus_defconfig +++ b/configs

[U-Boot] [RFC PATCH v2 07/11] mtd: spi: Remove unused files

2018-12-04 Thread Vignesh R
spi_flash and spi_flash_ids are no longer needed after SPI NOR migration. Remove them. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi_flash.c | 1337 --- drivers/mtd/spi/spi_flash_ids.c | 211 - 2 files changed, 1548 deletions(-) delete mode 100644

[U-Boot] [RFC PATCH v2 06/11] mtd spi: Switch to new SPI NOR framework

2018-12-04 Thread Vignesh R
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD layer. Fix up sf_dataflash to work in legacy way. And update sandbox to use new interfaces/defintions Signed-off-by: Vignesh R --- common/spl/Kconfig | 7 + drivers/mtd/spi/Kconfig| 8 ++ drivers

[U-Boot] [RFC PATCH v2 09/11] sf_mtd: Simply mtd operations

2018-12-04 Thread Vignesh R
Now that there is new SPI NOR framework, simplify mtd device registration and read/write/erase operations. Signed-off-by: Vignesh R --- drivers/mtd/spi/sf_internal.h | 2 +- drivers/mtd/spi/sf_mtd.c | 39 --- drivers/mtd/spi/sf_probe.c| 2 +- 3 files

[U-Boot] [RFC PATCH v2 08/11] mtd: spi: Add lightweight SPI flash stack for SPL

2018-12-04 Thread Vignesh R
reducing spi flash id table by Simon Goldschmidt Signed-off-by: Vignesh R --- common/spl/Kconfig | 9 + drivers/mtd/spi/Makefile | 8 +- drivers/mtd/spi/sf_internal.h | 2 + drivers/mtd/spi/spi-nor-ids.c | 294 drivers/mtd/spi/spi-nor-tiny.c | 806

[U-Boot] [RFC PATCH v2 05/11] mtd: spi: Port SPI NOR framework from Linux

2018-12-04 Thread Vignesh R
pport on top. in order to gain 4 byte addressing support, SFDP support and a way to support SPI controllers with MMIO flash interface. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi-nor.c | 2613 +++ include/linux/mtd/cfi.h | 32 + include/linux/mtd/spi-nor.

[U-Boot] [RFC PATCH v2 04/11] sh: bitops: add hweight*() macros

2018-12-04 Thread Vignesh R
Add hweight*() macros required for moving to new SF layer Signed-off-by: Vignesh R --- arch/sh/include/asm/bitops.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index 8cb8385d76db..765f28f116bc 100644 --- a/arch/sh/include

[U-Boot] [RFC PATCH v2 02/11] spi-mem: Claim SPI bus before spi mem access

2018-12-04 Thread Vignesh R
It is necessary to call spi_claim_bus() before starting any SPI transactions and this restriction would also apply when calling spi-mem operationss. Therefore claim and release bus before requesting transfer via exec_op. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 6 ++ 1 file

[U-Boot] [RFC PATCH v2 03/11] spi: Add non DM version of SPI_MEM

2018-12-04 Thread Vignesh R
Add non DM version of SPI_MEM to support easy migration to new SPI NOR framework. This can be removed once DM_SPI conversion is complete. Signed-off-by: Vignesh R --- drivers/spi/Kconfig| 4 +- drivers/spi/Makefile | 1 + drivers/spi/spi-mem-nodm.c | 89

[U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-04 Thread Vignesh R
log: v2: Add lightweight SPI flash stack for boards with SPL size constraints Provide non DM version of spi-mem Fix build issues on different platforms as reported by travis-ci on v1 v1: https://patchwork.ozlabs.org/cover/1004689/ Vignesh R (11): spi: spi-mem: Allow use of spi_mem_exec_op for

[U-Boot] [RFC PATCH v2 01/11] spi: spi-mem: Allow use of spi_mem_exec_op for all SPI modes

2018-12-04 Thread Vignesh R
SPI controllers support all types of SPI modes including dual/quad bus widths. Therefore remove constraint wrt SPI mode from spi-mem layer. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi

[U-Boot] [PATCH] configs: Move CONFIG_SPI_FLASH into defconfigs

2018-12-04 Thread Vignesh R
Completely move CONFIG_SPI_FLASH from remaining board header files to defconfigs Signed-off-by: Vignesh R --- Done with the help of moveconfig.py. Compile tested on travis-ci: https://travis-ci.org/r-vignesh/u-boot/builds/463155999 configs/cgtqmx6eval_defconfig| 1 + configs

Re: [U-Boot] [RFC PATCH 1/6] mtd: spi: Port SPI NOR framework from Linux

2018-11-29 Thread Vignesh R
Hi Boris, On 29/11/18 9:34 PM, Boris Brezillon wrote: > On Wed, 28 Nov 2018 22:56:02 +0530 > Vignesh R wrote: > >> +#if defined(CONFIG_DM_SPI) && defined(CONFIG_SPI_MEM) >> +#define spi_nor_mem_exec_op spi_mem_exec_op >> +#else >> +/* >> + * T

<    1   2   3   4   5   6   7   >