Skip to contentSkip to conversation

ARM: dts: sun8i: v3s: Enable crypto engine

PATCH Applied Martin Cerveny 2 participants 4 messages Sep 7, 2020 – Sep 8, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 cover ARM: dts: sun8i: v3s: Enable crypto engine

Add support for crypto engine (sun4i-ss) for Allwinner V3s. Functionality like A33 so add only compatible and enable in device tree.

Regards.

Changes since v2:
- reduced to device tree only with A33 compatibility

Changes since v1:
- splitting to patch series

martin Cerveny (2):
dt-bindings: crypto: Add compatible for V3s
ARM: dts: sun8i: v3s: Enable crypto engine

 .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml   |  3 +++
 arch/arm/boot/dts/sun8i-v3s.dtsi                      | 11 +++++++++++
 2 files changed, 14 insertions(+)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/2 dt-bindings: crypto: Add compatible for V3s

Allwinner V3s has crypto engine similar to that in A33. So add compatible.

---
 .../devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml +3 -0
index fc823572bcff..d7d64335120c 100644
@@ -25,6 +25,9 @@ properties:
           - const: allwinner,sun4i-a10-crypto
       - items:
           - const: allwinner,sun8i-a33-crypto
+      - items:
+          - const: allwinner,sun8i-v3s-crypto
+          - const: allwinner,sun8i-a33-crypto
 
   reg:
     maxItems: 1
Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/2 ARM: dts: sun8i: v3s: Enable crypto engine

In reply to Martin Cerveny

V3s contains crypto engine that is compatible with A33. Add device tree node.

---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/sun8i-v3s.dtsi +11 -0
index e5312869c0d2..6eb9c39aa93f 100644
@@ -234,6 +234,17 @@
 			#size-cells = <0>;
 		};
 
+		crypto@1c15000 {
+			compatible = "allwinner,sun8i-v3s-crypto",
+				     "allwinner,sun8i-a33-crypto";
+			reg = <0x01c15000 0x1000>;
+			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
+			clock-names = "ahb", "mod";
+			resets = <&ccu RST_BUS_CE>;
+			reset-names = "ahb";
+		};
+
 		usb_otg: usb@1c19000 {
 			compatible = "allwinner,sun8i-h3-musb";
 			reg = <0x01c19000 0x0400>;
Signature · 1 line
2.17.1
#3 lore raw
In reply to Martin Cerveny
Quoted 5 lines · Martin Cerveny

Add support for crypto engine (sun4i-ss) for Allwinner V3s. Functionality like A33 so add only compatible and enable in device tree.

Regards.

Applied, thanks
Maxime