From: Chris Packham <chris.packham@alliedtelesis.co.nz>
To: broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, tsbogend@alpha.franken.de
Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org,
Chris Packham <chris.packham@alliedtelesis.co.nz>
Subject: [PATCH 0/3] Realtek SPI-NAND controller
Date: Mon, 7 Oct 2024 12:33:44 +1300 [thread overview]
Message-ID: <20241006233347.333586-1-chris.packham@alliedtelesis.co.nz> (raw)
This series adds support for the SPI-NAND flash controller on the RTL9300
family of SoCs.
There are 2 physical chip selects which are called SPI_MST_CS0 and SPI_MST_CS1
in the datasheet. Via some pin-strapping these can be assigned to either the
SPI-NOR controller or the SPI-NAND controller. Which means you can end up with
the following permutations
SPI-Flash
Boot Model SPI_MST_CS0 SPI_MST_CS1
---------- ----------- -----------
NOR x1 NOR-CS0 X
NOR x2 NOR-CS0 NOR-CS1
NAND x1 NAND-CS0 X
NAND x2 NAND-CS0 NAND-CS1
NOR+NAND NOR-CS0 NAND-CS0
Chris Packham (3):
dt-bindings: spi: Add realtek,rtl9300-snand
mips: dts: realtek: Add SPI NAND controller
spi: spi-mem: Add Realtek SPI-NAND controller
.../bindings/spi/realtek,rtl9300-snand.yaml | 58 +++
MAINTAINERS | 6 +
arch/mips/boot/dts/realtek/rtl930x.dtsi | 12 +
drivers/spi/Kconfig | 11 +
drivers/spi/Makefile | 1 +
drivers/spi/spi-realtek-rtl-snand.c | 408 ++++++++++++++++++
6 files changed, 496 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/realtek,rtl9300-snand.yaml
create mode 100644 drivers/spi/spi-realtek-rtl-snand.c
--
2.46.2
next reply other threads:[~2024-10-06 23:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-06 23:33 Chris Packham [this message]
2024-10-06 23:33 ` [PATCH 1/3] dt-bindings: spi: Add realtek,rtl9300-snand Chris Packham
2024-10-07 6:40 ` Krzysztof Kozlowski
2024-10-07 19:58 ` Chris Packham
2024-10-07 20:49 ` Chris Packham
2024-10-14 8:37 ` Krzysztof Kozlowski
2024-10-08 6:59 ` Krzysztof Kozlowski
2024-10-13 20:16 ` Chris Packham
2024-10-07 6:52 ` Krzysztof Kozlowski
2024-10-06 23:33 ` [PATCH 2/3] mips: dts: realtek: Add SPI NAND controller Chris Packham
2024-10-06 23:33 ` [PATCH 3/3] spi: spi-mem: Add Realtek SPI-NAND controller Chris Packham
2024-10-07 14:42 ` Mark Brown
2024-10-07 19:35 ` Chris Packham
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=20241006233347.333586-1-chris.packham@alliedtelesis.co.nz \
--to=chris.packham@alliedtelesis.co.nz \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=robh@kernel.org \
--cc=tsbogend@alpha.franken.de \
/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).