renesas,cpg-mssr.txt 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. * Renesas Clock Pulse Generator / Module Standby and Software Reset
  2. On Renesas ARM SoCs (SH/R-Mobile, R-Car, RZ), the CPG (Clock Pulse Generator)
  3. and MSSR (Module Standby and Software Reset) blocks are intimately connected,
  4. and share the same register block.
  5. They provide the following functionalities:
  6. - The CPG block generates various core clocks,
  7. - The MSSR block provides two functions:
  8. 1. Module Standby, providing a Clock Domain to control the clock supply
  9. to individual SoC devices,
  10. 2. Reset Control, to perform a software reset of individual SoC devices.
  11. Required Properties:
  12. - compatible: Must be one of:
  13. - "renesas,r8a7743-cpg-mssr" for the r8a7743 SoC (RZ/G1M)
  14. - "renesas,r8a7745-cpg-mssr" for the r8a7745 SoC (RZ/G1E)
  15. - "renesas,r8a77470-cpg-mssr" for the r8a77470 SoC (RZ/G1C)
  16. - "renesas,r8a7790-cpg-mssr" for the r8a7790 SoC (R-Car H2)
  17. - "renesas,r8a7791-cpg-mssr" for the r8a7791 SoC (R-Car M2-W)
  18. - "renesas,r8a7792-cpg-mssr" for the r8a7792 SoC (R-Car V2H)
  19. - "renesas,r8a7793-cpg-mssr" for the r8a7793 SoC (R-Car M2-N)
  20. - "renesas,r8a7794-cpg-mssr" for the r8a7794 SoC (R-Car E2)
  21. - "renesas,r8a7795-cpg-mssr" for the r8a7795 SoC (R-Car H3)
  22. - "renesas,r8a7796-cpg-mssr" for the r8a7796 SoC (R-Car M3-W)
  23. - "renesas,r8a77965-cpg-mssr" for the r8a77965 SoC (R-Car M3-N)
  24. - "renesas,r8a77970-cpg-mssr" for the r8a77970 SoC (R-Car V3M)
  25. - "renesas,r8a77980-cpg-mssr" for the r8a77980 SoC (R-Car V3H)
  26. - "renesas,r8a77990-cpg-mssr" for the r8a77990 SoC (R-Car E3)
  27. - "renesas,r8a77995-cpg-mssr" for the r8a77995 SoC (R-Car D3)
  28. - reg: Base address and length of the memory resource used by the CPG/MSSR
  29. block
  30. - clocks: References to external parent clocks, one entry for each entry in
  31. clock-names
  32. - clock-names: List of external parent clock names. Valid names are:
  33. - "extal" (r8a7743, r8a7745, r8a77470, r8a7790, r8a7791, r8a7792,
  34. r8a7793, r8a7794, r8a7795, r8a7796, r8a77965, r8a77970,
  35. r8a77980, r8a77990, r8a77995)
  36. - "extalr" (r8a7795, r8a7796, r8a77965, r8a77970, r8a77980)
  37. - "usb_extal" (r8a7743, r8a7745, r8a77470, r8a7790, r8a7791, r8a7793,
  38. r8a7794)
  39. - #clock-cells: Must be 2
  40. - For CPG core clocks, the two clock specifier cells must be "CPG_CORE"
  41. and a core clock reference, as defined in
  42. <dt-bindings/clock/*-cpg-mssr.h>.
  43. - For module clocks, the two clock specifier cells must be "CPG_MOD" and
  44. a module number, as defined in the datasheet.
  45. - #power-domain-cells: Must be 0
  46. - SoC devices that are part of the CPG/MSSR Clock Domain and can be
  47. power-managed through Module Standby should refer to the CPG device
  48. node in their "power-domains" property, as documented by the generic PM
  49. Domain bindings in
  50. Documentation/devicetree/bindings/power/power_domain.txt.
  51. - #reset-cells: Must be 1
  52. - The single reset specifier cell must be the module number, as defined
  53. in the datasheet.
  54. Examples
  55. --------
  56. - CPG device node:
  57. cpg: clock-controller@e6150000 {
  58. compatible = "renesas,r8a7795-cpg-mssr";
  59. reg = <0 0xe6150000 0 0x1000>;
  60. clocks = <&extal_clk>, <&extalr_clk>;
  61. clock-names = "extal", "extalr";
  62. #clock-cells = <2>;
  63. #power-domain-cells = <0>;
  64. #reset-cells = <1>;
  65. };
  66. - CPG/MSSR Clock Domain member device node:
  67. scif2: serial@e6e88000 {
  68. compatible = "renesas,scif-r8a7795", "renesas,scif";
  69. reg = <0 0xe6e88000 0 64>;
  70. interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
  71. clocks = <&cpg CPG_MOD 310>;
  72. clock-names = "fck";
  73. dmas = <&dmac1 0x13>, <&dmac1 0x12>;
  74. dma-names = "tx", "rx";
  75. power-domains = <&cpg>;
  76. resets = <&cpg 310>;
  77. };