brcm,brcmstb.txt 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. ARM Broadcom STB platforms Device Tree Bindings
  2. -----------------------------------------------
  3. Boards with Broadcom Brahma15 ARM-based BCMxxxx (generally BCM7xxx variants)
  4. SoC shall have the following DT organization:
  5. Required root node properties:
  6. - compatible: "brcm,bcm<chip_id>", "brcm,brcmstb"
  7. example:
  8. / {
  9. #address-cells = <2>;
  10. #size-cells = <2>;
  11. model = "Broadcom STB (bcm7445)";
  12. compatible = "brcm,bcm7445", "brcm,brcmstb";
  13. Further, syscon nodes that map platform-specific registers used for general
  14. system control is required:
  15. - compatible: "brcm,bcm<chip_id>-sun-top-ctrl", "syscon"
  16. - compatible: "brcm,bcm<chip_id>-hif-cpubiuctrl", "syscon"
  17. - compatible: "brcm,bcm<chip_id>-hif-continuation", "syscon"
  18. hif-cpubiuctrl node
  19. -------------------
  20. SoCs with Broadcom Brahma15 ARM-based CPUs have a specific Bus Interface Unit
  21. (BIU) block which controls and interfaces the CPU complex to the different
  22. Memory Controller Ports (MCP), one per memory controller (MEMC). This BIU block
  23. offers a feature called Write Pairing which consists in collapsing two adjacent
  24. cache lines into a single (bursted) write transaction towards the memory
  25. controller (MEMC) to maximize write bandwidth.
  26. Required properties:
  27. - compatible: must be "brcm,bcm7445-hif-cpubiuctrl", "syscon"
  28. Optional properties:
  29. - brcm,write-pairing:
  30. Boolean property, which when present indicates that the chip
  31. supports write-pairing.
  32. example:
  33. rdb {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. compatible = "simple-bus";
  37. ranges = <0 0x00 0xf0000000 0x1000000>;
  38. sun_top_ctrl: syscon@404000 {
  39. compatible = "brcm,bcm7445-sun-top-ctrl", "syscon";
  40. reg = <0x404000 0x51c>;
  41. };
  42. hif_cpubiuctrl: syscon@3e2400 {
  43. compatible = "brcm,bcm7445-hif-cpubiuctrl", "syscon";
  44. reg = <0x3e2400 0x5b4>;
  45. brcm,write-pairing;
  46. };
  47. hif_continuation: syscon@452000 {
  48. compatible = "brcm,bcm7445-hif-continuation", "syscon";
  49. reg = <0x452000 0x100>;
  50. };
  51. };
  52. Nodes that allow for support of SMP initialization and reboot are required:
  53. smpboot
  54. -------
  55. Required properties:
  56. - compatible
  57. The string "brcm,brcmstb-smpboot".
  58. - syscon-cpu
  59. A phandle / integer array property which lets the BSP know the location
  60. of certain CPU power-on registers.
  61. The layout of the property is as follows:
  62. o a phandle to the "hif_cpubiuctrl" syscon node
  63. o offset to the base CPU power zone register
  64. o offset to the base CPU reset register
  65. - syscon-cont
  66. A phandle pointing to the syscon node which describes the CPU boot
  67. continuation registers.
  68. o a phandle to the "hif_continuation" syscon node
  69. example:
  70. smpboot {
  71. compatible = "brcm,brcmstb-smpboot";
  72. syscon-cpu = <&hif_cpubiuctrl 0x88 0x178>;
  73. syscon-cont = <&hif_continuation>;
  74. };
  75. reboot
  76. -------
  77. Required properties
  78. - compatible
  79. The string property "brcm,brcmstb-reboot" for 40nm/28nm chips with
  80. the new SYS_CTRL interface, or "brcm,bcm7038-reboot" for 65nm
  81. chips with the old SUN_TOP_CTRL interface.
  82. - syscon
  83. A phandle / integer array that points to the syscon node which describes
  84. the general system reset registers.
  85. o a phandle to "sun_top_ctrl"
  86. o offset to the "reset source enable" register
  87. o offset to the "software master reset" register
  88. example:
  89. reboot {
  90. compatible = "brcm,brcmstb-reboot";
  91. syscon = <&sun_top_ctrl 0x304 0x308>;
  92. };
  93. Power management
  94. ----------------
  95. For power management (particularly, S2/S3/S5 system suspend), the following SoC
  96. components are needed:
  97. = Always-On control block (AON CTRL)
  98. This hardware provides control registers for the "always-on" (even in low-power
  99. modes) hardware, such as the Power Management State Machine (PMSM).
  100. Required properties:
  101. - compatible : should contain "brcm,brcmstb-aon-ctrl"
  102. - reg : the register start and length for the AON CTRL block
  103. Example:
  104. aon-ctrl@410000 {
  105. compatible = "brcm,brcmstb-aon-ctrl";
  106. reg = <0x410000 0x400>;
  107. };
  108. = Memory controllers
  109. A Broadcom STB SoC typically has a number of independent memory controllers,
  110. each of which may have several associated hardware blocks, which are versioned
  111. independently (control registers, DDR PHYs, etc.). One might consider
  112. describing these controllers as a parent "memory controllers" block, which
  113. contains N sub-nodes (one for each controller in the system), each of which is
  114. associated with a number of hardware register resources (e.g., its PHY). See
  115. the example device tree snippet below.
  116. == MEMC (MEMory Controller)
  117. Represents a single memory controller instance.
  118. Required properties:
  119. - compatible : should contain "brcm,brcmstb-memc" and "simple-bus"
  120. Should contain subnodes for any of the following relevant hardware resources:
  121. == DDR PHY control
  122. Control registers for this memory controller's DDR PHY.
  123. Required properties:
  124. - compatible : should contain one of these
  125. "brcm,brcmstb-ddr-phy-v225.1"
  126. "brcm,brcmstb-ddr-phy-v240.1"
  127. "brcm,brcmstb-ddr-phy-v240.2"
  128. - reg : the DDR PHY register range
  129. == DDR SHIMPHY
  130. Control registers for this memory controller's DDR SHIMPHY.
  131. Required properties:
  132. - compatible : should contain "brcm,brcmstb-ddr-shimphy-v1.0"
  133. - reg : the DDR SHIMPHY register range
  134. == MEMC DDR control
  135. Sequencer DRAM parameters and control registers. Used for Self-Refresh
  136. Power-Down (SRPD), among other things.
  137. Required properties:
  138. - compatible : should contain "brcm,brcmstb-memc-ddr"
  139. - reg : the MEMC DDR register range
  140. Example:
  141. memory_controllers {
  142. ranges;
  143. compatible = "simple-bus";
  144. memc@0 {
  145. compatible = "brcm,brcmstb-memc", "simple-bus";
  146. ranges;
  147. ddr-phy@f1106000 {
  148. compatible = "brcm,brcmstb-ddr-phy-v240.1";
  149. reg = <0xf1106000 0x21c>;
  150. };
  151. shimphy@f1108000 {
  152. compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
  153. reg = <0xf1108000 0xe4>;
  154. };
  155. memc-ddr@f1102000 {
  156. reg = <0xf1102000 0x800>;
  157. compatible = "brcm,brcmstb-memc-ddr";
  158. };
  159. };
  160. memc@1 {
  161. compatible = "brcm,brcmstb-memc", "simple-bus";
  162. ranges;
  163. ddr-phy@f1186000 {
  164. compatible = "brcm,brcmstb-ddr-phy-v240.1";
  165. reg = <0xf1186000 0x21c>;
  166. };
  167. shimphy@f1188000 {
  168. compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
  169. reg = <0xf1188000 0xe4>;
  170. };
  171. memc-ddr@f1182000 {
  172. reg = <0xf1182000 0x800>;
  173. compatible = "brcm,brcmstb-memc-ddr";
  174. };
  175. };
  176. memc@2 {
  177. compatible = "brcm,brcmstb-memc", "simple-bus";
  178. ranges;
  179. ddr-phy@f1206000 {
  180. compatible = "brcm,brcmstb-ddr-phy-v240.1";
  181. reg = <0xf1206000 0x21c>;
  182. };
  183. shimphy@f1208000 {
  184. compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
  185. reg = <0xf1208000 0xe4>;
  186. };
  187. memc-ddr@f1202000 {
  188. reg = <0xf1202000 0x800>;
  189. compatible = "brcm,brcmstb-memc-ddr";
  190. };
  191. };
  192. };