img,hash-accelerator.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. title: Imagination Technologies hardware hash accelerator
  7. maintainers:
  8. - James Hartley <james.hartley@imgtec.com>
  9. description:
  10. The hash accelerator provides hardware hashing acceleration for
  11. SHA1, SHA224, SHA256 and MD5 hashes.
  12. properties:
  13. compatible:
  14. const: img,hash-accelerator
  15. reg:
  16. items:
  17. - description: Register base address and size
  18. - description: DMA port specifier
  19. interrupts:
  20. maxItems: 1
  21. dmas:
  22. maxItems: 1
  23. dma-names:
  24. items:
  25. - const: tx
  26. clocks:
  27. items:
  28. - description: System clock for hash block registers
  29. - description: Hash clock for data path
  30. clock-names:
  31. items:
  32. - const: sys
  33. - const: hash
  34. additionalProperties: false
  35. required:
  36. - compatible
  37. - reg
  38. - interrupts
  39. - dmas
  40. - dma-names
  41. - clocks
  42. - clock-names
  43. examples:
  44. - |
  45. #include <dt-bindings/interrupt-controller/mips-gic.h>
  46. #include <dt-bindings/clock/pistachio-clk.h>
  47. hash@18149600 {
  48. compatible = "img,hash-accelerator";
  49. reg = <0x18149600 0x100>, <0x18101100 0x4>;
  50. interrupts = <GIC_SHARED 59 IRQ_TYPE_LEVEL_HIGH>;
  51. dmas = <&dma 8 0xffffffff 0>;
  52. dma-names = "tx";
  53. clocks = <&cr_periph SYS_CLK_HASH>, <&clk_periph PERIPH_CLK_ROM>;
  54. clock-names = "sys", "hash";
  55. };