[RESEND PATCH] mtd: mtk-nor: adjust sequence of trigger function and assignment function

2015-12-17 Thread Bayi Cheng
Move write data register before excute command to avoid missing first byte write to nor flash Signed-off-by: Bayi Cheng --- the previous patch didn't drop the Change-Id --- drivers/mtd/spi-nor/mtk-quadspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/sp

[PATCH] mtd: mtk-nor: adjust sequence of trigger function and assignment function

2015-12-17 Thread Bayi Cheng
move write data register before excute command to avoid missing first byte write to nor flash Change-Id: Ie9d7ae30f9de1f3e976d2e1de5d8ee28837598c8 Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/mtk-quadspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi

Re: [PATCH] arm64: dts: mt8173: Add nor flash node

2015-12-06 Thread bayi cheng
On Mon, 2015-12-07 at 12:34 +0800, bayi cheng wrote: > On Mon, 2015-12-07 at 12:09 +0800, Daniel Kurtz wrote: > > Bayi, > > > > On Mon, Dec 7, 2015 at 11:53 AM, Bayi Cheng wrote: > > > Add Mediatek nor flash node > > > > > > Signed-

Re: [PATCH] arm64: dts: mt8173: Add nor flash node

2015-12-06 Thread bayi cheng
On Mon, 2015-12-07 at 12:09 +0800, Daniel Kurtz wrote: > Bayi, > > On Mon, Dec 7, 2015 at 11:53 AM, Bayi Cheng wrote: > > Add Mediatek nor flash node > > > > Signed-off-by: Bayi Cheng > > Acked-by: Brian Norris > > --- > > Previous version of

[PATCH] arm64: dts: mt8173: Add nor flash node

2015-12-06 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng Acked-by: Brian Norris --- Previous version of this patch is http://lists.infradead.org/pipermail/linux-arm-kernel/2015-November/386005.html Drop flash node from mt8173.dtsi accroding review comment --- arch/arm64/boot/dts/mediatek/mt8173

Re: [PATCH v8 2/2] arm64: dts: mt8173: Add nor flash node

2015-11-25 Thread bayi cheng
On Thu, 2015-11-26 at 09:20 +0800, Daniel Kurtz wrote: > Hi Bayi, Matthias, > > Sorry for the late review, one comment below... > > On Wed, Nov 18, 2015 at 11:30 AM, Bayi Cheng wrote: > > Add Mediatek nor flash node > > > > Signed-off-by: Bayi

[PATCH v8 1/2] mtd: mtk-nor: mtk serial flash controller driver

2015-11-17 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 486 ++ 3 files changed, 494 insertions(+) create mode

[PATCH v8 2/2] arm64: dts: mt8173: Add nor flash node

2015-11-17 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng Acked-by: Brian Norris --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v8 0/2] Mediatek SPI-NOR flash driver

2015-11-17 Thread Bayi Cheng
clock in dts file 4. descripts more exactly for binding file 5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some functions witch were used once time Bayi Cheng (2): mtd: mtk-nor: mtk serial flash controller driver arm64: dts: mt8173: Add nor flash node arch/arm64/boot/dts/mediat

[PATCH v7 2/2] arm64: dts: mt8173: Add nor flash node

2015-11-17 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng Acked-by: Brian Norris --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v7 1/2] mtd: mtk-nor: mtk serial flash controller driver

2015-11-17 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 483 ++ 3 files changed, 491 insertions(+) create mode

[PATCH v7 0/2] Mediatek SPI-NOR flash driver

2015-11-17 Thread Bayi Cheng
auto-increment mechanism for single write 5: write address added to 32bytes Change in v2: 1. Rebase to 4.3-rc1 2. propagate error code 3. delete mux clock and axi clock in dts file 4. descripts more exactly for binding file 5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some funct

