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

2022-07-17 Thread JaimeLiao
7172 f800 7172 9900 7172 f900 0f0 1501 d001 7172 d806 5086 100 0106 0002 0301 0200 110 0106 0672 0200 120 ee00 69c0 7272 7171 d800 f6f7 0a00 130 4514 8098 0643 000f dc21 140

[PATCH v9 0/1] Add octal DTR support for Macronix flash

2022-07-17 Thread JaimeLiao
te command extension types. replace CONFIG_SPI_FLASH_MACRONIX with SPI_FLASH_MACRONIX_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (1): mtd: spi-nor-core: Add support for Macronix Octal

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

2022-07-03 Thread JaimeLiao
7172 f800 7172 9900 7172 f900 0f0 1501 d001 7172 d806 5086 100 0106 0002 0301 0200 110 0106 0672 0200 120 ee00 69c0 7272 7171 d800 f6f7 0a00 130 4514 8098 0643 000f dc21 140

[PATCH v8 3/4] mtd: spi-nor: Parse SFDP SCCR Map

2022-07-03 Thread JaimeLiao
Parse SCCR 22nd dword and check DTR Octal Mode Enable Volatile bit for Octal DTR enable Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 52 ++ include/linux/mtd/spi-nor.h| 1 + 2 files changed, 53 insertions(+) diff --git a/drivers/mtd/spi/spi

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

2022-07-03 Thread JaimeLiao
: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 7 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index f350c7e5dc..5bb1baa019 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers

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

2022-07-03 Thread JaimeLiao
,%20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 82 ++ include/linux/mtd/spi-nor.h| 10 + 2 files changed, 92 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 3b7c817c02..5d319e4c0f

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

2022-07-03 Thread JaimeLiao
_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (4): mtd: spi-nor: add support for Macronix Octal flash mtd: spi-nor-core: Adding different type of command extension in Soft Reset mtd: spi-nor:

[PATCH] mtd: spi-nor: Parse SFDP Command Sequence to change to Octal DDR(8D-8D-8D) mode

2022-03-09 Thread JaimeLiao
Parcing table of SFDP Command Sequence to change to Octal DDR(8D-8D-8D) mode(CSODDR) and following SPI protocol to judge opcode, address, dummy and data. Enabling Octal DDR mode when nor->octal_dtr_enable didn't hook. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core

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

2022-03-02 Thread JaimeLiao
7172 f800 7172 9900 7172 f900 0f0 1501 d001 7172 d806 5086 100 0106 0002 0301 0200 110 0106 0672 0200 120 ee00 69c0 7272 7171 d800 f6f7 0a00 130 4514 8098 0643 000f dc21 140

[PATCH v7 3/4] mtd: spi-nor: Parse SFDP SCCR Map

2022-03-02 Thread JaimeLiao
Parse SCCR 22nd dword and check DTR Octal Mode Enable Volatile bit for Octal DTR enable Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 52 ++ include/linux/mtd/spi-nor.h| 1 + 2 files changed, 53 insertions(+) diff --git a/drivers/mtd/spi/spi

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

2022-03-02 Thread JaimeLiao
: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 7 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 1b2ef37e92..9b7d195770 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers

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

2022-03-02 Thread JaimeLiao
,%20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 82 ++ include/linux/mtd/spi-nor.h| 12 - 2 files changed, 92 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

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

2022-03-02 Thread JaimeLiao
t checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (4): mtd: spi-nor: add support for Macronix Octal flash mtd: spi-nor-core: Adding different type of command extension in Soft Reset mtd: spi-nor: Parse SFDP SCCR Map mtd: spi-nor-core: Add support fo

[PATCH v6 4/4] mtd: spi-nor: Parse SFDP SCCR Map

2021-12-28 Thread JaimeLiao
Parse SCCR 22nd dword and check DTR Octal Mode Enable Volatile bit for Octal DTR enable Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 52 ++ include/linux/mtd/spi-nor.h| 1 + 2 files changed, 53 insertions(+) diff --git a/drivers/mtd/spi/spi

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

