bluestone.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. /*
  2. * Device Tree for Bluestone (APM821xx) board.
  3. *
  4. * Copyright (c) 2010, Applied Micro Circuits Corporation
  5. * Author: Tirumala R Marri <tmarri@apm.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. *
  22. */
  23. /dts-v1/;
  24. / {
  25. #address-cells = <2>;
  26. #size-cells = <1>;
  27. model = "apm,bluestone";
  28. compatible = "apm,bluestone";
  29. dcr-parent = <&{/cpus/cpu@0}>;
  30. aliases {
  31. ethernet0 = &EMAC0;
  32. serial0 = &UART0;
  33. //serial1 = &UART1; --gcl missing UART1 label
  34. };
  35. cpus {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. cpu@0 {
  39. device_type = "cpu";
  40. model = "PowerPC,apm821xx";
  41. reg = <0x00000000>;
  42. clock-frequency = <0>; /* Filled in by U-Boot */
  43. timebase-frequency = <0>; /* Filled in by U-Boot */
  44. i-cache-line-size = <32>;
  45. d-cache-line-size = <32>;
  46. i-cache-size = <32768>;
  47. d-cache-size = <32768>;
  48. dcr-controller;
  49. dcr-access-method = "native";
  50. //next-level-cache = <&L2C0>; --gcl missing L2C0 label
  51. };
  52. };
  53. memory {
  54. device_type = "memory";
  55. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  56. };
  57. UIC0: interrupt-controller0 {
  58. compatible = "ibm,uic";
  59. interrupt-controller;
  60. cell-index = <0>;
  61. dcr-reg = <0x0c0 0x009>;
  62. #address-cells = <0>;
  63. #size-cells = <0>;
  64. #interrupt-cells = <2>;
  65. };
  66. UIC1: interrupt-controller1 {
  67. compatible = "ibm,uic";
  68. interrupt-controller;
  69. cell-index = <1>;
  70. dcr-reg = <0x0d0 0x009>;
  71. #address-cells = <0>;
  72. #size-cells = <0>;
  73. #interrupt-cells = <2>;
  74. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  75. interrupt-parent = <&UIC0>;
  76. };
  77. UIC2: interrupt-controller2 {
  78. compatible = "ibm,uic";
  79. interrupt-controller;
  80. cell-index = <2>;
  81. dcr-reg = <0x0e0 0x009>;
  82. #address-cells = <0>;
  83. #size-cells = <0>;
  84. #interrupt-cells = <2>;
  85. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  86. interrupt-parent = <&UIC0>;
  87. };
  88. UIC3: interrupt-controller3 {
  89. compatible = "ibm,uic";
  90. interrupt-controller;
  91. cell-index = <3>;
  92. dcr-reg = <0x0f0 0x009>;
  93. #address-cells = <0>;
  94. #size-cells = <0>;
  95. #interrupt-cells = <2>;
  96. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  97. interrupt-parent = <&UIC0>;
  98. };
  99. SDR0: sdr {
  100. compatible = "ibm,sdr-apm821xx";
  101. dcr-reg = <0x00e 0x002>;
  102. };
  103. CPR0: cpr {
  104. compatible = "ibm,cpr-apm821xx";
  105. dcr-reg = <0x00c 0x002>;
  106. };
  107. plb {
  108. compatible = "ibm,plb4";
  109. #address-cells = <2>;
  110. #size-cells = <1>;
  111. ranges;
  112. clock-frequency = <0>; /* Filled in by U-Boot */
  113. SDRAM0: sdram {
  114. compatible = "ibm,sdram-apm821xx";
  115. dcr-reg = <0x010 0x002>;
  116. };
  117. MAL0: mcmal {
  118. compatible = "ibm,mcmal2";
  119. descriptor-memory = "ocm";
  120. dcr-reg = <0x180 0x062>;
  121. num-tx-chans = <1>;
  122. num-rx-chans = <1>;
  123. #address-cells = <0>;
  124. #size-cells = <0>;
  125. interrupt-parent = <&UIC2>;
  126. interrupts = < /*TXEOB*/ 0x6 0x4
  127. /*RXEOB*/ 0x7 0x4
  128. /*SERR*/ 0x3 0x4
  129. /*TXDE*/ 0x4 0x4
  130. /*RXDE*/ 0x5 0x4>;
  131. };
  132. POB0: opb {
  133. compatible = "ibm,opb";
  134. #address-cells = <1>;
  135. #size-cells = <1>;
  136. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  137. clock-frequency = <0>; /* Filled in by U-Boot */
  138. EBC0: ebc {
  139. compatible = "ibm,ebc";
  140. dcr-reg = <0x012 0x002>;
  141. #address-cells = <2>;
  142. #size-cells = <1>;
  143. clock-frequency = <0>; /* Filled in by U-Boot */
  144. /* ranges property is supplied by U-Boot */
  145. ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
  146. interrupts = <0x6 0x4>;
  147. interrupt-parent = <&UIC1>;
  148. nor_flash@0,0 {
  149. compatible = "amd,s29gl512n", "cfi-flash";
  150. bank-width = <2>;
  151. reg = <0x00000000 0x00000000 0x00400000>;
  152. #address-cells = <1>;
  153. #size-cells = <1>;
  154. partition@0 {
  155. label = "kernel";
  156. reg = <0x00000000 0x00180000>;
  157. };
  158. partition@180000 {
  159. label = "env";
  160. reg = <0x00180000 0x00020000>;
  161. };
  162. partition@1a0000 {
  163. label = "u-boot";
  164. reg = <0x001a0000 0x00060000>;
  165. };
  166. };
  167. };
  168. UART0: serial@ef600300 {
  169. device_type = "serial";
  170. compatible = "ns16550";
  171. reg = <0xef600300 0x00000008>;
  172. virtual-reg = <0xef600300>;
  173. clock-frequency = <0>; /* Filled in by U-Boot */
  174. current-speed = <0>; /* Filled in by U-Boot */
  175. interrupt-parent = <&UIC1>;
  176. interrupts = <0x1 0x4>;
  177. };
  178. IIC0: i2c@ef600700 {
  179. compatible = "ibm,iic";
  180. reg = <0xef600700 0x00000014>;
  181. interrupt-parent = <&UIC0>;
  182. interrupts = <0x2 0x4>;
  183. };
  184. IIC1: i2c@ef600800 {
  185. compatible = "ibm,iic";
  186. reg = <0xef600800 0x00000014>;
  187. interrupt-parent = <&UIC0>;
  188. interrupts = <0x3 0x4>;
  189. };
  190. RGMII0: emac-rgmii@ef601500 {
  191. compatible = "ibm,rgmii";
  192. reg = <0xef601500 0x00000008>;
  193. has-mdio;
  194. };
  195. TAH0: emac-tah@ef601350 {
  196. compatible = "ibm,tah";
  197. reg = <0xef601350 0x00000030>;
  198. };
  199. EMAC0: ethernet@ef600c00 {
  200. device_type = "network";
  201. compatible = "ibm,emac4sync";
  202. interrupt-parent = <&EMAC0>;
  203. interrupts = <0x0 0x1>;
  204. #interrupt-cells = <1>;
  205. #address-cells = <0>;
  206. #size-cells = <0>;
  207. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  208. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  209. reg = <0xef600c00 0x000000c4>;
  210. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  211. mal-device = <&MAL0>;
  212. mal-tx-channel = <0>;
  213. mal-rx-channel = <0>;
  214. cell-index = <0>;
  215. max-frame-size = <9000>;
  216. rx-fifo-size = <16384>;
  217. tx-fifo-size = <2048>;
  218. phy-mode = "rgmii";
  219. phy-map = <0x00000000>;
  220. rgmii-device = <&RGMII0>;
  221. rgmii-channel = <0>;
  222. tah-device = <&TAH0>;
  223. tah-channel = <0>;
  224. has-inverted-stacr-oc;
  225. has-new-stacr-staopc;
  226. };
  227. };
  228. };
  229. };