From: Kuldeep Singh <kuldeep.singh@nxp.com>
To: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Ashish Kumar <ashish.kumar@nxp.com>,
Mark Brown <broonie@kernel.org>, Han Xu <han.xu@nxp.com>,
Kuldeep Singh <kuldeep.singh@nxp.com>
Subject: [PATCH 2/3] spi: spi-nxp-fspi: Add driver support for imx8dxl
Date: Mon, 1 Mar 2021 16:02:29 +0530 [thread overview]
Message-ID: <20210301103230.1816168-3-kuldeep.singh@nxp.com> (raw)
In-Reply-To: <20210301103230.1816168-1-kuldeep.singh@nxp.com>
From: Han Xu <han.xu@nxp.com>
Add driver support for imx8dxl which support read through IP bus only
and disable AHB bus due to an IC errata. Use the pre-defined quirk
FSPI_QUIRK_USE_IP_ONLY directly in device-type data to disable AHB read.
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
---
Hi Mark,
This patch is dependent on
https://patchwork.kernel.org/project/spi-devel-general/patch/1614593046-23832-1-git-send-email-kuldeep.singh@nxp.com/
drivers/spi/spi-nxp-fspi.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c
index 829391e20e92..80a9278d91ed 100644
--- a/drivers/spi/spi-nxp-fspi.c
+++ b/drivers/spi/spi-nxp-fspi.c
@@ -346,6 +346,14 @@ static const struct nxp_fspi_devtype_data imx8qxp_data = {
.little_endian = true, /* little-endian */
};
+static const struct nxp_fspi_devtype_data imx8dxl_data = {
+ .rxfifo = SZ_512, /* (64 * 64 bits) */
+ .txfifo = SZ_1K, /* (128 * 64 bits) */
+ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */
+ .quirks = FSPI_QUIRK_USE_IP_ONLY,
+ .little_endian = true, /* little-endian */
+};
+
struct nxp_fspi {
void __iomem *iobase;
void __iomem *ahb_addr;
@@ -1168,6 +1176,7 @@ static const struct of_device_id nxp_fspi_dt_ids[] = {
{ .compatible = "nxp,lx2160a-fspi", .data = (void *)&lx2160a_data, },
{ .compatible = "nxp,imx8mm-fspi", .data = (void *)&imx8mm_data, },
{ .compatible = "nxp,imx8qxp-fspi", .data = (void *)&imx8qxp_data, },
+ { .compatible = "nxp,imx8dxl-fspi", .data = (void *)&imx8dxl_data, },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, nxp_fspi_dt_ids);
--
2.25.1
next prev parent reply other threads:[~2021-03-01 10:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 10:32 [PATCH 0/3] NXP Flexspi driver patches Kuldeep Singh
2021-03-01 10:32 ` [PATCH 1/3] spi: spi-nxp-fspi: Add support for IP read only Kuldeep Singh
2021-03-01 10:32 ` Kuldeep Singh [this message]
2021-03-01 13:25 ` [PATCH 2/3] spi: spi-nxp-fspi: Add driver support for imx8dxl Mark Brown
2021-03-01 16:39 ` [EXT] " Kuldeep Singh
2021-03-01 17:11 ` Mark Brown
2021-03-02 5:19 ` Kuldeep Singh
2021-03-01 10:32 ` [PATCH 3/3] spi: spi-nxp-fspi: Implement errata workaround for LS1028A Kuldeep Singh
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=20210301103230.1816168-3-kuldeep.singh@nxp.com \
--to=kuldeep.singh@nxp.com \
--cc=ashish.kumar@nxp.com \
--cc=broonie@kernel.org \
--cc=han.xu@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/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 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).