2021-12-28 Thread JaimeLiao
-Write and stack die MX66UW : 1.8V Octal I/O with Read-while-Write and stack die About LW/UW series, please contact us freely if you have any questions. For adding Octal NOR Flash IDs, we have validated each Flash on plateform zynq-picozed. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor

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

2021-12-28 Thread JaimeLiao
: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 7 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 1b2ef37e92..9b7d195770 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers

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

2021-12-28 Thread JaimeLiao
20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 83 ++ include/linux/mtd/spi-nor.h| 12 - 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

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

2021-12-28 Thread JaimeLiao
sion types. replace CONFIG_SPI_FLASH_MACRONIX with SPI_FLASH_MACRONIX_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (4): mtd: spi-nor: macronix: add support for Macronix Octal mtd: spi-nor-co

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

2021-11-18 Thread JaimeLiao
-Write and stack die MX66UW : 1.8V Octal I/O with Read-while-Write and stack die About LW/UW series, please contact us freely if you have any questions. For adding Octal NOR Flash IDs, we have validated each Flash on plateform zynq-picozed. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor

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

2021-11-18 Thread JaimeLiao
: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 7 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 1b2ef37e92..9b7d195770 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers

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

2021-11-18 Thread JaimeLiao
20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 83 ++ include/linux/mtd/spi-nor.h| 12 - 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

[PATCH v5 0/3] Add octal DTR support for Macronix flash

2021-11-18 Thread JaimeLiao
_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (3): mtd: spi-nor: macronix: add support for Macronix Octal mtd: spi-nor-core: Adding different type of command extension in Soft Reset

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

2021-10-18 Thread JaimeLiao
-Write and stack die MX66UW : 1.8V Octal I/O with Read-while-Write and stack die About LW/UW series, please contact us freely if you have any questions. For adding Octal NOR Flash IDs, we have validated each Flash on plateform zynq-picozed. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor

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

2021-10-18 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 87a7de7d60

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

2021-10-18 Thread JaimeLiao
: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 7 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 67599b32c9..8304d6c973 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers

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

2021-10-18 Thread JaimeLiao
20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 83 ++ include/linux/mtd/spi-nor.h| 13 +- 3 files changed, 101 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/Kconfig b/drive

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

2021-10-18 Thread JaimeLiao
enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (4): mtd: spi-nor: macronix: add support for Macronix Octal mtd: spi-nor-core: Adding different type of command extension in Soft Reset mtd: spi-nor-core: set 4byte opcode when possible mtd: spi-nor-core: Add support for Macronix O

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

2021-09-13 Thread JaimeLiao
-Write and stack die MX66UW : 1.8V Octal I/O with Read-while-Write and stack die About LW/UW series, please contact us freely if you have any questions. For adding Octal NOR Flash IDs, we have validated each Flash on plateform zynq-picozed. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor

