c2k.dts 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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. device_type = "ethernet-phy";
  69. interrupts = <76>; /* GPP 12 */
  70. interrupt-parent = <&PIC>;
  71. reg = <0>;
  72. };
  73. PHY1: ethernet-phy@1 {
  74. device_type = "ethernet-phy";
  75. interrupts = <76>; /* GPP 12 */
  76. interrupt-parent = <&PIC>;
  77. reg = <1>;
  78. };
  79. PHY2: ethernet-phy@2 {
  80. device_type = "ethernet-phy";
  81. interrupts = <76>; /* GPP 12 */
  82. interrupt-parent = <&PIC>;
  83. reg = <2>;
  84. };
  85. };
  86. ethernet-group@2000 {
  87. #address-cells = <1>;
  88. #size-cells = <0>;
  89. compatible = "marvell,mv64360-eth-group";
  90. reg = <0x2000 0x2000>;
  91. ethernet@0 {
  92. device_type = "network";
  93. compatible = "marvell,mv64360-eth";
  94. reg = <0>;
  95. interrupts = <32>;
  96. interrupt-parent = <&PIC>;
  97. phy = <&PHY0>;
  98. local-mac-address = [ 00 00 00 00 00 00 ];
  99. };
  100. ethernet@1 {
  101. device_type = "network";
  102. compatible = "marvell,mv64360-eth";
  103. reg = <1>;
  104. interrupts = <33>;
  105. interrupt-parent = <&PIC>;
  106. phy = <&PHY1>;
  107. local-mac-address = [ 00 00 00 00 00 00 ];
  108. };
  109. ethernet@2 {
  110. device_type = "network";
  111. compatible = "marvell,mv64360-eth";
  112. reg = <2>;
  113. interrupts = <34>;
  114. interrupt-parent = <&PIC>;
  115. phy = <&PHY2>;
  116. local-mac-address = [ 00 00 00 00 00 00 ];
  117. };
  118. };
  119. SDMA0: sdma@4000 {
  120. compatible = "marvell,mv64360-sdma";
  121. reg = <0x4000 0xc18>;
  122. virtual-reg = <0xd8004000>;
  123. interrupt-base = <0>;
  124. interrupts = <36>;
  125. interrupt-parent = <&PIC>;
  126. };
  127. SDMA1: sdma@6000 {
  128. compatible = "marvell,mv64360-sdma";
  129. reg = <0x6000 0xc18>;
  130. virtual-reg = <0xd8006000>;
  131. interrupt-base = <0>;
  132. interrupts = <38>;
  133. interrupt-parent = <&PIC>;
  134. };
  135. BRG0: brg@b200 {
  136. compatible = "marvell,mv64360-brg";
  137. reg = <0xb200 0x8>;
  138. clock-src = <8>;
  139. clock-frequency = <133333333>;
  140. current-speed = <115200>;
  141. };
  142. BRG1: brg@b208 {
  143. compatible = "marvell,mv64360-brg";
  144. reg = <0xb208 0x8>;
  145. clock-src = <8>;
  146. clock-frequency = <133333333>;
  147. current-speed = <115200>;
  148. };
  149. CUNIT: cunit@f200 {
  150. reg = <0xf200 0x200>;
  151. };
  152. MPSCROUTING: mpscrouting@b400 {
  153. reg = <0xb400 0xc>;
  154. };
  155. MPSCINTR: mpscintr@b800 {
  156. reg = <0xb800 0x100>;
  157. virtual-reg = <0xd800b800>;
  158. };
  159. MPSC0: mpsc@8000 {
  160. device_type = "serial";
  161. compatible = "marvell,mv64360-mpsc";
  162. reg = <0x8000 0x38>;
  163. virtual-reg = <0xd8008000>;
  164. sdma = <&SDMA0>;
  165. brg = <&BRG0>;
  166. cunit = <&CUNIT>;
  167. mpscrouting = <&MPSCROUTING>;
  168. mpscintr = <&MPSCINTR>;
  169. cell-index = <0>;
  170. interrupts = <40>;
  171. interrupt-parent = <&PIC>;
  172. };
  173. MPSC1: mpsc@9000 {
  174. device_type = "serial";
  175. compatible = "marvell,mv64360-mpsc";
  176. reg = <0x9000 0x38>;
  177. virtual-reg = <0xd8009000>;
  178. sdma = <&SDMA1>;
  179. brg = <&BRG1>;
  180. cunit = <&CUNIT>;
  181. mpscrouting = <&MPSCROUTING>;
  182. mpscintr = <&MPSCINTR>;
  183. cell-index = <1>;
  184. interrupts = <42>;
  185. interrupt-parent = <&PIC>;
  186. };
  187. wdt@b410 { /* watchdog timer */
  188. compatible = "marvell,mv64360-wdt";
  189. reg = <0xb410 0x8>;
  190. };
  191. i2c@c000 {
  192. compatible = "marvell,mv64360-i2c";
  193. reg = <0xc000 0x20>;
  194. virtual-reg = <0xd800c000>;
  195. interrupts = <37>;
  196. interrupt-parent = <&PIC>;
  197. };
  198. PIC: pic {
  199. #interrupt-cells = <1>;
  200. #address-cells = <0>;
  201. compatible = "marvell,mv64360-pic";
  202. reg = <0x0000 0x88>;
  203. interrupt-controller;
  204. };
  205. mpp@f000 {
  206. compatible = "marvell,mv64360-mpp";
  207. reg = <0xf000 0x10>;
  208. };
  209. gpp@f100 {
  210. compatible = "marvell,mv64360-gpp";
  211. reg = <0xf100 0x20>;
  212. };
  213. PCI0: pci@80000000 {
  214. #address-cells = <3>;
  215. #size-cells = <2>;
  216. #interrupt-cells = <1>;
  217. device_type = "pci";
  218. compatible = "marvell,mv64360-pci";
  219. reg = <0x0cf8 0x8>;
  220. ranges = <0x01000000 0x0 0x00000000 0xd4000000 0x0 0x01000000
  221. 0x02000000 0x0 0x80000000 0x80000000 0x0 0x08000000>;
  222. bus-range = <0 255>;
  223. clock-frequency = <66000000>;
  224. interrupt-pci-iack = <0x0c34>;
  225. interrupt-parent = <&PIC>;
  226. interrupt-map-mask = <0x0000 0x0 0x0 0x7>;
  227. interrupt-map = <
  228. /* Only one interrupt line for PMC0 slot (INTA) */
  229. 0x0000 0 0 1 &PIC 88
  230. >;
  231. };
  232. PCI1: pci@a0000000 {
  233. #address-cells = <3>;
  234. #size-cells = <2>;
  235. #interrupt-cells = <1>;
  236. device_type = "pci";
  237. compatible = "marvell,mv64360-pci";
  238. reg = <0x0c78 0x8>;
  239. ranges = <0x01000000 0x0 0x00000000 0xd0000000 0x0 0x01000000
  240. 0x02000000 0x0 0x80000000 0xa0000000 0x0 0x08000000>;
  241. bus-range = <0 255>;
  242. clock-frequency = <66000000>;
  243. interrupt-pci-iack = <0x0cb4>;
  244. interrupt-parent = <&PIC>;
  245. interrupt-map-mask = <0xf800 0x00 0x00 0x7>;
  246. interrupt-map = <
  247. /* IDSEL 0x01: PMC1 ? */
  248. 0x0800 0 0 1 &PIC 88
  249. /* IDSEL 0x02: cPCI bridge */
  250. 0x1000 0 0 1 &PIC 88
  251. /* IDSEL 0x03: USB controller */
  252. 0x1800 0 0 1 &PIC 91
  253. /* IDSEL 0x04: SATA controller */
  254. 0x2000 0 0 1 &PIC 95
  255. >;
  256. };
  257. cpu-error@0070 {
  258. compatible = "marvell,mv64360-cpu-error";
  259. reg = <0x0070 0x10 0x0128 0x28>;
  260. interrupts = <3>;
  261. interrupt-parent = <&PIC>;
  262. };
  263. sram-ctrl@0380 {
  264. compatible = "marvell,mv64360-sram-ctrl";
  265. reg = <0x0380 0x80>;
  266. interrupts = <13>;
  267. interrupt-parent = <&PIC>;
  268. };
  269. pci-error@1d40 {
  270. compatible = "marvell,mv64360-pci-error";
  271. reg = <0x1d40 0x40 0x0c28 0x4>;
  272. interrupts = <12>;
  273. interrupt-parent = <&PIC>;
  274. };
  275. pci-error@1dc0 {
  276. compatible = "marvell,mv64360-pci-error";
  277. reg = <0x1dc0 0x40 0x0ca8 0x4>;
  278. interrupts = <16>;
  279. interrupt-parent = <&PIC>;
  280. };
  281. mem-ctrl@1400 {
  282. compatible = "marvell,mv64360-mem-ctrl";
  283. reg = <0x1400 0x60>;
  284. interrupts = <17>;
  285. interrupt-parent = <&PIC>;
  286. };
  287. /* Devices attached to the device controller */
  288. devicebus@045c {
  289. #address-cells = <2>;
  290. #size-cells = <1>;
  291. compatible = "marvell,mv64306-devctrl";
  292. reg = <0x45C 0x88>;
  293. interrupts = <1>;
  294. interrupt-parent = <&PIC>;
  295. ranges = <0 0 0xd8100000 0x10000
  296. 2 0 0xd8110000 0x10000
  297. 4 0 0xf8000000 0x8000000>;
  298. fpga@0,0 {
  299. compatible = "sbs,fpga-c2k";
  300. reg = <0 0 0x10000>;
  301. };
  302. fpga_usart@2,0 {
  303. compatible = "sbs,fpga_usart-c2k";
  304. reg = <2 0 0x10000>;
  305. };
  306. nor_flash@4,0 {
  307. compatible = "cfi-flash";
  308. reg = <4 0 0x8000000>; /* 128MB */
  309. bank-width = <4>;
  310. device-width = <1>;
  311. #address-cells = <1>;
  312. #size-cells = <1>;
  313. partition@0 {
  314. label = "boot";
  315. reg = <0x00000000 0x00080000>;
  316. };
  317. partition@40000 {
  318. label = "kernel";
  319. reg = <0x00080000 0x00400000>;
  320. };
  321. partition@440000 {
  322. label = "initrd";
  323. reg = <0x00480000 0x00B80000>;
  324. };
  325. partition@1000000 {
  326. label = "rootfs";
  327. reg = <0x01000000 0x06800000>;
  328. };
  329. partition@7800000 {
  330. label = "recovery";
  331. reg = <0x07800000 0x00800000>;
  332. read-only;
  333. };
  334. };
  335. };
  336. };
  337. chosen {
  338. linux,stdout-path = &MPSC0;
  339. };
  340. };