ebony.dts 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. /*
  2. * Device Tree Source for IBM Ebony
  3. *
  4. * Copyright (c) 2006, 2007 IBM Corp.
  5. * Josh Boyer <jwboyer@linux.vnet.ibm.com>, David Gibson <dwg@au1.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 = "ibm,ebony";
  17. compatible = "ibm,ebony";
  18. dcr-parent = <&/cpus/PowerPC,440GP@0>;
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. PowerPC,440GP@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>; /* 32 kB */
  30. d-cache-size = <8000>; /* 32 kB */
  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-440gp", "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-440gp", "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. CPC0: cpc {
  60. compatible = "ibm,cpc-440gp";
  61. dcr-reg = <0b0 003 0e0 010>;
  62. // FIXME: anything else?
  63. };
  64. plb {
  65. compatible = "ibm,plb-440gp", "ibm,plb4";
  66. #address-cells = <2>;
  67. #size-cells = <1>;
  68. ranges;
  69. clock-frequency = <0>; // Filled in by zImage
  70. SDRAM0: memory-controller {
  71. compatible = "ibm,sdram-440gp";
  72. dcr-reg = <010 2>;
  73. // FIXME: anything else?
  74. };
  75. SRAM0: sram {
  76. compatible = "ibm,sram-440gp";
  77. dcr-reg = <020 8 00a 1>;
  78. };
  79. DMA0: dma {
  80. // FIXME: ???
  81. compatible = "ibm,dma-440gp";
  82. dcr-reg = <100 027>;
  83. };
  84. MAL0: mcmal {
  85. compatible = "ibm,mcmal-440gp", "ibm,mcmal";
  86. dcr-reg = <180 62>;
  87. num-tx-chans = <4>;
  88. num-rx-chans = <4>;
  89. interrupt-parent = <&MAL0>;
  90. interrupts = <0 1 2 3 4>;
  91. #interrupt-cells = <1>;
  92. #address-cells = <0>;
  93. #size-cells = <0>;
  94. interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
  95. /*RXEOB*/ 1 &UIC0 b 4
  96. /*SERR*/ 2 &UIC1 0 4
  97. /*TXDE*/ 3 &UIC1 1 4
  98. /*RXDE*/ 4 &UIC1 2 4>;
  99. interrupt-map-mask = <ffffffff>;
  100. };
  101. POB0: opb {
  102. compatible = "ibm,opb-440gp", "ibm,opb";
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. /* Wish there was a nicer way of specifying a full 32-bit
  106. range */
  107. ranges = <00000000 1 00000000 80000000
  108. 80000000 1 80000000 80000000>;
  109. dcr-reg = <090 00b>;
  110. interrupt-parent = <&UIC1>;
  111. interrupts = <7 4>;
  112. clock-frequency = <0>; // Filled in by zImage
  113. EBC0: ebc {
  114. compatible = "ibm,ebc-440gp", "ibm,ebc";
  115. dcr-reg = <012 2>;
  116. #address-cells = <2>;
  117. #size-cells = <1>;
  118. clock-frequency = <0>; // Filled in by zImage
  119. // ranges property is supplied by zImage
  120. // based on firmware's configuration of the
  121. // EBC bridge
  122. interrupts = <5 4>;
  123. interrupt-parent = <&UIC1>;
  124. small-flash@0,80000 {
  125. device_type = "rom";
  126. compatible = "direct-mapped";
  127. probe-type = "JEDEC";
  128. bank-width = <1>;
  129. partitions = <0 80000>;
  130. partition-names = "OpenBIOS";
  131. reg = <0 80000 80000>;
  132. };
  133. ds1743@1,0 {
  134. /* NVRAM & RTC */
  135. compatible = "ds1743";
  136. reg = <1 0 2000>;
  137. };
  138. large-flash@2,0 {
  139. device_type = "rom";
  140. compatible = "direct-mapped";
  141. probe-type = "JEDEC";
  142. bank-width = <1>;
  143. partitions = <0 380000
  144. 380000 80000>;
  145. partition-names = "fs", "firmware";
  146. reg = <2 0 400000>;
  147. };
  148. ir@3,0 {
  149. reg = <3 0 10>;
  150. };
  151. fpga@7,0 {
  152. compatible = "Ebony-FPGA";
  153. reg = <7 0 10>;
  154. virtual-reg = <e8300000>;
  155. };
  156. };
  157. UART0: serial@40000200 {
  158. device_type = "serial";
  159. compatible = "ns16550";
  160. reg = <40000200 8>;
  161. virtual-reg = <e0000200>;
  162. clock-frequency = <A8C000>;
  163. current-speed = <2580>;
  164. interrupt-parent = <&UIC0>;
  165. interrupts = <0 4>;
  166. };
  167. UART1: serial@40000300 {
  168. device_type = "serial";
  169. compatible = "ns16550";
  170. reg = <40000300 8>;
  171. virtual-reg = <e0000300>;
  172. clock-frequency = <A8C000>;
  173. current-speed = <2580>;
  174. interrupt-parent = <&UIC0>;
  175. interrupts = <1 4>;
  176. };
  177. IIC0: i2c@40000400 {
  178. /* FIXME */
  179. device_type = "i2c";
  180. compatible = "ibm,iic-440gp", "ibm,iic";
  181. reg = <40000400 14>;
  182. interrupt-parent = <&UIC0>;
  183. interrupts = <2 4>;
  184. };
  185. IIC1: i2c@40000500 {
  186. /* FIXME */
  187. device_type = "i2c";
  188. compatible = "ibm,iic-440gp", "ibm,iic";
  189. reg = <40000500 14>;
  190. interrupt-parent = <&UIC0>;
  191. interrupts = <3 4>;
  192. };
  193. GPIO0: gpio@40000700 {
  194. /* FIXME */
  195. compatible = "ibm,gpio-440gp";
  196. reg = <40000700 20>;
  197. };
  198. ZMII0: emac-zmii@40000780 {
  199. compatible = "ibm,zmii-440gp", "ibm,zmii";
  200. reg = <40000780 c>;
  201. };
  202. EMAC0: ethernet@40000800 {
  203. linux,network-index = <0>;
  204. device_type = "network";
  205. compatible = "ibm,emac-440gp", "ibm,emac";
  206. interrupt-parent = <&UIC1>;
  207. interrupts = <1c 4 1d 4>;
  208. reg = <40000800 70>;
  209. local-mac-address = [000000000000]; // Filled in by zImage
  210. mal-device = <&MAL0>;
  211. mal-tx-channel = <0 1>;
  212. mal-rx-channel = <0>;
  213. cell-index = <0>;
  214. max-frame-size = <5dc>;
  215. rx-fifo-size = <1000>;
  216. tx-fifo-size = <800>;
  217. phy-mode = "rmii";
  218. phy-map = <00000001>;
  219. zmii-device = <&ZMII0>;
  220. zmii-channel = <0>;
  221. };
  222. EMAC1: ethernet@40000900 {
  223. linux,network-index = <1>;
  224. device_type = "network";
  225. compatible = "ibm,emac-440gp", "ibm,emac";
  226. interrupt-parent = <&UIC1>;
  227. interrupts = <1e 4 1f 4>;
  228. reg = <40000900 70>;
  229. local-mac-address = [000000000000]; // Filled in by zImage
  230. mal-device = <&MAL0>;
  231. mal-tx-channel = <2 3>;
  232. mal-rx-channel = <1>;
  233. cell-index = <1>;
  234. max-frame-size = <5dc>;
  235. rx-fifo-size = <1000>;
  236. tx-fifo-size = <800>;
  237. phy-mode = "rmii";
  238. phy-map = <00000001>;
  239. zmii-device = <&ZMII0>;
  240. zmii-channel = <1>;
  241. };
  242. GPT0: gpt@40000a00 {
  243. /* FIXME */
  244. reg = <40000a00 d4>;
  245. interrupt-parent = <&UIC0>;
  246. interrupts = <12 4 13 4 14 4 15 4 16 4>;
  247. };
  248. };
  249. PCIX0: pci@1234 {
  250. device_type = "pci";
  251. /* FIXME */
  252. reg = <2 0ec00000 8
  253. 2 0ec80000 f0
  254. 2 0ec80100 fc>;
  255. };
  256. };
  257. chosen {
  258. linux,stdout-path = "/plb/opb/serial@40000200";
  259. };
  260. };