All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Realtek SPI-NAND controller
@ 2024-10-08  0:23 Chris Packham
  2024-10-08  0:23 ` [PATCH v2 1/3] dt-bindings: spi: Add realtek,rtl9300-snand Chris Packham
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Packham @ 2024-10-08  0:23 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, tsbogend
  Cc: linux-spi, devicetree, linux-kernel, linux-mips, Chris Packham

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   |  69 +++
 MAINTAINERS                                   |   6 +
 arch/mips/boot/dts/realtek/rtl930x.dtsi       |  14 +
 drivers/spi/Kconfig                           |  11 +
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-realtek-rtl-snand.c           | 402 ++++++++++++++++++
 6 files changed, 503 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


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

end of thread, other threads:[~2024-10-08 14:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08  0:23 [PATCH v2 0/3] Realtek SPI-NAND controller Chris Packham
2024-10-08  0:23 ` [PATCH v2 1/3] dt-bindings: spi: Add realtek,rtl9300-snand Chris Packham
2024-10-08  7:01   ` Krzysztof Kozlowski
2024-10-08 14:46   ` Rob Herring
2024-10-08  0:23 ` [PATCH v2 2/3] mips: dts: realtek: Add SPI NAND controller Chris Packham
2024-10-08  0:23 ` [PATCH v2 3/3] spi: spi-mem: Add Realtek SPI-NAND controller Chris Packham

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.