Re: [PATCH v2 0/4] crypto: sun55i-ce: Add Allwinner A733 CE v5 TRNG support

From: Andre Przywara

Date: Wed Dec 02 2026 - 06:17:47 EST


Hi Alastair,

just a quick reply with some general comments. As you have probably learned, this is not the right time for new drivers. So wait for any new revision until after v7.5-rc1 (around beginning of January). This should reduce the list of dependencies substantially.

On 11/30/26 03:02, Alastair D'Silva wrote:
This series adds True Random Number Generator (TRNG) support for the
Allwinner Crypto Engine v5 on A523 and A733 SoCs.

Thanks for adding the A523 to that. But please note that we should still make some efforts to support the crypto operations. Please look at the existing crypto driver, to see if you can at least provision for crypto operations. Maybe prepare the framework, but keep the list of supported algorithm empty for now, so it becomes easier to actually add them later.
And then this still bears the question if the difference to the last generation of crypto IP is really that big that it deserves a separate driver. We usually try to share as much code as possible, and my feeling is that there is substantial amount of code that can be reused.

It also enables the device on all supported A733 boards.

Please note that we enable the crypto engine on a SoC level, since it's internal to the SoC, without any board involvement.
So there is just the node in the .dtsi file, without any status property at all. A missing status means enabled, so boards do not need to touch that in any way. So no need for patch 4/4.

This series is rebased on linux-next (next-20261125) and builds on the
following unmerged prerequisite series:

As far as the pure driver is concerned, it is independent. For patch 3/4 you would need the basic .dtsi, but the other patches you list below (AXP, DT fixes) affect only functionality, they are no dependencies code-wise.

Please note that the --base option for git format-patch is only meant to list some very few patches that have not been merged yet, a long list like yours below is really not a good idea.

Hope that helps!

Cheers,
Andre

- [PATCH v2] clk: sunxi-ng: a733: Keep SCP firmware bus clocks enabled
https://lore.kernel.org/r/20261112-a733-fwclk-v2@xxxxxxxxx
- [PATCH RESEND v3 0/3] pinctrl: sunxi: number the IRQ banks from the first one that has IRQs
https://lore.kernel.org/r/20261124215048.42074-1-pmazzini@xxxxxxxxx
- [PATCH v4] pinctrl: sunxi: use automatic voltage detection on A733
https://lore.kernel.org/r/20261125-a733-pinctrl-v4@xxxxxxxxx
- [PATCH v8 0/5] regulator: Add X-Powers AXP318W PMIC support
https://lore.kernel.org/r/20260910-axp318-regulator-v8-0-e906a61a7f3d@xxxxxxxxxxxx
- [PATCH v2 0/4] serial: 8250_dw: Allwinner A733 UART support
https://lore.kernel.org/r/cover.1792439398.git.vinicius.eduardo.pedrosa@xxxxxxxxx
- [PATCH v6 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support
https://lore.kernel.org/r/20261126-a733-cubie-a7s-dt-v6-0@xxxxxxxxx
- [PATCH v2 0/2] arm64: dts: allwinner: Add Xunlong OrangePi 4 Pro support
https://lore.kernel.org/r/20261127065343.1449675-1-alastair@xxxxxxxxxxx

Tested on Xunlong OrangePi 4 Pro (/dev/hwrng).

Changes in v2:
- Move the driver from drivers/char/hw_random/ to
drivers/crypto/allwinner/sun55i-ce/ (Andre Przywara).
- Rebase onto next-20261125 + A733 SoC DTSI v6 (&hosc, 4-cell GIC
interrupts) and OrangePi 4 Pro v2.
- Enable Crypto Engine on Radxa Cubie A7A, Cubie A7S, and Cubie A7Z in
addition to OrangePi 4 Pro.
- Add base-commit and prerequisite-patch-id footer and lore URLs.
- Link to v1: https://lore.kernel.org/r/20261125210532.695823-1-alastair@xxxxxxxxxxx

Alastair D'Silva (4):
dt-bindings: crypto: Add Allwinner A523/A733 Crypto Engine
crypto: sun55i-ce - Add Allwinner CE v5 TRNG driver
arm64: dts: allwinner: sun60i-a733: Add Crypto Engine node
arm64: dts: allwinner: sun60i-a733: Enable Crypto Engine on boards

.../crypto/allwinner,sun55i-a523-crypto.yaml | 68 ++++
MAINTAINERS | 7 +
.../dts/allwinner/sun60i-a733-cubie-a7a.dts | 4 +
.../dts/allwinner/sun60i-a733-cubie-a7s.dts | 4 +
.../dts/allwinner/sun60i-a733-cubie-a7z.dts | 4 +
.../allwinner/sun60i-a733-orangepi-4-pro.dts | 4 +
.../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 12 +
drivers/crypto/allwinner/Kconfig | 13 +
drivers/crypto/allwinner/Makefile | 1 +
drivers/crypto/allwinner/sun55i-ce/Makefile | 2 +
.../allwinner/sun55i-ce/sun55i-ce-trng.c | 377 ++++++++++++++++++
11 files changed, 496 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun55i-a523-crypto.yaml
create mode 100644 drivers/crypto/allwinner/sun55i-ce/Makefile
create mode 100644 drivers/crypto/allwinner/sun55i-ce/sun55i-ce-trng.c

base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7
prerequisite-patch-id: 19691099774bd3dc41f56585c03ddefb7bdc6f9c
prerequisite-patch-id: 85db03df3394cdcb2780a0da122a74b2c1fe220d
prerequisite-patch-id: a3e883da50bf03e8f522444def66fec7f996ffbe
prerequisite-patch-id: c6889699a6dc13c336ce4cf4659e21b551e9a9fc
prerequisite-patch-id: ef2f0344452092edb2221b93c44a3e82cb896a2d
prerequisite-patch-id: c598480f753e36b7f6230129b864c559b9f185d5
prerequisite-patch-id: f86b468a896a40f132adfcba885700327dff1bc5
prerequisite-patch-id: 079d60101e1b9e5425458060314bde3e9cc2fe4c
prerequisite-patch-id: 090c5ff78d4e2150804aa8d294581cd338b1e971
prerequisite-patch-id: af0aebcae7c38d58354925119c412178b5821b5e
prerequisite-patch-id: beb8a098ba14724e316ff243bdf8e00e729243c1
prerequisite-patch-id: 63342c5ec38e8eb9e55c8c74d3c5a81a630d5f69
prerequisite-patch-id: 1dc8d70f80674c98b2b15d09556dd27f643b20da
prerequisite-patch-id: 4555860586ef50f27bf787a23f6ba693e9c3b0d6
prerequisite-patch-id: 0279f281cd59cf54bceee39b0fa4d0b6a7b87c48
prerequisite-patch-id: 14424bd8324b6cae2b8c4d6840df0db626d1385f
prerequisite-patch-id: 7b42728bc8271e5dfd57fffec47a7f5745eff357
prerequisite-patch-id: 74f5c7d066477024a374a789b3180e841398fb07
prerequisite-patch-id: 309a5a3ca5b216915907263dea7024263abf1d1c
prerequisite-patch-id: 55e543b9854c7ae2fa86969233d05ccadd3792e9