socrates.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Device Tree Source for the Socrates board (MPC8544).
  4. *
  5. * Copyright (c) 2008 Emcraft Systems.
  6. * Sergei Poselenov, <sposelenov@emcraft.com>
  7. *
  8. */
  9. /dts-v1/;
  10. /include/ "e500v2_power_isa.dtsi"
  11. / {
  12. model = "abb,socrates";
  13. compatible = "abb,socrates";
  14. #address-cells = <1>;
  15. #size-cells = <1>;
  16. aliases {
  17. ethernet0 = &enet0;
  18. ethernet1 = &enet1;
  19. serial0 = &serial0;
  20. serial1 = &serial1;
  21. pci0 = &pci0;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. PowerPC,8544@0 {
  27. device_type = "cpu";
  28. reg = <0>;
  29. d-cache-line-size = <32>;
  30. i-cache-line-size = <32>;
  31. d-cache-size = <0x8000>; // L1, 32K
  32. i-cache-size = <0x8000>; // L1, 32K
  33. timebase-frequency = <0>;
  34. bus-frequency = <0>;
  35. clock-frequency = <0>;
  36. next-level-cache = <&L2>;
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0x00000000 0x00000000>; // Filled in by U-Boot
  42. };
  43. soc8544@e0000000 {
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. device_type = "soc";
  47. ranges = <0x00000000 0xe0000000 0x00100000>;
  48. bus-frequency = <0>; // Filled in by U-Boot
  49. compatible = "fsl,mpc8544-immr", "simple-bus";
  50. ecm-law@0 {
  51. compatible = "fsl,ecm-law";
  52. reg = <0x0 0x1000>;
  53. fsl,num-laws = <10>;
  54. };
  55. ecm@1000 {
  56. compatible = "fsl,mpc8544-ecm", "fsl,ecm";
  57. reg = <0x1000 0x1000>;
  58. interrupts = <17 2>;
  59. interrupt-parent = <&mpic>;
  60. };
  61. memory-controller@2000 {
  62. compatible = "fsl,mpc8544-memory-controller";
  63. reg = <0x2000 0x1000>;
  64. interrupt-parent = <&mpic>;
  65. interrupts = <18 2>;
  66. };
  67. L2: l2-cache-controller@20000 {
  68. compatible = "fsl,mpc8544-l2-cache-controller";
  69. reg = <0x20000 0x1000>;
  70. cache-line-size = <32>;
  71. cache-size = <0x40000>; // L2, 256K
  72. interrupt-parent = <&mpic>;
  73. interrupts = <16 2>;
  74. };
  75. i2c@3000 {
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. cell-index = <0>;
  79. compatible = "fsl,mpc8544-i2c", "fsl-i2c";
  80. reg = <0x3000 0x100>;
  81. interrupts = <43 2>;
  82. interrupt-parent = <&mpic>;
  83. fsl,preserve-clocking;
  84. dtt@28 {
  85. compatible = "winbond,w83782d";
  86. reg = <0x28>;
  87. };
  88. rtc@32 {
  89. compatible = "epson,rx8025";
  90. reg = <0x32>;
  91. interrupts = <7 1>;
  92. interrupt-parent = <&mpic>;
  93. };
  94. dtt@4c {
  95. compatible = "dallas,ds75";
  96. reg = <0x4c>;
  97. };
  98. ts@4a {
  99. compatible = "ti,tsc2003";
  100. reg = <0x4a>;
  101. interrupt-parent = <&mpic>;
  102. interrupts = <8 1>;
  103. };
  104. };
  105. i2c@3100 {
  106. #address-cells = <1>;
  107. #size-cells = <0>;
  108. cell-index = <1>;
  109. compatible = "fsl,mpc8544-i2c", "fsl-i2c";
  110. reg = <0x3100 0x100>;
  111. interrupts = <43 2>;
  112. interrupt-parent = <&mpic>;
  113. fsl,preserve-clocking;
  114. };
  115. enet0: ethernet@24000 {
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. cell-index = <0>;
  119. device_type = "network";
  120. model = "eTSEC";
  121. compatible = "gianfar";
  122. reg = <0x24000 0x1000>;
  123. ranges = <0x0 0x24000 0x1000>;
  124. local-mac-address = [ 00 00 00 00 00 00 ];
  125. interrupts = <29 2 30 2 34 2>;
  126. interrupt-parent = <&mpic>;
  127. phy-handle = <&phy0>;
  128. tbi-handle = <&tbi0>;
  129. phy-connection-type = "rgmii-id";
  130. };
  131. mdio@24520 {
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. compatible = "fsl,gianfar-mdio";
  135. reg = <0x24520 0x20>;
  136. phy0: ethernet-phy@0 {
  137. compatible = "ethernet-phy-ieee802.3-c22";
  138. interrupt-parent = <&mpic>;
  139. interrupts = <0 1>;
  140. reg = <0>;
  141. };
  142. phy1: ethernet-phy@1 {
  143. compatible = "ethernet-phy-ieee802.3-c22";
  144. interrupt-parent = <&mpic>;
  145. interrupts = <0 1>;
  146. reg = <1>;
  147. };
  148. tbi0: tbi-phy@11 {
  149. reg = <0x11>;
  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. };
  168. mdio@26520 {
  169. #address-cells = <1>;
  170. #size-cells = <0>;
  171. compatible = "fsl,gianfar-tbi";
  172. reg = <0x26520 0x20>;
  173. tbi1: tbi-phy@11 {
  174. reg = <0x11>;
  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. };