mpc8378_rdb.dts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. /*
  2. * MPC8378E RDB Device Tree Source
  3. *
  4. * Copyright 2007, 2008 Freescale Semiconductor Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. /dts-v1/;
  12. / {
  13. compatible = "fsl,mpc8378rdb";
  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. pci1 = &pci1;
  23. pci2 = &pci2;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. PowerPC,8378@0 {
  29. device_type = "cpu";
  30. reg = <0x0>;
  31. d-cache-line-size = <32>;
  32. i-cache-line-size = <32>;
  33. d-cache-size = <32768>;
  34. i-cache-size = <32768>;
  35. timebase-frequency = <0>;
  36. bus-frequency = <0>;
  37. clock-frequency = <0>;
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. reg = <0x00000000 0x10000000>; // 256MB at 0
  43. };
  44. localbus@e0005000 {
  45. #address-cells = <2>;
  46. #size-cells = <1>;
  47. compatible = "fsl,mpc8378-elbc", "fsl,elbc", "simple-bus";
  48. reg = <0xe0005000 0x1000>;
  49. interrupts = <77 0x8>;
  50. interrupt-parent = <&ipic>;
  51. // CS0 and CS1 are swapped when
  52. // booting from nand, but the
  53. // addresses are the same.
  54. ranges = <0x0 0x0 0xfe000000 0x00800000
  55. 0x1 0x0 0xe0600000 0x00008000
  56. 0x2 0x0 0xf0000000 0x00020000
  57. 0x3 0x0 0xfa000000 0x00008000>;
  58. flash@0,0 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. compatible = "cfi-flash";
  62. reg = <0x0 0x0 0x800000>;
  63. bank-width = <2>;
  64. device-width = <1>;
  65. };
  66. nand@1,0 {
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. compatible = "fsl,mpc8378-fcm-nand",
  70. "fsl,elbc-fcm-nand";
  71. reg = <0x1 0x0 0x8000>;
  72. u-boot@0 {
  73. reg = <0x0 0x100000>;
  74. read-only;
  75. };
  76. kernel@100000 {
  77. reg = <0x100000 0x300000>;
  78. };
  79. fs@400000 {
  80. reg = <0x400000 0x1c00000>;
  81. };
  82. };
  83. };
  84. immr@e0000000 {
  85. #address-cells = <1>;
  86. #size-cells = <1>;
  87. device_type = "soc";
  88. compatible = "simple-bus";
  89. ranges = <0x0 0xe0000000 0x00100000>;
  90. reg = <0xe0000000 0x00000200>;
  91. bus-frequency = <0>;
  92. wdt@200 {
  93. device_type = "watchdog";
  94. compatible = "mpc83xx_wdt";
  95. reg = <0x200 0x100>;
  96. };
  97. i2c@3000 {
  98. #address-cells = <1>;
  99. #size-cells = <0>;
  100. cell-index = <0>;
  101. compatible = "fsl-i2c";
  102. reg = <0x3000 0x100>;
  103. interrupts = <14 0x8>;
  104. interrupt-parent = <&ipic>;
  105. dfsrr;
  106. at24@50 {
  107. compatible = "at24,24c256";
  108. reg = <0x50>;
  109. };
  110. rtc@68 {
  111. compatible = "dallas,ds1339";
  112. reg = <0x68>;
  113. };
  114. mcu_pio: mcu@a {
  115. #gpio-cells = <2>;
  116. compatible = "fsl,mc9s08qg8-mpc8378erdb",
  117. "fsl,mcu-mpc8349emitx";
  118. reg = <0x0a>;
  119. gpio-controller;
  120. };
  121. };
  122. i2c@3100 {
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. cell-index = <1>;
  126. compatible = "fsl-i2c";
  127. reg = <0x3100 0x100>;
  128. interrupts = <15 0x8>;
  129. interrupt-parent = <&ipic>;
  130. dfsrr;
  131. };
  132. spi@7000 {
  133. cell-index = <0>;
  134. compatible = "fsl,spi";
  135. reg = <0x7000 0x1000>;
  136. interrupts = <16 0x8>;
  137. interrupt-parent = <&ipic>;
  138. mode = "cpu";
  139. };
  140. dma@82a8 {
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. compatible = "fsl,mpc8378-dma", "fsl,elo-dma";
  144. reg = <0x82a8 4>;
  145. ranges = <0 0x8100 0x1a8>;
  146. interrupt-parent = <&ipic>;
  147. interrupts = <71 8>;
  148. cell-index = <0>;
  149. dma-channel@0 {
  150. compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
  151. reg = <0 0x80>;
  152. cell-index = <0>;
  153. interrupt-parent = <&ipic>;
  154. interrupts = <71 8>;
  155. };
  156. dma-channel@80 {
  157. compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
  158. reg = <0x80 0x80>;
  159. cell-index = <1>;
  160. interrupt-parent = <&ipic>;
  161. interrupts = <71 8>;
  162. };
  163. dma-channel@100 {
  164. compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
  165. reg = <0x100 0x80>;
  166. cell-index = <2>;
  167. interrupt-parent = <&ipic>;
  168. interrupts = <71 8>;
  169. };
  170. dma-channel@180 {
  171. compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
  172. reg = <0x180 0x28>;
  173. cell-index = <3>;
  174. interrupt-parent = <&ipic>;
  175. interrupts = <71 8>;
  176. };
  177. };
  178. usb@23000 {
  179. compatible = "fsl-usb2-dr";
  180. reg = <0x23000 0x1000>;
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. interrupt-parent = <&ipic>;
  184. interrupts = <38 0x8>;
  185. phy_type = "ulpi";
  186. };
  187. mdio@24520 {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. compatible = "fsl,gianfar-mdio";
  191. reg = <0x24520 0x20>;
  192. phy2: ethernet-phy@2 {
  193. interrupt-parent = <&ipic>;
  194. interrupts = <17 0x8>;
  195. reg = <0x2>;
  196. device_type = "ethernet-phy";
  197. };
  198. tbi0: tbi-phy@11 {
  199. reg = <0x11>;
  200. device_type = "tbi-phy";
  201. };
  202. };
  203. mdio@25520 {
  204. #address-cells = <1>;
  205. #size-cells = <0>;
  206. compatible = "fsl,gianfar-tbi";
  207. reg = <0x25520 0x20>;
  208. tbi1: tbi-phy@11 {
  209. reg = <0x11>;
  210. device_type = "tbi-phy";
  211. };
  212. };
  213. enet0: ethernet@24000 {
  214. cell-index = <0>;
  215. device_type = "network";
  216. model = "eTSEC";
  217. compatible = "gianfar";
  218. reg = <0x24000 0x1000>;
  219. local-mac-address = [ 00 00 00 00 00 00 ];
  220. interrupts = <32 0x8 33 0x8 34 0x8>;
  221. phy-connection-type = "mii";
  222. interrupt-parent = <&ipic>;
  223. phy-handle = <&phy2>;
  224. };
  225. enet1: ethernet@25000 {
  226. cell-index = <1>;
  227. device_type = "network";
  228. model = "eTSEC";
  229. compatible = "gianfar";
  230. reg = <0x25000 0x1000>;
  231. local-mac-address = [ 00 00 00 00 00 00 ];
  232. interrupts = <35 0x8 36 0x8 37 0x8>;
  233. phy-connection-type = "mii";
  234. interrupt-parent = <&ipic>;
  235. fixed-link = <1 1 1000 0 0>;
  236. };
  237. serial0: serial@4500 {
  238. cell-index = <0>;
  239. device_type = "serial";
  240. compatible = "ns16550";
  241. reg = <0x4500 0x100>;
  242. clock-frequency = <0>;
  243. interrupts = <9 0x8>;
  244. interrupt-parent = <&ipic>;
  245. };
  246. serial1: serial@4600 {
  247. cell-index = <1>;
  248. device_type = "serial";
  249. compatible = "ns16550";
  250. reg = <0x4600 0x100>;
  251. clock-frequency = <0>;
  252. interrupts = <10 0x8>;
  253. interrupt-parent = <&ipic>;
  254. };
  255. crypto@30000 {
  256. compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
  257. "fsl,sec2.1", "fsl,sec2.0";
  258. reg = <0x30000 0x10000>;
  259. interrupts = <11 0x8>;
  260. interrupt-parent = <&ipic>;
  261. fsl,num-channels = <4>;
  262. fsl,channel-fifo-len = <24>;
  263. fsl,exec-units-mask = <0x9fe>;
  264. fsl,descriptor-types-mask = <0x3ab0ebf>;
  265. };
  266. /* IPIC
  267. * interrupts cell = <intr #, sense>
  268. * sense values match linux IORESOURCE_IRQ_* defines:
  269. * sense == 8: Level, low assertion
  270. * sense == 2: Edge, high-to-low change
  271. */
  272. ipic: interrupt-controller@700 {
  273. compatible = "fsl,ipic";
  274. interrupt-controller;
  275. #address-cells = <0>;
  276. #interrupt-cells = <2>;
  277. reg = <0x700 0x100>;
  278. };
  279. };
  280. pci0: pci@e0008500 {
  281. interrupt-map-mask = <0xf800 0 0 7>;
  282. interrupt-map = <
  283. /* IRQ5 = 21 = 0x15, IRQ6 = 0x16, IRQ7 = 23 = 0x17 */
  284. /* IDSEL AD14 IRQ6 inta */
  285. 0x7000 0x0 0x0 0x1 &ipic 22 0x8
  286. /* IDSEL AD15 IRQ5 inta, IRQ6 intb, IRQ7 intd */
  287. 0x7800 0x0 0x0 0x1 &ipic 21 0x8
  288. 0x7800 0x0 0x0 0x2 &ipic 22 0x8
  289. 0x7800 0x0 0x0 0x4 &ipic 23 0x8
  290. /* IDSEL AD28 IRQ7 inta, IRQ5 intb IRQ6 intc*/
  291. 0xE000 0x0 0x0 0x1 &ipic 23 0x8
  292. 0xE000 0x0 0x0 0x2 &ipic 21 0x8
  293. 0xE000 0x0 0x0 0x3 &ipic 22 0x8>;
  294. interrupt-parent = <&ipic>;
  295. interrupts = <66 0x8>;
  296. bus-range = <0 0>;
  297. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  298. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  299. 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
  300. clock-frequency = <66666666>;
  301. #interrupt-cells = <1>;
  302. #size-cells = <2>;
  303. #address-cells = <3>;
  304. reg = <0xe0008500 0x100 /* internal registers */
  305. 0xe0008300 0x8>; /* config space access registers */
  306. compatible = "fsl,mpc8349-pci";
  307. device_type = "pci";
  308. };
  309. pci1: pcie@e0009000 {
  310. #address-cells = <3>;
  311. #size-cells = <2>;
  312. #interrupt-cells = <1>;
  313. device_type = "pci";
  314. compatible = "fsl,mpc8378-pcie", "fsl,mpc8314-pcie";
  315. reg = <0xe0009000 0x00001000>;
  316. ranges = <0x02000000 0 0xa8000000 0xa8000000 0 0x10000000
  317. 0x01000000 0 0x00000000 0xb8000000 0 0x00800000>;
  318. bus-range = <0 255>;
  319. interrupt-map-mask = <0xf800 0 0 7>;
  320. interrupt-map = <0 0 0 1 &ipic 1 8
  321. 0 0 0 2 &ipic 1 8
  322. 0 0 0 3 &ipic 1 8
  323. 0 0 0 4 &ipic 1 8>;
  324. clock-frequency = <0>;
  325. pcie@0 {
  326. #address-cells = <3>;
  327. #size-cells = <2>;
  328. device_type = "pci";
  329. reg = <0 0 0 0 0>;
  330. ranges = <0x02000000 0 0xa8000000
  331. 0x02000000 0 0xa8000000
  332. 0 0x10000000
  333. 0x01000000 0 0x00000000
  334. 0x01000000 0 0x00000000
  335. 0 0x00800000>;
  336. };
  337. };
  338. pci2: pcie@e000a000 {
  339. #address-cells = <3>;
  340. #size-cells = <2>;
  341. #interrupt-cells = <1>;
  342. device_type = "pci";
  343. compatible = "fsl,mpc8378-pcie", "fsl,mpc8314-pcie";
  344. reg = <0xe000a000 0x00001000>;
  345. ranges = <0x02000000 0 0xc8000000 0xc8000000 0 0x10000000
  346. 0x01000000 0 0x00000000 0xd8000000 0 0x00800000>;
  347. bus-range = <0 255>;
  348. interrupt-map-mask = <0xf800 0 0 7>;
  349. interrupt-map = <0 0 0 1 &ipic 2 8
  350. 0 0 0 2 &ipic 2 8
  351. 0 0 0 3 &ipic 2 8
  352. 0 0 0 4 &ipic 2 8>;
  353. clock-frequency = <0>;
  354. pcie@0 {
  355. #address-cells = <3>;
  356. #size-cells = <2>;
  357. device_type = "pci";
  358. reg = <0 0 0 0 0>;
  359. ranges = <0x02000000 0 0xc8000000
  360. 0x02000000 0 0xc8000000
  361. 0 0x10000000
  362. 0x01000000 0 0x00000000
  363. 0x01000000 0 0x00000000
  364. 0 0x00800000>;
  365. };
  366. };
  367. };