[PATCH 3/4] spi: mediatek: add mtk_spi_compatible support

2021-03-21 Thread Leilk Liu
this patch adds max_fifo_size and must_rx compat support. Signed-off-by: Leilk Liu --- drivers/spi/spi-slave-mt27xx.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index

[PATCH 4/4] spi: mediatek: add mt8195 spi slave support

2021-03-21 Thread Leilk Liu
this patch adds mt8195 spi slave compatible support. Signed-off-by: Leilk Liu --- drivers/spi/spi-slave-mt27xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index 7e6fadc88cef..f199a6c4738a 100644 --- a/drivers/spi

[PATCH 0/4] Add Mediatek MT8195 SPI driver support

2021-03-21 Thread Leilk Liu
This series are based on spi/for-next, and provide 4 patches to add MT8195 spi support. Leilk Liu (4): spi: update spi master bindings for MT8195 SoC spi: update spi slave bindings for MT8195 SoC spi: mediatek: add mtk_spi_compatible support spi: mediatek: add mt8195 spi slave support

[PATCH 2/4] spi: update spi slave bindings for MT8195 SoC

2021-03-21 Thread Leilk Liu
Add a DT binding documentation for the MT8195 soc. Signed-off-by: Leilk Liu --- Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH 1/4] spi: update spi master bindings for MT8195 SoC

2021-03-21 Thread Leilk Liu
Add a DT binding documentation for the MT8195 soc. Signed-off-by: leilk.liu --- Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt

Re: [PATCH] spi: mediatek: Re-license MTK SPI driver as Dual MIT/GPL

2021-03-03 Thread Leilk Liu
On Wed, 2021-03-03 at 08:18 +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 03, 2021 at 10:56:36AM +0800, Leilk Liu wrote: > > From: "leilk.liu" > > > > It is wanted to use MTK spi bus driver with GPL-2.0 or MIT license. > > But now it is only licensed as GPL-

[PATCH 0/3] spi: add set_cs_timing support for HW/SW CS mode

2021-02-06 Thread Leilk Liu
Some controllers only have one HW CS, if support multiple devices, other devices need to use SW CS. This patch adds the support of both HW and SW CS via cs_gpio. leilk.liu (3): spi: add power control when set_cs_timing spi: support CS timing for HW & SW mode spi: mediatek: add

[PATCH] spi: mediatek: add SPI_LSB_FIRST support

2019-06-04 Thread Leilk Liu
this patch add SPI_LSB_FIRST feature support. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 15 ++- include/linux/platform_data/spi-mt65xx.h |2 -- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi

[PATCH] dt-bindings: spi: spi-mt65xx: add support for MT8516

2019-04-17 Thread Leilk Liu
Add binding documentation of spi-mt65xx for MT8516 SOC. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH v3] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-27 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- v3: remove cover-letter. v2: remove "mediatek,mt7629-spi" compatible according Matthias's advice. v1: This series are based on 4.20-rc1 and provide two patches to support mt7629 IC. --- .../

[PATCH v3] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-27 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- v3: remove cover-letter. v2: remove "mediatek,mt7629-spi" compatible according Matthias's advice. v1: This series are based on 4.20-rc1 and provide two patches to support mt7629 IC. --- .../

[PATCH v2 1/1] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-26 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH v2 1/1] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-26 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH v2 0/1] add SPI driver support for mt7629

2018-11-26 Thread Leilk Liu
>From cf719ac350c36cb58e2013b58f73ad04f6981384 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 27 Nov 2018 10:18:30 +0800 Subject: [PATCH v2 0/1] add SPI driver support for mt7629 v2: remove "mediatek,mt7629-spi" compatible according Matthias's advice. v1: This series are base

[PATCH v2 0/1] add SPI driver support for mt7629

2018-11-26 Thread Leilk Liu
>From cf719ac350c36cb58e2013b58f73ad04f6981384 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 27 Nov 2018 10:18:30 +0800 Subject: [PATCH v2 0/1] add SPI driver support for mt7629 v2: remove "mediatek,mt7629-spi" compatible according Matthias's advice. v1: This series are base

[PATCH 0/2] add SPI driver support for mt7629

2018-11-20 Thread Leilk Liu
>From 51ab18abe1ad0f8ef0bc88696d956431f3e01f3f Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 20 Nov 2018 16:34:22 +0800 Subject: [PATCH 0/2] add SPI driver support for mt7629 This series are based on 4.20-rc1 and provide two patches to support mt7629 IC. Leilk Liu (2): spi: media

[PATCH 2/2] spi: mediatek: add spi support for mt7629 IC

