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