0009-dt-bindings-ARM-Mediatek-Document-devicetree-binding.patch 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. From 87043a64dd5185dc076b3c3ab2e421b3a8c47798 Mon Sep 17 00:00:00 2001
  2. From: Sascha Hauer <[email protected]>
  3. Date: Thu, 23 Apr 2015 10:35:43 +0200
  4. Subject: [PATCH 09/76] dt-bindings: ARM: Mediatek: Document devicetree
  5. bindings for clock/reset controllers
  6. This adds the binding documentation for the apmixedsys, perisys and
  7. infracfg controllers found on Mediatek SoCs.
  8. Signed-off-by: Sascha Hauer <[email protected]>
  9. ---
  10. .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 23 +++++++++++++++
  11. .../bindings/arm/mediatek/mediatek,infracfg.txt | 30 ++++++++++++++++++++
  12. .../bindings/arm/mediatek/mediatek,pericfg.txt | 30 ++++++++++++++++++++
  13. .../bindings/arm/mediatek/mediatek,topckgen.txt | 23 +++++++++++++++
  14. 4 files changed, 106 insertions(+)
  15. create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
  16. create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
  17. create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt
  18. create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
  19. --- /dev/null
  20. +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
  21. @@ -0,0 +1,23 @@
  22. +Mediatek apmixedsys controller
  23. +==============================
  24. +
  25. +The Mediatek apmixedsys controller provides the PLLs to the system.
  26. +
  27. +Required Properties:
  28. +
  29. +- compatible: Should be:
  30. + - "mediatek,mt8135-apmixedsys"
  31. + - "mediatek,mt8173-apmixedsys"
  32. +- #clock-cells: Must be 1
  33. +
  34. +The apmixedsys controller uses the common clk binding from
  35. +Documentation/devicetree/bindings/clock/clock-bindings.txt
  36. +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
  37. +
  38. +Example:
  39. +
  40. +apmixedsys: apmixedsys@10209000 {
  41. + compatible = "mediatek,mt8173-apmixedsys";
  42. + reg = <0 0x10209000 0 0x1000>;
  43. + #clock-cells = <1>;
  44. +};
  45. --- /dev/null
  46. +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
  47. @@ -0,0 +1,30 @@
  48. +Mediatek infracfg controller
  49. +============================
  50. +
  51. +The Mediatek infracfg controller provides various clocks and reset
  52. +outputs to the system.
  53. +
  54. +Required Properties:
  55. +
  56. +- compatible: Should be:
  57. + - "mediatek,mt8135-infracfg", "syscon"
  58. + - "mediatek,mt8173-infracfg", "syscon"
  59. +- #clock-cells: Must be 1
  60. +- #reset-cells: Must be 1
  61. +
  62. +The infracfg controller uses the common clk binding from
  63. +Documentation/devicetree/bindings/clock/clock-bindings.txt
  64. +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
  65. +Also it uses the common reset controller binding from
  66. +Documentation/devicetree/bindings/reset/reset.txt.
  67. +The available reset outputs are defined in
  68. +dt-bindings/reset-controller/mt*-resets.h
  69. +
  70. +Example:
  71. +
  72. +infracfg: infracfg@10001000 {
  73. + compatible = "mediatek,mt8173-infracfg", "syscon";
  74. + reg = <0 0x10001000 0 0x1000>;
  75. + #clock-cells = <1>;
  76. + #reset-cells = <1>;
  77. +};
  78. --- /dev/null
  79. +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt
  80. @@ -0,0 +1,30 @@
  81. +Mediatek pericfg controller
  82. +===========================
  83. +
  84. +The Mediatek pericfg controller provides various clocks and reset
  85. +outputs to the system.
  86. +
  87. +Required Properties:
  88. +
  89. +- compatible: Should be:
  90. + - "mediatek,mt8135-pericfg", "syscon"
  91. + - "mediatek,mt8173-pericfg", "syscon"
  92. +- #clock-cells: Must be 1
  93. +- #reset-cells: Must be 1
  94. +
  95. +The pericfg controller uses the common clk binding from
  96. +Documentation/devicetree/bindings/clock/clock-bindings.txt
  97. +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
  98. +Also it uses the common reset controller binding from
  99. +Documentation/devicetree/bindings/reset/reset.txt.
  100. +The available reset outputs are defined in
  101. +dt-bindings/reset-controller/mt*-resets.h
  102. +
  103. +Example:
  104. +
  105. +pericfg: pericfg@10003000 {
  106. + compatible = "mediatek,mt8173-pericfg", "syscon";
  107. + reg = <0 0x10003000 0 0x1000>;
  108. + #clock-cells = <1>;
  109. + #reset-cells = <1>;
  110. +};
  111. --- /dev/null
  112. +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
  113. @@ -0,0 +1,23 @@
  114. +Mediatek topckgen controller
  115. +============================
  116. +
  117. +The Mediatek topckgen controller provides various clocks to the system.
  118. +
  119. +Required Properties:
  120. +
  121. +- compatible: Should be:
  122. + - "mediatek,mt8135-topckgen"
  123. + - "mediatek,mt8173-topckgen"
  124. +- #clock-cells: Must be 1
  125. +
  126. +The topckgen controller uses the common clk binding from
  127. +Documentation/devicetree/bindings/clock/clock-bindings.txt
  128. +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
  129. +
  130. +Example:
  131. +
  132. +topckgen: topckgen@10000000 {
  133. + compatible = "mediatek,mt8173-topckgen";
  134. + reg = <0 0x10000000 0 0x1000>;
  135. + #clock-cells = <1>;
  136. +};