ebony.dts 7.5 KB

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