mbox series

[v5,0/3] Realtek SPI-NAND controller

Message ID 20241015225434.3970360-1-chris.packham@alliedtelesis.co.nz
Headers show
Series Realtek SPI-NAND controller | expand

Message

Chris Packham Oct. 15, 2024, 10:54 p.m. UTC
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,rtl9301-snand
  mips: dts: realtek: Add SPI NAND controller
  spi: spi-mem: Add Realtek SPI-NAND controller

 .../bindings/spi/realtek,rtl9301-snand.yaml   |  62 +++
 MAINTAINERS                                   |   6 +
 arch/mips/boot/dts/realtek/rtl930x.dtsi       |  13 +
 drivers/spi/Kconfig                           |  11 +
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-realtek-rtl-snand.c           | 405 ++++++++++++++++++
 6 files changed, 498 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/realtek,rtl9301-snand.yaml
 create mode 100644 drivers/spi/spi-realtek-rtl-snand.c

Comments

Mark Brown Oct. 21, 2024, 10:34 p.m. UTC | #1
On Wed, 16 Oct 2024 11:54:31 +1300, Chris Packham wrote:
> 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
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/3] dt-bindings: spi: Add realtek,rtl9301-snand
      commit: eef26f1c6179eee5b622362b324a0a72dafb5c16
[3/3] spi: spi-mem: Add Realtek SPI-NAND controller
      commit: 42d20a6a61b8fccbb57d80df1ccde7dd82d5bbd6

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark