ebony.dts 7.5 KB

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