2018-11-20 Thread Leilk Liu
this patch add support for mt7629 IC. Change-Id: Icb8ced408ebd1340fb0340592b91f24740d07e1e Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 9ee1fe9..0cce6f0 100644

[PATCH 0/2] add SPI driver support for mt7629

2018-11-20 Thread Leilk Liu
>From 51ab18abe1ad0f8ef0bc88696d956431f3e01f3f Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 20 Nov 2018 16:34:22 +0800 Subject: [PATCH 0/2] add SPI driver support for mt7629 This series are based on 4.20-rc1 and provide two patches to support mt7629 IC. Leilk Liu (2): spi: media

[PATCH 2/2] spi: mediatek: add spi support for mt7629 IC

2018-11-20 Thread Leilk Liu
this patch add support for mt7629 IC. Change-Id: Icb8ced408ebd1340fb0340592b91f24740d07e1e Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 9ee1fe9..0cce6f0 100644

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-20 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-20 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT8183 soc platform

2018-11-01 Thread Leilk Liu
This patch adds a DT binding documentation for the MT8183 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

add SPI driver support for mt8183

2018-11-01 Thread Leilk Liu
>From 44b1c34bc19d9bfdc736664439c0530fbb2c75b8 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Thu, 1 Nov 2018 11:48:20 +0800 Subject: [PATCH 0/2] add SPI driver support for mt8183 This series are based on 4.19-rc1 and provide two patches to support mt8183 IC. Leilk Liu (2): spi: mediatek:

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT8183 soc platform

2018-11-01 Thread Leilk Liu
This patch adds a DT binding documentation for the MT8183 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

add SPI driver support for mt8183

2018-11-01 Thread Leilk Liu
>From 44b1c34bc19d9bfdc736664439c0530fbb2c75b8 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Thu, 1 Nov 2018 11:48:20 +0800 Subject: [PATCH 0/2] add SPI driver support for mt8183 This series are based on 4.19-rc1 and provide two patches to support mt8183 IC. Leilk Liu (2): spi: mediatek:

[PATCH 2/2] spi: mediatek: add spi support for mt8183 IC

2018-11-01 Thread Leilk Liu
this patch add support for mt8183 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 0c2867d..9ee1fe9 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi

[PATCH 2/2] spi: mediatek: add spi support for mt8183 IC

2018-11-01 Thread Leilk Liu
this patch add support for mt8183 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 0c2867d..9ee1fe9 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi

[PATCH] spi: mediatek: use correct mata->xfer_len when in fifo transfer

2018-10-31 Thread Leilk Liu
when xfer_len is greater than 64 bytes and use fifo mode to transfer, the actual length from the third time is mata->xfer_len but not len in mtk_spi_interrupt(). Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[PATCH] spi: mediatek: use correct mata->xfer_len when in fifo transfer

2018-10-31 Thread Leilk Liu
when xfer_len is greater than 64 bytes and use fifo mode to transfer, the actual length from the third time is mata->xfer_len but not len in mtk_spi_interrupt(). Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[PATCH v5 2/3] spi: mediatek: add spi slave for Mediatek MT2712

2018-09-28 Thread Leilk Liu
This patch adds basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig| 10 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 554 3 files changed, 565 insertions(+) create mode 100644

[PATCH v5 0/3] Add Mediatek SPI slave driver

2018-09-28 Thread Leilk Liu
>From 5479c692171dc52990290d88c505c074fa4db7d4 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Fri, 28 Sep 2018 18:37:40 +0800 Subject: [PATCH v5 0/3] Add Mediatek SPI slave driver v5: 1. Fix typos in bindings file. v4: 1. Fix Mark Brown review comment about kconfig & driver. v3: 1.

[PATCH v5 1/3] spi: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-28 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v5 2/3] spi: mediatek: add spi slave for Mediatek MT2712

2018-09-28 Thread Leilk Liu
This patch adds basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig| 10 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 554 3 files changed, 565 insertions(+) create mode 100644

[PATCH v5 0/3] Add Mediatek SPI slave driver

2018-09-28 Thread Leilk Liu
>From 5479c692171dc52990290d88c505c074fa4db7d4 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Fri, 28 Sep 2018 18:37:40 +0800 Subject: [PATCH v5 0/3] Add Mediatek SPI slave driver v5: 1. Fix typos in bindings file. v4: 1. Fix Mark Brown review comment about kconfig & driver. v3: 1.

[PATCH v5 1/3] spi: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-28 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v5 3/3] arm64: dts: Add spi slave dts

2018-09-28 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v5 3/3] arm64: dts: Add spi slave dts

