bamboo.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /*
  2. * Device Tree Source for AMCC Bamboo
  3. *
  4. * Copyright (c) 2006, 2007 IBM Corp.
  5. * Josh Boyer <jwboyer@linux.vnet.ibm.com>
  6. *
  7. * FIXME: Draft only!
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without
  11. * any warranty of any kind, whether express or implied.
  12. */
  13. / {
  14. #address-cells = <2>;
  15. #size-cells = <1>;
  16. model = "amcc,bamboo";
  17. compatible = "amcc,bamboo";
  18. dcr-parent = <&/cpus/PowerPC,440EP@0>;
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. PowerPC,440EP@0 {
  23. device_type = "cpu";
  24. reg = <0>;
  25. clock-frequency = <0>; /* Filled in by zImage */
  26. timebase-frequency = <0>; /* Filled in by zImage */
  27. i-cache-line-size = <20>;
  28. d-cache-line-size = <20>;
  29. i-cache-size = <8000>;
  30. d-cache-size = <8000>;
  31. dcr-controller;
  32. dcr-access-method = "native";
  33. };
  34. };
  35. memory {
  36. device_type = "memory";
  37. reg = <0 0 0>; /* Filled in by zImage */
  38. };
  39. UIC0: interrupt-controller0 {
  40. compatible = "ibm,uic-440ep","ibm,uic";
  41. interrupt-controller;
  42. cell-index = <0>;
  43. dcr-reg = <0c0 009>;
  44. #address-cells = <0>;
  45. #size-cells = <0>;
  46. #interrupt-cells = <2>;
  47. };
  48. UIC1: interrupt-controller1 {
  49. compatible = "ibm,uic-440ep","ibm,uic";
  50. interrupt-controller;
  51. cell-index = <1>;
  52. dcr-reg = <0d0 009>;
  53. #address-cells = <0>;
  54. #size-cells = <0>;
  55. #interrupt-cells = <2>;
  56. interrupts = <1e 4 1f 4>; /* cascade */
  57. interrupt-parent = <&UIC0>;
  58. };
  59. SDR0: sdr {
  60. compatible = "ibm,sdr-440ep";
  61. dcr-reg = <00e 002>;
  62. };
  63. CPR0: cpr {
  64. compatible = "ibm,cpr-440ep";
  65. dcr-reg = <00c 002>;
  66. };
  67. plb {
  68. compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
  69. #address-cells = <2>;
  70. #size-cells = <1>;
  71. ranges;
  72. clock-frequency = <0>; /* Filled in by zImage */
  73. SDRAM0: sdram {
  74. compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
  75. dcr-reg = <010 2>;
  76. };
  77. DMA0: dma {
  78. compatible = "ibm,dma-440ep", "ibm,dma-440gp";
  79. dcr-reg = <100 027>;
  80. };
  81. MAL0: mcmal {
  82. compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
  83. dcr-reg = <180 62>;
  84. num-tx-chans = <4>;
  85. num-rx-chans = <2>;
  86. interrupt-parent = <&MAL0>;
  87. interrupts = <0 1 2 3 4>;
  88. #interrupt-cells = <1>;
  89. #address-cells = <0>;
  90. #size-cells = <0>;
  91. interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
  92. /*RXEOB*/ 1 &UIC0 b 4
  93. /*SERR*/ 2 &UIC1 0 4
  94. /*TXDE*/ 3 &UIC1 1 4
  95. /*RXDE*/ 4 &UIC1 2 4>;
  96. };
  97. POB0: opb {
  98. compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
  99. #address-cells = <1>;
  100. #size-cells = <1>;
  101. /* Bamboo is oddball in the 44x world and doesn't use the ERPN
  102. * bits.
  103. */
  104. ranges = <00000000 0 00000000 80000000
  105. 80000000 0 80000000 80000000>;
  106. interrupt-parent = <&UIC1>;
  107. interrupts = <7 4>;
  108. clock-frequency = <0>; /* Filled in by zImage */
  109. EBC0: ebc {
  110. compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
  111. dcr-reg = <012 2>;
  112. #address-cells = <2>;
  113. #size-cells = <1>;
  114. clock-frequency = <0>; /* Filled in by zImage */
  115. interrupts = <5 1>;
  116. interrupt-parent = <&UIC1>;
  117. };
  118. UART0: serial@ef600300 {
  119. device_type = "serial";
  120. compatible = "ns16550";
  121. reg = <ef600300 8>;
  122. virtual-reg = <ef600300>;
  123. clock-frequency = <0>; /* Filled in by zImage */
  124. current-speed = <1c200>;
  125. interrupt-parent = <&UIC0>;
  126. interrupts = <0 4>;
  127. };
  128. UART1: serial@ef600400 {
  129. device_type = "serial";
  130. compatible = "ns16550";
  131. reg = <ef600400 8>;
  132. virtual-reg = <ef600400>;
  133. clock-frequency = <0>;
  134. current-speed = <0>;
  135. interrupt-parent = <&UIC0>;
  136. interrupts = <1 4>;
  137. };
  138. UART2: serial@ef600500 {
  139. device_type = "serial";
  140. compatible = "ns16550";
  141. reg = <ef600500 8>;
  142. virtual-reg = <ef600500>;
  143. clock-frequency = <0>;
  144. current-speed = <0>;
  145. interrupt-parent = <&UIC0>;
  146. interrupts = <3 4>;
  147. };
  148. UART3: serial@ef600600 {
  149. device_type = "serial";
  150. compatible = "ns16550";
  151. reg = <ef600600 8>;
  152. virtual-reg = <ef600600>;
  153. clock-frequency = <0>;
  154. current-speed = <0>;
  155. interrupt-parent = <&UIC0>;
  156. interrupts = <4 4>;
  157. };
  158. IIC0: i2c@ef600700 {
  159. device_type = "i2c";
  160. compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
  161. reg = <ef600700 14>;
  162. interrupt-parent = <&UIC0>;
  163. interrupts = <2 4>;
  164. };
  165. IIC1: i2c@ef600800 {
  166. device_type = "i2c";
  167. compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
  168. reg = <ef600800 14>;
  169. interrupt-parent = <&UIC0>;
  170. interrupts = <7 4>;
  171. };
  172. ZMII0: emac-zmii@ef600d00 {
  173. device_type = "zmii-interface";
  174. compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
  175. reg = <ef600d00 c>;
  176. };
  177. EMAC0: ethernet@ef600e00 {
  178. linux,network-index = <0>;
  179. device_type = "network";
  180. compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
  181. interrupt-parent = <&UIC1>;
  182. interrupts = <1c 4 1d 4>;
  183. reg = <ef600e00 70>;
  184. local-mac-address = [000000000000];
  185. mal-device = <&MAL0>;
  186. mal-tx-channel = <0 1>;
  187. mal-rx-channel = <0>;
  188. cell-index = <0>;
  189. max-frame-size = <5dc>;
  190. rx-fifo-size = <1000>;
  191. tx-fifo-size = <800>;
  192. phy-mode = "rmii";
  193. phy-map = <00000000>;
  194. zmii-device = <&ZMII0>;
  195. zmii-channel = <0>;
  196. };
  197. EMAC1: ethernet@ef600f00 {
  198. linux,network-index = <1>;
  199. device_type = "network";
  200. compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
  201. interrupt-parent = <&UIC1>;
  202. interrupts = <1e 4 1f 4>;
  203. reg = <ef600f00 70>;
  204. local-mac-address = [000000000000];
  205. mal-device = <&MAL0>;
  206. mal-tx-channel = <2 3>;
  207. mal-rx-channel = <1>;
  208. cell-index = <1>;
  209. max-frame-size = <5dc>;
  210. rx-fifo-size = <1000>;
  211. tx-fifo-size = <800>;
  212. phy-mode = "rmii";
  213. phy-map = <00000000>;
  214. zmii-device = <&ZMII0>;
  215. zmii-channel = <1>;
  216. };
  217. usb@ef601000 {
  218. compatible = "ohci-be";
  219. reg = <ef601000 80>;
  220. interrupts = <8 1 9 1>;
  221. interrupt-parent = < &UIC1 >;
  222. };
  223. };
  224. PCI0: pci@ec000000 {
  225. device_type = "pci";
  226. #interrupt-cells = <1>;
  227. #size-cells = <2>;
  228. #address-cells = <3>;
  229. compatible = "ibm,plb440ep-pci", "ibm,plb-pci";
  230. primary;
  231. reg = <0 eec00000 8 /* Config space access */
  232. 0 eed00000 4 /* IACK */
  233. 0 eed00000 4 /* Special cycle */
  234. 0 ef400000 40>; /* Internal registers */
  235. /* Outbound ranges, one memory and one IO,
  236. * later cannot be changed. Chip supports a second
  237. * IO range but we don't use it for now
  238. */
  239. ranges = <02000000 0 a0000000 0 a0000000 0 20000000
  240. 01000000 0 00000000 0 e8000000 0 00010000>;
  241. /* Inbound 2GB range starting at 0 */
  242. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  243. /* Bamboo has all 4 IRQ pins tied together per slot */
  244. interrupt-map-mask = <f800 0 0 0>;
  245. interrupt-map = <
  246. /* IDSEL 1 */
  247. 0800 0 0 0 &UIC0 1c 8
  248. /* IDSEL 2 */
  249. 1000 0 0 0 &UIC0 1b 8
  250. /* IDSEL 3 */
  251. 1800 0 0 0 &UIC0 1a 8
  252. /* IDSEL 4 */
  253. 2000 0 0 0 &UIC0 19 8
  254. >;
  255. };
  256. };
  257. chosen {
  258. linux,stdout-path = "/plb/opb/serial@ef600300";
  259. };
  260. };