mpc8641_hpcn.dts 14 KB

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