Skip to content

Commit 7eff621

Browse files
robherringherbertx
authored andcommitted
dt-bindings: crypto: Convert img,hash-accelerator to DT schema
Convert the Imagination Technologies hardware hash accelerator binding to DT schema format. It's a straight forward conversion. Signed-off-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 036454d commit 7eff621

File tree

2 files changed

+69
-27
lines changed

2 files changed

+69
-27
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/img,hash-accelerator.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Imagination Technologies hardware hash accelerator
8+
9+
maintainers:
10+
- James Hartley <[email protected]>
11+
12+
description:
13+
The hash accelerator provides hardware hashing acceleration for
14+
SHA1, SHA224, SHA256 and MD5 hashes.
15+
16+
properties:
17+
compatible:
18+
const: img,hash-accelerator
19+
20+
reg:
21+
items:
22+
- description: Register base address and size
23+
- description: DMA port specifier
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
dmas:
29+
maxItems: 1
30+
31+
dma-names:
32+
items:
33+
- const: tx
34+
35+
clocks:
36+
items:
37+
- description: System clock for hash block registers
38+
- description: Hash clock for data path
39+
40+
clock-names:
41+
items:
42+
- const: sys
43+
- const: hash
44+
45+
additionalProperties: false
46+
47+
required:
48+
- compatible
49+
- reg
50+
- interrupts
51+
- dmas
52+
- dma-names
53+
- clocks
54+
- clock-names
55+
56+
examples:
57+
- |
58+
#include <dt-bindings/interrupt-controller/mips-gic.h>
59+
#include <dt-bindings/clock/pistachio-clk.h>
60+
61+
hash@18149600 {
62+
compatible = "img,hash-accelerator";
63+
reg = <0x18149600 0x100>, <0x18101100 0x4>;
64+
interrupts = <GIC_SHARED 59 IRQ_TYPE_LEVEL_HIGH>;
65+
dmas = <&dma 8 0xffffffff 0>;
66+
dma-names = "tx";
67+
clocks = <&cr_periph SYS_CLK_HASH>, <&clk_periph PERIPH_CLK_ROM>;
68+
clock-names = "sys", "hash";
69+
};

Documentation/devicetree/bindings/crypto/img-hash.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)