From: Troy Mitchell <troy.mitchell@linux.spacemit.com>
To: Alex Elder <elder@riscstar.com>, broonie@kernel.org, dlan@gentoo.org
Cc: p.zabel@pengutronix.de, linux-spi@vger.kernel.org,
spacemit@lists.linux.dev, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org,
Troy Mitchell <troy.mitchell@linux.spacemit.com>
Subject: Re: [PATCH v6 2/3] spi: spacemit: introduce SpacemiT K1 SPI controller driver
Date: Tue, 28 Oct 2025 09:46:33 +0800 [thread overview]
Message-ID: <FFC4D2691116C9D4+aQAgeeG28SpSI7YR@kernel.org> (raw)
In-Reply-To: <20251027125504.297033-3-elder@riscstar.com>
On Mon, Oct 27, 2025 at 07:55:02AM -0500, Alex Elder wrote:
> This patch introduces the driver for the SPI controller found in the
> SpacemiT K1 SoC. Currently the driver supports master mode only.
> The SPI hardware implements RX and TX FIFOs, 32 entries each, and
> supports both PIO and DMA mode transfers.
>
> Signed-off-by: Alex Elder <elder@riscstar.com>
> ---
> drivers/spi/Kconfig | 9 +
> drivers/spi/Makefile | 1 +
> drivers/spi/spi-spacemit-k1.c | 965 ++++++++++++++++++++++++++++++++++
> 3 files changed, 975 insertions(+)
> create mode 100644 drivers/spi/spi-spacemit-k1.c
>
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 4d8f00c850c14..2e933edab1718 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -1071,6 +1071,15 @@ config SPI_SG2044_NOR
> also supporting 3Byte address devices and 4Byte address
> devices.
>
> +config SPI_SPACEMIT_K1
> + tristate "K1 SPI Controller"
> + depends on ARCH_SPACEMIT || COMPILE_TEST
> + depends on OF
> + imply MMP_PDMA if ARCH_SPACEMIT
> + default ARCH_SPACEMIT
SPI needs to be a built-in feature?
if not, how about:
default m if ARCH_SPACEMIT
- Troy
next prev parent reply other threads:[~2025-10-28 1:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 12:55 [PATCH v6 0/3] spi: support the SpacemiT K1 SPI controller Alex Elder
2025-10-27 12:55 ` [PATCH v6 1/3] dt-bindings: spi: add SpacemiT K1 SPI support Alex Elder
2025-10-28 1:40 ` Troy Mitchell
2025-10-27 12:55 ` [PATCH v6 2/3] spi: spacemit: introduce SpacemiT K1 SPI controller driver Alex Elder
2025-10-28 1:46 ` Troy Mitchell [this message]
2025-11-14 20:37 ` Alex Elder
2025-10-30 20:45 ` kernel test robot
2025-10-30 21:49 ` kernel test robot
2025-10-27 14:40 ` [PATCH v6 0/3] spi: support the SpacemiT K1 SPI controller Mark Brown
2025-10-28 12:13 ` Alex Elder
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=FFC4D2691116C9D4+aQAgeeG28SpSI7YR@kernel.org \
--to=troy.mitchell@linux.spacemit.com \
--cc=broonie@kernel.org \
--cc=dlan@gentoo.org \
--cc=elder@riscstar.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=spacemit@lists.linux.dev \
/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).