mpc8313erdb.dts 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. /*
  2. * MPC8313E RDB Device Tree Source
  3. *
  4. * Copyright 2005, 2006, 2007 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. model = "MPC8313ERDB";
  14. compatible = "MPC8313ERDB", "MPC831xRDB", "MPC83xxRDB";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. serial0 = &serial0;
  21. serial1 = &serial1;
  22. pci0 = &pci0;
  23. };
  24. cpus {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. PowerPC,8313@0 {
  28. device_type = "cpu";
  29. reg = <0x0>;
  30. d-cache-line-size = <32>;
  31. i-cache-line-size = <32>;
  32. d-cache-size = <16384>;
  33. i-cache-size = <16384>;
  34. timebase-frequency = <0>; // from bootloader
  35. bus-frequency = <0>; // from bootloader
  36. clock-frequency = <0>; // from bootloader
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0x00000000 0x08000000>; // 128MB at 0
  42. };
  43. localbus@e0005000 {
  44. #address-cells = <2>;
  45. #size-cells = <1>;
  46. compatible = "fsl,mpc8313-elbc", "fsl,elbc", "simple-bus";
  47. reg = <0xe0005000 0x1000>;
  48. interrupts = <77 0x8>;
  49. interrupt-parent = <&ipic>;
  50. // CS0 and CS1 are swapped when
  51. // booting from nand, but the
  52. // addresses are the same.
  53. ranges = <0x0 0x0 0xfe000000 0x00800000
  54. 0x1 0x0 0xe2800000 0x00008000
  55. 0x2 0x0 0xf0000000 0x00020000
  56. 0x3 0x0 0xfa000000 0x00008000>;
  57. flash@0,0 {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "cfi-flash";
  61. reg = <0x0 0x0 0x800000>;
  62. bank-width = <2>;
  63. device-width = <1>;
  64. };
  65. nand@1,0 {
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. compatible = "fsl,mpc8313-fcm-nand",
  69. "fsl,elbc-fcm-nand";
  70. reg = <0x1 0x0 0x2000>;
  71. u-boot@0 {
  72. reg = <0x0 0x100000>;
  73. read-only;
  74. };
  75. kernel@100000 {
  76. reg = <0x100000 0x300000>;
  77. };
  78. fs@400000 {
  79. reg = <0x400000 0x1c00000>;
  80. };
  81. };
  82. };
  83. soc8313@e0000000 {
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. device_type = "soc";
  87. compatible = "simple-bus";
  88. ranges = <0x0 0xe0000000 0x00100000>;
  89. reg = <0xe0000000 0x00000200>;
  90. bus-frequency = <0>;
  91. wdt@200 {
  92. device_type = "watchdog";
  93. compatible = "mpc83xx_wdt";
  94. reg = <0x200 0x100>;
  95. };
  96. sleep-nexus {
  97. #address-cells = <1>;
  98. #size-cells = <1>;
  99. compatible = "simple-bus";
  100. sleep = <&pmc 0x03000000>;
  101. ranges;
  102. i2c@3000 {
  103. #address-cells = <1>;
  104. #size-cells = <0>;
  105. cell-index = <0>;
  106. compatible = "fsl-i2c";
  107. reg = <0x3000 0x100>;
  108. interrupts = <14 0x8>;
  109. interrupt-parent = <&ipic>;
  110. dfsrr;
  111. rtc@68 {
  112. compatible = "dallas,ds1339";
  113. reg = <0x68>;
  114. };
  115. };
  116. crypto@30000 {
  117. compatible = "fsl,sec2.2", "fsl,sec2.1",
  118. "fsl,sec2.0";
  119. reg = <0x30000 0x10000>;
  120. interrupts = <11 0x8>;
  121. interrupt-parent = <&ipic>;
  122. fsl,num-channels = <1>;
  123. fsl,channel-fifo-len = <24>;
  124. fsl,exec-units-mask = <0x4c>;
  125. fsl,descriptor-types-mask = <0x0122003f>;
  126. };
  127. };
  128. i2c@3100 {
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. cell-index = <1>;
  132. compatible = "fsl-i2c";
  133. reg = <0x3100 0x100>;
  134. interrupts = <15 0x8>;
  135. interrupt-parent = <&ipic>;
  136. dfsrr;
  137. };
  138. spi@7000 {
  139. cell-index = <0>;
  140. compatible = "fsl,spi";
  141. reg = <0x7000 0x1000>;
  142. interrupts = <16 0x8>;
  143. interrupt-parent = <&ipic>;
  144. mode = "cpu";
  145. };
  146. /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
  147. usb@23000 {
  148. compatible = "fsl-usb2-dr";
  149. reg = <0x23000 0x1000>;
  150. #address-cells = <1>;
  151. #size-cells = <0>;
  152. interrupt-parent = <&ipic>;
  153. interrupts = <38 0x8>;
  154. phy_type = "utmi_wide";
  155. sleep = <&pmc 0x00300000>;
  156. };
  157. ptp_clock@24E00 {
  158. compatible = "fsl,etsec-ptp";
  159. reg = <0x24E00 0xB0>;
  160. interrupts = <12 0x8 13 0x8>;
  161. interrupt-parent = < &ipic >;
  162. fsl,tclk-period = <10>;
  163. fsl,tmr-prsc = <100>;
  164. fsl,tmr-add = <0x999999A4>;
  165. fsl,tmr-fiper1 = <0x3B9AC9F6>;
  166. fsl,tmr-fiper2 = <0x00018696>;
  167. fsl,max-adj = <659999998>;
  168. };
  169. enet0: ethernet@24000 {
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. sleep = <&pmc 0x20000000>;
  173. ranges = <0x0 0x24000 0x1000>;
  174. cell-index = <0>;
  175. device_type = "network";
  176. model = "eTSEC";
  177. compatible = "gianfar";
  178. reg = <0x24000 0x1000>;
  179. local-mac-address = [ 00 00 00 00 00 00 ];
  180. interrupts = <37 0x8 36 0x8 35 0x8>;
  181. interrupt-parent = <&ipic>;
  182. tbi-handle = < &tbi0 >;
  183. /* Vitesse 7385 isn't on the MDIO bus */
  184. fixed-link = <1 1 1000 0 0>;
  185. fsl,magic-packet;
  186. mdio@520 {
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. compatible = "fsl,gianfar-mdio";
  190. reg = <0x520 0x20>;
  191. phy4: ethernet-phy@4 {
  192. interrupt-parent = <&ipic>;
  193. interrupts = <20 0x8>;
  194. reg = <0x4>;
  195. };
  196. tbi0: tbi-phy@11 {
  197. reg = <0x11>;
  198. device_type = "tbi-phy";
  199. };
  200. };
  201. };
  202. enet1: ethernet@25000 {
  203. #address-cells = <1>;
  204. #size-cells = <1>;
  205. cell-index = <1>;
  206. device_type = "network";
  207. model = "eTSEC";
  208. compatible = "gianfar";
  209. reg = <0x25000 0x1000>;
  210. ranges = <0x0 0x25000 0x1000>;
  211. local-mac-address = [ 00 00 00 00 00 00 ];
  212. interrupts = <34 0x8 33 0x8 32 0x8>;
  213. interrupt-parent = <&ipic>;
  214. tbi-handle = < &tbi1 >;
  215. phy-handle = < &phy4 >;
  216. sleep = <&pmc 0x10000000>;
  217. fsl,magic-packet;
  218. mdio@520 {
  219. #address-cells = <1>;
  220. #size-cells = <0>;
  221. compatible = "fsl,gianfar-tbi";
  222. reg = <0x520 0x20>;
  223. tbi1: tbi-phy@11 {
  224. reg = <0x11>;
  225. device_type = "tbi-phy";
  226. };
  227. };
  228. };
  229. serial0: serial@4500 {
  230. cell-index = <0>;
  231. device_type = "serial";
  232. compatible = "fsl,ns16550", "ns16550";
  233. reg = <0x4500 0x100>;
  234. clock-frequency = <0>;
  235. interrupts = <9 0x8>;
  236. interrupt-parent = <&ipic>;
  237. };
  238. serial1: serial@4600 {
  239. cell-index = <1>;
  240. device_type = "serial";
  241. compatible = "fsl,ns16550", "ns16550";
  242. reg = <0x4600 0x100>;
  243. clock-frequency = <0>;
  244. interrupts = <10 0x8>;
  245. interrupt-parent = <&ipic>;
  246. };
  247. /* IPIC
  248. * interrupts cell = <intr #, sense>
  249. * sense values match linux IORESOURCE_IRQ_* defines:
  250. * sense == 8: Level, low assertion
  251. * sense == 2: Edge, high-to-low change
  252. */
  253. ipic: pic@700 {
  254. interrupt-controller;
  255. #address-cells = <0>;
  256. #interrupt-cells = <2>;
  257. reg = <0x700 0x100>;
  258. device_type = "ipic";
  259. };
  260. pmc: power@b00 {
  261. compatible = "fsl,mpc8313-pmc", "fsl,mpc8349-pmc";
  262. reg = <0xb00 0x100 0xa00 0x100>;
  263. interrupts = <80 8>;
  264. interrupt-parent = <&ipic>;
  265. fsl,mpc8313-wakeup-timer = <&gtm1>;
  266. /* Remove this (or change to "okay") if you have
  267. * a REVA3 or later board, if you apply one of the
  268. * workarounds listed in section 8.5 of the board
  269. * manual, or if you are adapting this device tree
  270. * to a different board.
  271. */
  272. status = "fail";
  273. };
  274. gtm1: timer@500 {
  275. compatible = "fsl,mpc8313-gtm", "fsl,gtm";
  276. reg = <0x500 0x100>;
  277. interrupts = <90 8 78 8 84 8 72 8>;
  278. interrupt-parent = <&ipic>;
  279. };
  280. timer@600 {
  281. compatible = "fsl,mpc8313-gtm", "fsl,gtm";
  282. reg = <0x600 0x100>;
  283. interrupts = <91 8 79 8 85 8 73 8>;
  284. interrupt-parent = <&ipic>;
  285. };
  286. };
  287. sleep-nexus {
  288. #address-cells = <1>;
  289. #size-cells = <1>;
  290. compatible = "simple-bus";
  291. sleep = <&pmc 0x00010000>;
  292. ranges;
  293. pci0: pci@e0008500 {
  294. cell-index = <1>;
  295. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  296. interrupt-map = <
  297. /* IDSEL 0x0E -mini PCI */
  298. 0x7000 0x0 0x0 0x1 &ipic 18 0x8
  299. 0x7000 0x0 0x0 0x2 &ipic 18 0x8
  300. 0x7000 0x0 0x0 0x3 &ipic 18 0x8
  301. 0x7000 0x0 0x0 0x4 &ipic 18 0x8
  302. /* IDSEL 0x0F - PCI slot */
  303. 0x7800 0x0 0x0 0x1 &ipic 17 0x8
  304. 0x7800 0x0 0x0 0x2 &ipic 18 0x8
  305. 0x7800 0x0 0x0 0x3 &ipic 17 0x8
  306. 0x7800 0x0 0x0 0x4 &ipic 18 0x8>;
  307. interrupt-parent = <&ipic>;
  308. interrupts = <66 0x8>;
  309. bus-range = <0x0 0x0>;
  310. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  311. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  312. 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
  313. clock-frequency = <66666666>;
  314. #interrupt-cells = <1>;
  315. #size-cells = <2>;
  316. #address-cells = <3>;
  317. reg = <0xe0008500 0x100 /* internal registers */
  318. 0xe0008300 0x8>; /* config space access registers */
  319. compatible = "fsl,mpc8349-pci";
  320. device_type = "pci";
  321. };
  322. dma@82a8 {
  323. #address-cells = <1>;
  324. #size-cells = <1>;
  325. compatible = "fsl,mpc8313-dma", "fsl,elo-dma";
  326. reg = <0xe00082a8 4>;
  327. ranges = <0 0xe0008100 0x1a8>;
  328. interrupt-parent = <&ipic>;
  329. interrupts = <71 8>;
  330. dma-channel@0 {
  331. compatible = "fsl,mpc8313-dma-channel",
  332. "fsl,elo-dma-channel";
  333. reg = <0 0x28>;
  334. interrupt-parent = <&ipic>;
  335. interrupts = <71 8>;
  336. cell-index = <0>;
  337. };
  338. dma-channel@80 {
  339. compatible = "fsl,mpc8313-dma-channel",
  340. "fsl,elo-dma-channel";
  341. reg = <0x80 0x28>;
  342. interrupt-parent = <&ipic>;
  343. interrupts = <71 8>;
  344. cell-index = <1>;
  345. };
  346. dma-channel@100 {
  347. compatible = "fsl,mpc8313-dma-channel",
  348. "fsl,elo-dma-channel";
  349. reg = <0x100 0x28>;
  350. interrupt-parent = <&ipic>;
  351. interrupts = <71 8>;
  352. cell-index = <2>;
  353. };
  354. dma-channel@180 {
  355. compatible = "fsl,mpc8313-dma-channel",
  356. "fsl,elo-dma-channel";
  357. reg = <0x180 0x28>;
  358. interrupt-parent = <&ipic>;
  359. interrupts = <71 8>;
  360. cell-index = <3>;
  361. };
  362. };
  363. };
  364. };