socrates.dts 7.2 KB

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