mpc8379_rdb.dts 8.7 KB

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