Path: blob/master/Documentation/devicetree/bindings/crypto/img,hash-accelerator.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/img,hash-accelerator.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Imagination Technologies hardware hash accelerator78maintainers:9- James Hartley <james.hartley@imgtec.com>1011description:12The hash accelerator provides hardware hashing acceleration for13SHA1, SHA224, SHA256 and MD5 hashes.1415properties:16compatible:17const: img,hash-accelerator1819reg:20items:21- description: Register base address and size22- description: DMA port specifier2324interrupts:25maxItems: 12627dmas:28maxItems: 12930dma-names:31items:32- const: tx3334clocks:35items:36- description: System clock for hash block registers37- description: Hash clock for data path3839clock-names:40items:41- const: sys42- const: hash4344additionalProperties: false4546required:47- compatible48- reg49- interrupts50- dmas51- dma-names52- clocks53- clock-names5455examples:56- |57#include <dt-bindings/interrupt-controller/mips-gic.h>58#include <dt-bindings/clock/pistachio-clk.h>5960hash@18149600 {61compatible = "img,hash-accelerator";62reg = <0x18149600 0x100>, <0x18101100 0x4>;63interrupts = <GIC_SHARED 59 IRQ_TYPE_LEVEL_HIGH>;64dmas = <&dma 8 0xffffffff 0>;65dma-names = "tx";66clocks = <&cr_periph SYS_CLK_HASH>, <&clk_periph PERIPH_CLK_ROM>;67clock-names = "sys", "hash";68};697071