Enable octal read support for mt35xu* flashes
Subsystems (2)
v3 cover Enable octal read support for mt35xu* flashes
Patch series enable octal read(1-1-8) support for LX2160ARDB/QDS and LS1028ARDB/QDS which have mt35xu512aba and mt35xu02g flashes respectively.
mt35xu512aba and mt35xu02g flashes support SINGLE and OCTAL I/O. Previously, 1 bit mode was used in u-boot and now use octal mode for the flashes.
Patch 1 enables octal read flag for flashes in framework. Patch 2/3 adds RX,TX buswidth in flexspi dts entries to use octal mode for LS1028ARDB/QDS, LX2160ARDB/QDS.
v3:
-Patch 3 has dependency on https://patchwork.ozlabs.org/patch/1247579/.
-Reword commit message for patch 2/3.
v2:
-Update dependencies of the patches
-Add lx2160aqds node buswidth in patch3.
-Patch3 has dependency on https://patchwork.ozlabs.org/patch/1236164/.
Kuldeep Singh (3):
mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*
arm: dts: ls1028a: Use flexspi in octal I/O mode
arm: dts: lx2160a: Use flexspi in octal I/O mode
arch/arm/dts/fsl-ls1028a-qds.dts | 2 ++ arch/arm/dts/fsl-ls1028a-rdb.dts | 2 ++ arch/arm/dts/fsl-lx2160a-qds.dts | 2 ++ arch/arm/dts/fsl-lx2160a-rdb.dts | 4 ++++ drivers/mtd/spi/spi-nor-ids.c | 4 ++-- 5 files changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4
PATCH v3 1/3 mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*
Commit 658df8bd9464 ("mtd: spi-nor-core: Add octal mode support") enables octal mode(1-1-8) support in spi-nor framework.
mt35xu512aba and mt35xu02g supports SINGLE and OCTAL I/O. Hence, enable SPI_NOR_OCTAL_READ flag for these flashes.
---
v3: No change
v2: Reword commit message
drivers/mtd/spi/spi-nor-ids.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/spi/spi-nor-ids.c +2 -2
@@ -182,8 +182,8 @@ const struct flash_info spi_nor_ids[] = { { INFO("n25q00", 0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, { INFO("n25q00a", 0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, { INFO("mt25qu02g", 0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, - { INFO("mt35xu512aba", 0x2c5b1a, 0, 128 * 1024, 512, USE_FSR | SPI_NOR_4B_OPCODES) }, - { INFO("mt35xu02g", 0x2c5b1c, 0, 128 * 1024, 2048, USE_FSR | SPI_NOR_4B_OPCODES) }, + { INFO("mt35xu512aba", 0x2c5b1a, 0, 128 * 1024, 512, USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) }, + { INFO("mt35xu02g", 0x2c5b1c, 0, 128 * 1024, 2048, USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) }, #endif #ifdef CONFIG_SPI_FLASH_SPANSION /* SPANSION */ /* Spansion/Cypress -- single (large) sector size only, at least
Signature · 1 line
2.7.4
PATCH v3 1/3 mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*
Quoted 45 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Kuldeep Singh
Sent: Saturday, March 14, 2020 6:24 PM
To: Priyanka Jain <[email protected]>; Jagan Teki <[email protected]>; Vignesh R <[email protected]>; u- boot at lists.denx.de
Cc: Kuldeep Singh <[email protected]>
Subject: [Patch v3 1/3] mtd: spi-nor-ids: EnableSPI_NOR_OCTAL_READflag for mt35xu*Commit
658df8bd9464("mtd: spi-nor-core: Add octal mode support") enables octal mode(1-1-8) support in spi-nor framework.mt35xu512aba and mt35xu02g supports SINGLE and OCTAL I/O. Hence, enable
SPI_NOR_OCTAL_READflag for these flashes.Signed-off-by Kuldeep Singh <[email protected]>Reviewed-by Vignesh Raghavendra <[email protected]>---
v3: No change
v2: Reword commit message
drivers/mtd/spi/spi-nor-ids.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/mtd/spi/spi-nor-ids.c index renamed from drivers/mtd/spi/spi-nor-ids.c +0
-0973b6f8..334c074 100644
drivers/mtd/spi/spi-nor-ids.c +0
-2@@ -182,8 +182,8 @@ const struct flash_info spi_nor_ids[] = { {INFO ("n25q00" ,0x20ba21 ,0 ,64 *1024 ,2048 ,SECT_4K |USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, { INFO("n25q00a", 0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, { INFO("mt25qu02g", 0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, - { INFO("mt35xu512aba", 0x2c5b1a, 0, 128 * 1024, 512, USE_FSR | SPI_NOR_4B_OPCODES) }, - { INFO("mt35xu02g", 0x2c5b1c, 0, 128 * 1024, 2048, USE_FSR |
SPI_NOR_4B_OPCODES) },drivers/mtd/spi/spi-nor-ids.c +1
-0+ { INFO("mt35xu512aba", 0x2c5b1a, 0, 128 * 1024, 512, USE_FSR |
SPI_NOR_OCTAL_READ|SPI_NOR_4B_OPCODES) },drivers/mtd/spi/spi-nor-ids.c +2
-0+ {INFO ("mt35xu02g" ,0x2c5b1c ,0 ,128 *1024 ,2048 ,USE_FSR | +SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },#endif
Quoted 4 lines
#ifdef CONFIG_SPI_FLASH_SPANSION /* SPANSION */ /* Spansion/Cypress -- single (large) sector size only, at least--
2.7.4
Jagan,
Please help to pick this patch or provide ack.
Thanks
Priyanka
PATCH v3 1/3 mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*
Quoted 51 lines · Priyanka Jain (OSS)
Quoted 46 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Kuldeep Singh
Sent: Saturday, March 14, 2020 6:24 PM
To: Priyanka Jain <[email protected]>; Jagan Teki <[email protected]>; Vignesh R <[email protected]>; u- boot at lists.denx.de
Cc: Kuldeep Singh <[email protected]>
Subject: [Patch v3 1/3] mtd: spi-nor-ids: EnableSPI_NOR_OCTAL_READflag for mt35xu*Commit
658df8bd9464("mtd: spi-nor-core: Add octal mode support") enables octal mode(1-1-8) support in spi-nor framework.mt35xu512aba and mt35xu02g supports SINGLE and OCTAL I/O. Hence, enable
SPI_NOR_OCTAL_READflag for these flashes.Signed-off-by Kuldeep Singh <[email protected]>Reviewed-by Vignesh Raghavendra <[email protected]>---
v3: No change
v2: Reword commit message
drivers/mtd/spi/spi-nor-ids.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/mtd/spi/spi-nor-ids.c index renamed from drivers/mtd/spi/spi-nor-ids.c +0
-0973b6f8..334c074 100644
drivers/mtd/spi/spi-nor-ids.c +0
-2@@ -182,8 +182,8 @@ const struct flash_info spi_nor_ids[] = { {INFO ("n25q00" ,0x20ba21 ,0 ,64 *1024 ,2048 ,SECT_4K |USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, { INFO("n25q00a", 0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, { INFO("mt25qu02g", 0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, - { INFO("mt35xu512aba", 0x2c5b1a, 0, 128 * 1024, 512, USE_FSR | SPI_NOR_4B_OPCODES) }, - { INFO("mt35xu02g", 0x2c5b1c, 0, 128 * 1024, 2048, USE_FSR |
SPI_NOR_4B_OPCODES) },
+ { INFO("mt35xu512aba",0x2c5b1a, 0, 128 * 1024, 512,USE_FSR|SPI_NOR_OCTAL_READ|SPI_NOR_4B_OPCODES) },drivers/mtd/spi/spi-nor-ids.c +2
-0+ {INFO ("mt35xu02g" ,0x2c5b1c ,0 ,128 *1024 ,2048 ,USE_FSR | +SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },#endif
Quoted 4 lines
#ifdef CONFIG_SPI_FLASH_SPANSION /* SPANSION */ /* Spansion/Cypress -- single (large) sector size only, at least--
2.7.4Reviewed-by Priyanka Jain <[email protected]>
Quoted 3 lines
Jagan,
Please help to pick this patch or provide ack.
Yes I marked it to pick after MW.
Jagan.
PATCH v3 1/3 mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*
In reply to Kuldeep SinghQuoted 10 lines · 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 supports SINGLE and OCTAL I/O. Hence, enable
SPI_NOR_OCTAL_READflag for these flashes.Signed-off-by Kuldeep Singh <[email protected]>Reviewed-by Vignesh Raghavendra <[email protected]>---
Applied to u-boot-spi/master
PATCH v3 2/3 arm: dts: ls1028a: Use flexspi in octal I/O mode
In reply to Kuldeep SinghConfigure RX and TX bus-width values to use flexspi in octal I/O mode. If bus-widths are not specified, then single I/O mode is set by default.
---
v3: Reword commit message.
v2: No change.
arch/arm/dts/fsl-ls1028a-qds.dts | 2 ++ arch/arm/dts/fsl-ls1028a-rdb.dts | 2 ++ 2 files changed, 4 insertions(+)
arch/arm/dts/fsl-ls1028a-qds.dts +2 -0
@@ -49,6 +49,8 @@ compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>; reg = <0>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; };
arch/arm/dts/fsl-ls1028a-rdb.dts +2 -0
@@ -48,6 +48,8 @@ compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>; reg = <0>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; };
Signature · 1 line
2.7.4
PATCH v3 3/3 arm: dts: lx2160a: Use flexspi in octal I/O mode
In reply to Kuldeep SinghConfigure RX and TX bus-width values to use flexspi in octal I/O mode. If bus-widths are not specified, then single I/O mode is set by default.
---
v3: Reword commit message.
v2: No change.
arch/arm/dts/fsl-lx2160a-qds.dts | 2 ++ arch/arm/dts/fsl-lx2160a-rdb.dts | 4 ++++ 2 files changed, 6 insertions(+)
arch/arm/dts/fsl-lx2160a-qds.dts +2 -0
@@ -58,6 +58,8 @@ compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>; reg = <0>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; };
arch/arm/dts/fsl-lx2160a-rdb.dts +4 -0
@@ -39,6 +39,8 @@ compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>; reg = <0>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; mt35xu512aba1: flash at 1 {
@@ -47,6 +49,8 @@ compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>; reg = <1>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; };
Signature · 1 line
2.7.4
PATCH v3 3/3 arm: dts: lx2160a: Use flexspi in octal I/O mode
Quoted 9 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Kuldeep Singh
Sent: Saturday, March 14, 2020 6:24 PM
To: Priyanka Jain <[email protected]>; Jagan Teki <[email protected]>; Vignesh R <[email protected]>; u- boot at lists.denx.de
Cc: Kuldeep Singh <[email protected]>
Subject: [Patch v3 3/3] arm: dts: lx2160a: Use flexspi in octal I/O mode
Quoted 5 lines
Configure RX and TX bus-width values to use flexspi in octal I/O mode. If bus-widths are not specified, then single I/O mode is set by default.
Signed-off-by Kuldeep Singh <[email protected]>---
2/3, 3/3 Applied to u-boot-fsl-qoriq. Waiting upstream
Thanks
Priyanka