Skip to contentSkip to conversation

dt-bindings: crypto: Add Mediatek EIP-93 crypto engine

PATCH In review Richard van Schagen 2 participants 2 messages Oct 28, 2021 – Nov 2, 2021

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

PATCH v3 1/2 dt-bindings: crypto: Add Mediatek EIP-93 crypto engine

Add bindings for the Mediatek EIP-93 crypto engine.

---
Changes since V3:
- Corrected typo
- Removed "interrupt-parent"

Changes since V2:
- Adding 2 missing "static" which got lost in my editing (sorry)

Changes since V1
- Add missing #include to examples

 .../bindings/crypto/mediatek,mtk-eip93.yaml   | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/crypto/mediatek,mtk-eip93.yaml
Documentation/devicetree/bindings/crypto/mediatek,mtk-eip93.yaml new file +38 -0
new file mode 100644
index 000000000..76f924719
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/crypto/mediatek,mtk-eip93.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Mediatek EIP93 crypto engine
+
+maintainers:
+  - Richard van Schagen <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - mediatek,mtk-eip93
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/mips-gic.h>
+
+    crypto: crypto@1e004000 {
+      compatible = "mediatek,mtk-eip93";
+      reg = <0x1e004000 0x1000>;
+      interrupts = <GIC_SHARED 19 IRQ_TYPE_LEVEL_HIGH>;
+    };
Signature · 1 line
2.30.2
maintainer Reviewed-by on v3 1/2
#1 lore raw
Quoted 11 lines · Richard van Schagen

Add bindings for the Mediatek EIP-93 crypto engine.

---
Changes since V3:
- Corrected typo
- Removed "interrupt-parent"

Changes since V2:
- Adding 2 missing "static" which got lost in my editing (sorry)

Quoted 7 lines

Changes since V1
- Add missing #include to examples

 .../bindings/crypto/mediatek,mtk-eip93.yaml   | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/crypto/mediatek,mtk-eip93.yaml