[Patch v2] configs: lx2160a: Enable FSPI support

2020-02-06 Thread Kuldeep Singh
Enable FSPI controller support. So, flash environment can now be used. Signed-off-by: Kuldeep Singh --- Please let me know if rebase required while applying. v2: -Drop other patches from series as already accepted. -Add ENV_SECT_SIZE value as 0x2 configs

RE: [EXT] Re: [Patch v4 0/7] Transition of fsl qspi driver to spi-mem framework

2020-02-03 Thread Kuldeep Singh
++Joe Hi, > -Original Message- > From: Jagan Teki > Sent: Monday, January 27, 2020 3:44 PM > To: Schrempf Frieder ; Kuldeep Singh > > Cc: U-Boot-Denx ; Priyanka Jain > ; Ashish Kumar ; Stefan > Roese ; Vignesh R > Subject: Re: [EXT] Re: [Patch v4 0/7] Tr

[PATCH] configs: lx2160a: Define ENV_SECT_SIZE

2020-02-03 Thread Kuldeep Singh
LX2160ARDB/QDS has mt35xu512aba flash with 128K sector size. Define ENV_SECT_SIZE value as 0x2. Signed-off-by: Kuldeep Singh --- configs/lx2160aqds_tfa_defconfig | 3 ++- configs/lx2160ardb_tfa_defconfig | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs

[PATCH] configs: lx2160a: Define ENV_ADDR value

2020-02-03 Thread Kuldeep Singh
CONFIG_ENV_ADDR helps in picking environment from flash before DDR init. Define the value as 0x2050 for lx2160ardb and lx2160aqds. Signed-off-by: Kuldeep Singh --- Hi Priyanka, This patch can be applied after applying below patch. https://patchwork.ozlabs.org/project/uboot/list/?series

[PATCH 1/3] mtd: spi-nor: Enable SPI_NOR_OCTAL_READ flag for mt35xu*

2020-02-03 Thread Kuldeep Singh
Commit "658df8bd9464"(mtd: spi-nor-core: Add octal mode support) enables octal mode(1-1-8) support in spi-nor framework. mt35xu512aba and mt35xu02g flashes support SINGLE and OCTAL I/O. Hence, enable SPI_NOR_OCTAL_READ flag for the same. Signed-off-by: Kuldeep Singh --- drivers/mtd/s

[PATCH 3/3] arm: dts: lx2160a: Add RX, TX buswidth in qspi to use octal mode

2020-02-03 Thread Kuldeep Singh
Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/project/uboot/list/?series=141023 arch/arm/dts/fsl-lx2160a-rdb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts index e542c69..87617ca 100644

[PATCH 0/3] Enable octal read support for mt35xu* flashes

2020-02-03 Thread Kuldeep Singh
and TX buswidth in qspi dts entry to use 1-1-8 mode. DTS entries can be merged once patch[1] is merged. No dependency on framework patch. [1]https://patchwork.ozlabs.org/project/uboot/list/?series=141023 Kuldeep Singh (3): mtd: spi-nor: Enable SPI_NOR_OCTAL_READ flag for mt35xu* arm: dts

[PATCH 2/3] arm: dts: ls1028a: Add RX, TX buswidth in qspi to use octal mode

2020-02-03 Thread Kuldeep Singh
Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/project/uboot/list/?series=141023 arch/arm/dts/fsl-ls1028a-qds.dts | 2 ++ arch/arm/dts/fsl-ls1028a-rdb.dts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-ls1028a-qds.dts b/arch/arm/dts/fsl

[PATCH 2/2] configs: ls2080ardb: Make BOOTCOMMAND access flash memory as per spi-mem

2020-02-02 Thread Kuldeep Singh
BOOT command currently access spi-nor flash memory directly. As per spi-mem framework, flash memory access via absolute addresses is no more possible. Use flash APIs to access memory instead of directly using it. Signed-off-by: Kuldeep Singh --- include/configs/ls2080ardb.h | 12 1

[PATCH 1/2] configs: ls2080ardb: Make QSPI_MC_INIT access flash memory as per spi-mem

2020-02-02 Thread Kuldeep Singh
MC_INIT command currently access spi-nor flash memory directly. As per spi-mem framework, flash memory access via absolute addresses is no more possible. Use flash APIs to access memory instead of directly using it. Signed-off-by: Kuldeep Singh --- include/configs/ls2080ardb.h | 22

RE: [EXT] Re: [Patch v4 0/7] Transition of fsl qspi driver to spi-mem framework

2020-01-27 Thread Kuldeep Singh
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Monday, January 27, 2020 12:50 PM > To: Kuldeep Singh > Cc: U-Boot-Denx ; Priyanka Jain > ; Ashish Kumar ; Stefan > Roese ; Schrempf Frieder ; > Vignesh R > Subject: [EXT] Re: [Patch v4 0/7] Transitio

