mpc8315erdb.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. /*
  2. * MPC8315E RDB Device Tree Source
  3. *
  4. * Copyright 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. compatible = "fsl,mpc8315erdb";
  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,8315@0 {
  29. device_type = "cpu";
  30. reg = <0x0>;
  31. d-cache-line-size = <32>;
  32. i-cache-line-size = <32>;
  33. d-cache-size = <16384>;
  34. i-cache-size = <16384>;
  35. timebase-frequency = <0>; // from bootloader
  36. bus-frequency = <0>; // from bootloader
  37. clock-frequency = <0>; // from bootloader
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. reg = <0x00000000 0x08000000>; // 128MB at 0
  43. };
  44. localbus@e0005000 {
  45. #address-cells = <2>;
  46. #size-cells = <1>;
  47. compatible = "fsl,mpc8315-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 0x00002000
  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,mpc8315-fcm-nand",
  70. "fsl,elbc-fcm-nand";
  71. reg = <0x1 0x0 0x2000>;
  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 = "fsl,mpc8315-immr", "simple-bus";
  89. ranges = <0 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. rtc@68 {
  107. compatible = "dallas,ds1339";
  108. reg = <0x68>;
  109. };
  110. mcu_pio: mcu@a {
  111. #gpio-cells = <2>;
  112. compatible = "fsl,mc9s08qg8-mpc8315erdb",
  113. "fsl,mcu-mpc8349emitx";
  114. reg = <0x0a>;
  115. gpio-controller;
  116. };
  117. };
  118. spi@7000 {
  119. cell-index = <0>;
  120. compatible = "fsl,spi";
  121. reg = <0x7000 0x1000>;
  122. interrupts = <16 0x8>;
  123. interrupt-parent = <&ipic>;
  124. mode = "cpu";
  125. };
  126. dma@82a8 {
  127. #address-cells = <1>;
  128. #size-cells = <1>;
  129. compatible = "fsl,mpc8315-dma", "fsl,elo-dma";
  130. reg = <0x82a8 4>;
  131. ranges = <0 0x8100 0x1a8>;
  132. interrupt-parent = <&ipic>;
  133. interrupts = <71 8>;
  134. cell-index = <0>;
  135. dma-channel@0 {
  136. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  137. reg = <0 0x80>;
  138. cell-index = <0>;
  139. interrupt-parent = <&ipic>;
  140. interrupts = <71 8>;
  141. };
  142. dma-channel@80 {
  143. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  144. reg = <0x80 0x80>;
  145. cell-index = <1>;
  146. interrupt-parent = <&ipic>;
  147. interrupts = <71 8>;
  148. };
  149. dma-channel@100 {
  150. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  151. reg = <0x100 0x80>;
  152. cell-index = <2>;
  153. interrupt-parent = <&ipic>;
  154. interrupts = <71 8>;
  155. };
  156. dma-channel@180 {
  157. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  158. reg = <0x180 0x28>;
  159. cell-index = <3>;
  160. interrupt-parent = <&ipic>;
  161. interrupts = <71 8>;
  162. };
  163. };
  164. usb@23000 {
  165. compatible = "fsl-usb2-dr";
  166. reg = <0x23000 0x1000>;
  167. #address-cells = <1>;
  168. #size-cells = <0>;
  169. interrupt-parent = <&ipic>;
  170. interrupts = <38 0x8>;
  171. phy_type = "utmi";
  172. };
  173. enet0: ethernet@24000 {
  174. #address-cells = <1>;
  175. #size-cells = <1>;
  176. cell-index = <0>;
  177. device_type = "network";
  178. model = "eTSEC";
  179. compatible = "gianfar";
  180. reg = <0x24000 0x1000>;
  181. ranges = <0x0 0x24000 0x1000>;
  182. local-mac-address = [ 00 00 00 00 00 00 ];
  183. interrupts = <32 0x8 33 0x8 34 0x8>;
  184. interrupt-parent = <&ipic>;
  185. tbi-handle = <&tbi0>;
  186. phy-handle = < &phy0 >;
  187. fsl,magic-packet;
  188. mdio@520 {
  189. #address-cells = <1>;
  190. #size-cells = <0>;
  191. compatible = "fsl,gianfar-mdio";
  192. reg = <0x520 0x20>;
  193. phy0: ethernet-phy@0 {
  194. interrupt-parent = <&ipic>;
  195. interrupts = <20 0x8>;
  196. reg = <0x0>;
  197. };
  198. phy1: ethernet-phy@1 {
  199. interrupt-parent = <&ipic>;
  200. interrupts = <19 0x8>;
  201. reg = <0x1>;
  202. };
  203. tbi0: tbi-phy@11 {
  204. reg = <0x11>;
  205. device_type = "tbi-phy";
  206. };
  207. };
  208. };
  209. enet1: ethernet@25000 {
  210. #address-cells = <1>;
  211. #size-cells = <1>;
  212. cell-index = <1>;
  213. device_type = "network";
  214. model = "eTSEC";
  215. compatible = "gianfar";
  216. reg = <0x25000 0x1000>;
  217. ranges = <0x0 0x25000 0x1000>;
  218. local-mac-address = [ 00 00 00 00 00 00 ];
  219. interrupts = <35 0x8 36 0x8 37 0x8>;
  220. interrupt-parent = <&ipic>;
  221. tbi-handle = <&tbi1>;
  222. phy-handle = < &phy1 >;
  223. fsl,magic-packet;
  224. mdio@520 {
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. compatible = "fsl,gianfar-tbi";
  228. reg = <0x520 0x20>;
  229. tbi1: tbi-phy@11 {
  230. reg = <0x11>;
  231. device_type = "tbi-phy";
  232. };
  233. };
  234. };
  235. serial0: serial@4500 {
  236. cell-index = <0>;
  237. device_type = "serial";
  238. compatible = "fsl,ns16550", "ns16550";
  239. reg = <0x4500 0x100>;
  240. clock-frequency = <133333333>;
  241. interrupts = <9 0x8>;
  242. interrupt-parent = <&ipic>;
  243. };
  244. serial1: serial@4600 {
  245. cell-index = <1>;
  246. device_type = "serial";
  247. compatible = "fsl,ns16550", "ns16550";
  248. reg = <0x4600 0x100>;
  249. clock-frequency = <133333333>;
  250. interrupts = <10 0x8>;
  251. interrupt-parent = <&ipic>;
  252. };
  253. crypto@30000 {
  254. compatible = "fsl,sec3.3", "fsl,sec3.1", "fsl,sec3.0",
  255. "fsl,sec2.4", "fsl,sec2.2", "fsl,sec2.1",
  256. "fsl,sec2.0";
  257. reg = <0x30000 0x10000>;
  258. interrupts = <11 0x8>;
  259. interrupt-parent = <&ipic>;
  260. fsl,num-channels = <4>;
  261. fsl,channel-fifo-len = <24>;
  262. fsl,exec-units-mask = <0x97c>;
  263. fsl,descriptor-types-mask = <0x3a30abf>;
  264. };
  265. sata@18000 {
  266. compatible = "fsl,mpc8315-sata", "fsl,pq-sata";
  267. reg = <0x18000 0x1000>;
  268. cell-index = <1>;
  269. interrupts = <44 0x8>;
  270. interrupt-parent = <&ipic>;
  271. };
  272. sata@19000 {
  273. compatible = "fsl,mpc8315-sata", "fsl,pq-sata";
  274. reg = <0x19000 0x1000>;
  275. cell-index = <2>;
  276. interrupts = <45 0x8>;
  277. interrupt-parent = <&ipic>;
  278. };
  279. gtm1: timer@500 {
  280. compatible = "fsl,mpc8315-gtm", "fsl,gtm";
  281. reg = <0x500 0x100>;
  282. interrupts = <90 8 78 8 84 8 72 8>;
  283. interrupt-parent = <&ipic>;
  284. clock-frequency = <133333333>;
  285. };
  286. timer@600 {
  287. compatible = "fsl,mpc8315-gtm", "fsl,gtm";
  288. reg = <0x600 0x100>;
  289. interrupts = <91 8 79 8 85 8 73 8>;
  290. interrupt-parent = <&ipic>;
  291. clock-frequency = <133333333>;
  292. };
  293. /* IPIC
  294. * interrupts cell = <intr #, sense>
  295. * sense values match linux IORESOURCE_IRQ_* defines:
  296. * sense == 8: Level, low assertion
  297. * sense == 2: Edge, high-to-low change
  298. */
  299. ipic: interrupt-controller@700 {
  300. interrupt-controller;
  301. #address-cells = <0>;
  302. #interrupt-cells = <2>;
  303. reg = <0x700 0x100>;
  304. device_type = "ipic";
  305. };
  306. ipic-msi@7c0 {
  307. compatible = "fsl,ipic-msi";
  308. reg = <0x7c0 0x40>;
  309. msi-available-ranges = <0 0x100>;
  310. interrupts = <0x43 0x8
  311. 0x4 0x8
  312. 0x51 0x8
  313. 0x52 0x8
  314. 0x56 0x8
  315. 0x57 0x8
  316. 0x58 0x8
  317. 0x59 0x8>;
  318. interrupt-parent = < &ipic >;
  319. };
  320. pmc: power@b00 {
  321. compatible = "fsl,mpc8315-pmc", "fsl,mpc8313-pmc",
  322. "fsl,mpc8349-pmc";
  323. reg = <0xb00 0x100 0xa00 0x100>;
  324. interrupts = <80 8>;
  325. interrupt-parent = <&ipic>;
  326. fsl,mpc8313-wakeup-timer = <&gtm1>;
  327. };
  328. };
  329. pci0: pci@e0008500 {
  330. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  331. interrupt-map = <
  332. /* IDSEL 0x0E -mini PCI */
  333. 0x7000 0x0 0x0 0x1 &ipic 18 0x8
  334. 0x7000 0x0 0x0 0x2 &ipic 18 0x8
  335. 0x7000 0x0 0x0 0x3 &ipic 18 0x8
  336. 0x7000 0x0 0x0 0x4 &ipic 18 0x8
  337. /* IDSEL 0x0F -mini PCI */
  338. 0x7800 0x0 0x0 0x1 &ipic 17 0x8
  339. 0x7800 0x0 0x0 0x2 &ipic 17 0x8
  340. 0x7800 0x0 0x0 0x3 &ipic 17 0x8
  341. 0x7800 0x0 0x0 0x4 &ipic 17 0x8
  342. /* IDSEL 0x10 - PCI slot */
  343. 0x8000 0x0 0x0 0x1 &ipic 48 0x8
  344. 0x8000 0x0 0x0 0x2 &ipic 17 0x8
  345. 0x8000 0x0 0x0 0x3 &ipic 48 0x8
  346. 0x8000 0x0 0x0 0x4 &ipic 17 0x8>;
  347. interrupt-parent = <&ipic>;
  348. interrupts = <66 0x8>;
  349. bus-range = <0x0 0x0>;
  350. ranges = <0x02000000 0 0x90000000 0x90000000 0 0x10000000
  351. 0x42000000 0 0x80000000 0x80000000 0 0x10000000
  352. 0x01000000 0 0x00000000 0xe0300000 0 0x00100000>;
  353. clock-frequency = <66666666>;
  354. #interrupt-cells = <1>;
  355. #size-cells = <2>;
  356. #address-cells = <3>;
  357. reg = <0xe0008500 0x100 /* internal registers */
  358. 0xe0008300 0x8>; /* config space access registers */
  359. compatible = "fsl,mpc8349-pci";
  360. device_type = "pci";
  361. };
  362. pci1: pcie@e0009000 {
  363. #address-cells = <3>;
  364. #size-cells = <2>;
  365. #interrupt-cells = <1>;
  366. device_type = "pci";
  367. compatible = "fsl,mpc8315-pcie", "fsl,mpc8314-pcie";
  368. reg = <0xe0009000 0x00001000>;
  369. ranges = <0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
  370. 0x01000000 0 0x00000000 0xb1000000 0 0x00800000>;
  371. bus-range = <0 255>;
  372. interrupt-map-mask = <0xf800 0 0 7>;
  373. interrupt-map = <0 0 0 1 &ipic 1 8
  374. 0 0 0 2 &ipic 1 8
  375. 0 0 0 3 &ipic 1 8
  376. 0 0 0 4 &ipic 1 8>;
  377. clock-frequency = <0>;
  378. pcie@0 {
  379. #address-cells = <3>;
  380. #size-cells = <2>;
  381. device_type = "pci";
  382. reg = <0 0 0 0 0>;
  383. ranges = <0x02000000 0 0xa0000000
  384. 0x02000000 0 0xa0000000
  385. 0 0x10000000
  386. 0x01000000 0 0x00000000
  387. 0x01000000 0 0x00000000
  388. 0 0x00800000>;
  389. };
  390. };
  391. pci2: pcie@e000a000 {
  392. #address-cells = <3>;
  393. #size-cells = <2>;
  394. #interrupt-cells = <1>;
  395. device_type = "pci";
  396. compatible = "fsl,mpc8315-pcie", "fsl,mpc8314-pcie";
  397. reg = <0xe000a000 0x00001000>;
  398. ranges = <0x02000000 0 0xc0000000 0xc0000000 0 0x10000000
  399. 0x01000000 0 0x00000000 0xd1000000 0 0x00800000>;
  400. bus-range = <0 255>;
  401. interrupt-map-mask = <0xf800 0 0 7>;
  402. interrupt-map = <0 0 0 1 &ipic 2 8
  403. 0 0 0 2 &ipic 2 8
  404. 0 0 0 3 &ipic 2 8
  405. 0 0 0 4 &ipic 2 8>;
  406. clock-frequency = <0>;
  407. pcie@0 {
  408. #address-cells = <3>;
  409. #size-cells = <2>;
  410. device_type = "pci";
  411. reg = <0 0 0 0 0>;
  412. ranges = <0x02000000 0 0xc0000000
  413. 0x02000000 0 0xc0000000
  414. 0 0x10000000
  415. 0x01000000 0 0x00000000
  416. 0x01000000 0 0x00000000
  417. 0 0x00800000>;
  418. };
  419. };
  420. leds {
  421. compatible = "gpio-leds";
  422. pwr {
  423. gpios = <&mcu_pio 0 0>;
  424. default-state = "on";
  425. };
  426. hdd {
  427. gpios = <&mcu_pio 1 0>;
  428. linux,default-trigger = "disk-activity";
  429. };
  430. };
  431. };