All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luhua Xu <luhua.xu@mediatek.com>
To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Matthias Brugger <matthias.bgg@gmail.com>
Cc: devicetree@vger.kernel.org, wsd_upstream@mediatek.com,
	linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
	linux-mediatek@lists.infradead.org,
	"luhua.xu" <luhua.xu@mediatek.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] spi: mediatek: add spi support for mt6765 IC
Date: Wed, 11 Sep 2019 05:55:30 -0400	[thread overview]
Message-ID: <1568195731-3239-3-git-send-email-luhua.xu@mediatek.com> (raw)
In-Reply-To: <1568195731-3239-1-git-send-email-luhua.xu@mediatek.com>

From: "luhua.xu" <luhua.xu@mediatek.com>

This patch add spi support for mt6765 IC.

Signed-off-by: luhua.xu <luhua.xu@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 45d8a70..3c73b71 100644
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -102,6 +102,12 @@ static const struct mtk_spi_compatible mt2712_compat = {
 	.must_tx = true,
 };
 
+static const struct mtk_spi_compatible mt6765_compat = {
+	.need_pad_sel = true,
+	.must_tx = true,
+	.enhance_timing = true,
+};
+
 static const struct mtk_spi_compatible mt7622_compat = {
 	.must_tx = true,
 	.enhance_timing = true,
@@ -137,6 +143,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
 	{ .compatible = "mediatek,mt6589-spi",
 		.data = (void *)&mtk_common_compat,
 	},
+	{ .compatible = "mediatek,mt6765-spi",
+		.data = (void *)&mt6765_compat,
+	},
 	{ .compatible = "mediatek,mt7622-spi",
 		.data = (void *)&mt7622_compat,
 	},
-- 
2.6.4

  parent reply	other threads:[~2019-09-11  9:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-11  9:55 [PATCH 0/3] MT6765 spi support Luhua Xu
2019-09-11  9:55 ` Luhua Xu
2019-09-11  9:55 ` [PATCH 1/3] dt-bindings: spi: update bindings for MT6765 SoC Luhua Xu
2019-09-13  9:42   ` Applied "dt-bindings: spi: update bindings for MT6765 SoC" to the spi tree Mark Brown
2019-09-13  9:42     ` Mark Brown
2019-09-11  9:55 ` Luhua Xu [this message]
2019-09-13  9:42   ` Applied "spi: mediatek: add spi support for mt6765 IC" " Mark Brown
2019-09-13  9:42     ` Mark Brown
2019-09-11  9:55 ` [PATCH 3/3] spi: mediatek: support large PA Luhua Xu
2019-09-11 10:03   ` Mark Brown
2019-09-11 10:03     ` Mark Brown
2019-09-13  9:42   ` Applied "spi: mediatek: support large PA" to the spi tree Mark Brown
2019-09-13  9:42     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1568195731-3239-3-git-send-email-luhua.xu@mediatek.com \
    --to=luhua.xu@mediatek.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=wsd_upstream@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.