ti,sa2ul.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/crypto/ti,sa2ul.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: K3 SoC SA2UL crypto module
  7. maintainers:
  8. - Tero Kristo <t-kristo@ti.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - ti,j721e-sa2ul
  13. - ti,am654-sa2ul
  14. - ti,am64-sa2ul
  15. - ti,am62-sa3ul
  16. reg:
  17. maxItems: 1
  18. power-domains:
  19. maxItems: 1
  20. dmas:
  21. items:
  22. - description: TX DMA Channel
  23. - description: 'RX DMA Channel #1'
  24. - description: 'RX DMA Channel #2'
  25. dma-names:
  26. items:
  27. - const: tx
  28. - const: rx1
  29. - const: rx2
  30. "#address-cells":
  31. const: 2
  32. "#size-cells":
  33. const: 2
  34. ranges:
  35. description:
  36. Address translation for the possible RNG child node for SA2UL
  37. clocks:
  38. items:
  39. - description: Clock used by PKA
  40. - description: Main Input Clock
  41. - description: Clock used by rng
  42. clock-names:
  43. items:
  44. - const: pka_in_clk
  45. - const: x1_clk
  46. - const: x2_clk
  47. patternProperties:
  48. "^rng@[a-f0-9]+$":
  49. type: object
  50. description:
  51. Child RNG node for SA2UL
  52. required:
  53. - compatible
  54. - reg
  55. - dmas
  56. - dma-names
  57. allOf:
  58. - if:
  59. properties:
  60. compatible:
  61. contains:
  62. const: ti,am62-sa3ul
  63. then:
  64. properties:
  65. power-domains: false
  66. else:
  67. required:
  68. - power-domains
  69. additionalProperties: false
  70. examples:
  71. - |
  72. #include <dt-bindings/soc/ti,sci_pm_domain.h>
  73. main_crypto: crypto@4e00000 {
  74. compatible = "ti,j721e-sa2ul";
  75. reg = <0x4e00000 0x1200>;
  76. power-domains = <&k3_pds 264 TI_SCI_PD_EXCLUSIVE>;
  77. dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>,
  78. <&main_udmap 0x4001>;
  79. dma-names = "tx", "rx1", "rx2";
  80. };