Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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) <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Rob Herring (Arm) and committed by
Herbert Xu
7eff621c 036454de

+69 -27
+69
Documentation/devicetree/bindings/crypto/img,hash-accelerator.yaml
··· 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 <james.hartley@imgtec.com> 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 + };
-27
Documentation/devicetree/bindings/crypto/img-hash.txt
··· 1 - Imagination Technologies hardware hash accelerator 2 - 3 - The hash accelerator provides hardware hashing acceleration for 4 - SHA1, SHA224, SHA256 and MD5 hashes 5 - 6 - Required properties: 7 - 8 - - compatible : "img,hash-accelerator" 9 - - reg : Offset and length of the register set for the module, and the DMA port 10 - - interrupts : The designated IRQ line for the hashing module. 11 - - dmas : DMA specifier as per Documentation/devicetree/bindings/dma/dma.txt 12 - - dma-names : Should be "tx" 13 - - clocks : Clock specifiers 14 - - clock-names : "sys" Used to clock the hash block registers 15 - "hash" Used to clock data through the accelerator 16 - 17 - Example: 18 - 19 - hash: hash@18149600 { 20 - compatible = "img,hash-accelerator"; 21 - reg = <0x18149600 0x100>, <0x18101100 0x4>; 22 - interrupts = <GIC_SHARED 59 IRQ_TYPE_LEVEL_HIGH>; 23 - dmas = <&dma 8 0xffffffff 0>; 24 - dma-names = "tx"; 25 - clocks = <&cr_periph SYS_CLK_HASH>, <&clk_periph PERIPH_CLK_ROM>; 26 - clock-names = "sys", "hash"; 27 - };