.../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(-)
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
On Sun, Dec 21, 2025 at 7:05 PM Chen-Yu Tsai <wens@kernel.org> wrote: > > 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. As pointed out to me on IRC, this change targets the Orangepi 4A, not the Radxa Cubie A5E. The latter has circuits for SPI-NOR, but the whole block is left unpopulated. ChenYu > > 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 >
On Sun, 21 Dec 2025 19:05:07 +0800, Chen-Yu Tsai wrote:
> 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.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/4] spi: dt-bindings: sun6i: Add compatibles for A523's SPI controllers
commit: e0c8755d44eb85afd40100586076c3dc4b62ee3b
[2/4] spi: sun6i: Support A523's SPI controllers
commit: c81f30bde5b0449d9d82d31a66f0ffd608e610b5
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
On Sun, 21 Dec 2025 19:05:07 +0800, Chen-Yu Tsai wrote:
> 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.
>
> [...]
Applied to sunxi/dt-for-6.20 in local tree, thanks!
[3/4] arm64: dts: allwinner: sun55i: Add SPI controllers
commit: 1bec3bd1f839f269dfdec3c635dd2afe15e30995
[4/4] arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flash
commit: bd14ba160bbe863e7b7bc489fd947ae1cdc03047
Best regards,
--
Chen-Yu Tsai <wens@kernel.org>
© 2016 - 2026 Red Hat, Inc.