[PATCH 1/4] dt-bindings: crypto: Add Allwinner A523/A733 Crypto Engine

From: Alastair D'Silva

Date: Wed Nov 25 2026 - 16:05:53 EST


Document the Allwinner Crypto Engine v5 on A523 and A733 SoCs.

The A733 block is register-compatible with A523 and adds an optional
low-power/entropy control register. The separate CE_SYS clock and reset
belong to the secure TEE instance and do not apply to this node.

Assisted-by: LLM
Signed-off-by: Alastair D'Silva <alastair@xxxxxxxxxxx>
---
.../crypto/allwinner,sun55i-a523-crypto.yaml | 68 +++++++++++++++++++
MAINTAINERS | 6 ++
2 files changed, 74 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun55i-a523-crypto.yaml

diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun55i-a523-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun55i-a523-crypto.yaml
new file mode 100644
index 000000000000..00606c7dcfc9
--- /dev/null
+++ b/Documentation/devicetree/bindings/crypto/allwinner,sun55i-a523-crypto.yaml
@@ -0,0 +1,68 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/crypto/allwinner,sun55i-a523-crypto.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Allwinner Crypto Engine v5
+
+maintainers:
+ - Alastair D'Silva <alastair@xxxxxxxxxxx>
+
+properties:
+ compatible:
+ oneOf:
+ - const: allwinner,sun55i-a523-crypto
+ - items:
+ - const: allwinner,sun60i-a733-crypto
+ - const: allwinner,sun55i-a523-crypto
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: Bus clock
+ - description: Module clock
+ - description: MBus clock
+ - description: TRNG clock
+
+ clock-names:
+ items:
+ - const: bus
+ - const: mod
+ - const: ram
+ - const: trng
+
+ resets:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - clock-names
+ - resets
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/allwinner,sun60i-a733-ccu.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/reset/allwinner,sun60i-a733-ccu.h>
+
+ crypto@4603000 {
+ compatible = "allwinner,sun60i-a733-crypto",
+ "allwinner,sun55i-a523-crypto";
+ reg = <0x04603000 0x1000>;
+ interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>,
+ <&ccu CLK_MBUS_CE>, <&osc24M>;
+ clock-names = "bus", "mod", "ram", "trng";
+ resets = <&ccu RST_BUS_CE>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 782389bd5cd3..757ab4e59f61 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -892,6 +892,12 @@ T: git git://linuxtv.org/media.git
F: Documentation/devicetree/bindings/media/allwinner,sun6i-a31-mipi-csi2.yaml
F: drivers/media/platform/sunxi/sun6i-mipi-csi2/

+ALLWINNER CE V5 TRNG DRIVER
+M: Alastair D'Silva <alastair@xxxxxxxxxxx>
+L: linux-crypto@xxxxxxxxxxxxxxx
+S: Maintained
+F: Documentation/devicetree/bindings/crypto/allwinner,sun55i-a523-crypto.yaml
+
ALLWINNER CPUFREQ DRIVER
M: Yangtao Li <tiny.windzz@xxxxxxxxx>
L: linux-pm@xxxxxxxxxxxxxxx
--
2.53.0