2018-09-28 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v4 2/3] spi: mediatek: add spi slave for Mediatek MT2712

2018-09-24 Thread Leilk Liu
This patch adds basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig| 10 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 554 3 files changed, 565 insertions(+) create mode 100644

[PATCH v4 0/3] Add Mediatek SPI slave driver

2018-09-24 Thread Leilk Liu
>From 7f2423debd91771a1d3a5ca02cd3990f1417bcb8 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 25 Sep 2018 10:11:44 +0800 Subject: Subject: [PATCH v4 0/3] Add Mediatek SPI slave driver v4: 1. Fix Mark Brown review comment about kconfig & driver. v3: 1. Fix Rob Herring review commen

[PATCH v4 2/3] spi: mediatek: add spi slave for Mediatek MT2712

2018-09-24 Thread Leilk Liu
This patch adds basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig| 10 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 554 3 files changed, 565 insertions(+) create mode 100644

[PATCH v4 0/3] Add Mediatek SPI slave driver

2018-09-24 Thread Leilk Liu
>From 7f2423debd91771a1d3a5ca02cd3990f1417bcb8 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 25 Sep 2018 10:11:44 +0800 Subject: Subject: [PATCH v4 0/3] Add Mediatek SPI slave driver v4: 1. Fix Mark Brown review comment about kconfig & driver. v3: 1. Fix Rob Herring review commen

[PATCH v4 1/3] spi: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-24 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v4 1/3] spi: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-24 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v4 3/3] arm64: dts: Add spi slave dts

2018-09-24 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v4 3/3] arm64: dts: Add spi slave dts

2018-09-24 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v3 0/3] Add Mediatek SPI slave driver

2018-09-16 Thread Leilk Liu
>From 82bced99683343899dea4634452940b15d6374eb Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Mon, 17 Sep 2018 10:07:45 +0800 Subject: [PATCH v3 0/3] Add Mediatek SPI slave driver v3: 1. Fix Rob Herring review comment about bindings. 2. remove unused variables in driver. v2: 1. Fix Sean W

[PATCH v3 3/3] arm64: dts: Add spi slave dts

2018-09-16 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v3 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-09-16 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 553 3 files changed, 562 insertions(+) create mode 100644

[PATCH v3 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-16 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v3 0/3] Add Mediatek SPI slave driver

2018-09-16 Thread Leilk Liu
>From 82bced99683343899dea4634452940b15d6374eb Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Mon, 17 Sep 2018 10:07:45 +0800 Subject: [PATCH v3 0/3] Add Mediatek SPI slave driver v3: 1. Fix Rob Herring review comment about bindings. 2. remove unused variables in driver. v2: 1. Fix Sean W

[PATCH v3 3/3] arm64: dts: Add spi slave dts

2018-09-16 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v3 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-09-16 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 553 3 files changed, 562 insertions(+) create mode 100644

[PATCH v3 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-16 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v2 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-09-03 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 557 3 files changed, 566 insertions(+) create mode 100644

[PATCH v2 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-09-03 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 557 3 files changed, 566 insertions(+) create mode 100644

[PATCH v2 3/3] arm64: dts: Add spi slave dts

2018-09-03 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v2 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-03 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 35 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v2 0/3] Add Mediatek SPI slave driver

2018-09-03 Thread Leilk Liu
>From c211d55c612b1fb43e3a5f137e8cacbd347beee5 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 4 Sep 2018 09:38:00 +0800 Subject: [PATCH v2 0/3] Add Mediatek SPI slave driver v2: 1. Fix Sean Wang review comment. 2. remove unused register and offset define. 3. update bindings f

[PATCH v2 3/3] arm64: dts: Add spi slave dts

2018-09-03 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH v2 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-09-03 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 35 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH v2 0/3] Add Mediatek SPI slave driver

2018-09-03 Thread Leilk Liu
>From c211d55c612b1fb43e3a5f137e8cacbd347beee5 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 4 Sep 2018 09:38:00 +0800 Subject: [PATCH v2 0/3] Add Mediatek SPI slave driver v2: 1. Fix Sean Wang review comment. 2. remove unused register and offset define. 3. update bindings f

[PATCH 3/3] arm64: dts: Add spi slave dts

2018-08-28 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-08-28 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 613 3 files changed, 622 insertions(+) create mode 100644

[PATCH 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-08-28 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 39 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH 0/3] Add Mediatek SPI slave driver

2018-08-28 Thread Leilk Liu
>From 5ba1b2c0cd279255b49ecc8fa18c04ceb292a214 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 28 Aug 2018 14:18:56 +0800 Subject: [PATCH 0/3] Add Mediatek SPI slave driver This series are based on 4.19-rc1 and provide three patches to add mediatek spi slave driver. Leilk Liu (3): s

