linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] add SPI driver support for mt7629
@ 2018-11-20  8:41 Leilk Liu
  2018-11-20  8:41 ` [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform Leilk Liu
  2018-11-20  8:41 ` [PATCH 2/2] spi: mediatek: add spi support for mt7629 IC Leilk Liu
  0 siblings, 2 replies; 6+ messages in thread
From: Leilk Liu @ 2018-11-20  8:41 UTC (permalink / raw)
  To: Mark Brown
  Cc: Mark Rutland, Matthias Brugger, devicetree, linux-kernel,
	linux-arm-kernel, linux-spi, linux-mediatek, ryder.lee

From 51ab18abe1ad0f8ef0bc88696d956431f3e01f3f Mon Sep 17 00:00:00 2001
From: Leilk Liu <leilk.liu@mediatek.com>
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: mediatek: Add bindings for mediatek MT7629 soc platform
  spi: mediatek: add spi support for mt7629 IC

 Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 +
 drivers/spi/spi-mt65xx.c                             | 3 +++
 2 files changed, 4 insertions(+)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform
  2018-11-20  8:41 [PATCH 0/2] add SPI driver support for mt7629 Leilk Liu
@ 2018-11-20  8:41 ` Leilk Liu
  2018-11-20 10:28   ` Matthias Brugger
  2018-11-20  8:41 ` [PATCH 2/2] spi: mediatek: add spi support for mt7629 IC Leilk Liu
  1 sibling, 1 reply; 6+ messages in thread
From: Leilk Liu @ 2018-11-20  8:41 UTC (permalink / raw)
  To: Mark Brown
  Cc: Mark Rutland, Matthias Brugger, devicetree, linux-kernel,
	linux-arm-kernel, linux-spi, linux-mediatek, ryder.lee,
	Leilk Liu

This patch adds a DT binding documentation for the MT7629 soc.

Signed-off-by: Leilk Liu <leilk.liu@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/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
index 7940940..6cc4e87 100644
--- a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
+++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
@@ -6,6 +6,7 @@ Required properties:
     - mediatek,mt2712-spi: for mt2712 platforms
     - mediatek,mt6589-spi: for mt6589 platforms
     - mediatek,mt7622-spi: for mt7622 platforms
+    - mediatek,mt7629-spi: for mt7629 platforms
     - mediatek,mt8135-spi: for mt8135 platforms
     - mediatek,mt8173-spi: for mt8173 platforms
     - mediatek,mt8183-spi: for mt8183 platforms
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] spi: mediatek: add spi support for mt7629 IC
  2018-11-20  8:41 [PATCH 0/2] add SPI driver support for mt7629 Leilk Liu
  2018-11-20  8:41 ` [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform Leilk Liu
@ 2018-11-20  8:41 ` Leilk Liu
  2018-11-28 16:05   ` Applied "spi: mediatek: add spi support for mt7629 IC" to the spi tree Mark Brown
  1 sibling, 1 reply; 6+ messages in thread
From: Leilk Liu @ 2018-11-20  8:41 UTC (permalink / raw)
  To: Mark Brown
  Cc: Mark Rutland, Matthias Brugger, devicetree, linux-kernel,
	linux-arm-kernel, linux-spi, linux-mediatek, ryder.lee,
	Leilk Liu

this patch add support for mt7629 IC.

Change-Id: Icb8ced408ebd1340fb0340592b91f24740d07e1e
Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
---
 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
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -150,6 +150,9 @@ struct mtk_spi {
 	{ .compatible = "mediatek,mt7622-spi",
 		.data = (void *)&mt7622_compat,
 	},
+	{ .compatible = "mediatek,mt7629-spi",
+		.data = (void *)&mt7622_compat,
+	},
 	{ .compatible = "mediatek,mt8135-spi",
 		.data = (void *)&mtk_common_compat,
 	},
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform
  2018-11-20  8:41 ` [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform Leilk Liu
@ 2018-11-20 10:28   ` Matthias Brugger
  2018-11-23  1:50     ` lei liu
  0 siblings, 1 reply; 6+ messages in thread
From: Matthias Brugger @ 2018-11-20 10:28 UTC (permalink / raw)
  To: Leilk Liu, Mark Brown
  Cc: Mark Rutland, devicetree, linux-kernel, linux-arm-kernel,
	linux-spi, linux-mediatek, ryder.lee



On 20/11/2018 09:41, Leilk Liu wrote:
> This patch adds a DT binding documentation for the MT7629 soc.
> 
> Signed-off-by: Leilk Liu <leilk.liu@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/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
> index 7940940..6cc4e87 100644
> --- a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
> +++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
> @@ -6,6 +6,7 @@ Required properties:
>      - mediatek,mt2712-spi: for mt2712 platforms
>      - mediatek,mt6589-spi: for mt6589 platforms
>      - mediatek,mt7622-spi: for mt7622 platforms
> +    - mediatek,mt7629-spi: for mt7629 platforms

That's ok, as you add support in the driver. As it actually doesn't change
anything in the driver itself you could just describe the binding as something like:
" mediatek,mt7629-spi", "mediatek,mt7622-spi": for mt7629 platforms

This way the driver will just probe the driver using the fallback (mt7622)
compatible, but if you realize in the future that you will need to distinguish
between the two SoCs, you can add a mt7629 compatible.

Just as information for the future :)

Regards,
Matthias

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform
  2018-11-20 10:28   ` Matthias Brugger
@ 2018-11-23  1:50     ` lei liu
  0 siblings, 0 replies; 6+ messages in thread
From: lei liu @ 2018-11-23  1:50 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Mark Brown, Mark Rutland, devicetree, linux-kernel,
	linux-arm-kernel, linux-spi, linux-mediatek, ryder.lee

On Tue, 2018-11-20 at 11:28 +0100, Matthias Brugger wrote:
> 
> On 20/11/2018 09:41, Leilk Liu wrote:
> > This patch adds a DT binding documentation for the MT7629 soc.
> > 
> > Signed-off-by: Leilk Liu <leilk.liu@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/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
> > index 7940940..6cc4e87 100644
> > --- a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
> > +++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
> > @@ -6,6 +6,7 @@ Required properties:
> >      - mediatek,mt2712-spi: for mt2712 platforms
> >      - mediatek,mt6589-spi: for mt6589 platforms
> >      - mediatek,mt7622-spi: for mt7622 platforms
> > +    - mediatek,mt7629-spi: for mt7629 platforms
> 
> That's ok, as you add support in the driver. As it actually doesn't change
> anything in the driver itself you could just describe the binding as something like:
> " mediatek,mt7629-spi", "mediatek,mt7622-spi": for mt7629 platforms
> 
> This way the driver will just probe the driver using the fallback (mt7622)
> compatible, but if you realize in the future that you will need to distinguish
> between the two SoCs, you can add a mt7629 compatible.
> 
> Just as information for the future :)
> 

Got it, thanks for your advice and information :)

> Regards,
> Matthias



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Applied "spi: mediatek: add spi support for mt7629 IC" to the spi tree
  2018-11-20  8:41 ` [PATCH 2/2] spi: mediatek: add spi support for mt7629 IC Leilk Liu
@ 2018-11-28 16:05   ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2018-11-28 16:05 UTC (permalink / raw)
  To: Leilk Liu
  Cc: Mark Brown, Mark Brown, Mark Rutland, Matthias Brugger,
	devicetree, linux-kernel, linux-arm-kernel, linux-spi,
	linux-mediatek, ryder.lee, linux-spi

The patch

   spi: mediatek: add spi support for mt7629 IC

has been applied to the spi tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

From 942779c6f1f899bc54332f7bb67666244f3f6d6c Mon Sep 17 00:00:00 2001
From: Leilk Liu <leilk.liu@mediatek.com>
Date: Tue, 20 Nov 2018 16:41:08 +0800
Subject: [PATCH] spi: mediatek: add spi support for mt7629 IC

this patch add support for mt7629 IC.

Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 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 9ee1fe968a2d..0cce6f0ba824 100644
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -150,6 +150,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
 	{ .compatible = "mediatek,mt7622-spi",
 		.data = (void *)&mt7622_compat,
 	},
+	{ .compatible = "mediatek,mt7629-spi",
+		.data = (void *)&mt7622_compat,
+	},
 	{ .compatible = "mediatek,mt8135-spi",
 		.data = (void *)&mtk_common_compat,
 	},
-- 
2.19.0.rc2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-28 16:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20  8:41 [PATCH 0/2] add SPI driver support for mt7629 Leilk Liu
2018-11-20  8:41 ` [PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform Leilk Liu
2018-11-20 10:28   ` Matthias Brugger
2018-11-23  1:50     ` lei liu
2018-11-20  8:41 ` [PATCH 2/2] spi: mediatek: add spi support for mt7629 IC Leilk Liu
2018-11-28 16:05   ` Applied "spi: mediatek: add spi support for mt7629 IC" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).