RE: [EXT] Re: [PATCH] configs: ls1012ardb: Enable CONFIG_SYS_RELOC_GD_ENV_ADDR

2020-01-26 Thread Kuldeep Singh
Hi Priyanka, > -Original Message- > From: Schrempf Frieder > Sent: Tuesday, January 7, 2020 4:36 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: tr...@konsulko.com > Subject: [EXT] Re: [PATCH] configs: ls1012ardb: Enable > CONFIG_SYS_RELOC_GD_ENV_ADDR &g

Re: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

2020-01-25 Thread Kuldeep Singh
Good to hear this :) From: florian.man...@siemens.com Sent: Friday, January 24, 2020 12:30 AM To: Kuldeep Singh Cc: daniel.schert...@siemens.com ; u-boot@lists.denx.de Subject: AW: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

RE: [EXT] Re: [Patch v4] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-22 Thread Kuldeep Singh
Hi Joe, > -Original Message- > From: Schrempf Frieder > Sent: Monday, January 13, 2020 3:11 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Joe Hershberger ; Thomas Hebb > ; Patrick Delaunay ; > Priyanka Jain > Subject: [EXT] Re: [Patch v4] net: pfe_eth

RE: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

2020-01-22 Thread Kuldeep Singh
Hi Florian, > -Original Message- > From: U-Boot On Behalf Of > florian.man...@siemens.com > Sent: Wednesday, January 22, 2020 7:13 PM > To: u-boot@lists.denx.de > Cc: daniel.schert...@siemens.com > Subject: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON > MT25QU01GBBB > >

[Patch v4] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-13 Thread Kuldeep Singh
Current PFE firmware access spi-nor memory directly. New spi-mem framework does not support direct memory access. So, let's use spi_flash_read API to access memory instead of directly using it. Signed-off-by: Kuldeep Singh --- v4: -Return -ENODEV if flash probe fails v3: -Replace ret with 0

RE: [EXT] Re: [Patch v3] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-13 Thread Kuldeep Singh
> -Original Message- > From: Schrempf Frieder > Sent: Monday, January 13, 2020 2:07 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Joe Hershberger ; Thomas Hebb > ; Patrick Delaunay > Subject: Re: [EXT] Re: [Patch v3] net: pfe_eth: Use spi_flash_read API

[Patch v4 6/7] configs: ls1046a: Move SPI_FLASH_SPANSION to defconfig

2020-01-12 Thread Kuldeep Singh
Enable CONFIG_SPI_FLASH_SPANSION in defconfigs of LS1046ARDB and LS1046AQDS which have two spansion flases i.e s25fs512s each of size 64M. Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https://patchwork.ozlabs.org/patch/1208299/ v4: No change

[Patch v4 5/7] configs: ls1012a: Enable CONFIG_SPI_FLASH_SPANSION in defconfigs

2020-01-12 Thread Kuldeep Singh
Since CONFIG_FSL_QSPI is already enabled for LS1012A in defconfigs. Also enable CONFIG_SPI_FLASH_SPANSION for LS1012A boards having spansion flashes. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https

[Patch v4 7/7] treewide: Update fsl qspi node dt properties as per spi-mem driver

2020-01-12 Thread Kuldeep Singh
ies. Also consolidate spi-max-frequency to 50Mhz treewide. Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https://patchwork.ozlabs.org/patch/1208299/ v4: No change v3: No change v2: No change arch/arm/dts/fsl-ls1012a-2g5rdb.dts | 5 ++--- ar

