0101-dt-bindings-rng-Add-StarFive-TRNG-module.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. From 0b99a4626c7e148df128c6a8cb686d500431189b Mon Sep 17 00:00:00 2001
  2. From: Jia Jie Ho <[email protected]>
  3. Date: Tue, 17 Jan 2023 09:54:43 +0800
  4. Subject: [PATCH 101/122] dt-bindings: rng: Add StarFive TRNG module
  5. Add documentation to describe Starfive true random number generator
  6. module.
  7. Co-developed-by: Jenny Zhang <[email protected]>
  8. Signed-off-by: Jenny Zhang <[email protected]>
  9. Signed-off-by: Jia Jie Ho <[email protected]>
  10. Reviewed-by: Krzysztof Kozlowski <[email protected]>
  11. Reviewed-by: Conor Dooley <[email protected]>
  12. ---
  13. .../bindings/rng/starfive,jh7110-trng.yaml | 55 +++++++++++++++++++
  14. 1 file changed, 55 insertions(+)
  15. create mode 100644 Documentation/devicetree/bindings/rng/starfive,jh7110-trng.yaml
  16. --- /dev/null
  17. +++ b/Documentation/devicetree/bindings/rng/starfive,jh7110-trng.yaml
  18. @@ -0,0 +1,55 @@
  19. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  20. +%YAML 1.2
  21. +---
  22. +$id: http://devicetree.org/schemas/rng/starfive,jh7110-trng.yaml#
  23. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  24. +
  25. +title: StarFive SoC TRNG Module
  26. +
  27. +maintainers:
  28. + - Jia Jie Ho <[email protected]>
  29. +
  30. +properties:
  31. + compatible:
  32. + const: starfive,jh7110-trng
  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. + resets:
  48. + maxItems: 1
  49. +
  50. + interrupts:
  51. + maxItems: 1
  52. +
  53. +required:
  54. + - compatible
  55. + - reg
  56. + - clocks
  57. + - clock-names
  58. + - resets
  59. + - interrupts
  60. +
  61. +additionalProperties: false
  62. +
  63. +examples:
  64. + - |
  65. + rng: rng@1600C000 {
  66. + compatible = "starfive,jh7110-trng";
  67. + reg = <0x1600C000 0x4000>;
  68. + clocks = <&clk 15>, <&clk 16>;
  69. + clock-names = "hclk", "ahb";
  70. + resets = <&reset 3>;
  71. + interrupts = <30>;
  72. + };
  73. +...