socrates.dts 7.3 KB

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