mpc8377_rdb.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. /*
  2. * MPC8377E 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,mpc8377rdb";
  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,8377@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,mpc8377-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,mpc8377-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. gpio1: gpio-controller@c00 {
  98. #gpio-cells = <2>;
  99. compatible = "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
  100. reg = <0xc00 0x100>;
  101. interrupts = <74 0x8>;
  102. interrupt-parent = <&ipic>;
  103. gpio-controller;
  104. };
  105. gpio2: gpio-controller@d00 {
  106. #gpio-cells = <2>;
  107. compatible = "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
  108. reg = <0xd00 0x100>;
  109. interrupts = <75 0x8>;
  110. interrupt-parent = <&ipic>;
  111. gpio-controller;
  112. };
  113. sleep-nexus {
  114. #address-cells = <1>;
  115. #size-cells = <1>;
  116. compatible = "simple-bus";
  117. sleep = <&pmc 0x0c000000>;
  118. ranges;
  119. i2c@3000 {
  120. #address-cells = <1>;
  121. #size-cells = <0>;
  122. cell-index = <0>;
  123. compatible = "fsl-i2c";
  124. reg = <0x3000 0x100>;
  125. interrupts = <14 0x8>;
  126. interrupt-parent = <&ipic>;
  127. dfsrr;
  128. dtt@48 {
  129. compatible = "national,lm75";
  130. reg = <0x48>;
  131. };
  132. at24@50 {
  133. compatible = "at24,24c256";
  134. reg = <0x50>;
  135. };
  136. rtc@68 {
  137. compatible = "dallas,ds1339";
  138. reg = <0x68>;
  139. };
  140. mcu_pio: mcu@a {
  141. #gpio-cells = <2>;
  142. compatible = "fsl,mc9s08qg8-mpc8377erdb",
  143. "fsl,mcu-mpc8349emitx";
  144. reg = <0x0a>;
  145. gpio-controller;
  146. };
  147. };
  148. sdhci@2e000 {
  149. compatible = "fsl,mpc8377-esdhc", "fsl,esdhc";
  150. reg = <0x2e000 0x1000>;
  151. interrupts = <42 0x8>;
  152. interrupt-parent = <&ipic>;
  153. sdhci,wp-inverted;
  154. /* Filled in by U-Boot */
  155. clock-frequency = <111111111>;
  156. };
  157. };
  158. i2c@3100 {
  159. #address-cells = <1>;
  160. #size-cells = <0>;
  161. cell-index = <1>;
  162. compatible = "fsl-i2c";
  163. reg = <0x3100 0x100>;
  164. interrupts = <15 0x8>;
  165. interrupt-parent = <&ipic>;
  166. dfsrr;
  167. };
  168. spi@7000 {
  169. cell-index = <0>;
  170. compatible = "fsl,spi";
  171. reg = <0x7000 0x1000>;
  172. interrupts = <16 0x8>;
  173. interrupt-parent = <&ipic>;
  174. mode = "cpu";
  175. };
  176. dma@82a8 {
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. compatible = "fsl,mpc8377-dma", "fsl,elo-dma";
  180. reg = <0x82a8 4>;
  181. ranges = <0 0x8100 0x1a8>;
  182. interrupt-parent = <&ipic>;
  183. interrupts = <71 8>;
  184. cell-index = <0>;
  185. dma-channel@0 {
  186. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  187. reg = <0 0x80>;
  188. cell-index = <0>;
  189. interrupt-parent = <&ipic>;
  190. interrupts = <71 8>;
  191. };
  192. dma-channel@80 {
  193. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  194. reg = <0x80 0x80>;
  195. cell-index = <1>;
  196. interrupt-parent = <&ipic>;
  197. interrupts = <71 8>;
  198. };
  199. dma-channel@100 {
  200. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  201. reg = <0x100 0x80>;
  202. cell-index = <2>;
  203. interrupt-parent = <&ipic>;
  204. interrupts = <71 8>;
  205. };
  206. dma-channel@180 {
  207. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  208. reg = <0x180 0x28>;
  209. cell-index = <3>;
  210. interrupt-parent = <&ipic>;
  211. interrupts = <71 8>;
  212. };
  213. };
  214. usb@23000 {
  215. compatible = "fsl-usb2-dr";
  216. reg = <0x23000 0x1000>;
  217. #address-cells = <1>;
  218. #size-cells = <0>;
  219. interrupt-parent = <&ipic>;
  220. interrupts = <38 0x8>;
  221. phy_type = "ulpi";
  222. sleep = <&pmc 0x00c00000>;
  223. };
  224. enet0: ethernet@24000 {
  225. #address-cells = <1>;
  226. #size-cells = <1>;
  227. cell-index = <0>;
  228. device_type = "network";
  229. model = "eTSEC";
  230. compatible = "gianfar";
  231. reg = <0x24000 0x1000>;
  232. ranges = <0x0 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. sleep = <&pmc 0xc0000000>;
  240. fsl,magic-packet;
  241. mdio@520 {
  242. #address-cells = <1>;
  243. #size-cells = <0>;
  244. compatible = "fsl,gianfar-mdio";
  245. reg = <0x520 0x20>;
  246. phy2: ethernet-phy@2 {
  247. interrupt-parent = <&ipic>;
  248. interrupts = <17 0x8>;
  249. reg = <0x2>;
  250. };
  251. tbi0: tbi-phy@11 {
  252. reg = <0x11>;
  253. device_type = "tbi-phy";
  254. };
  255. };
  256. };
  257. enet1: ethernet@25000 {
  258. #address-cells = <1>;
  259. #size-cells = <1>;
  260. cell-index = <1>;
  261. device_type = "network";
  262. model = "eTSEC";
  263. compatible = "gianfar";
  264. reg = <0x25000 0x1000>;
  265. ranges = <0x0 0x25000 0x1000>;
  266. local-mac-address = [ 00 00 00 00 00 00 ];
  267. interrupts = <35 0x8 36 0x8 37 0x8>;
  268. phy-connection-type = "mii";
  269. interrupt-parent = <&ipic>;
  270. fixed-link = <1 1 1000 0 0>;
  271. tbi-handle = <&tbi1>;
  272. sleep = <&pmc 0x30000000>;
  273. fsl,magic-packet;
  274. mdio@520 {
  275. #address-cells = <1>;
  276. #size-cells = <0>;
  277. compatible = "fsl,gianfar-tbi";
  278. reg = <0x520 0x20>;
  279. tbi1: tbi-phy@11 {
  280. reg = <0x11>;
  281. device_type = "tbi-phy";
  282. };
  283. };
  284. };
  285. serial0: serial@4500 {
  286. cell-index = <0>;
  287. device_type = "serial";
  288. compatible = "fsl,ns16550", "ns16550";
  289. reg = <0x4500 0x100>;
  290. clock-frequency = <0>;
  291. interrupts = <9 0x8>;
  292. interrupt-parent = <&ipic>;
  293. };
  294. serial1: serial@4600 {
  295. cell-index = <1>;
  296. device_type = "serial";
  297. compatible = "fsl,ns16550", "ns16550";
  298. reg = <0x4600 0x100>;
  299. clock-frequency = <0>;
  300. interrupts = <10 0x8>;
  301. interrupt-parent = <&ipic>;
  302. };
  303. crypto@30000 {
  304. compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
  305. "fsl,sec2.1", "fsl,sec2.0";
  306. reg = <0x30000 0x10000>;
  307. interrupts = <11 0x8>;
  308. interrupt-parent = <&ipic>;
  309. fsl,num-channels = <4>;
  310. fsl,channel-fifo-len = <24>;
  311. fsl,exec-units-mask = <0x9fe>;
  312. fsl,descriptor-types-mask = <0x3ab0ebf>;
  313. sleep = <&pmc 0x03000000>;
  314. };
  315. sata@18000 {
  316. compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
  317. reg = <0x18000 0x1000>;
  318. interrupts = <44 0x8>;
  319. interrupt-parent = <&ipic>;
  320. sleep = <&pmc 0x000000c0>;
  321. };
  322. sata@19000 {
  323. compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
  324. reg = <0x19000 0x1000>;
  325. interrupts = <45 0x8>;
  326. interrupt-parent = <&ipic>;
  327. sleep = <&pmc 0x00000030>;
  328. };
  329. /* IPIC
  330. * interrupts cell = <intr #, sense>
  331. * sense values match linux IORESOURCE_IRQ_* defines:
  332. * sense == 8: Level, low assertion
  333. * sense == 2: Edge, high-to-low change
  334. */
  335. ipic: interrupt-controller@700 {
  336. compatible = "fsl,ipic";
  337. interrupt-controller;
  338. #address-cells = <0>;
  339. #interrupt-cells = <2>;
  340. reg = <0x700 0x100>;
  341. };
  342. pmc: power@b00 {
  343. compatible = "fsl,mpc8377-pmc", "fsl,mpc8349-pmc";
  344. reg = <0xb00 0x100 0xa00 0x100>;
  345. interrupts = <80 0x8>;
  346. interrupt-parent = <&ipic>;
  347. };
  348. };
  349. pci0: pci@e0008500 {
  350. interrupt-map-mask = <0xf800 0 0 7>;
  351. interrupt-map = <
  352. /* IRQ5 = 21 = 0x15, IRQ6 = 0x16, IRQ7 = 23 = 0x17 */
  353. /* IDSEL AD14 IRQ6 inta */
  354. 0x7000 0x0 0x0 0x1 &ipic 22 0x8
  355. /* IDSEL AD15 IRQ5 inta, IRQ6 intb, IRQ7 intd */
  356. 0x7800 0x0 0x0 0x1 &ipic 21 0x8
  357. 0x7800 0x0 0x0 0x2 &ipic 22 0x8
  358. 0x7800 0x0 0x0 0x4 &ipic 23 0x8
  359. /* IDSEL AD28 IRQ7 inta, IRQ5 intb IRQ6 intc*/
  360. 0xE000 0x0 0x0 0x1 &ipic 23 0x8
  361. 0xE000 0x0 0x0 0x2 &ipic 21 0x8
  362. 0xE000 0x0 0x0 0x3 &ipic 22 0x8>;
  363. interrupt-parent = <&ipic>;
  364. interrupts = <66 0x8>;
  365. bus-range = <0 0>;
  366. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  367. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  368. 0x01000000 0x0 0x00000000 0xe0300000 0x0 0x00100000>;
  369. sleep = <&pmc 0x00010000>;
  370. clock-frequency = <66666666>;
  371. #interrupt-cells = <1>;
  372. #size-cells = <2>;
  373. #address-cells = <3>;
  374. reg = <0xe0008500 0x100 /* internal registers */
  375. 0xe0008300 0x8>; /* config space access registers */
  376. compatible = "fsl,mpc8349-pci";
  377. device_type = "pci";
  378. };
  379. pci1: pcie@e0009000 {
  380. #address-cells = <3>;
  381. #size-cells = <2>;
  382. #interrupt-cells = <1>;
  383. device_type = "pci";
  384. compatible = "fsl,mpc8377-pcie", "fsl,mpc8314-pcie";
  385. reg = <0xe0009000 0x00001000>;
  386. ranges = <0x02000000 0 0xa8000000 0xa8000000 0 0x10000000
  387. 0x01000000 0 0x00000000 0xb8000000 0 0x00800000>;
  388. bus-range = <0 255>;
  389. interrupt-map-mask = <0xf800 0 0 7>;
  390. interrupt-map = <0 0 0 1 &ipic 1 8
  391. 0 0 0 2 &ipic 1 8
  392. 0 0 0 3 &ipic 1 8
  393. 0 0 0 4 &ipic 1 8>;
  394. sleep = <&pmc 0x00300000>;
  395. clock-frequency = <0>;
  396. pcie@0 {
  397. #address-cells = <3>;
  398. #size-cells = <2>;
  399. device_type = "pci";
  400. reg = <0 0 0 0 0>;
  401. ranges = <0x02000000 0 0xa8000000
  402. 0x02000000 0 0xa8000000
  403. 0 0x10000000
  404. 0x01000000 0 0x00000000
  405. 0x01000000 0 0x00000000
  406. 0 0x00800000>;
  407. };
  408. };
  409. pci2: pcie@e000a000 {
  410. #address-cells = <3>;
  411. #size-cells = <2>;
  412. #interrupt-cells = <1>;
  413. device_type = "pci";
  414. compatible = "fsl,mpc8377-pcie", "fsl,mpc8314-pcie";
  415. reg = <0xe000a000 0x00001000>;
  416. ranges = <0x02000000 0 0xc8000000 0xc8000000 0 0x10000000
  417. 0x01000000 0 0x00000000 0xd8000000 0 0x00800000>;
  418. bus-range = <0 255>;
  419. interrupt-map-mask = <0xf800 0 0 7>;
  420. interrupt-map = <0 0 0 1 &ipic 2 8
  421. 0 0 0 2 &ipic 2 8
  422. 0 0 0 3 &ipic 2 8
  423. 0 0 0 4 &ipic 2 8>;
  424. sleep = <&pmc 0x000c0000>;
  425. clock-frequency = <0>;
  426. pcie@0 {
  427. #address-cells = <3>;
  428. #size-cells = <2>;
  429. device_type = "pci";
  430. reg = <0 0 0 0 0>;
  431. ranges = <0x02000000 0 0xc8000000
  432. 0x02000000 0 0xc8000000
  433. 0 0x10000000
  434. 0x01000000 0 0x00000000
  435. 0x01000000 0 0x00000000
  436. 0 0x00800000>;
  437. };
  438. };
  439. leds {
  440. compatible = "gpio-leds";
  441. pwr {
  442. gpios = <&mcu_pio 0 0>;
  443. default-state = "on";
  444. };
  445. hdd {
  446. gpios = <&mcu_pio 1 0>;
  447. linux,default-trigger = "ide-disk";
  448. };
  449. };
  450. };