renesas,sysc-rmobile.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. DT bindings for the Renesas R-Mobile System Controller
  2. == System Controller Node ==
  3. The R-Mobile System Controller provides the following functions:
  4. - Boot mode management,
  5. - Reset generation,
  6. - Power management.
  7. Required properties:
  8. - compatible: Should be "renesas,sysc-<soctype>", "renesas,sysc-rmobile" as
  9. fallback.
  10. Examples with soctypes are:
  11. - "renesas,sysc-r8a73a4" (R-Mobile APE6)
  12. - "renesas,sysc-r8a7740" (R-Mobile A1)
  13. - "renesas,sysc-sh73a0" (SH-Mobile AG5)
  14. - reg: Two address start and address range blocks for the device:
  15. - The first block refers to the normally accessible registers,
  16. - the second block refers to the registers protected by the HPB
  17. semaphore.
  18. Optional nodes:
  19. - pm-domains: This node contains a hierarchy of PM domain nodes, which should
  20. match the Power Area Hierarchy in the Power Domain Specifications section of
  21. the device's datasheet.
  22. == PM Domain Nodes ==
  23. Each of the PM domain nodes represents a PM domain, as documented by the
  24. generic PM domain bindings in
  25. Documentation/devicetree/bindings/power/power_domain.txt.
  26. The nodes should be named by the real power area names, and thus their names
  27. should be unique.
  28. Required properties:
  29. - #power-domain-cells: Must be 0.
  30. Optional properties:
  31. - reg: If the PM domain is not always-on, this property must contain the bit
  32. index number for the corresponding power area in the various Power
  33. Control and Status Registers. The parent's node must contain the
  34. following two properties:
  35. - #address-cells: Must be 1,
  36. - #size-cells: Must be 0.
  37. If the PM domain is always-on, this property must be omitted.
  38. Example:
  39. This shows a subset of the r8a7740 PM domain hierarchy, containing the
  40. C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP domain,
  41. which is a subdomain of A4S.
  42. sysc: system-controller@e6180000 {
  43. compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile";
  44. reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>;
  45. pm-domains {
  46. pd_c5: c5 {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. #power-domain-cells = <0>;
  50. pd_a4s: a4s@10 {
  51. reg = <10>;
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. #power-domain-cells = <0>;
  55. pd_a3sp: a3sp@11 {
  56. reg = <11>;
  57. #power-domain-cells = <0>;
  58. };
  59. };
  60. pd_a4su: a4su@20 {
  61. reg = <20>;
  62. #power-domain-cells = <0>;
  63. };
  64. };
  65. };
  66. };
  67. == PM Domain Consumers ==
  68. Hardware blocks belonging to a PM domain should contain a "power-domains"
  69. property that is a phandle pointing to the corresponding PM domain node.
  70. Example:
  71. tpu: pwm@e6600000 {
  72. compatible = "renesas,tpu-r8a7740", "renesas,tpu";
  73. reg = <0xe6600000 0x100>;
  74. clocks = <&mstp3_clks R8A7740_CLK_TPU0>;
  75. power-domains = <&pd_a3sp>;
  76. #pwm-cells = <3>;
  77. };