lkml.org 
[lkml]   [2022]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/5] dt-bindings: crypto: add documentation for aspeed hace
    Date
    Add device tree binding documentation for the Aspeed Hash
    and Crypto Engines (HACE) Controller.

    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com>
    ---
    .../bindings/crypto/aspeed,hace.yaml | 58 +++++++++++++++++++
    1 file changed, 58 insertions(+)
    create mode 100644 Documentation/devicetree/bindings/crypto/aspeed,hace.yaml

    diff --git a/Documentation/devicetree/bindings/crypto/aspeed,hace.yaml b/Documentation/devicetree/bindings/crypto/aspeed,hace.yaml
    new file mode 100644
    index 000000000000..36b4ad0dc7fa
    --- /dev/null
    +++ b/Documentation/devicetree/bindings/crypto/aspeed,hace.yaml
    @@ -0,0 +1,58 @@
    +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
    +%YAML 1.2
    +---
    +$id: http://devicetree.org/schemas/crypto/aspeed,hace.yaml#
    +$schema: http://devicetree.org/meta-schemas/core.yaml#
    +
    +title: ASPEED HACE hash and crypto Hardware Accelerator Device Tree Bindings
    +
    +maintainers:
    + - Neal Liu <neal_liu@aspeedtech.com>
    +
    +description: |
    + The Hash and Crypto Engine (HACE) is designed to accelerate the throughput
    + of hash data digest, encryption, and decryption. Basically, HACE can be
    + divided into two independently engines - Hash Engine and Crypto Engine.
    +
    +properties:
    + compatible:
    + enum:
    + - aspeed,ast2500-hace
    + - aspeed,ast2600-hace
    +
    + reg:
    + maxItems: 1
    +
    + clocks:
    + maxItems: 1
    +
    + clock-names:
    + maxItems: 1
    +
    + interrupts:
    + maxItems: 1
    +
    + resets:
    + maxItems: 1
    +
    +required:
    + - compatible
    + - reg
    + - clocks
    + - clock-names
    + - interrupts
    + - resets
    +
    +additionalProperties: false
    +
    +examples:
    + - |
    + #include <dt-bindings/clock/ast2600-clock.h>
    + hace: hace@1e6d0000 {
    + compatible = "aspeed,ast2600-hace";
    + reg = <0x1e6d0000 0x200>;
    + interrupts = <4>;
    + clocks = <&syscon ASPEED_CLK_GATE_YCLK>;
    + clock-names = "yclk";
    + resets = <&syscon ASPEED_RESET_HACE>;
    + };
    --
    2.25.1
    \
     
     \ /
      Last update: 2022-06-01 07:44    [W:2.815 / U:0.556 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site