public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@kernel.org>
To: Chen-Yu Tsai <wens@kernel.org>,
	Jernej Skrabec <jernej@kernel.org>,
	Samuel Holland <samuel@sholland.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Mark Brown <broonie@kernel.org>
Cc: Andre Przywara <andre.przywara@arm.com>,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	linux-sunxi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] arm64: allwinner: a523: Support SPI controllers
Date: Sun, 21 Dec 2025 19:05:07 +0800	[thread overview]
Message-ID: <20251221110513.1850535-1-wens@kernel.org> (raw)

Hi folks,

This series adds support for the SPI controllers found in the Allwinner
A523 SoC family. The SPI controller is almost the same as the ones in
previous generations, except that it moved the "RX buffer count"
register field to a separate register, and that register now reports
the total count for RX buffer and FIFO.

In practice the driver has never cared about the buffer count, but if
any implementation were to use it, this counts as a non-backward
compatible change.

Also, one of the SPI controllers supports DBI mode, acting as a display
interface. There is no infrastructure for DBI interface controllers in
the kernel, so only a separate compatible is added for it.

Patch 1 adds compatible strings for the new variants.

Patch 2 adds driver support for the new SPI controller variant.

Patch 3 adds device nodes for the SPI controllers to the dtsi file,
along with pinmux settings for spi0 on the PC pins, a common usage for
SPI-NOR flashes to boot from.

Patch 4 enables the SPI-NOR flash found on the Radxa Cubie A5E.


Please take a look and try it out.


Thanks
ChenYu


Chen-Yu Tsai (4):
  spi: dt-bindings: sun6i: Add compatibles for A523's SPI controllers
  spi: sun6i: Support A523's SPI controllers
  arm64: dts: allwinner: sun55i: Add SPI controllers
  arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flash

 .../bindings/spi/allwinner,sun6i-a31-spi.yaml |  4 +
 .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 94 +++++++++++++++++++
 .../dts/allwinner/sun55i-t527-orangepi-4a.dts | 15 +++
 drivers/spi/spi-sun6i.c                       | 11 ++-
 4 files changed, 120 insertions(+), 4 deletions(-)

-- 
2.47.3


             reply	other threads:[~2025-12-21 11:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-21 11:05 Chen-Yu Tsai [this message]
2025-12-21 11:05 ` [PATCH 1/4] spi: dt-bindings: sun6i: Add compatibles for A523's SPI controllers Chen-Yu Tsai
2025-12-21 15:10   ` Krzysztof Kozlowski
2025-12-21 11:05 ` [PATCH 2/4] spi: sun6i: Support " Chen-Yu Tsai
2025-12-21 15:50   ` Jernej Škrabec
2025-12-21 11:05 ` [PATCH 3/4] arm64: dts: allwinner: sun55i: Add " Chen-Yu Tsai
2025-12-21 15:51   ` Jernej Škrabec
2025-12-21 11:05 ` [PATCH 4/4] arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flash Chen-Yu Tsai
2025-12-21 15:52   ` Jernej Škrabec
2025-12-22  8:33 ` [PATCH 0/4] arm64: allwinner: a523: Support SPI controllers Chen-Yu Tsai
2025-12-22 17:17 ` (subset) " Mark Brown
2025-12-23 15:47 ` Chen-Yu Tsai

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=20251221110513.1850535-1-wens@kernel.org \
    --to=wens@kernel.org \
    --cc=andre.przywara@arm.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jernej@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.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