c2k.dts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. /* Device Tree Source for GEFanuc C2K
  2. *
  3. * Author: Remi Machet <rmachet@slac.stanford.edu>
  4. *
  5. * Originated from prpmc2800.dts
  6. *
  7. * 2008 (c) Stanford University
  8. * 2007 (c) MontaVista, Software, Inc.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License version 2 as published
  12. * by the Free Software Foundation.
  13. */
  14. /dts-v1/;
  15. / {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. model = "C2K";
  19. compatible = "GEFanuc,C2K";
  20. coherency-off;
  21. aliases {
  22. pci0 = &PCI0;
  23. pci1 = &PCI1;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. cpu@0 {
  29. device_type = "cpu";
  30. compatible = "PowerPC,7447";
  31. reg = <0>;
  32. clock-frequency = <996000000>; /* 996 MHz */
  33. bus-frequency = <166666667>; /* 166.6666 MHz */
  34. timebase-frequency = <41666667>; /* 166.6666/4 MHz */
  35. i-cache-line-size = <32>;
  36. d-cache-line-size = <32>;
  37. i-cache-size = <32768>;
  38. d-cache-size = <32768>;
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x00000000 0x40000000>; /* 1GB */
  44. };
  45. system-controller@d8000000 { /* Marvell Discovery */
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. model = "mv64460";
  49. compatible = "marvell,mv64360";
  50. clock-frequency = <166666667>; /* 166.66... MHz */
  51. reg = <0xd8000000 0x00010000>;
  52. virtual-reg = <0xd8000000>;
  53. ranges = <0xd4000000 0xd4000000 0x01000000 /* PCI 0 I/O Space */
  54. 0x80000000 0x80000000 0x08000000 /* PCI 0 MEM Space */
  55. 0xd0000000 0xd0000000 0x01000000 /* PCI 1 I/O Space */
  56. 0xa0000000 0xa0000000 0x08000000 /* PCI 1 MEM Space */
  57. 0xd8100000 0xd8100000 0x00010000 /* FPGA */
  58. 0xd8110000 0xd8110000 0x00010000 /* FPGA USARTs */
  59. 0xf8000000 0xf8000000 0x08000000 /* User FLASH */
  60. 0x00000000 0xd8000000 0x00010000 /* Bridge's regs */
  61. 0xd8140000 0xd8140000 0x00040000>; /* Integrated SRAM */
  62. mdio@2000 {
  63. #address-cells = <1>;
  64. #size-cells = <0>;
  65. compatible = "marvell,mv64360-mdio";
  66. reg = <0x2000 4>;
  67. PHY0: ethernet-phy@0 {
  68. interrupts = <76>; /* GPP 12 */
  69. interrupt-parent = <&PIC>;
  70. reg = <0>;
  71. };
  72. PHY1: ethernet-phy@1 {
  73. interrupts = <76>; /* GPP 12 */
  74. interrupt-parent = <&PIC>;
  75. reg = <1>;
  76. };
  77. PHY2: ethernet-phy@2 {
  78. interrupts = <76>; /* GPP 12 */
  79. interrupt-parent = <&PIC>;
  80. reg = <2>;
  81. };
  82. };
  83. ethernet-group@2000 {
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. compatible = "marvell,mv64360-eth-group";
  87. reg = <0x2000 0x2000>;
  88. ethernet@0 {
  89. device_type = "network";
  90. compatible = "marvell,mv64360-eth";
  91. reg = <0>;
  92. interrupts = <32>;
  93. interrupt-parent = <&PIC>;
  94. phy = <&PHY0>;
  95. local-mac-address = [ 00 00 00 00 00 00 ];
  96. };
  97. ethernet@1 {
  98. device_type = "network";
  99. compatible = "marvell,mv64360-eth";
  100. reg = <1>;
  101. interrupts = <33>;
  102. interrupt-parent = <&PIC>;
  103. phy = <&PHY1>;
  104. local-mac-address = [ 00 00 00 00 00 00 ];
  105. };
  106. ethernet@2 {
  107. device_type = "network";
  108. compatible = "marvell,mv64360-eth";
  109. reg = <2>;
  110. interrupts = <34>;
  111. interrupt-parent = <&PIC>;
  112. phy = <&PHY2>;
  113. local-mac-address = [ 00 00 00 00 00 00 ];
  114. };
  115. };
  116. SDMA0: sdma@4000 {
  117. compatible = "marvell,mv64360-sdma";
  118. reg = <0x4000 0xc18>;
  119. virtual-reg = <0xd8004000>;
  120. interrupt-base = <0>;
  121. interrupts = <36>;
  122. interrupt-parent = <&PIC>;
  123. };
  124. SDMA1: sdma@6000 {
  125. compatible = "marvell,mv64360-sdma";
  126. reg = <0x6000 0xc18>;
  127. virtual-reg = <0xd8006000>;
  128. interrupt-base = <0>;
  129. interrupts = <38>;
  130. interrupt-parent = <&PIC>;
  131. };
  132. BRG0: brg@b200 {
  133. compatible = "marvell,mv64360-brg";
  134. reg = <0xb200 0x8>;
  135. clock-src = <8>;
  136. clock-frequency = <133333333>;
  137. current-speed = <115200>;
  138. };
  139. BRG1: brg@b208 {
  140. compatible = "marvell,mv64360-brg";
  141. reg = <0xb208 0x8>;
  142. clock-src = <8>;
  143. clock-frequency = <133333333>;
  144. current-speed = <115200>;
  145. };
  146. CUNIT: cunit@f200 {
  147. reg = <0xf200 0x200>;
  148. };
  149. MPSCROUTING: mpscrouting@b400 {
  150. reg = <0xb400 0xc>;
  151. };
  152. MPSCINTR: mpscintr@b800 {
  153. reg = <0xb800 0x100>;
  154. virtual-reg = <0xd800b800>;
  155. };
  156. MPSC0: mpsc@8000 {
  157. compatible = "marvell,mv64360-mpsc";
  158. reg = <0x8000 0x38>;
  159. virtual-reg = <0xd8008000>;
  160. sdma = <&SDMA0>;
  161. brg = <&BRG0>;
  162. cunit = <&CUNIT>;
  163. mpscrouting = <&MPSCROUTING>;
  164. mpscintr = <&MPSCINTR>;
  165. cell-index = <0>;
  166. interrupts = <40>;
  167. interrupt-parent = <&PIC>;
  168. };
  169. MPSC1: mpsc@9000 {
  170. compatible = "marvell,mv64360-mpsc";
  171. reg = <0x9000 0x38>;
  172. virtual-reg = <0xd8009000>;
  173. sdma = <&SDMA1>;
  174. brg = <&BRG1>;
  175. cunit = <&CUNIT>;
  176. mpscrouting = <&MPSCROUTING>;
  177. mpscintr = <&MPSCINTR>;
  178. cell-index = <1>;
  179. interrupts = <42>;
  180. interrupt-parent = <&PIC>;
  181. };
  182. wdt@b410 { /* watchdog timer */
  183. compatible = "marvell,mv64360-wdt";
  184. reg = <0xb410 0x8>;
  185. };
  186. i2c@c000 {
  187. compatible = "marvell,mv64360-i2c";
  188. reg = <0xc000 0x20>;
  189. virtual-reg = <0xd800c000>;
  190. interrupts = <37>;
  191. interrupt-parent = <&PIC>;
  192. };
  193. PIC: pic {
  194. #interrupt-cells = <1>;
  195. #address-cells = <0>;
  196. compatible = "marvell,mv64360-pic";
  197. reg = <0x0000 0x88>;
  198. interrupt-controller;
  199. };
  200. mpp@f000 {
  201. compatible = "marvell,mv64360-mpp";
  202. reg = <0xf000 0x10>;
  203. };
  204. gpp@f100 {
  205. compatible = "marvell,mv64360-gpp";
  206. reg = <0xf100 0x20>;
  207. };
  208. PCI0: pci@80000000 {
  209. #address-cells = <3>;
  210. #size-cells = <2>;
  211. #interrupt-cells = <1>;
  212. device_type = "pci";
  213. compatible = "marvell,mv64360-pci";
  214. reg = <0x0cf8 0x8>;
  215. ranges = <0x01000000 0x0 0x00000000 0xd4000000 0x0 0x01000000
  216. 0x02000000 0x0 0x80000000 0x80000000 0x0 0x08000000>;
  217. bus-range = <0 255>;
  218. clock-frequency = <66000000>;
  219. interrupt-pci-iack = <0x0c34>;
  220. interrupt-parent = <&PIC>;
  221. interrupt-map-mask = <0x0000 0x0 0x0 0x7>;
  222. interrupt-map = <
  223. /* Only one interrupt line for PMC0 slot (INTA) */
  224. 0x0000 0 0 1 &PIC 88
  225. >;
  226. };
  227. PCI1: pci@a0000000 {
  228. #address-cells = <3>;
  229. #size-cells = <2>;
  230. #interrupt-cells = <1>;
  231. device_type = "pci";
  232. compatible = "marvell,mv64360-pci";
  233. reg = <0x0c78 0x8>;
  234. ranges = <0x01000000 0x0 0x00000000 0xd0000000 0x0 0x01000000
  235. 0x02000000 0x0 0x80000000 0xa0000000 0x0 0x08000000>;
  236. bus-range = <0 255>;
  237. clock-frequency = <66000000>;
  238. interrupt-pci-iack = <0x0cb4>;
  239. interrupt-parent = <&PIC>;
  240. interrupt-map-mask = <0xf800 0x00 0x00 0x7>;
  241. interrupt-map = <
  242. /* IDSEL 0x01: PMC1 ? */
  243. 0x0800 0 0 1 &PIC 88
  244. /* IDSEL 0x02: cPCI bridge */
  245. 0x1000 0 0 1 &PIC 88
  246. /* IDSEL 0x03: USB controller */
  247. 0x1800 0 0 1 &PIC 91
  248. /* IDSEL 0x04: SATA controller */
  249. 0x2000 0 0 1 &PIC 95
  250. >;
  251. };
  252. cpu-error@0070 {
  253. compatible = "marvell,mv64360-cpu-error";
  254. reg = <0x0070 0x10 0x0128 0x28>;
  255. interrupts = <3>;
  256. interrupt-parent = <&PIC>;
  257. };
  258. sram-ctrl@0380 {
  259. compatible = "marvell,mv64360-sram-ctrl";
  260. reg = <0x0380 0x80>;
  261. interrupts = <13>;
  262. interrupt-parent = <&PIC>;
  263. };
  264. pci-error@1d40 {
  265. compatible = "marvell,mv64360-pci-error";
  266. reg = <0x1d40 0x40 0x0c28 0x4>;
  267. interrupts = <12>;
  268. interrupt-parent = <&PIC>;
  269. };
  270. pci-error@1dc0 {
  271. compatible = "marvell,mv64360-pci-error";
  272. reg = <0x1dc0 0x40 0x0ca8 0x4>;
  273. interrupts = <16>;
  274. interrupt-parent = <&PIC>;
  275. };
  276. mem-ctrl@1400 {
  277. compatible = "marvell,mv64360-mem-ctrl";
  278. reg = <0x1400 0x60>;
  279. interrupts = <17>;
  280. interrupt-parent = <&PIC>;
  281. };
  282. /* Devices attached to the device controller */
  283. devicebus@045c {
  284. #address-cells = <2>;
  285. #size-cells = <1>;
  286. compatible = "marvell,mv64306-devctrl";
  287. reg = <0x45C 0x88>;
  288. interrupts = <1>;
  289. interrupt-parent = <&PIC>;
  290. ranges = <0 0 0xd8100000 0x10000
  291. 2 0 0xd8110000 0x10000
  292. 4 0 0xf8000000 0x8000000>;
  293. fpga@0,0 {
  294. compatible = "sbs,fpga-c2k";
  295. reg = <0 0 0x10000>;
  296. };
  297. fpga_usart@2,0 {
  298. compatible = "sbs,fpga_usart-c2k";
  299. reg = <2 0 0x10000>;
  300. };
  301. nor_flash@4,0 {
  302. compatible = "cfi-flash";
  303. reg = <4 0 0x8000000>; /* 128MB */
  304. bank-width = <4>;
  305. device-width = <1>;
  306. #address-cells = <1>;
  307. #size-cells = <1>;
  308. partition@0 {
  309. label = "boot";
  310. reg = <0x00000000 0x00080000>;
  311. };
  312. partition@40000 {
  313. label = "kernel";
  314. reg = <0x00080000 0x00400000>;
  315. };
  316. partition@440000 {
  317. label = "initrd";
  318. reg = <0x00480000 0x00B80000>;
  319. };
  320. partition@1000000 {
  321. label = "rootfs";
  322. reg = <0x01000000 0x06800000>;
  323. };
  324. partition@7800000 {
  325. label = "recovery";
  326. reg = <0x07800000 0x00800000>;
  327. read-only;
  328. };
  329. };
  330. };
  331. };
  332. chosen {
  333. linux,stdout-path = &MPSC0;
  334. };
  335. };