ebony.dts 6.6 KB

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