Re: [PATCH v6 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-11-12 Thread bayi cheng
On Wed, 2015-11-11 at 13:41 -0800, Brian Norris wrote: > One more small comment, since you're respinning this: > > On Fri, Nov 06, 2015 at 11:48:08PM +0800, Bayi Cheng wrote: > > diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c > > b/drivers/mtd/spi-nor/mtk-quadspi.

Re: [PATCH v6 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-11-12 Thread bayi cheng
On Wed, 2015-11-11 at 12:38 -0800, Brian Norris wrote: > On Fri, Nov 06, 2015 at 11:48:07PM +0800, Bayi Cheng wrote: > > Add device tree binding documentation for serial flash with > > Mediatek serial flash controller > > > > Signed-off-by: Bayi Cheng > > --- >

Re: [PATCH v6 0/3] Mediatek SPI-NOR flash driver

2015-11-12 Thread bayi cheng
On Wed, 2015-11-11 at 12:26 -0800, Brian Norris wrote: > On Wed, Nov 11, 2015 at 10:04:14PM +0800, Bayi Cheng wrote: > > On Mon, 2015-11-09 at 18:46 -0800, Brian Norris wrote: > > > I believe you didn't completely answer all my questions from v5 though. > > > I&#x

Re: [PATCH v6 0/3] Mediatek SPI-NOR flash driver

2015-11-11 Thread bayi cheng
On Mon, 2015-11-09 at 18:46 -0800, Brian Norris wrote: > Hi Bayi, > > On Fri, Nov 06, 2015 at 11:48:06PM +0800, Bayi Cheng wrote: > > This series is based on v4.3-rc1 and l2-mtd.git [0] and erase_sector > > implementation patch [1] > > > > [0]: git://gi

Re: [PATCH v6 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-11-11 Thread bayi cheng
On Mon, 2015-11-09 at 19:01 -0800, Brian Norris wrote: > Hi Bayi, > > A few small comments. > > On Fri, Nov 06, 2015 at 11:48:08PM +0800, Bayi Cheng wrote: > > add spi nor flash driver for mediatek controller > > > > Signed-off-by: Bayi Cheng > &g

[PATCH v6 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-11-06 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Signed-off-by: Bayi Cheng --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH v6 3/3] arm64: dts: mt8173: Add nor flash node

2015-11-06 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..f5f08eb 100644 --- a/arch

[PATCH v6 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-11-06 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 475 ++ 3 files changed, 483 insertions(+) create mode

[PATCH v6 0/3] Mediatek SPI-NOR flash driver

2015-11-06 Thread Bayi Cheng
5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some functions witch were used once time Bayi Cheng (3): doc: dt: add documentation for Mediatek spi-nor controller mtd: mtk-nor: mtk serial flash controller driver arm64: dts: mt8173: Add nor flash node .../devicetree/bindings/mtd/m

[PATCH v5 0/3] Mediatek SPI-NOR flash driver

2015-10-26 Thread Bayi Cheng
in v2: 1. Rebase to 4.3-rc1 2. propagate error code 3. delete mux clock and axi clock in dts file 4. descripts more exactly for binding file 5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some functions witch were used once time Bayi Cheng (3): doc: dt: add documentation for

[PATCH v5 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-10-26 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 491 ++ 3 files changed, 499 insertions(+) create mode

[PATCH v5 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-10-26 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Signed-off-by: Bayi Cheng --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH v5 3/3] arm64: dts: mt8173: Add nor flash node

2015-10-26 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..f5f08eb 100644 --- a/arch

[PATCH v4 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-10-13 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Signed-off-by: Bayi Cheng --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH v4 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-10-13 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 486 ++ 3 files changed, 494 insertions(+) create mode

[PATCH v4 0/3] Mediatek SPI-NOR flash driver

2015-10-13 Thread Bayi Cheng
or binding file 5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some functions witch were used once time Bayi Cheng (3): doc: dt: add documentation for Mediatek spi-nor controller mtd: mtk-nor: mtk serial flash controller driver arm64: dts: mt8173: Add nor flash node .../

[PATCH v4 3/3] arm64: dts: mt8173: Add nor flash node

2015-10-13 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..385c2e4 100644 --- a/arch

[PATCH v3 3/3] arm64: dts: mt8173: Add nor flash node

2015-10-01 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..385c2e4 100644 --- a/arch

[PATCH v3 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-10-01 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 486 ++ 3 files changed, 494 insertions(+) create mode

[PATCH v3 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-10-01 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Signed-off-by: Bayi Cheng --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH v3 0/3] Mediatek SPI-NOR flash driver

2015-10-01 Thread Bayi Cheng
3-rc1 2. propagate error code 3. delete mux clock and axi clock in dts file 4. descripts more exactly for binding file 5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some functions witch were used once time Bayi Cheng (3): doc: dt: add documentation for Mediatek spi-nor controller

[PATCH v2 3/3] arm64: dts: mt8173: Add nor flash node

2015-09-18 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..385c2e4 100644 --- a/arch

[PATCH v2 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-09-18 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk_quadspi.c | 483 ++ 3 files changed, 491 insertions(+) create mode

[PATCH v2 0/3] Mediatek SPI-NOR flash driver

2015-09-18 Thread Bayi Cheng
nd l2-mtd.git (git://git.infradead.org/l2-mtd.git) Change in v2: 1. Rebase to 4.3-rc1 2. propagate error code 3. delete mux clock and axi clock in dts file 4. descripts more exactly for binding file 5. change file names from mtk-nor.c to mtk_quadspi.c 6. delete some functions witch were used once time

[PATCH v2 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-09-17 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Signed-off-by: Bayi Cheng --- .../devicetree/bindings/mtd/mtk_quadspi.txt| 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-09-17 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Change-Id: Iaecd0bb7ba1b224f1e27bd7063f0b8d7ea30175a Signed-off-by: Bayi Cheng --- Documentation/devicetree/bindings/mtd/mtk_quadspi.txt | 18 ++ 1 file changed, 18 insertions(+) create

[PATCH 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-09-08 Thread Bayi Cheng
Add device tree binding documentation for serial flash with Mediatek serial flash controller Signed-off-by: Bayi Cheng --- Documentation/devicetree/bindings/mtd/mtk_nor.txt | 25 +++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-09-08 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk_nor.c | 533 ++ 3 files changed, 541 insertions(+) create mode 100644

[PATCH 3/3] arm64: dts: mt8173: Add nor flash node

2015-09-08 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..a14f005 100644 --- a/arch/arm64

[PATCH 0/3] Mediatek SPI-NOR flash driver

2015-09-08 Thread Bayi Cheng
nd l2-mtd.git (git://git.infradead.org/l2-mtd.git) Bayi Cheng (3): doc: dt: add documentation for Mediatek spi-nor controller mtd: mtk-nor: mtk serial flash controller driver arm64: dts: mt8173: Add nor flash node Documentation/devicetree/bindings/mtd/mtk_nor.txt | 25 + arch/arm64/boot/dts/med