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 7title: Imagination Technologies hardware hash accelerator 8 9maintainers: 10 - James Hartley <james.hartley@imgtec.com> 11 12description: 13 The hash accelerator provides hardware hashing acceleration for 14 SHA1, SHA224, SHA256 and MD5 hashes. 15 16properties: 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 45additionalProperties: false 46 47required: 48 - compatible 49 - reg 50 - interrupts 51 - dmas 52 - dma-names 53 - clocks 54 - clock-names 55 56examples: 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 }; 70