[PATCH 3/3] arm64: dts: Add spi slave dts

2018-08-28 Thread Leilk Liu
This patch adds MT2712 spi slave into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 75cc0f7

[PATCH 2/3] spis: mediatek: add spi slave for Mediatek MT2712

2018-08-28 Thread Leilk Liu
This patchs add basic spi slave for MT2712. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig|8 + drivers/spi/Makefile |1 + drivers/spi/spi-slave-mt27xx.c | 613 3 files changed, 622 insertions(+) create mode 100644

[PATCH 1/3] spis: mediatek: add bindings for Mediatek MT2712 soc platform

2018-08-28 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-slave-mt27xx.txt | 39 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt diff --git

[PATCH 0/3] Add Mediatek SPI slave driver

2018-08-28 Thread Leilk Liu
>From 5ba1b2c0cd279255b49ecc8fa18c04ceb292a214 Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 28 Aug 2018 14:18:56 +0800 Subject: [PATCH 0/3] Add Mediatek SPI slave driver This series are based on 4.19-rc1 and provide three patches to add mediatek spi slave driver. Leilk Liu (3): s

[PATCH 2/2] spi: mediatek: add spi support for mt2712 IC

2017-06-20 Thread Leilk Liu
this patch add support for mt2712 IC. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index ec7755b..86bf456 100644 --- a/drivers/spi/spi-mt

[PATCH 2/2] spi: mediatek: add spi support for mt2712 IC

2017-06-20 Thread Leilk Liu
this patch add support for mt2712 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index ec7755b..86bf456 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT2712 soc platform

2017-06-20 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documen

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT2712 soc platform

2017-06-20 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2712 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH 0/2] add mt2712 spi support

2017-06-20 Thread Leilk Liu
This series are based on 4.12-rc1 and provide 2 patches to support mt2712 IC. Change in this series: 1. update document to add mt2712; 2. add mt7622_compat. Leilk Liu (2): spi: mediatek: Add bindings for mediatek MT2712 soc platform spi: mediatek: add spi support for mt2712 IC

[PATCH 0/2] add mt2712 spi support

2017-06-20 Thread Leilk Liu
This series are based on 4.12-rc1 and provide 2 patches to support mt2712 IC. Change in this series: 1. update document to add mt2712; 2. add mt7622_compat. Leilk Liu (2): spi: mediatek: Add bindings for mediatek MT2712 soc platform spi: mediatek: add spi support for mt2712 IC

