mpc8641_hpcn.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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. enet0: ethernet@24000 {
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. cell-index = <0>;
  173. device_type = "network";
  174. model = "TSEC";
  175. compatible = "gianfar";
  176. reg = <0x24000 0x1000>;
  177. ranges = <0x0 0x24000 0x1000>;
  178. local-mac-address = [ 00 00 00 00 00 00 ];
  179. interrupts = <29 2 30 2 34 2>;
  180. interrupt-parent = <&mpic>;
  181. tbi-handle = <&tbi0>;
  182. phy-handle = <&phy0>;
  183. phy-connection-type = "rgmii-id";
  184. mdio@520 {
  185. #address-cells = <1>;
  186. #size-cells = <0>;
  187. compatible = "fsl,gianfar-mdio";
  188. reg = <0x520 0x20>;
  189. phy0: ethernet-phy@0 {
  190. interrupt-parent = <&mpic>;
  191. interrupts = <10 1>;
  192. reg = <0>;
  193. device_type = "ethernet-phy";
  194. };
  195. phy1: ethernet-phy@1 {
  196. interrupt-parent = <&mpic>;
  197. interrupts = <10 1>;
  198. reg = <1>;
  199. device_type = "ethernet-phy";
  200. };
  201. phy2: ethernet-phy@2 {
  202. interrupt-parent = <&mpic>;
  203. interrupts = <10 1>;
  204. reg = <2>;
  205. device_type = "ethernet-phy";
  206. };
  207. phy3: ethernet-phy@3 {
  208. interrupt-parent = <&mpic>;
  209. interrupts = <10 1>;
  210. reg = <3>;
  211. device_type = "ethernet-phy";
  212. };
  213. tbi0: tbi-phy@11 {
  214. reg = <0x11>;
  215. device_type = "tbi-phy";
  216. };
  217. };
  218. };
  219. enet1: ethernet@25000 {
  220. #address-cells = <1>;
  221. #size-cells = <1>;
  222. cell-index = <1>;
  223. device_type = "network";
  224. model = "TSEC";
  225. compatible = "gianfar";
  226. reg = <0x25000 0x1000>;
  227. ranges = <0x0 0x25000 0x1000>;
  228. local-mac-address = [ 00 00 00 00 00 00 ];
  229. interrupts = <35 2 36 2 40 2>;
  230. interrupt-parent = <&mpic>;
  231. tbi-handle = <&tbi1>;
  232. phy-handle = <&phy1>;
  233. phy-connection-type = "rgmii-id";
  234. mdio@520 {
  235. #address-cells = <1>;
  236. #size-cells = <0>;
  237. compatible = "fsl,gianfar-tbi";
  238. reg = <0x520 0x20>;
  239. tbi1: tbi-phy@11 {
  240. reg = <0x11>;
  241. device_type = "tbi-phy";
  242. };
  243. };
  244. };
  245. enet2: ethernet@26000 {
  246. #address-cells = <1>;
  247. #size-cells = <1>;
  248. cell-index = <2>;
  249. device_type = "network";
  250. model = "TSEC";
  251. compatible = "gianfar";
  252. reg = <0x26000 0x1000>;
  253. ranges = <0x0 0x26000 0x1000>;
  254. local-mac-address = [ 00 00 00 00 00 00 ];
  255. interrupts = <31 2 32 2 33 2>;
  256. interrupt-parent = <&mpic>;
  257. tbi-handle = <&tbi2>;
  258. phy-handle = <&phy2>;
  259. phy-connection-type = "rgmii-id";
  260. mdio@520 {
  261. #address-cells = <1>;
  262. #size-cells = <0>;
  263. compatible = "fsl,gianfar-tbi";
  264. reg = <0x520 0x20>;
  265. tbi2: tbi-phy@11 {
  266. reg = <0x11>;
  267. device_type = "tbi-phy";
  268. };
  269. };
  270. };
  271. enet3: ethernet@27000 {
  272. #address-cells = <1>;
  273. #size-cells = <1>;
  274. cell-index = <3>;
  275. device_type = "network";
  276. model = "TSEC";
  277. compatible = "gianfar";
  278. reg = <0x27000 0x1000>;
  279. ranges = <0x0 0x27000 0x1000>;
  280. local-mac-address = [ 00 00 00 00 00 00 ];
  281. interrupts = <37 2 38 2 39 2>;
  282. interrupt-parent = <&mpic>;
  283. tbi-handle = <&tbi3>;
  284. phy-handle = <&phy3>;
  285. phy-connection-type = "rgmii-id";
  286. mdio@520 {
  287. #address-cells = <1>;
  288. #size-cells = <0>;
  289. compatible = "fsl,gianfar-tbi";
  290. reg = <0x520 0x20>;
  291. tbi3: tbi-phy@11 {
  292. reg = <0x11>;
  293. device_type = "tbi-phy";
  294. };
  295. };
  296. };
  297. serial0: serial@4500 {
  298. cell-index = <0>;
  299. device_type = "serial";
  300. compatible = "ns16550";
  301. reg = <0x4500 0x100>;
  302. clock-frequency = <0>;
  303. interrupts = <42 2>;
  304. interrupt-parent = <&mpic>;
  305. };
  306. serial1: serial@4600 {
  307. cell-index = <1>;
  308. device_type = "serial";
  309. compatible = "ns16550";
  310. reg = <0x4600 0x100>;
  311. clock-frequency = <0>;
  312. interrupts = <28 2>;
  313. interrupt-parent = <&mpic>;
  314. };
  315. mpic: pic@40000 {
  316. interrupt-controller;
  317. #address-cells = <0>;
  318. #interrupt-cells = <2>;
  319. reg = <0x40000 0x40000>;
  320. compatible = "chrp,open-pic";
  321. device_type = "open-pic";
  322. };
  323. global-utilities@e0000 {
  324. compatible = "fsl,mpc8641-guts";
  325. reg = <0xe0000 0x1000>;
  326. fsl,has-rstcr;
  327. };
  328. };
  329. pci0: pcie@ffe08000 {
  330. cell-index = <0>;
  331. compatible = "fsl,mpc8641-pcie";
  332. device_type = "pci";
  333. #interrupt-cells = <1>;
  334. #size-cells = <2>;
  335. #address-cells = <3>;
  336. reg = <0xffe08000 0x1000>;
  337. bus-range = <0x0 0xff>;
  338. ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  339. 0x01000000 0x0 0x00000000 0xffc00000 0x0 0x00010000>;
  340. clock-frequency = <33333333>;
  341. interrupt-parent = <&mpic>;
  342. interrupts = <24 2>;
  343. interrupt-map-mask = <0xff00 0 0 7>;
  344. interrupt-map = <
  345. /* IDSEL 0x11 func 0 - PCI slot 1 */
  346. 0x8800 0 0 1 &mpic 2 1
  347. 0x8800 0 0 2 &mpic 3 1
  348. 0x8800 0 0 3 &mpic 4 1
  349. 0x8800 0 0 4 &mpic 1 1
  350. /* IDSEL 0x11 func 1 - PCI slot 1 */
  351. 0x8900 0 0 1 &mpic 2 1
  352. 0x8900 0 0 2 &mpic 3 1
  353. 0x8900 0 0 3 &mpic 4 1
  354. 0x8900 0 0 4 &mpic 1 1
  355. /* IDSEL 0x11 func 2 - PCI slot 1 */
  356. 0x8a00 0 0 1 &mpic 2 1
  357. 0x8a00 0 0 2 &mpic 3 1
  358. 0x8a00 0 0 3 &mpic 4 1
  359. 0x8a00 0 0 4 &mpic 1 1
  360. /* IDSEL 0x11 func 3 - PCI slot 1 */
  361. 0x8b00 0 0 1 &mpic 2 1
  362. 0x8b00 0 0 2 &mpic 3 1
  363. 0x8b00 0 0 3 &mpic 4 1
  364. 0x8b00 0 0 4 &mpic 1 1
  365. /* IDSEL 0x11 func 4 - PCI slot 1 */
  366. 0x8c00 0 0 1 &mpic 2 1
  367. 0x8c00 0 0 2 &mpic 3 1
  368. 0x8c00 0 0 3 &mpic 4 1
  369. 0x8c00 0 0 4 &mpic 1 1
  370. /* IDSEL 0x11 func 5 - PCI slot 1 */
  371. 0x8d00 0 0 1 &mpic 2 1
  372. 0x8d00 0 0 2 &mpic 3 1
  373. 0x8d00 0 0 3 &mpic 4 1
  374. 0x8d00 0 0 4 &mpic 1 1
  375. /* IDSEL 0x11 func 6 - PCI slot 1 */
  376. 0x8e00 0 0 1 &mpic 2 1
  377. 0x8e00 0 0 2 &mpic 3 1
  378. 0x8e00 0 0 3 &mpic 4 1
  379. 0x8e00 0 0 4 &mpic 1 1
  380. /* IDSEL 0x11 func 7 - PCI slot 1 */
  381. 0x8f00 0 0 1 &mpic 2 1
  382. 0x8f00 0 0 2 &mpic 3 1
  383. 0x8f00 0 0 3 &mpic 4 1
  384. 0x8f00 0 0 4 &mpic 1 1
  385. /* IDSEL 0x12 func 0 - PCI slot 2 */
  386. 0x9000 0 0 1 &mpic 3 1
  387. 0x9000 0 0 2 &mpic 4 1
  388. 0x9000 0 0 3 &mpic 1 1
  389. 0x9000 0 0 4 &mpic 2 1
  390. /* IDSEL 0x12 func 1 - PCI slot 2 */
  391. 0x9100 0 0 1 &mpic 3 1
  392. 0x9100 0 0 2 &mpic 4 1
  393. 0x9100 0 0 3 &mpic 1 1
  394. 0x9100 0 0 4 &mpic 2 1
  395. /* IDSEL 0x12 func 2 - PCI slot 2 */
  396. 0x9200 0 0 1 &mpic 3 1
  397. 0x9200 0 0 2 &mpic 4 1
  398. 0x9200 0 0 3 &mpic 1 1
  399. 0x9200 0 0 4 &mpic 2 1
  400. /* IDSEL 0x12 func 3 - PCI slot 2 */
  401. 0x9300 0 0 1 &mpic 3 1
  402. 0x9300 0 0 2 &mpic 4 1
  403. 0x9300 0 0 3 &mpic 1 1
  404. 0x9300 0 0 4 &mpic 2 1
  405. /* IDSEL 0x12 func 4 - PCI slot 2 */
  406. 0x9400 0 0 1 &mpic 3 1
  407. 0x9400 0 0 2 &mpic 4 1
  408. 0x9400 0 0 3 &mpic 1 1
  409. 0x9400 0 0 4 &mpic 2 1
  410. /* IDSEL 0x12 func 5 - PCI slot 2 */
  411. 0x9500 0 0 1 &mpic 3 1
  412. 0x9500 0 0 2 &mpic 4 1
  413. 0x9500 0 0 3 &mpic 1 1
  414. 0x9500 0 0 4 &mpic 2 1
  415. /* IDSEL 0x12 func 6 - PCI slot 2 */
  416. 0x9600 0 0 1 &mpic 3 1
  417. 0x9600 0 0 2 &mpic 4 1
  418. 0x9600 0 0 3 &mpic 1 1
  419. 0x9600 0 0 4 &mpic 2 1
  420. /* IDSEL 0x12 func 7 - PCI slot 2 */
  421. 0x9700 0 0 1 &mpic 3 1
  422. 0x9700 0 0 2 &mpic 4 1
  423. 0x9700 0 0 3 &mpic 1 1
  424. 0x9700 0 0 4 &mpic 2 1
  425. // IDSEL 0x1c USB
  426. 0xe000 0 0 1 &i8259 12 2
  427. 0xe100 0 0 2 &i8259 9 2
  428. 0xe200 0 0 3 &i8259 10 2
  429. 0xe300 0 0 4 &i8259 11 2
  430. // IDSEL 0x1d Audio
  431. 0xe800 0 0 1 &i8259 6 2
  432. // IDSEL 0x1e Legacy
  433. 0xf000 0 0 1 &i8259 7 2
  434. 0xf100 0 0 1 &i8259 7 2
  435. // IDSEL 0x1f IDE/SATA
  436. 0xf800 0 0 1 &i8259 14 2
  437. 0xf900 0 0 1 &i8259 5 2
  438. >;
  439. pcie@0 {
  440. reg = <0 0 0 0 0>;
  441. #size-cells = <2>;
  442. #address-cells = <3>;
  443. device_type = "pci";
  444. ranges = <0x02000000 0x0 0x80000000
  445. 0x02000000 0x0 0x80000000
  446. 0x0 0x20000000
  447. 0x01000000 0x0 0x00000000
  448. 0x01000000 0x0 0x00000000
  449. 0x0 0x00010000>;
  450. uli1575@0 {
  451. reg = <0 0 0 0 0>;
  452. #size-cells = <2>;
  453. #address-cells = <3>;
  454. ranges = <0x02000000 0x0 0x80000000
  455. 0x02000000 0x0 0x80000000
  456. 0x0 0x20000000
  457. 0x01000000 0x0 0x00000000
  458. 0x01000000 0x0 0x00000000
  459. 0x0 0x00010000>;
  460. isa@1e {
  461. device_type = "isa";
  462. #interrupt-cells = <2>;
  463. #size-cells = <1>;
  464. #address-cells = <2>;
  465. reg = <0xf000 0 0 0 0>;
  466. ranges = <1 0 0x01000000 0 0
  467. 0x00001000>;
  468. interrupt-parent = <&i8259>;
  469. i8259: interrupt-controller@20 {
  470. reg = <1 0x20 2
  471. 1 0xa0 2
  472. 1 0x4d0 2>;
  473. interrupt-controller;
  474. device_type = "interrupt-controller";
  475. #address-cells = <0>;
  476. #interrupt-cells = <2>;
  477. compatible = "chrp,iic";
  478. interrupts = <9 2>;
  479. interrupt-parent = <&mpic>;
  480. };
  481. i8042@60 {
  482. #size-cells = <0>;
  483. #address-cells = <1>;
  484. reg = <1 0x60 1 1 0x64 1>;
  485. interrupts = <1 3 12 3>;
  486. interrupt-parent =
  487. <&i8259>;
  488. keyboard@0 {
  489. reg = <0>;
  490. compatible = "pnpPNP,303";
  491. };
  492. mouse@1 {
  493. reg = <1>;
  494. compatible = "pnpPNP,f03";
  495. };
  496. };
  497. rtc@70 {
  498. compatible =
  499. "pnpPNP,b00";
  500. reg = <1 0x70 2>;
  501. };
  502. gpio@400 {
  503. reg = <1 0x400 0x80>;
  504. };
  505. };
  506. };
  507. };
  508. };
  509. pci1: pcie@ffe09000 {
  510. cell-index = <1>;
  511. compatible = "fsl,mpc8641-pcie";
  512. device_type = "pci";
  513. #interrupt-cells = <1>;
  514. #size-cells = <2>;
  515. #address-cells = <3>;
  516. reg = <0xffe09000 0x1000>;
  517. bus-range = <0 0xff>;
  518. ranges = <0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x20000000
  519. 0x01000000 0x0 0x00000000 0xffc10000 0x0 0x00010000>;
  520. clock-frequency = <33333333>;
  521. interrupt-parent = <&mpic>;
  522. interrupts = <25 2>;
  523. interrupt-map-mask = <0xf800 0 0 7>;
  524. interrupt-map = <
  525. /* IDSEL 0x0 */
  526. 0x0000 0 0 1 &mpic 4 1
  527. 0x0000 0 0 2 &mpic 5 1
  528. 0x0000 0 0 3 &mpic 6 1
  529. 0x0000 0 0 4 &mpic 7 1
  530. >;
  531. pcie@0 {
  532. reg = <0 0 0 0 0>;
  533. #size-cells = <2>;
  534. #address-cells = <3>;
  535. device_type = "pci";
  536. ranges = <0x02000000 0x0 0xa0000000
  537. 0x02000000 0x0 0xa0000000
  538. 0x0 0x20000000
  539. 0x01000000 0x0 0x00000000
  540. 0x01000000 0x0 0x00000000
  541. 0x0 0x00010000>;
  542. };
  543. };
  544. /*
  545. rapidio0: rapidio@ffec0000 {
  546. #address-cells = <2>;
  547. #size-cells = <2>;
  548. compatible = "fsl,rapidio-delta";
  549. reg = <0xffec0000 0x20000>;
  550. ranges = <0 0 0x80000000 0 0x20000000>;
  551. interrupt-parent = <&mpic>;
  552. // err_irq bell_outb_irq bell_inb_irq
  553. // msg1_tx_irq msg1_rx_irq msg2_tx_irq msg2_rx_irq
  554. interrupts = <48 2 49 2 50 2 53 2 54 2 55 2 56 2>;
  555. };
  556. */
  557. };