socrates.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. /*
  2. * Device Tree Source for the Socrates board (MPC8544).
  3. *
  4. * Copyright (c) 2008 Emcraft Systems.
  5. * Sergei Poselenov, <sposelenov@emcraft.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. /dts-v1/;
  13. / {
  14. model = "abb,socrates";
  15. compatible = "abb,socrates";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. aliases {
  19. ethernet0 = &enet0;
  20. ethernet1 = &enet1;
  21. serial0 = &serial0;
  22. serial1 = &serial1;
  23. pci0 = &pci0;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. PowerPC,8544@0 {
  29. device_type = "cpu";
  30. reg = <0>;
  31. d-cache-line-size = <32>;
  32. i-cache-line-size = <32>;
  33. d-cache-size = <0x8000>; // L1, 32K
  34. i-cache-size = <0x8000>; // L1, 32K
  35. timebase-frequency = <0>;
  36. bus-frequency = <0>;
  37. clock-frequency = <0>;
  38. next-level-cache = <&L2>;
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x00000000 0x00000000>; // Filled in by U-Boot
  44. };
  45. soc8544@e0000000 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. device_type = "soc";
  49. ranges = <0x00000000 0xe0000000 0x00100000>;
  50. bus-frequency = <0>; // Filled in by U-Boot
  51. compatible = "fsl,mpc8544-immr", "simple-bus";
  52. ecm-law@0 {
  53. compatible = "fsl,ecm-law";
  54. reg = <0x0 0x1000>;
  55. fsl,num-laws = <10>;
  56. };
  57. ecm@1000 {
  58. compatible = "fsl,mpc8544-ecm", "fsl,ecm";
  59. reg = <0x1000 0x1000>;
  60. interrupts = <17 2>;
  61. interrupt-parent = <&mpic>;
  62. };
  63. memory-controller@2000 {
  64. compatible = "fsl,mpc8544-memory-controller";
  65. reg = <0x2000 0x1000>;
  66. interrupt-parent = <&mpic>;
  67. interrupts = <18 2>;
  68. };
  69. L2: l2-cache-controller@20000 {
  70. compatible = "fsl,mpc8544-l2-cache-controller";
  71. reg = <0x20000 0x1000>;
  72. cache-line-size = <32>;
  73. cache-size = <0x40000>; // L2, 256K
  74. interrupt-parent = <&mpic>;
  75. interrupts = <16 2>;
  76. };
  77. i2c@3000 {
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. cell-index = <0>;
  81. compatible = "fsl,mpc8544-i2c", "fsl-i2c";
  82. reg = <0x3000 0x100>;
  83. interrupts = <43 2>;
  84. interrupt-parent = <&mpic>;
  85. fsl,preserve-clocking;
  86. dtt@28 {
  87. compatible = "winbond,w83782d";
  88. reg = <0x28>;
  89. };
  90. rtc@32 {
  91. compatible = "epson,rx8025";
  92. reg = <0x32>;
  93. interrupts = <7 1>;
  94. interrupt-parent = <&mpic>;
  95. };
  96. dtt@4c {
  97. compatible = "dallas,ds75";
  98. reg = <0x4c>;
  99. };
  100. ts@4a {
  101. compatible = "ti,tsc2003";
  102. reg = <0x4a>;
  103. interrupt-parent = <&mpic>;
  104. interrupts = <8 1>;
  105. };
  106. };
  107. i2c@3100 {
  108. #address-cells = <1>;
  109. #size-cells = <0>;
  110. cell-index = <1>;
  111. compatible = "fsl,mpc8544-i2c", "fsl-i2c";
  112. reg = <0x3100 0x100>;
  113. interrupts = <43 2>;
  114. interrupt-parent = <&mpic>;
  115. fsl,preserve-clocking;
  116. };
  117. enet0: ethernet@24000 {
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. cell-index = <0>;
  121. device_type = "network";
  122. model = "eTSEC";
  123. compatible = "gianfar";
  124. reg = <0x24000 0x1000>;
  125. ranges = <0x0 0x24000 0x1000>;
  126. local-mac-address = [ 00 00 00 00 00 00 ];
  127. interrupts = <29 2 30 2 34 2>;
  128. interrupt-parent = <&mpic>;
  129. phy-handle = <&phy0>;
  130. tbi-handle = <&tbi0>;
  131. phy-connection-type = "rgmii-id";
  132. mdio@520 {
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. compatible = "fsl,gianfar-mdio";
  136. reg = <0x520 0x20>;
  137. phy0: ethernet-phy@0 {
  138. interrupt-parent = <&mpic>;
  139. interrupts = <0 1>;
  140. reg = <0>;
  141. };
  142. phy1: ethernet-phy@1 {
  143. interrupt-parent = <&mpic>;
  144. interrupts = <0 1>;
  145. reg = <1>;
  146. };
  147. tbi0: tbi-phy@11 {
  148. reg = <0x11>;
  149. };
  150. };
  151. };
  152. enet1: ethernet@26000 {
  153. #address-cells = <1>;
  154. #size-cells = <1>;
  155. cell-index = <1>;
  156. device_type = "network";
  157. model = "eTSEC";
  158. compatible = "gianfar";
  159. reg = <0x26000 0x1000>;
  160. ranges = <0x0 0x26000 0x1000>;
  161. local-mac-address = [ 00 00 00 00 00 00 ];
  162. interrupts = <31 2 32 2 33 2>;
  163. interrupt-parent = <&mpic>;
  164. phy-handle = <&phy1>;
  165. tbi-handle = <&tbi1>;
  166. phy-connection-type = "rgmii-id";
  167. mdio@520 {
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. compatible = "fsl,gianfar-tbi";
  171. reg = <0x520 0x20>;
  172. tbi1: tbi-phy@11 {
  173. reg = <0x11>;
  174. };
  175. };
  176. };
  177. serial0: serial@4500 {
  178. cell-index = <0>;
  179. device_type = "serial";
  180. compatible = "fsl,ns16550", "ns16550";
  181. reg = <0x4500 0x100>;
  182. clock-frequency = <0>;
  183. interrupts = <42 2>;
  184. interrupt-parent = <&mpic>;
  185. };
  186. serial1: serial@4600 {
  187. cell-index = <1>;
  188. device_type = "serial";
  189. compatible = "fsl,ns16550", "ns16550";
  190. reg = <0x4600 0x100>;
  191. clock-frequency = <0>;
  192. interrupts = <42 2>;
  193. interrupt-parent = <&mpic>;
  194. };
  195. global-utilities@e0000 { //global utilities block
  196. compatible = "fsl,mpc8548-guts";
  197. reg = <0xe0000 0x1000>;
  198. fsl,has-rstcr;
  199. };
  200. mpic: pic@40000 {
  201. interrupt-controller;
  202. #address-cells = <0>;
  203. #interrupt-cells = <2>;
  204. reg = <0x40000 0x40000>;
  205. compatible = "chrp,open-pic";
  206. device_type = "open-pic";
  207. };
  208. };
  209. localbus {
  210. compatible = "fsl,mpc8544-localbus",
  211. "fsl,pq3-localbus",
  212. "simple-bus";
  213. #address-cells = <2>;
  214. #size-cells = <1>;
  215. reg = <0xe0005000 0x40>;
  216. interrupt-parent = <&mpic>;
  217. interrupts = <19 2>;
  218. ranges = <0 0 0xfc000000 0x04000000
  219. 2 0 0xc8000000 0x04000000
  220. 3 0 0xc0000000 0x00100000
  221. >; /* Overwritten by U-Boot */
  222. nor_flash@0,0 {
  223. compatible = "amd,s29gl256n", "cfi-flash";
  224. bank-width = <2>;
  225. reg = <0x0 0x000000 0x4000000>;
  226. #address-cells = <1>;
  227. #size-cells = <1>;
  228. partition@0 {
  229. label = "kernel";
  230. reg = <0x0 0x1e0000>;
  231. read-only;
  232. };
  233. partition@1e0000 {
  234. label = "dtb";
  235. reg = <0x1e0000 0x20000>;
  236. };
  237. partition@200000 {
  238. label = "root";
  239. reg = <0x200000 0x200000>;
  240. };
  241. partition@400000 {
  242. label = "user";
  243. reg = <0x400000 0x3b80000>;
  244. };
  245. partition@3f80000 {
  246. label = "env";
  247. reg = <0x3f80000 0x40000>;
  248. read-only;
  249. };
  250. partition@3fc0000 {
  251. label = "u-boot";
  252. reg = <0x3fc0000 0x40000>;
  253. read-only;
  254. };
  255. };
  256. display@2,0 {
  257. compatible = "fujitsu,lime";
  258. reg = <2 0x0 0x4000000>;
  259. interrupt-parent = <&mpic>;
  260. interrupts = <6 1>;
  261. };
  262. fpga_pic: fpga-pic@3,10 {
  263. compatible = "abb,socrates-fpga-pic";
  264. reg = <3 0x10 0x10>;
  265. interrupt-controller;
  266. /* IRQs 2, 10, 11, active low, level-sensitive */
  267. interrupts = <2 1 10 1 11 1>;
  268. interrupt-parent = <&mpic>;
  269. #interrupt-cells = <3>;
  270. };
  271. spi@3,60 {
  272. compatible = "abb,socrates-spi";
  273. reg = <3 0x60 0x10>;
  274. interrupts = <8 4 0>; // number, type, routing
  275. interrupt-parent = <&fpga_pic>;
  276. };
  277. nand@3,70 {
  278. compatible = "abb,socrates-nand";
  279. reg = <3 0x70 0x04>;
  280. bank-width = <1>;
  281. #address-cells = <1>;
  282. #size-cells = <1>;
  283. data@0 {
  284. label = "data";
  285. reg = <0x0 0x40000000>;
  286. };
  287. };
  288. can@3,100 {
  289. compatible = "philips,sja1000";
  290. reg = <3 0x100 0x80>;
  291. interrupts = <2 8 1>; // number, type, routing
  292. interrupt-parent = <&fpga_pic>;
  293. };
  294. };
  295. pci0: pci@e0008000 {
  296. #interrupt-cells = <1>;
  297. #size-cells = <2>;
  298. #address-cells = <3>;
  299. compatible = "fsl,mpc8540-pci";
  300. device_type = "pci";
  301. reg = <0xe0008000 0x1000>;
  302. clock-frequency = <66666666>;
  303. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  304. interrupt-map = <
  305. /* IDSEL 0x11 */
  306. 0x8800 0x0 0x0 1 &mpic 5 1
  307. /* IDSEL 0x12 */
  308. 0x9000 0x0 0x0 1 &mpic 4 1>;
  309. interrupt-parent = <&mpic>;
  310. interrupts = <24 2>;
  311. bus-range = <0x0 0x0>;
  312. ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  313. 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x01000000>;
  314. };
  315. };