starfive: add new target for StarFive JH7100/7110 SoC
[openwrt/staging/981213.git] / target / linux / starfive / patches-6.1 / 0064-dt-bindings-crypto-Add-StarFive-crypto-module.patch
1 From 207dde3ed123613cd84c8f706a24d75cefece67c Mon Sep 17 00:00:00 2001
2 From: Jia Jie Ho <jiajie.ho@starfivetech.com>
3 Date: Mon, 15 May 2023 20:53:52 +0800
4 Subject: [PATCH 064/122] dt-bindings: crypto: Add StarFive crypto module
5
6 Add documentation to describe StarFive cryptographic engine.
7
8 Co-developed-by: Huan Feng <huan.feng@starfivetech.com>
9 Signed-off-by: Huan Feng <huan.feng@starfivetech.com>
10 Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
11 Reviewed-by: Rob Herring <robh@kernel.org>
12 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
13 ---
14 .../crypto/starfive,jh7110-crypto.yaml | 70 +++++++++++++++++++
15 1 file changed, 70 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml
17
18 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml
20 @@ -0,0 +1,70 @@
21 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22 +%YAML 1.2
23 +---
24 +$id: http://devicetree.org/schemas/crypto/starfive,jh7110-crypto.yaml#
25 +$schema: http://devicetree.org/meta-schemas/core.yaml#
26 +
27 +title: StarFive Cryptographic Module
28 +
29 +maintainers:
30 + - Jia Jie Ho <jiajie.ho@starfivetech.com>
31 + - William Qiu <william.qiu@starfivetech.com>
32 +
33 +properties:
34 + compatible:
35 + const: starfive,jh7110-crypto
36 +
37 + reg:
38 + maxItems: 1
39 +
40 + clocks:
41 + items:
42 + - description: Hardware reference clock
43 + - description: AHB reference clock
44 +
45 + clock-names:
46 + items:
47 + - const: hclk
48 + - const: ahb
49 +
50 + interrupts:
51 + maxItems: 1
52 +
53 + resets:
54 + maxItems: 1
55 +
56 + dmas:
57 + items:
58 + - description: TX DMA channel
59 + - description: RX DMA channel
60 +
61 + dma-names:
62 + items:
63 + - const: tx
64 + - const: rx
65 +
66 +required:
67 + - compatible
68 + - reg
69 + - clocks
70 + - clock-names
71 + - resets
72 + - dmas
73 + - dma-names
74 +
75 +additionalProperties: false
76 +
77 +examples:
78 + - |
79 + crypto: crypto@16000000 {
80 + compatible = "starfive,jh7110-crypto";
81 + reg = <0x16000000 0x4000>;
82 + clocks = <&clk 15>, <&clk 16>;
83 + clock-names = "hclk", "ahb";
84 + interrupts = <28>;
85 + resets = <&reset 3>;
86 + dmas = <&dma 1 2>,
87 + <&dma 0 2>;
88 + dma-names = "tx", "rx";
89 + };
90 +...