bcm63138.dtsi 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Broadcom BCM63138 DSL SoCs Device Tree
  4. */
  5. #include <dt-bindings/interrupt-controller/arm-gic.h>
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. / {
  8. #address-cells = <1>;
  9. #size-cells = <1>;
  10. compatible = "brcm,bcm63138", "brcm,bcmbca";
  11. model = "Broadcom BCM963138 Reference Board";
  12. interrupt-parent = <&gic>;
  13. aliases {
  14. uart0 = &serial0;
  15. uart1 = &serial1;
  16. };
  17. cpus {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. cpu@0 {
  21. device_type = "cpu";
  22. compatible = "arm,cortex-a9";
  23. next-level-cache = <&L2>;
  24. reg = <0>;
  25. enable-method = "brcm,bcm63138";
  26. };
  27. cpu@1 {
  28. device_type = "cpu";
  29. compatible = "arm,cortex-a9";
  30. next-level-cache = <&L2>;
  31. reg = <1>;
  32. enable-method = "brcm,bcm63138";
  33. resets = <&pmb0 4 1>;
  34. };
  35. };
  36. clocks {
  37. /* UBUS peripheral clock */
  38. periph_clk: periph_clk {
  39. #clock-cells = <0>;
  40. compatible = "fixed-clock";
  41. clock-frequency = <50000000>;
  42. clock-output-names = "periph";
  43. };
  44. /* peripheral clock for system timer */
  45. axi_clk: axi_clk {
  46. #clock-cells = <0>;
  47. compatible = "fixed-factor-clock";
  48. clocks = <&armpll>;
  49. clock-div = <2>;
  50. clock-mult = <1>;
  51. };
  52. /* APB bus clock */
  53. apb_clk: apb_clk {
  54. #clock-cells = <0>;
  55. compatible = "fixed-factor-clock";
  56. clocks = <&armpll>;
  57. clock-div = <4>;
  58. clock-mult = <1>;
  59. };
  60. };
  61. /* ARM bus */
  62. axi@80000000 {
  63. compatible = "simple-bus";
  64. ranges = <0 0x80000000 0x784000>;
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67. L2: cache-controller@1d000 {
  68. compatible = "arm,pl310-cache";
  69. reg = <0x1d000 0x1000>;
  70. cache-unified;
  71. cache-level = <2>;
  72. cache-size = <524288>;
  73. cache-sets = <1024>;
  74. cache-line-size = <32>;
  75. interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>;
  76. };
  77. scu: scu@1e000 {
  78. compatible = "arm,cortex-a9-scu";
  79. reg = <0x1e000 0x100>;
  80. };
  81. gic: interrupt-controller@1f000 {
  82. compatible = "arm,cortex-a9-gic";
  83. reg = <0x1f000 0x1000
  84. 0x1e100 0x100>;
  85. #interrupt-cells = <3>;
  86. #address-cells = <0>;
  87. interrupt-controller;
  88. };
  89. global_timer: timer@1e200 {
  90. compatible = "arm,cortex-a9-global-timer";
  91. reg = <0x1e200 0x20>;
  92. interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
  93. clocks = <&axi_clk>;
  94. };
  95. local_timer: local-timer@1e600 {
  96. compatible = "arm,cortex-a9-twd-timer";
  97. reg = <0x1e600 0x20>;
  98. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
  99. IRQ_TYPE_EDGE_RISING)>;
  100. clocks = <&axi_clk>;
  101. };
  102. twd_watchdog: watchdog@1e620 {
  103. compatible = "arm,cortex-a9-twd-wdt";
  104. reg = <0x1e620 0x20>;
  105. interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
  106. IRQ_TYPE_LEVEL_HIGH)>;
  107. };
  108. armpll: armpll@20000 {
  109. #clock-cells = <0>;
  110. compatible = "brcm,bcm63138-armpll";
  111. clocks = <&periph_clk>;
  112. reg = <0x20000 0xf00>;
  113. };
  114. pmb0: reset-controller@4800c0 {
  115. compatible = "brcm,bcm63138-pmb";
  116. reg = <0x4800c0 0x10>;
  117. #reset-cells = <2>;
  118. };
  119. pmb1: reset-controller@4800e0 {
  120. compatible = "brcm,bcm63138-pmb";
  121. reg = <0x4800e0 0x10>;
  122. #reset-cells = <2>;
  123. };
  124. ahci: sata@a000 {
  125. compatible = "brcm,bcm63138-ahci", "brcm,sata3-ahci";
  126. reg-names = "ahci", "top-ctrl";
  127. reg = <0xa000 0x9ac>, <0x8040 0x24>;
  128. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. resets = <&pmb0 3 1>;
  132. reset-names = "ahci";
  133. status = "disabled";
  134. sata0: sata-port@0 {
  135. reg = <0>;
  136. phys = <&sata_phy0>;
  137. };
  138. };
  139. sata_phy: sata-phy@8100 {
  140. compatible = "brcm,bcm63138-sata-phy", "brcm,phy-sata3";
  141. reg = <0x8100 0x1e00>;
  142. reg-names = "phy";
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. status = "disabled";
  146. sata_phy0: sata-phy@0 {
  147. reg = <0>;
  148. #phy-cells = <0>;
  149. };
  150. };
  151. };
  152. /* Legacy UBUS base */
  153. ubus@fffe8000 {
  154. compatible = "simple-bus";
  155. #address-cells = <1>;
  156. #size-cells = <1>;
  157. ranges = <0 0xfffe8000 0x8100>;
  158. timer: timer@80 {
  159. compatible = "brcm,bcm6328-timer", "syscon";
  160. reg = <0x80 0x3c>;
  161. };
  162. serial0: serial@600 {
  163. compatible = "brcm,bcm6345-uart";
  164. reg = <0x600 0x1b>;
  165. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  166. clocks = <&periph_clk>;
  167. clock-names = "periph";
  168. status = "disabled";
  169. };
  170. serial1: serial@620 {
  171. compatible = "brcm,bcm6345-uart";
  172. reg = <0x620 0x1b>;
  173. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  174. clocks = <&periph_clk>;
  175. clock-names = "periph";
  176. status = "disabled";
  177. };
  178. nand_controller: nand-controller@2000 {
  179. #address-cells = <1>;
  180. #size-cells = <0>;
  181. compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.0", "brcm,brcmnand";
  182. reg = <0x2000 0x600>, <0xf0 0x10>;
  183. reg-names = "nand", "nand-int-base";
  184. status = "disabled";
  185. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  186. interrupt-names = "nand";
  187. };
  188. bootlut: bootlut@8000 {
  189. compatible = "brcm,bcm63138-bootlut";
  190. reg = <0x8000 0x50>;
  191. };
  192. reboot {
  193. compatible = "syscon-reboot";
  194. regmap = <&timer>;
  195. offset = <0x34>;
  196. mask = <1>;
  197. };
  198. };
  199. };