[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 4bcd58d839

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

2021-09-13 Thread JaimeLiao
onfigure from SFDP. Signed-off-by: JaimeLiao --- drivers/mtd/spi/Kconfig| 6 ++ drivers/mtd/spi/spi-nor-core.c | 7 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 67599b32c9..d850480401 100644 --- a/drivers

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

2021-09-13 Thread JaimeLiao
20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/Kconfig| 7 +++ drivers/mtd/spi/spi-nor-core.c | 83 ++ include/linux/mtd/spi-nor.h| 13 +- 3 files changed, 101 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/Kconfig b/drive

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

2021-09-13 Thread JaimeLiao
RONIX with SPI_FLASH_MACRONIX_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (4): mtd: spi-nor: macronix: add support for Macronix Octal mtd: spi-nor-core: Adding different type of command

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

2021-08-20 Thread JaimeLiao
-Write and stack die MX66UW : 1.8V Octal I/O with Read-while-Write and stack die About LW/UW series, please contact us freely if you have any questions. For adding Octal NOR Flash IDs, we have validated each Flash on plateform zynq-picozed. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor

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

2021-08-20 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 707eb9c1d2

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

2021-08-20 Thread JaimeLiao
useful in the begging of probe. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 351ca9c3a8..707eb9c1d2 100644 --- a/drivers/mtd/spi/spi

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

2021-08-20 Thread JaimeLiao
20v1.1.pdf Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 83 ++ include/linux/mtd/spi-nor.h| 13 +- 2 files changed, 94 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

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

2021-08-20 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. JaimeLiao (4): mtd: spi-nor: macronix: add support for Macronix Octal flash mtd: spi-nor-core: Adding

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

2021-08-13 Thread JaimeLiao
-Write and stack die MX66UW : 1.8V Octal I/O with Read-while-Write and stack die About LW/UW series, please contact us freely if you have any questions. For adding Octal NOR Flash IDs, we have validated each Flash on plateform zynq-picozed. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor

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

2021-08-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 be6c58ad40

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

2021-08-13 Thread JaimeLiao
useful in the begging of probe. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 6b195b1fd3..be6c58ad40 100644 --- a/drivers/mtd/spi/spi

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

2021-08-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. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-c

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

2021-08-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. JaimeLiao (4): mtd: spi-nor: macronix: add support for Macronix octaflash mtd: spi-nor-core: Adding diff

Re: [v10,14/27] mtd: spi-nor-core: Add support for DTR protocol

2021-06-28 Thread jaimeliao
Hi Pratyush In the [v10,14/27] @@ -2767,7 +2858,10 @@ int spi_nor_scan(struct spi_nor *nor) if (ret) return ret; -if (nor->addr_width) { +if (spi_nor_protocol_is_dtr(nor->read_proto)) { +

回信: Re: [v9,23/28] mtd: spi-nor-core: Perform a Soft Reset on shutdown

2021-06-20 Thread jaimeliao
Jaime Liao/TAIWAN/MXIC 已在 2021/06/21 上午 09:59:29 上寫入: > JaimeLiao 廖俊明/台灣/旺宏 > 2021/06/21 上午 09:59 > > 收件人 > > "Pratyush Yadav" , > > 副本抄送 > > chris.pack...@alliedtelesis.co.nz, chunfeng@mediatek.com, > gss_mtk_uboot_upstr...@mediate

回信: Re: [v9,23/28] mtd: spi-nor-core: Perform a Soft Reset on shutdown

2021-06-20 Thread jaimeliao
Hi Pratyush > Hi, > > On 18/06/21 04:55PM, jaimel...@mxic.com.tw wrote: > > > > Hi Pratyush > > > > > > +#ifdef CONFIG_SPI_FLASH_SOFT_RESET > > +/** > > + * spi_nor_soft_reset() - perform the JEDEC Software Reset sequence > > + * @nor:the spi_nor structure > > + * > > + * Thi

Re:[v9,23/28] mtd: spi-nor-core: Perform a Soft Reset on shutdown

2021-06-18 Thread jaimeliao
Hi Pratyush +#ifdef CONFIG_SPI_FLASH_SOFT_RESET +/** + * spi_nor_soft_reset() - perform the JEDEC Software Reset sequence + * @nor:the spi_nor structure + * + * This function can be used to switch from Octal DTR mode to legacy mode on a + * flash that supports it. The soft rese

回信: Re: [PATCH] mtd: spinand: macronix: Add support for serial NAND flash

2021-06-07 Thread jaimeliao
Hi Miquel > "Miquel Raynal" > 2021/06/07 下午 02:13 > > 收件人 > > zhengxu...@mxic.com.tw, > > 副本抄送 > > ja...@amarulasolutions.com, "Jaime Liao" , u- > b...@lists.denx.de, vigne...@ti.com, ycl...@mxic.com.tw > > 主旨 > > Re: [PATCH] mtd: spinand: macronix: Add support for serial NAND flash > >