0064-dt-bindings-crypto-Add-StarFive-crypto-module.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. From 207dde3ed123613cd84c8f706a24d75cefece67c Mon Sep 17 00:00:00 2001
  2. From: Jia Jie Ho <[email protected]>
  3. Date: Mon, 15 May 2023 20:53:52 +0800
  4. Subject: [PATCH 064/122] dt-bindings: crypto: Add StarFive crypto module
  5. Add documentation to describe StarFive cryptographic engine.
  6. Co-developed-by: Huan Feng <[email protected]>
  7. Signed-off-by: Huan Feng <[email protected]>
  8. Signed-off-by: Jia Jie Ho <[email protected]>
  9. Reviewed-by: Rob Herring <[email protected]>
  10. Signed-off-by: Herbert Xu <[email protected]>
  11. ---
  12. .../crypto/starfive,jh7110-crypto.yaml | 70 +++++++++++++++++++
  13. 1 file changed, 70 insertions(+)
  14. create mode 100644 Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml
  15. --- /dev/null
  16. +++ b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml
  17. @@ -0,0 +1,70 @@
  18. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  19. +%YAML 1.2
  20. +---
  21. +$id: http://devicetree.org/schemas/crypto/starfive,jh7110-crypto.yaml#
  22. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  23. +
  24. +title: StarFive Cryptographic Module
  25. +
  26. +maintainers:
  27. + - Jia Jie Ho <[email protected]>
  28. + - William Qiu <[email protected]>
  29. +
  30. +properties:
  31. + compatible:
  32. + const: starfive,jh7110-crypto
  33. +
  34. + reg:
  35. + maxItems: 1
  36. +
  37. + clocks:
  38. + items:
  39. + - description: Hardware reference clock
  40. + - description: AHB reference clock
  41. +
  42. + clock-names:
  43. + items:
  44. + - const: hclk
  45. + - const: ahb
  46. +
  47. + interrupts:
  48. + maxItems: 1
  49. +
  50. + resets:
  51. + maxItems: 1
  52. +
  53. + dmas:
  54. + items:
  55. + - description: TX DMA channel
  56. + - description: RX DMA channel
  57. +
  58. + dma-names:
  59. + items:
  60. + - const: tx
  61. + - const: rx
  62. +
  63. +required:
  64. + - compatible
  65. + - reg
  66. + - clocks
  67. + - clock-names
  68. + - resets
  69. + - dmas
  70. + - dma-names
  71. +
  72. +additionalProperties: false
  73. +
  74. +examples:
  75. + - |
  76. + crypto: crypto@16000000 {
  77. + compatible = "starfive,jh7110-crypto";
  78. + reg = <0x16000000 0x4000>;
  79. + clocks = <&clk 15>, <&clk 16>;
  80. + clock-names = "hclk", "ahb";
  81. + interrupts = <28>;
  82. + resets = <&reset 3>;
  83. + dmas = <&dma 1 2>,
  84. + <&dma 0 2>;
  85. + dma-names = "tx", "rx";
  86. + };
  87. +...