[PATCH v3 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-11 Thread Leilk Liu
this patch add support for mt7622 IC. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index eae73b5..ec7755b 100644 --- a/drivers/spi/spi-mt

[PATCH v3 1/2] spi: mediatek: adjust register to enhance time accuracy

2017-06-11 Thread Leilk Liu
this patch adjust register to enhance time accuracy. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c | 45 ++ include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 42 insertions(+), 5 deletions(-)

[PATCH v3 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-11 Thread Leilk Liu
this patch add support for mt7622 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index eae73b5..ec7755b 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi

[PATCH v3 1/2] spi: mediatek: adjust register to enhance time accuracy

2017-06-11 Thread Leilk Liu
this patch adjust register to enhance time accuracy. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 45 ++ include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi

[PATCH v3 0/2] add mt7622 spi support

2017-06-11 Thread Leilk Liu
mt7622_compat. Leilk Liu (2): spi: mediatek: adjust register to enhance time accuracy spi: mediatek: add spi support for mt7622 IC drivers/spi/spi-mt65xx.c | 54 +++--- include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 51 insertions(+), 5

[PATCH v3 0/2] add mt7622 spi support

2017-06-11 Thread Leilk Liu
mt7622_compat. Leilk Liu (2): spi: mediatek: adjust register to enhance time accuracy spi: mediatek: add spi support for mt7622 IC drivers/spi/spi-mt65xx.c | 54 +++--- include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 51 insertions(+), 5

[PATCH v2 1/2] spi: mediatek: adjust register to enhance time accuracy

2017-06-09 Thread Leilk Liu
this patch adjust register to enhance time accuracy. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c | 45 ++ include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 42 insertions(+), 5 deletions(-)

[PATCH v2 1/2] spi: mediatek: adjust register to enhance time accuracy

2017-06-09 Thread Leilk Liu
this patch adjust register to enhance time accuracy. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 45 ++ include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi

[PATCH v2 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-09 Thread Leilk Liu
this patch add support for mt7622 IC. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index eae73b5..4bf6495 100644 --- a/drivers/spi/spi-mt

[PATCH v2 0/2] add mt7622 spi support

2017-06-09 Thread Leilk Liu
This series are based on 4.12-rc1 and provide 2 patches to support mt7622 IC. Change in v2: 1. rename patch title; 2. use enhance_timing to instead of adjust_reg. Change in v1: 1. update document to add mt7622; 2. add adjust register define support; 3. add mt7622_compat. Leilk Liu (2): spi

[PATCH v2 2/2] spi: mediatek: add spi support for mt7622 IC

2017-06-09 Thread Leilk Liu
this patch add support for mt7622 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index eae73b5..4bf6495 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi

[PATCH v2 0/2] add mt7622 spi support

2017-06-09 Thread Leilk Liu
This series are based on 4.12-rc1 and provide 2 patches to support mt7622 IC. Change in v2: 1. rename patch title; 2. use enhance_timing to instead of adjust_reg. Change in v1: 1. update document to add mt7622; 2. add adjust register define support; 3. add mt7622_compat. Leilk Liu (2): spi

[PATCH 1/3] dt-bindings: spi: mediatek: Add bindings for mediatek MT7622 soc platform

2017-06-02 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7622 soc. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documen

[PATCH 1/3] dt-bindings: spi: mediatek: Add bindings for mediatek MT7622 soc platform

2017-06-02 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7622 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH 3/3] spi: mediatek: add compatible support for mt7622 IC

2017-06-02 Thread Leilk Liu
this patch add compatible support for mt7622 IC. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 3d7cd2d..ebc4b1a 100644 --- a/drivers/s

[PATCH 2/3] spi: mediatek: support adjust register define

2017-06-02 Thread Leilk Liu
this patch adds support for adjust register design. Signed-off-by: Leilk Liu <leilk@mediatek.com> --- drivers/spi/spi-mt65xx.c | 45 ++ include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 42 insertions(+), 5 deletions(-)

[PATCH 3/3] spi: mediatek: add compatible support for mt7622 IC

2017-06-02 Thread Leilk Liu
this patch add compatible support for mt7622 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 3d7cd2d..ebc4b1a 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers

[PATCH 2/3] spi: mediatek: support adjust register define

2017-06-02 Thread Leilk Liu
this patch adds support for adjust register design. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 45 ++ include/linux/platform_data/spi-mt65xx.h |2 ++ 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi

[PATCH 0/3] add mt7622 spi support

2017-06-02 Thread Leilk Liu
This series are based on 4.12-rc1 and provide 4 patches to support mt7622 IC. Change in this series: 1. update document to add mt7622; 2. add adjust register define support; 3. add mt7622_compat. Leilk Liu (3): dt-bindings: spi: mediatek: Add bindings for mediatek MT7622 soc platform spi

[PATCH 0/3] add mt7622 spi support

2017-06-02 Thread Leilk Liu
This series are based on 4.12-rc1 and provide 4 patches to support mt7622 IC. Change in this series: 1. update document to add mt7622; 2. add adjust register define support; 3. add mt7622_compat. Leilk Liu (3): dt-bindings: spi: mediatek: Add bindings for mediatek MT7622 soc platform spi

[PATCH 2/4] spi: mediatek: Add spi support for mt2701 IC

2015-12-30 Thread Leilk Liu
This patch adds spi support for mt2701 IC. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 3573c09..fe95f3f 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi

[PATCH 3/4] dts: mt2701: add spi dts for mt2701

2015-12-30 Thread Leilk Liu
This patch adds dtsi node of spi for mt2701. Signed-off-by: Leilk Liu --- arch/arm/boot/dts/mt2701.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index bd88ae9..9ccd1f0 100644

[PATCH 1/4] spi: mediatek: merge all identical compat to mtk_common_compat

2015-12-30 Thread Leilk Liu
This patch merge all identical compat into on mtk_common_compat and used for all compatible soc. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index

[PATCH 4/4] Document: spi: Add bindings for mediatek MT2701 soc platform

2015-12-30 Thread Leilk Liu
This patch adds a DT binding documentation for the MT2701 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation

[PATCH 0/4] SPI: support mt2701 IC

2015-12-30 Thread Leilk Liu
This series are based on 4.4-rc1 and provide 4 patches to support mt2701 spi HW. Change in this series: 1. merge all identical compat to mtk_common_compat; 2. Add spi support for mt2701 IC; 3. add spi dts for mt2701; 4. Add bindings for mediatek MT2701 soc platform. Leilk Liu (4): spi

  1   2   3   >