mpc8641_hpcn.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. /*
  2. * MPC8641 HPCN Device Tree Source
  3. *
  4. * Copyright 2006 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 = "MPC8641HPCN";
  14. compatible = "fsl,mpc8641hpcn";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. ethernet2 = &enet2;
  21. ethernet3 = &enet3;
  22. serial0 = &serial0;
  23. serial1 = &serial1;
  24. pci0 = &pci0;
  25. pci1 = &pci1;
  26. /*
  27. * Only one of Rapid IO or PCI can be present due to HW limitations and
  28. * due to the fact that the 2 now share address space in the new memory
  29. * map. The most likely case is that we have PCI, so comment out the
  30. * rapidio node. Leave it here for reference.
  31. */
  32. /* rapidio0 = &rapidio0; */
  33. };
  34. cpus {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. PowerPC,8641@0 {
  38. device_type = "cpu";
  39. reg = <0>;
  40. d-cache-line-size = <32>;
  41. i-cache-line-size = <32>;
  42. d-cache-size = <32768>; // L1
  43. i-cache-size = <32768>; // L1
  44. timebase-frequency = <0>; // From uboot
  45. bus-frequency = <0>; // From uboot
  46. clock-frequency = <0>; // From uboot
  47. };
  48. PowerPC,8641@1 {
  49. device_type = "cpu";
  50. reg = <1>;
  51. d-cache-line-size = <32>;
  52. i-cache-line-size = <32>;
  53. d-cache-size = <32768>;
  54. i-cache-size = <32768>;
  55. timebase-frequency = <0>; // From uboot
  56. bus-frequency = <0>; // From uboot
  57. clock-frequency = <0>; // From uboot
  58. };
  59. };
  60. memory {
  61. device_type = "memory";
  62. reg = <0x00000000 0x40000000>; // 1G at 0x0
  63. };
  64. localbus@ffe05000 {
  65. #address-cells = <2>;
  66. #size-cells = <1>;
  67. compatible = "fsl,mpc8641-localbus", "simple-bus";
  68. reg = <0xffe05000 0x1000>;
  69. interrupts = <19 2>;
  70. interrupt-parent = <&mpic>;
  71. ranges = <0 0 0xef800000 0x00800000
  72. 2 0 0xffdf8000 0x00008000
  73. 3 0 0xffdf0000 0x00008000>;
  74. flash@0,0 {
  75. compatible = "cfi-flash";
  76. reg = <0 0 0x00800000>;
  77. bank-width = <2>;
  78. device-width = <2>;
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. partition@0 {
  82. label = "kernel";
  83. reg = <0x00000000 0x00300000>;
  84. };
  85. partition@300000 {
  86. label = "firmware b";
  87. reg = <0x00300000 0x00100000>;
  88. read-only;
  89. };
  90. partition@400000 {
  91. label = "fs";
  92. reg = <0x00400000 0x00300000>;
  93. };
  94. partition@700000 {
  95. label = "firmware a";
  96. reg = <0x00700000 0x00100000>;
  97. read-only;
  98. };
  99. };
  100. };
  101. soc8641@ffe00000 {
  102. #address-cells = <1>;
  103. #size-cells = <1>;
  104. device_type = "soc";
  105. compatible = "simple-bus";
  106. ranges = <0x00000000 0xffe00000 0x00100000>;
  107. reg = <0xffe00000 0x00001000>; // CCSRBAR
  108. bus-frequency = <0>;
  109. i2c@3000 {
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. cell-index = <0>;
  113. compatible = "fsl-i2c";
  114. reg = <0x3000 0x100>;
  115. interrupts = <43 2>;
  116. interrupt-parent = <&mpic>;
  117. dfsrr;
  118. };
  119. i2c@3100 {
  120. #address-cells = <1>;
  121. #size-cells = <0>;
  122. cell-index = <1>;
  123. compatible = "fsl-i2c";
  124. reg = <0x3100 0x100>;
  125. interrupts = <43 2>;
  126. interrupt-parent = <&mpic>;
  127. dfsrr;
  128. };
  129. dma@21300 {
  130. #address-cells = <1>;
  131. #size-cells = <1>;
  132. compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
  133. reg = <0x21300 0x4>;
  134. ranges = <0x0 0x21100 0x200>;
  135. cell-index = <0>;
  136. dma-channel@0 {
  137. compatible = "fsl,mpc8641-dma-channel",
  138. "fsl,eloplus-dma-channel";
  139. reg = <0x0 0x80>;
  140. cell-index = <0>;
  141. interrupt-parent = <&mpic>;
  142. interrupts = <20 2>;
  143. };
  144. dma-channel@80 {
  145. compatible = "fsl,mpc8641-dma-channel",
  146. "fsl,eloplus-dma-channel";
  147. reg = <0x80 0x80>;
  148. cell-index = <1>;
  149. interrupt-parent = <&mpic>;
  150. interrupts = <21 2>;
  151. };
  152. dma-channel@100 {
  153. compatible = "fsl,mpc8641-dma-channel",
  154. "fsl,eloplus-dma-channel";
  155. reg = <0x100 0x80>;
  156. cell-index = <2>;
  157. interrupt-parent = <&mpic>;
  158. interrupts = <22 2>;
  159. };
  160. dma-channel@180 {
  161. compatible = "fsl,mpc8641-dma-channel",
  162. "fsl,eloplus-dma-channel";
  163. reg = <0x180 0x80>;
  164. cell-index = <3>;
  165. interrupt-parent = <&mpic>;
  166. interrupts = <23 2>;
  167. };
  168. };
  169. mdio@24520 {
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. compatible = "fsl,gianfar-mdio";
  173. reg = <0x24520 0x20>;
  174. phy0: ethernet-phy@0 {
  175. interrupt-parent = <&mpic>;
  176. interrupts = <10 1>;
  177. reg = <0>;
  178. device_type = "ethernet-phy";
  179. };
  180. phy1: ethernet-phy@1 {
  181. interrupt-parent = <&mpic>;
  182. interrupts = <10 1>;
  183. reg = <1>;
  184. device_type = "ethernet-phy";
  185. };
  186. phy2: ethernet-phy@2 {
  187. interrupt-parent = <&mpic>;
  188. interrupts = <10 1>;
  189. reg = <2>;
  190. device_type = "ethernet-phy";
  191. };
  192. phy3: ethernet-phy@3 {
  193. interrupt-parent = <&mpic>;
  194. interrupts = <10 1>;
  195. reg = <3>;
  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. mdio@26520 {
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. compatible = "fsl,gianfar-tbi";
  217. reg = <0x26520 0x20>;
  218. tbi2: tbi-phy@11 {
  219. reg = <0x11>;
  220. device_type = "tbi-phy";
  221. };
  222. };
  223. mdio@27520 {
  224. #address-cells = <1>;
  225. #size-cells = <0>;
  226. compatible = "fsl,gianfar-tbi";
  227. reg = <0x27520 0x20>;
  228. tbi3: tbi-phy@11 {
  229. reg = <0x11>;
  230. device_type = "tbi-phy";
  231. };
  232. };
  233. enet0: ethernet@24000 {
  234. cell-index = <0>;
  235. device_type = "network";
  236. model = "TSEC";
  237. compatible = "gianfar";
  238. reg = <0x24000 0x1000>;
  239. local-mac-address = [ 00 00 00 00 00 00 ];
  240. interrupts = <29 2 30 2 34 2>;
  241. interrupt-parent = <&mpic>;
  242. tbi-handle = <&tbi0>;
  243. phy-handle = <&phy0>;
  244. phy-connection-type = "rgmii-id";
  245. };
  246. enet1: ethernet@25000 {
  247. cell-index = <1>;
  248. device_type = "network";
  249. model = "TSEC";
  250. compatible = "gianfar";
  251. reg = <0x25000 0x1000>;
  252. local-mac-address = [ 00 00 00 00 00 00 ];
  253. interrupts = <35 2 36 2 40 2>;
  254. interrupt-parent = <&mpic>;
  255. tbi-handle = <&tbi1>;
  256. phy-handle = <&phy1>;
  257. phy-connection-type = "rgmii-id";
  258. };
  259. enet2: ethernet@26000 {
  260. cell-index = <2>;
  261. device_type = "network";
  262. model = "TSEC";
  263. compatible = "gianfar";
  264. reg = <0x26000 0x1000>;
  265. local-mac-address = [ 00 00 00 00 00 00 ];
  266. interrupts = <31 2 32 2 33 2>;
  267. interrupt-parent = <&mpic>;
  268. tbi-handle = <&tbi2>;
  269. phy-handle = <&phy2>;
  270. phy-connection-type = "rgmii-id";
  271. };
  272. enet3: ethernet@27000 {
  273. cell-index = <3>;
  274. device_type = "network";
  275. model = "TSEC";
  276. compatible = "gianfar";
  277. reg = <0x27000 0x1000>;
  278. local-mac-address = [ 00 00 00 00 00 00 ];
  279. interrupts = <37 2 38 2 39 2>;
  280. interrupt-parent = <&mpic>;
  281. tbi-handle = <&tbi3>;
  282. phy-handle = <&phy3>;
  283. phy-connection-type = "rgmii-id";
  284. };
  285. serial0: serial@4500 {
  286. cell-index = <0>;
  287. device_type = "serial";
  288. compatible = "ns16550";
  289. reg = <0x4500 0x100>;
  290. clock-frequency = <0>;
  291. interrupts = <42 2>;
  292. interrupt-parent = <&mpic>;
  293. };
  294. serial1: serial@4600 {
  295. cell-index = <1>;
  296. device_type = "serial";
  297. compatible = "ns16550";
  298. reg = <0x4600 0x100>;
  299. clock-frequency = <0>;
  300. interrupts = <28 2>;
  301. interrupt-parent = <&mpic>;
  302. };
  303. mpic: pic@40000 {
  304. interrupt-controller;
  305. #address-cells = <0>;
  306. #interrupt-cells = <2>;
  307. reg = <0x40000 0x40000>;
  308. compatible = "chrp,open-pic";
  309. device_type = "open-pic";
  310. };
  311. global-utilities@e0000 {
  312. compatible = "fsl,mpc8641-guts";
  313. reg = <0xe0000 0x1000>;
  314. fsl,has-rstcr;
  315. };
  316. };
  317. pci0: pcie@ffe08000 {
  318. cell-index = <0>;
  319. compatible = "fsl,mpc8641-pcie";
  320. device_type = "pci";
  321. #interrupt-cells = <1>;
  322. #size-cells = <2>;
  323. #address-cells = <3>;
  324. reg = <0xffe08000 0x1000>;
  325. bus-range = <0x0 0xff>;
  326. ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  327. 0x01000000 0x0 0x00000000 0xffc00000 0x0 0x00010000>;
  328. clock-frequency = <33333333>;
  329. interrupt-parent = <&mpic>;
  330. interrupts = <24 2>;
  331. interrupt-map-mask = <0xff00 0 0 7>;
  332. interrupt-map = <
  333. /* IDSEL 0x11 func 0 - PCI slot 1 */
  334. 0x8800 0 0 1 &mpic 2 1
  335. 0x8800 0 0 2 &mpic 3 1
  336. 0x8800 0 0 3 &mpic 4 1
  337. 0x8800 0 0 4 &mpic 1 1
  338. /* IDSEL 0x11 func 1 - PCI slot 1 */
  339. 0x8900 0 0 1 &mpic 2 1
  340. 0x8900 0 0 2 &mpic 3 1
  341. 0x8900 0 0 3 &mpic 4 1
  342. 0x8900 0 0 4 &mpic 1 1
  343. /* IDSEL 0x11 func 2 - PCI slot 1 */
  344. 0x8a00 0 0 1 &mpic 2 1
  345. 0x8a00 0 0 2 &mpic 3 1
  346. 0x8a00 0 0 3 &mpic 4 1
  347. 0x8a00 0 0 4 &mpic 1 1
  348. /* IDSEL 0x11 func 3 - PCI slot 1 */
  349. 0x8b00 0 0 1 &mpic 2 1
  350. 0x8b00 0 0 2 &mpic 3 1
  351. 0x8b00 0 0 3 &mpic 4 1
  352. 0x8b00 0 0 4 &mpic 1 1
  353. /* IDSEL 0x11 func 4 - PCI slot 1 */
  354. 0x8c00 0 0 1 &mpic 2 1
  355. 0x8c00 0 0 2 &mpic 3 1
  356. 0x8c00 0 0 3 &mpic 4 1
  357. 0x8c00 0 0 4 &mpic 1 1
  358. /* IDSEL 0x11 func 5 - PCI slot 1 */
  359. 0x8d00 0 0 1 &mpic 2 1
  360. 0x8d00 0 0 2 &mpic 3 1
  361. 0x8d00 0 0 3 &mpic 4 1
  362. 0x8d00 0 0 4 &mpic 1 1
  363. /* IDSEL 0x11 func 6 - PCI slot 1 */
  364. 0x8e00 0 0 1 &mpic 2 1
  365. 0x8e00 0 0 2 &mpic 3 1
  366. 0x8e00 0 0 3 &mpic 4 1
  367. 0x8e00 0 0 4 &mpic 1 1
  368. /* IDSEL 0x11 func 7 - PCI slot 1 */
  369. 0x8f00 0 0 1 &mpic 2 1
  370. 0x8f00 0 0 2 &mpic 3 1
  371. 0x8f00 0 0 3 &mpic 4 1
  372. 0x8f00 0 0 4 &mpic 1 1
  373. /* IDSEL 0x12 func 0 - PCI slot 2 */
  374. 0x9000 0 0 1 &mpic 3 1
  375. 0x9000 0 0 2 &mpic 4 1
  376. 0x9000 0 0 3 &mpic 1 1
  377. 0x9000 0 0 4 &mpic 2 1
  378. /* IDSEL 0x12 func 1 - PCI slot 2 */
  379. 0x9100 0 0 1 &mpic 3 1
  380. 0x9100 0 0 2 &mpic 4 1
  381. 0x9100 0 0 3 &mpic 1 1
  382. 0x9100 0 0 4 &mpic 2 1
  383. /* IDSEL 0x12 func 2 - PCI slot 2 */
  384. 0x9200 0 0 1 &mpic 3 1
  385. 0x9200 0 0 2 &mpic 4 1
  386. 0x9200 0 0 3 &mpic 1 1
  387. 0x9200 0 0 4 &mpic 2 1
  388. /* IDSEL 0x12 func 3 - PCI slot 2 */
  389. 0x9300 0 0 1 &mpic 3 1
  390. 0x9300 0 0 2 &mpic 4 1
  391. 0x9300 0 0 3 &mpic 1 1
  392. 0x9300 0 0 4 &mpic 2 1
  393. /* IDSEL 0x12 func 4 - PCI slot 2 */
  394. 0x9400 0 0 1 &mpic 3 1
  395. 0x9400 0 0 2 &mpic 4 1
  396. 0x9400 0 0 3 &mpic 1 1
  397. 0x9400 0 0 4 &mpic 2 1
  398. /* IDSEL 0x12 func 5 - PCI slot 2 */
  399. 0x9500 0 0 1 &mpic 3 1
  400. 0x9500 0 0 2 &mpic 4 1
  401. 0x9500 0 0 3 &mpic 1 1
  402. 0x9500 0 0 4 &mpic 2 1
  403. /* IDSEL 0x12 func 6 - PCI slot 2 */
  404. 0x9600 0 0 1 &mpic 3 1
  405. 0x9600 0 0 2 &mpic 4 1
  406. 0x9600 0 0 3 &mpic 1 1
  407. 0x9600 0 0 4 &mpic 2 1
  408. /* IDSEL 0x12 func 7 - PCI slot 2 */
  409. 0x9700 0 0 1 &mpic 3 1
  410. 0x9700 0 0 2 &mpic 4 1
  411. 0x9700 0 0 3 &mpic 1 1
  412. 0x9700 0 0 4 &mpic 2 1
  413. // IDSEL 0x1c USB
  414. 0xe000 0 0 1 &i8259 12 2
  415. 0xe100 0 0 2 &i8259 9 2
  416. 0xe200 0 0 3 &i8259 10 2
  417. 0xe300 0 0 4 &i8259 11 2
  418. // IDSEL 0x1d Audio
  419. 0xe800 0 0 1 &i8259 6 2
  420. // IDSEL 0x1e Legacy
  421. 0xf000 0 0 1 &i8259 7 2
  422. 0xf100 0 0 1 &i8259 7 2
  423. // IDSEL 0x1f IDE/SATA
  424. 0xf800 0 0 1 &i8259 14 2
  425. 0xf900 0 0 1 &i8259 5 2
  426. >;
  427. pcie@0 {
  428. reg = <0 0 0 0 0>;
  429. #size-cells = <2>;
  430. #address-cells = <3>;
  431. device_type = "pci";
  432. ranges = <0x02000000 0x0 0x80000000
  433. 0x02000000 0x0 0x80000000
  434. 0x0 0x20000000
  435. 0x01000000 0x0 0x00000000
  436. 0x01000000 0x0 0x00000000
  437. 0x0 0x00010000>;
  438. uli1575@0 {
  439. reg = <0 0 0 0 0>;
  440. #size-cells = <2>;
  441. #address-cells = <3>;
  442. ranges = <0x02000000 0x0 0x80000000
  443. 0x02000000 0x0 0x80000000
  444. 0x0 0x20000000
  445. 0x01000000 0x0 0x00000000
  446. 0x01000000 0x0 0x00000000
  447. 0x0 0x00010000>;
  448. isa@1e {
  449. device_type = "isa";
  450. #interrupt-cells = <2>;
  451. #size-cells = <1>;
  452. #address-cells = <2>;
  453. reg = <0xf000 0 0 0 0>;
  454. ranges = <1 0 0x01000000 0 0
  455. 0x00001000>;
  456. interrupt-parent = <&i8259>;
  457. i8259: interrupt-controller@20 {
  458. reg = <1 0x20 2
  459. 1 0xa0 2
  460. 1 0x4d0 2>;
  461. interrupt-controller;
  462. device_type = "interrupt-controller";
  463. #address-cells = <0>;
  464. #interrupt-cells = <2>;
  465. compatible = "chrp,iic";
  466. interrupts = <9 2>;
  467. interrupt-parent = <&mpic>;
  468. };
  469. i8042@60 {
  470. #size-cells = <0>;
  471. #address-cells = <1>;
  472. reg = <1 0x60 1 1 0x64 1>;
  473. interrupts = <1 3 12 3>;
  474. interrupt-parent =
  475. <&i8259>;
  476. keyboard@0 {
  477. reg = <0>;
  478. compatible = "pnpPNP,303";
  479. };
  480. mouse@1 {
  481. reg = <1>;
  482. compatible = "pnpPNP,f03";
  483. };
  484. };
  485. rtc@70 {
  486. compatible =
  487. "pnpPNP,b00";
  488. reg = <1 0x70 2>;
  489. };
  490. gpio@400 {
  491. reg = <1 0x400 0x80>;
  492. };
  493. };
  494. };
  495. };
  496. };
  497. pci1: pcie@ffe09000 {
  498. cell-index = <1>;
  499. compatible = "fsl,mpc8641-pcie";
  500. device_type = "pci";
  501. #interrupt-cells = <1>;
  502. #size-cells = <2>;
  503. #address-cells = <3>;
  504. reg = <0xffe09000 0x1000>;
  505. bus-range = <0 0xff>;
  506. ranges = <0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x20000000
  507. 0x01000000 0x0 0x00000000 0xffc10000 0x0 0x00010000>;
  508. clock-frequency = <33333333>;
  509. interrupt-parent = <&mpic>;
  510. interrupts = <25 2>;
  511. interrupt-map-mask = <0xf800 0 0 7>;
  512. interrupt-map = <
  513. /* IDSEL 0x0 */
  514. 0x0000 0 0 1 &mpic 4 1
  515. 0x0000 0 0 2 &mpic 5 1
  516. 0x0000 0 0 3 &mpic 6 1
  517. 0x0000 0 0 4 &mpic 7 1
  518. >;
  519. pcie@0 {
  520. reg = <0 0 0 0 0>;
  521. #size-cells = <2>;
  522. #address-cells = <3>;
  523. device_type = "pci";
  524. ranges = <0x02000000 0x0 0xa0000000
  525. 0x02000000 0x0 0xa0000000
  526. 0x0 0x20000000
  527. 0x01000000 0x0 0x00000000
  528. 0x01000000 0x0 0x00000000
  529. 0x0 0x00010000>;
  530. };
  531. };
  532. /*
  533. rapidio0: rapidio@ffec0000 {
  534. #address-cells = <2>;
  535. #size-cells = <2>;
  536. compatible = "fsl,rapidio-delta";
  537. reg = <0xffec0000 0x20000>;
  538. ranges = <0 0 0x80000000 0 0x20000000>;
  539. interrupt-parent = <&mpic>;
  540. // err_irq bell_outb_irq bell_inb_irq
  541. // msg1_tx_irq msg1_rx_irq msg2_tx_irq msg2_rx_irq
  542. interrupts = <48 2 49 2 50 2 53 2 54 2 55 2 56 2>;
  543. };
  544. */
  545. };