[Patch v4 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-12 Thread Kuldeep Singh
. Currently tested on LS1088ARDB, LS1012ARDB, LS1046ARDB, LS1046AFRWY, LS1043AQDS, LS1021ATWR, LS2088ARDB, I.MX6ULL EVK. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Depends on https://patchwork.ozlabs.org

[Patch v4 3/7] configs: ls1043a: Move CONFIG_FSL_QSPI and SPI_FLASH_SPANSION to defconfig

2020-01-12 Thread Kuldeep Singh
Move CONFIG_FSL_QSPI to the board defconfigs and while at it also move CONFIG_SPI_FLASH_SPANSION for LS1043AQDS. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https://patchwork.ozlabs.org/patch/1208299/ v4

[Patch v4 4/7] imx: imx6sx: Remove unused 'num-cs' property

2020-01-12 Thread Kuldeep Singh
From: Frieder Schrempf This property is not used by the driver anymore so let's remove it. Other dts still have 'num-cs' set, but they need a resync with the Linux kernel anyway, so let's only do the U-Boot-specific files for now. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh

[Patch v4 2/7] treewide: Remove unused FSL QSPI config options

2020-01-12 Thread Kuldeep Singh
Some of these options are not used by the driver anymore and some of them are obsolete as the information is gathered from the dt. Also consolidating defines in common headers. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- Depends on https

[Patch v4 0/7] Transition of fsl qspi driver to spi-mem framework

2020-01-12 Thread Kuldeep Singh
boards by aligning with linux device-tree properties. Frieder Schrempf (1): imx: imx6sx: Remove unused 'num-cs' property Kuldeep Singh (6): spi: Transform the FSL QuadSPI driver to use the SPI MEM API treewide: Remove unused FSL QSPI config options configs: ls1043a: Move CONFIG_FSL_QSPI

RE: [EXT] Re: [Patch v3 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-10 Thread Kuldeep Singh
> -Original Message- > From: Schrempf Frieder > Sent: Tuesday, January 7, 2020 4:39 PM > To: Kuldeep Singh ; u-boot@lists.denx.de; > ja...@amarulasolutions.com; Vignesh R ; Jagan Teki > > Cc: Priyanka Jain ; Ashish Kumar > ; Stefan Roese > Subject: [

RE: [EXT] Re: [Patch v3] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-10 Thread Kuldeep Singh
Hi Frieder, > -Original Message- > From: Schrempf Frieder > Sent: Wednesday, January 8, 2020 2:52 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Joe Hershberger ; Thomas Hebb > ; Patrick Delaunay > Subject: [EXT] Re: [Patch v3] net: pfe_eth: Use spi_flash_read

[Patch v3] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-08 Thread Kuldeep Singh
Current PFE firmware access spi-nor memory directly. New spi-mem framework does not support direct memory access. So, let's use spi_flash_read API to access memory instead of directly using it. Signed-off-by: Kuldeep Singh --- v3: -Replace ret with 0 if flash probe fails v2: -Add return error

[Patch v2] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-07 Thread Kuldeep Singh
Current PFE firmware access spi-nor memory directly. New spi-mem framework does not support direct memory access. So, let's use spi_flash_read API to access memory instead of directly using it. Signed-off-by: Kuldeep Singh --- v2: Add return error code Some changes in displayed log drivers/net

RE: [EXT] Re: [PATCH] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-01-07 Thread Kuldeep Singh
Hi Frieder, > -Original Message- > From: Schrempf Frieder > Sent: Tuesday, January 7, 2020 4:28 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Yunfeng Ding ; joe.hershber...@ni.com > Subject: [EXT] Re: [PATCH] net: pfe_eth: Use spi_flash_read API to access

RE: [Patch v3 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-06 Thread Kuldeep Singh
may also take a look at Linux driver[1] as well. P.S: Jagan, I was not sure which email you use frequently. So, I tagged both of them. Thanks Kuldeep [1] https://elixir.bootlin.com/linux/latest/source/drivers/spi/spi-fsl-qspi.c > -Original Message- > From: Kuldeep Singh > Sen

RE: [PATCH] net: pfe_eth: Use spi_flash_read API to access flash memory

2019-12-22 Thread Kuldeep Singh
> -Original Message- > From: Kuldeep Singh > Sent: Wednesday, December 11, 2019 5:24 PM > To: u-boot@lists.denx.de > Cc: joe.hershber...@ni.com; Priyanka Jain ; > tommyh...@gmail.com; Ashish Kumar ; > patrick.delau...@st.com; simon.k.r.goldschm...@gmail.com; Yun

[Patch v3 7/7] treewide: Update fsl qspi node dt properties as per spi-mem driver

2019-12-20 Thread Kuldeep Singh
ies. Also consolidate spi-max-frequency to 50Mhz treewide. Signed-off-by: Kuldeep Singh --- v3: No change v2: No change arch/arm/dts/fsl-ls1012a-2g5rdb.dts | 5 ++--- arch/arm/dts/fsl-ls1012a-frdm.dtsi| 5 ++--- arch/arm/dts/fsl-ls1012a-qds.dtsi | 5 ++--- arch/arm/dts/fsl-ls1012a-rdb.dt

[Patch v3 3/7] configs: ls1043a: Move CONFIG_FSL_QSPI to defconfig

2019-12-20 Thread Kuldeep Singh
Move CONFIG_FSL_QSPI to the boards defconfigs and while at it also move CONFIG_SPI_FLASH_SPANSION. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh --- v3: No change v2: No change configs/ls1043aqds_qspi_defconfig| 1 + configs/ls1043aqds_sdcard_qspi_defconfig | 1

[Patch v3 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2019-12-20 Thread Kuldeep Singh
, LS1046AFRWY, LS1043AQDS, LS1021ATWR, LS2088ARDB. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- v3: -reword commit message. -rebase on top. v2: -Revert to 1k size. -Add support for setting TDH bits

[Patch v3 6/7] configs: ls1046a: Move SPI_FLASH_SPANSION to defconfig

2019-12-20 Thread Kuldeep Singh
Enable CONFIG_SPI_FLASH_SPANSION in defconfigs of LS1046ARDB and LS1046AQDS which have two spansion flases i.e s25fs512s each of size 64M. Signed-off-by: Kuldeep Singh --- v3: No change v2: No change configs/ls1046aqds_qspi_defconfig | 1 + configs/ls1046aqds_sdcard_qspi_defconfig

[Patch v3 5/7] configs: ls1012a: Enable CONFIG_SPI_FLASH_SPANSION

2019-12-20 Thread Kuldeep Singh
Since CONFIG_FSL_QSPI is already enabled for LS1012A in defconfigs. Also enable CONFIG_SPI_FLASH_SPANSION for LS1012A boards having spansion flashes. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- v3: Remove SPI_FLASH_SPANSION from header to defconfigs. v2: No change configs

[Patch v3 4/7] imx: imx6sx: Remove unused 'num-cs' property

2019-12-20 Thread Kuldeep Singh
From: Frieder Schrempf This property is not used by the driver anymore so let's remove it. Other dts still have 'num-cs' set, but they need a resync with the Linux kernel anyway, so let's only do the U-Boot-specific files for now. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh

[Patch v3 0/7] Transition of fsl qspi driver to spi-mem framework

2019-12-20 Thread Kuldeep Singh
SPI_FLASH_SPANSION in defconfigs of LS1046a boards instead of defining in header files. Patch 7 updates the device-tree properties treewide for layerscape boards by aligning with linux device-tree properties. Frieder Schrempf (1): imx: imx6sx: Remove unused 'num-cs' property Kuldeep Singh (6): spi: Transform

[Patch v3 2/7] treewide: Remove unused FSL QSPI config options

2019-12-20 Thread Kuldeep Singh
Some of these options are not used by the driver anymore and some of them are obsolete as the information is gathered from the dt. Also consolidating defines in common headers. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- v3: Don't remove

RE: [Patch v2 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2019-12-17 Thread Kuldeep Singh
Hi Priyanka, > -Original Message- > From: Priyanka Jain > Sent: Tuesday, December 17, 2019 10:38 AM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: ja...@amarulasolutions.com; s...@denx.de; Ashish Kumar > ; frieder.schre...@kontron.de; Kuldeep Singh > ; Ashish

RE: [Patch v2 2/7] treewide: Remove unused FSL QSPI config options

2019-12-17 Thread Kuldeep Singh
Hi Priyanka, > -Original Message- > From: Priyanka Jain > Sent: Tuesday, December 17, 2019 10:32 AM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: ja...@amarulasolutions.com; s...@denx.de; Ashish Kumar > ; frieder.schre...@kontron.de; Kuldeep Singh > ; Ashish

[Patch v2 7/7] treewide: Update fsl qspi node dt properties as per spi-mem driver

2019-12-16 Thread Kuldeep Singh
ies. Also consolidate spi-max-frequency to 50Mhz treewide. Signed-off-by: Kuldeep Singh --- arch/arm/dts/fsl-ls1012a-2g5rdb.dts | 5 ++--- arch/arm/dts/fsl-ls1012a-frdm.dtsi| 5 ++--- arch/arm/dts/fsl-ls1012a-qds.dtsi | 5 ++--- arch/arm/dts/fsl-ls1012a-rdb.dtsi | 5 ++--- arch/a

[Patch v2 6/7] configs: ls1046a: Move SPI_FLASH_SPANSION to defconfig

2019-12-16 Thread Kuldeep Singh
Enable CONFIG_SPI_FLASH_SPANSION in defconfigs of LS1046ARDB and LS1046AQDS which have two spansion flases i.e s25fs512s each of size 64M. Signed-off-by: Kuldeep Singh --- configs/ls1046aqds_qspi_defconfig | 1 + configs/ls1046aqds_sdcard_qspi_defconfig | 1 + configs

[Patch v2 0/7] Transition of fsl qspi driver to spi-mem framework

2019-12-16 Thread Kuldeep Singh
for layerscape boards by aligning with linux device-tree properties. Frieder Schrempf (1): imx: imx6sx: Remove unused 'num-cs' property Kuldeep Singh (6): spi: Transform the FSL QuadSPI driver to use the SPI MEM API treewide: Remove unused FSL QSPI config options configs: ls1043a: Move

[Patch v2 5/7] configs: ls1012a: Enable CONFIG_SPI_FLASH_SPANSION

2019-12-16 Thread Kuldeep Singh
Since CONFIG_FSL_QSPI is already enabled for LS1012A in defconfigs. Also enable the CONFIG_SPI_FLASH_SPANSION for LS1012A boards having spansion flashes. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- configs/ls1012a2g5rdb_qspi_defconfig | 1 + configs

[Patch v2 4/7] imx: imx6sx: Remove unused 'num-cs' property

2019-12-16 Thread Kuldeep Singh
From: Frieder Schrempf This property is not used by the driver anymore so let's remove it. Other dts still have 'num-cs' set, but they need a resync with the Linux kernel anyway, so let's only do the U-Boot-specific files for now. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh

[Patch v2 2/7] treewide: Remove unused FSL QSPI config options

2019-12-16 Thread Kuldeep Singh
Some of these options are not used by the driver anymore and some of them are obsolete as the information is gathered from the dt. Also consolidating defines in common headers. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- .../include/asm/arch

[Patch v2 3/7] configs: ls1043a: Move CONFIG_FSL_QSPI to defconfig

2019-12-16 Thread Kuldeep Singh
Move CONFIG_FSL_QSPI to the boards defconfigs and while at it also move CONFIG_SPI_FLASH_SPANSION. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh --- configs/ls1043aqds_qspi_defconfig| 1 + configs/ls1043aqds_sdcard_qspi_defconfig | 1 + configs

[Patch v2 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2019-12-16 Thread Kuldeep Singh
Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- drivers/spi/fsl_qspi.c | 1562 +++- drivers/spi/fsl_qspi.h | 145 2 files changed, 593 insertions(+), 1114 deletions(-) delete mode 100644 drivers/spi/fsl_qspi.h diff --git a/drivers

RE: [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-12 Thread Kuldeep Singh
Hi Frieder, > -Original Message- > From: Schrempf Frieder > Sent: Wednesday, December 11, 2019 6:56 PM > To: Kuldeep Singh ; u-boot@lists.denx.de; > ja...@amarulasolutions.com > Cc: Priyanka Jain ; s...@denx.de; Ashish Kumar > ; Ye Li > Subject: Re: [EXT] Re

[PATCH] configs: ls1012ardb: Enable CONFIG_SYS_RELOC_GD_ENV_ADDR

2019-12-12 Thread Kuldeep Singh
Enable the config for ls1012ardb as the entry got missed earlier. Fixes: 8d8ee47e03 ("env: Add CONFIG_SYS_RELOC_GD_ENV_ADDR symbol") Signed-off-by: Kuldeep Singh --- configs/ls1012ardb_qspi_SECURE_BOOT_defconfig | 1 + configs/ls1012ardb_qspi_defconfig | 1

RE: [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-11 Thread Kuldeep Singh
Hi Frieder, > -Original Message- > From: Schrempf Frieder > Sent: Tuesday, December 3, 2019 6:17 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Priyanka Jain ; ja...@amarulasolutions.com; > s...@denx.de; Ashish Kumar ; Ye Li > Subject: Re: [EXT] Re: [PATCH 0

[PATCH] net: pfe_eth: Use spi_flash_read API to access flash memory

2019-12-11 Thread Kuldeep Singh
Current PFE firmware access spi-nor memory directly. New spi-mem framework does not support direct memory access. So, let's use spi_flash_read API to access memory instead of directly using it. Signed-off-by: Kuldeep Singh --- drivers/net/pfe_eth/pfe_firmware.c | 44

RE: [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-03 Thread Kuldeep Singh
> -Original Message- > From: Schrempf Frieder > Sent: Tuesday, December 3, 2019 6:17 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Priyanka Jain ; ja...@amarulasolutions.com; > s...@denx.de; Ashish Kumar ; Ye Li > Subject: Re: [EXT] Re: [PATCH 0/8] Transiti

Re: [U-Boot] [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-03 Thread Kuldeep Singh
Hi Frieder, > -Original Message- > From: Schrempf Frieder > Sent: Tuesday, December 3, 2019 2:27 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Priyanka Jain ; ja...@amarulasolutions.com; > s...@denx.de; Ashish Kumar ; Ye Li > Subject: Re: [EXT] Re: [PATCH 0

Re: [U-Boot] [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-02 Thread Kuldeep Singh
Hi Frieder, > -Original Message- > From: Schrempf Frieder > Sent: Monday, December 2, 2019 5:35 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Priyanka Jain ; ja...@amarulasolutions.com; > s...@denx.de; Ashish Kumar > Subject: [EXT] Re: [PATCH 0/8] Transiti

Re: [U-Boot] [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-02 Thread Kuldeep Singh
+ Ye li Hi Stefan, > -Original Message- > From: Stefan Roese > Sent: Monday, December 2, 2019 3:38 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Priyanka Jain ; ja...@amarulasolutions.com; > frieder.schre...@kontron.de > Subject: [EXT] Re: [PATCH 0/8] Transiti

[U-Boot] [PATCH 6/8] configs: ls1012a: Enable SPI_FLASH_SPANSION in defconfig

2019-11-28 Thread Kuldeep Singh
Enable the config CONFIG_SPI_FLASH_SPANSION for ls1012ardb and ls1012aqds while disabling CONFIG_SPI_FLASH_BAR at the same time Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- configs/ls1012aqds_qspi_defconfig | 2 +- configs/ls1012aqds_tfa_defconfig | 2

[U-Boot] [PATCH 8/8] treewide: Update fsl qspi node dt properties as per spi-mem driver

2019-11-28 Thread Kuldeep Singh
ies. Also consolidate spi-max-frequency to 50Mhz treewide. Signed-off-by: Kuldeep Singh --- arch/arm/dts/fsl-ls1012a-frdm.dtsi| 5 ++--- arch/arm/dts/fsl-ls1012a-qds.dtsi | 5 ++--- arch/arm/dts/fsl-ls1012a-rdb.dtsi | 5 ++--- arch/arm/dts/fsl-ls1012a.dtsi | 4 +--- arch/a

[U-Boot] [PATCH 3/8] treewide: Remove unused FSL QSPI config options

2019-11-28 Thread Kuldeep Singh
Some of these options are not used by the driver anymore and some of them are obsolete as the information is gathered from the dt. Also consolidating defines in common headers. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- .../include/asm/arch

[U-Boot] [PATCH 5/8] imx: imx6sx: Remove unused 'num-cs' property

2019-11-28 Thread Kuldeep Singh
From: Frieder Schrempf This property is not used by the driver anymore so let's remove it. Other dts still have 'num-cs' set, but they need a resync with the Linux kernel anyway, so let's only do the U-Boot-specific files for now. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh

[U-Boot] [PATCH 7/8] configs: ls1046a: Move SPI_FLASH_SPANSION to defconfig

2019-11-28 Thread Kuldeep Singh
LS1046ARDB and LS1046AQDS have s25fs512s flashes. So let's enable CONFIG_SPI_FLASH_SPANSION in defconfigs Signed-off-by: Kuldeep Singh --- configs/ls1046aqds_qspi_defconfig | 2 +- configs/ls1046aqds_sdcard_qspi_defconfig | 2 +- configs/ls1046aqds_tfa_SECURE_BOOT_defconfig

[U-Boot] [PATCH 2/8] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2019-11-28 Thread Kuldeep Singh
absolute addresses. - Specify memmap_phy in SFAR register. Currently tested on LS1088ARDB, LS1012ARDB, LS1046ARDB, LS1046AFRWY, LS1043AQDS, LS1021ATWR, LS2080ARDB Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- drivers/spi/fsl_qspi.c | 777

[U-Boot] [PATCH 4/8] configs: ls1043a: Move CONFIG_FSL_QSPI to defconfig

2019-11-28 Thread Kuldeep Singh
Move CONFIG_FSL_QSPI to the boards defconfigs and while at it also move CONFIG_SPI_FLASH_SPANSION Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh --- configs/ls1043aqds_qspi_defconfig| 2 +- configs/ls1043aqds_sdcard_qspi_defconfig | 2 +- configs

[U-Boot] [PATCH 1/8] spi: Remove old freescale qspi driver

2019-11-28 Thread Kuldeep Singh
Remove freescale qspi driver which was based on spi-nor along with fsl_qspi.h as this is not used by new driver anymore Signed-off-by: Kuldeep Singh --- drivers/spi/fsl_qspi.c | 1170 drivers/spi/fsl_qspi.h | 145 - 2 files changed, 1315 deletions

[U-Boot] [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-11-28 Thread Kuldeep Singh
properties treewide for layerscape boards by aligning it with linux device-tree properties. Frieder Schrempf (1): imx: imx6sx: Remove unused 'num-cs' property Kuldeep Singh (7): spi: Remove old freescale qspi driver spi: Transform the FSL QuadSPI driver to use the SPI MEM API treewide

[U-Boot] [Patch v5 4/4] configs: lx2160a: Enable FSPI_AHB_EN_4B config

2019-11-21 Thread Kuldeep Singh
Enable 4-byte Fast Read command for Flexspi AHB mode Signed-off-by: Kuldeep Singh --- v5: New patch configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160aqds_tfa_defconfig | 1 + configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160ardb_tfa_defconfig

[U-Boot] [Patch v5 2/4] fsl-lsch3: soc: Enable AHB read support for Flexspi controller

2019-11-21 Thread Kuldeep Singh
Enable AHB support for Flexspi controller interface meaning memory can be accessed via md command using absolute addresses Signed-off-by: Yogesh Gaur Signed-off-by: Ashish Kumar Signed-off-by: Rajat Srivastava Signed-off-by: Kuldeep Singh --- v5: Rebased to top v4: Does not exist arch/arm

[U-Boot] [Patch v5 3/4] configs: ls1028a: Enable FSPI_AHB_EN_4B config

2019-11-21 Thread Kuldeep Singh
Enable 4-byte Fast Read command for Flexspi AHB mode Signed-off-by: Kuldeep Singh --- v5: New patch configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1028aqds_tfa_defconfig | 1 + configs/ls1028ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1028ardb_tfa_defconfig

[U-Boot] [Patch v5 1/4] fsl-lsch3: Add FlexSPI address space in immap_lsch3

2019-11-21 Thread Kuldeep Singh
Signed-off-by: Priyanka Jain Signed-off-by: Sriram Dash Signed-off-by: Ashish Kumar Signed-off-by: Rajat Srivastava Signed-off-by: Kuldeep Singh --- v5: Rebased to top v4: Remove unnecessary dependencies of FSPI_AHB_EN_4BYTE config arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 6

[U-Boot] [PATCH 3/4] configs: ls1028a: Enable FSPI support

2019-11-06 Thread Kuldeep Singh
Enable FSPI controller support. So, flash environment can now be used Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1190054/ https://patchwork.ozlabs.org/patch/1190052/ https://patchwork.ozlabs.org/patch/1190051/ configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 1

[U-Boot] [PATCH 1/4] arm: dts: ls1028a: Add FSPI node properties

2019-11-06 Thread Kuldeep Singh
Align flexspi node properties with linux device-tree properties Tested on LS1028A-RDB Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1190054/ https://patchwork.ozlabs.org/patch/1190052/ https://patchwork.ozlabs.org/patch/1190051/ arch/arm/dts/fsl-ls1028a-qds.dts

[U-Boot] [PATCH 4/4] configs: lx2160a: Enable FSPI support

2019-11-06 Thread Kuldeep Singh
Enable FSPI controller support. So, flash environment can now be used Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1190054/ https://patchwork.ozlabs.org/patch/1190052/ https://patchwork.ozlabs.org/patch/1190051/ configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1

[U-Boot] [PATCH 2/4] arm: dts: lx2160a: Add FSPI node properties

2019-11-06 Thread Kuldeep Singh
Align flexspi node properties with linux device-tree properties Tested on LX2160A-RDB Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1190054/ https://patchwork.ozlabs.org/patch/1190052/ https://patchwork.ozlabs.org/patch/1190051/ arch/arm/dts/fsl-lx2160a-rdb.dts

Re: [U-Boot] [EXT] [PATCH v3 1/3] spi: nxp_fspi: new driver for the FlexSPI controller

2019-11-06 Thread Kuldeep Singh
Hi, > -Original Message- > From: Michael Walle > Sent: Wednesday, November 6, 2019 4:33 AM > To: u-boot@lists.denx.de > Cc: Vignesh R ; Prabhakar X > ; Kuldeep Singh ; > Michael Walle ; Jagan Teki > > Subject: [EXT] [PATCH v3 1/3] spi: nxp_fspi: new driver f

Re: [U-Boot] [EXT] [PATCH v2 2/2] arm: ls1028a: use the new flexspi driver

2019-11-05 Thread Kuldeep Singh
Hi Michael, > -Original Message- > From: Michael Walle > Sent: Tuesday, November 5, 2019 3:07 PM > To: Kuldeep Singh > Cc: u-boot@lists.denx.de > Subject: Re: [EXT] [U-Boot] [PATCH v2 2/2] arm: ls1028a: use the new flexspi > driver > > Caution: EXT Email >

Re: [U-Boot] [EXT] [PATCH v2 2/2] arm: ls1028a: use the new flexspi driver

2019-11-04 Thread Kuldeep Singh
; > - num-cs = <1>; > + reg = <0x0 0x20c 0x0 0x1>, > + <0x0 0x2000 0x0 0x1000>; > + reg-names = "fspi_base", "fspi_mmap"; > + clocks = < 4 3>, < 4 3&

[U-Boot] [PATCH] configs: ls1012afrwy: Add CONFIG_ENV_ADDR for LS1012AFRWY

2019-09-30 Thread Kuldeep Singh
This configuration helps in picking the environment from flash before DDR init. Signed-off-by: Kuldeep Singh --- include/configs/ls1012afrwy.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/ls1012afrwy.h b/include/configs/ls1012afrwy.h index 12e6437a05..14e63204c6

[U-Boot] [PATCH v2] armv7: ls102xa: Correct entry of SCFG_QSPI_CLKSEL

2019-09-18 Thread Kuldeep Singh
Value 0xC is reserved. Replace it with correct value 0x5 which is ClusterPLL/16 Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- v2: Reword commit message arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm

[U-Boot] [RESEND][PATCH v2] configs: ls1012ardb: Add CONFIG_ENV_ADDR for LS1012ARDB

2019-09-18 Thread Kuldeep Singh
This configuration helps in picking the environment from flash before DDR init. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- v2: Reword commit message include/configs/ls1012ardb.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ls1012ardb.h b/include

[U-Boot] [PATCH] configs: ls1012ardb: Add CONFIG_ENV_ADDR for LS1012ARDB

2019-09-17 Thread Kuldeep Singh
The configuration helps in picking the environment from flash before DDR init. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- include/configs/ls1012ardb.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h index

[U-Boot] [PATCH] armv7: ls102xa: Correct entry of SCFG_QSPI_CLKSEL

2019-09-17 Thread Kuldeep Singh
Previous value "0xC" was reserved. Hence correcting it to new value "0x5" which is ClusterPLL/16. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH] mtd: spi-nor-ids: Add SPI_NOR_4B_OPCODES to micron mt35xu512g flash ID

2019-05-22 Thread Kuldeep Singh
Signed-off-by: Kuldeep Singh --- drivers/mtd/spi/spi-nor-ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index af0b3a6488..a143fba265 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor

[U-Boot] [PATCH] configs: ls1088aqds: Enable config to write aligned data to TxFIFO

2019-05-13 Thread Kuldeep Singh
Enable config in LS1088aqds board to send only 16 bytes aligned data to TxFIFO while writing to flash Signed-off-by: Kuldeep Singh --- configs/ls1088aqds_tfa_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/ls1088aqds_tfa_defconfig b/configs

[U-Boot] [PATCH] mtd: spi-nor-ids: Add micron mt35xu512g flash ID

2019-05-10 Thread Kuldeep Singh
Signed-off-by: Kuldeep Singh --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index e6a7ce75cc..4b792fa588 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -162,6

[U-Boot] [PATCH v4] configs: ls1046: Update mtd-id for QSPI nor in mtdparts variable

2019-04-08 Thread Kuldeep Singh
llowing bootargs CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=155.quadspi:2m(uboot),14m(free)" CONFIG_MTDPARTS_DEFAULT="mtdparts=155.quadspi:2m(uboot),14m(free)" Signed-off-by: Kuldeep Singh --- v4: Update commit message v3: Upda

Re: [U-Boot] [PATCH v3] configs: ls1046: Update mtd-id for QSPI nor in mtdparts variable

2019-04-08 Thread Kuldeep Singh
> -Original Message- > From: Prabhakar Kushwaha > Sent: Sunday, April 7, 2019 2:59 PM > To: Prabhakar Kushwaha ; Kuldeep Singh > ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Mingkai Hu > > Subject: RE: [PATCH v3] configs: ls1046: Update mtd-id for QSPI nor in >

[U-Boot] [PATCH v3] configs: ls1046: Update mtd-id for QSPI nor in mtdparts variable

2019-03-08 Thread Kuldeep Singh
Update mtd-id for QSPI nor due to change introduced in mtd/spi in linux 5.0 commit 84d043185dbe ("spi: Add a driver for the Freescale/NXP QuadSPI controller") Signed-off-by: Kuldeep Singh --- v3: Update commit message v2: Update commit message configs/ls1046aqds_qspi

[U-Boot] [PATCH v2] configs: ls1046: Update mtd-id for QSPI nor in mtdparts variable

2019-03-07 Thread Kuldeep Singh
Update mtd-id for QSPI nor due to change introduced in mtd/spi. Commit for reference in linux-5.0 (sha: 84d043185dbe0d1b4f6db575bd91c834d37e2f78) "spi: Add a driver for the Freescale/NXP QuadSPI controller" Signed-off-by: Kuldeep Singh --- v2: Update commit msg

[U-Boot] [PATCH] configs: ls1046: Update mtd-id for QSPI nor in mtdparts variable

2019-03-05 Thread Kuldeep Singh
Updated mtd-id for QSPI nor due to change introduced in mtd/spi. Commit for reference in linux-5.0 "spi: Add a driver for the Freescale/NXP QuadSPI controller" Signed-off-by: Kuldeep Singh --- configs/ls1046aqds_qspi_defconfig | 4 ++-- configs/ls1046aqds_sdcard_qspi

<    1   2