p2020rdb.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. /*
  2. * P2020 RDB Device Tree Source
  3. *
  4. * Copyright 2009 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 = "fsl,P2020";
  14. compatible = "fsl,P2020RDB";
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. ethernet2 = &enet2;
  21. serial0 = &serial0;
  22. serial1 = &serial1;
  23. pci0 = &pci0;
  24. pci1 = &pci1;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,P2020@0 {
  30. device_type = "cpu";
  31. reg = <0x0>;
  32. next-level-cache = <&L2>;
  33. };
  34. PowerPC,P2020@1 {
  35. device_type = "cpu";
  36. reg = <0x1>;
  37. next-level-cache = <&L2>;
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. };
  43. localbus@ffe05000 {
  44. #address-cells = <2>;
  45. #size-cells = <1>;
  46. compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus";
  47. reg = <0 0xffe05000 0 0x1000>;
  48. interrupts = <19 2>;
  49. interrupt-parent = <&mpic>;
  50. /* NOR and NAND Flashes */
  51. ranges = <0x0 0x0 0x0 0xef000000 0x01000000
  52. 0x1 0x0 0x0 0xffa00000 0x00040000
  53. 0x2 0x0 0x0 0xffb00000 0x00020000>;
  54. nor@0,0 {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. compatible = "cfi-flash";
  58. reg = <0x0 0x0 0x1000000>;
  59. bank-width = <2>;
  60. device-width = <1>;
  61. partition@0 {
  62. /* This location must not be altered */
  63. /* 256KB for Vitesse 7385 Switch firmware */
  64. reg = <0x0 0x00040000>;
  65. label = "NOR (RO) Vitesse-7385 Firmware";
  66. read-only;
  67. };
  68. partition@40000 {
  69. /* 256KB for DTB Image */
  70. reg = <0x00040000 0x00040000>;
  71. label = "NOR (RO) DTB Image";
  72. read-only;
  73. };
  74. partition@80000 {
  75. /* 3.5 MB for Linux Kernel Image */
  76. reg = <0x00080000 0x00380000>;
  77. label = "NOR (RO) Linux Kernel Image";
  78. read-only;
  79. };
  80. partition@400000 {
  81. /* 11MB for JFFS2 based Root file System */
  82. reg = <0x00400000 0x00b00000>;
  83. label = "NOR (RW) JFFS2 Root File System";
  84. };
  85. partition@f00000 {
  86. /* This location must not be altered */
  87. /* 512KB for u-boot Bootloader Image */
  88. /* 512KB for u-boot Environment Variables */
  89. reg = <0x00f00000 0x00100000>;
  90. label = "NOR (RO) U-Boot Image";
  91. read-only;
  92. };
  93. };
  94. nand@1,0 {
  95. #address-cells = <1>;
  96. #size-cells = <1>;
  97. compatible = "fsl,p2020-fcm-nand",
  98. "fsl,elbc-fcm-nand";
  99. reg = <0x1 0x0 0x40000>;
  100. partition@0 {
  101. /* This location must not be altered */
  102. /* 1MB for u-boot Bootloader Image */
  103. reg = <0x0 0x00100000>;
  104. label = "NAND (RO) U-Boot Image";
  105. read-only;
  106. };
  107. partition@100000 {
  108. /* 1MB for DTB Image */
  109. reg = <0x00100000 0x00100000>;
  110. label = "NAND (RO) DTB Image";
  111. read-only;
  112. };
  113. partition@200000 {
  114. /* 4MB for Linux Kernel Image */
  115. reg = <0x00200000 0x00400000>;
  116. label = "NAND (RO) Linux Kernel Image";
  117. read-only;
  118. };
  119. partition@600000 {
  120. /* 4MB for Compressed Root file System Image */
  121. reg = <0x00600000 0x00400000>;
  122. label = "NAND (RO) Compressed RFS Image";
  123. read-only;
  124. };
  125. partition@a00000 {
  126. /* 7MB for JFFS2 based Root file System */
  127. reg = <0x00a00000 0x00700000>;
  128. label = "NAND (RW) JFFS2 Root File System";
  129. };
  130. partition@1100000 {
  131. /* 15MB for JFFS2 based Root file System */
  132. reg = <0x01100000 0x00f00000>;
  133. label = "NAND (RW) Writable User area";
  134. };
  135. };
  136. L2switch@2,0 {
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. compatible = "vitesse-7385";
  140. reg = <0x2 0x0 0x20000>;
  141. };
  142. };
  143. soc@ffe00000 {
  144. #address-cells = <1>;
  145. #size-cells = <1>;
  146. device_type = "soc";
  147. compatible = "fsl,p2020-immr", "simple-bus";
  148. ranges = <0x0 0x0 0xffe00000 0x100000>;
  149. bus-frequency = <0>; // Filled out by uboot.
  150. ecm-law@0 {
  151. compatible = "fsl,ecm-law";
  152. reg = <0x0 0x1000>;
  153. fsl,num-laws = <12>;
  154. };
  155. ecm@1000 {
  156. compatible = "fsl,p2020-ecm", "fsl,ecm";
  157. reg = <0x1000 0x1000>;
  158. interrupts = <17 2>;
  159. interrupt-parent = <&mpic>;
  160. };
  161. memory-controller@2000 {
  162. compatible = "fsl,p2020-memory-controller";
  163. reg = <0x2000 0x1000>;
  164. interrupt-parent = <&mpic>;
  165. interrupts = <18 2>;
  166. };
  167. i2c@3000 {
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. cell-index = <0>;
  171. compatible = "fsl-i2c";
  172. reg = <0x3000 0x100>;
  173. interrupts = <43 2>;
  174. interrupt-parent = <&mpic>;
  175. dfsrr;
  176. rtc@68 {
  177. compatible = "dallas,ds1339";
  178. reg = <0x68>;
  179. };
  180. };
  181. i2c@3100 {
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. cell-index = <1>;
  185. compatible = "fsl-i2c";
  186. reg = <0x3100 0x100>;
  187. interrupts = <43 2>;
  188. interrupt-parent = <&mpic>;
  189. dfsrr;
  190. };
  191. serial0: serial@4500 {
  192. cell-index = <0>;
  193. device_type = "serial";
  194. compatible = "ns16550";
  195. reg = <0x4500 0x100>;
  196. clock-frequency = <0>;
  197. interrupts = <42 2>;
  198. interrupt-parent = <&mpic>;
  199. };
  200. serial1: serial@4600 {
  201. cell-index = <1>;
  202. device_type = "serial";
  203. compatible = "ns16550";
  204. reg = <0x4600 0x100>;
  205. clock-frequency = <0>;
  206. interrupts = <42 2>;
  207. interrupt-parent = <&mpic>;
  208. };
  209. spi@7000 {
  210. cell-index = <0>;
  211. #address-cells = <1>;
  212. #size-cells = <0>;
  213. compatible = "fsl,espi";
  214. reg = <0x7000 0x1000>;
  215. interrupts = <59 0x2>;
  216. interrupt-parent = <&mpic>;
  217. mode = "cpu";
  218. fsl_m25p80@0 {
  219. #address-cells = <1>;
  220. #size-cells = <1>;
  221. compatible = "fsl,espi-flash";
  222. reg = <0>;
  223. linux,modalias = "fsl_m25p80";
  224. modal = "s25sl128b";
  225. spi-max-frequency = <50000000>;
  226. mode = <0>;
  227. partition@0 {
  228. /* 512KB for u-boot Bootloader Image */
  229. reg = <0x0 0x00080000>;
  230. label = "SPI (RO) U-Boot Image";
  231. read-only;
  232. };
  233. partition@80000 {
  234. /* 512KB for DTB Image */
  235. reg = <0x00080000 0x00080000>;
  236. label = "SPI (RO) DTB Image";
  237. read-only;
  238. };
  239. partition@100000 {
  240. /* 4MB for Linux Kernel Image */
  241. reg = <0x00100000 0x00400000>;
  242. label = "SPI (RO) Linux Kernel Image";
  243. read-only;
  244. };
  245. partition@500000 {
  246. /* 4MB for Compressed RFS Image */
  247. reg = <0x00500000 0x00400000>;
  248. label = "SPI (RO) Compressed RFS Image";
  249. read-only;
  250. };
  251. partition@900000 {
  252. /* 7MB for JFFS2 based RFS */
  253. reg = <0x00900000 0x00700000>;
  254. label = "SPI (RW) JFFS2 RFS";
  255. };
  256. };
  257. };
  258. dma@c300 {
  259. #address-cells = <1>;
  260. #size-cells = <1>;
  261. compatible = "fsl,eloplus-dma";
  262. reg = <0xc300 0x4>;
  263. ranges = <0x0 0xc100 0x200>;
  264. cell-index = <1>;
  265. dma-channel@0 {
  266. compatible = "fsl,eloplus-dma-channel";
  267. reg = <0x0 0x80>;
  268. cell-index = <0>;
  269. interrupt-parent = <&mpic>;
  270. interrupts = <76 2>;
  271. };
  272. dma-channel@80 {
  273. compatible = "fsl,eloplus-dma-channel";
  274. reg = <0x80 0x80>;
  275. cell-index = <1>;
  276. interrupt-parent = <&mpic>;
  277. interrupts = <77 2>;
  278. };
  279. dma-channel@100 {
  280. compatible = "fsl,eloplus-dma-channel";
  281. reg = <0x100 0x80>;
  282. cell-index = <2>;
  283. interrupt-parent = <&mpic>;
  284. interrupts = <78 2>;
  285. };
  286. dma-channel@180 {
  287. compatible = "fsl,eloplus-dma-channel";
  288. reg = <0x180 0x80>;
  289. cell-index = <3>;
  290. interrupt-parent = <&mpic>;
  291. interrupts = <79 2>;
  292. };
  293. };
  294. gpio: gpio-controller@f000 {
  295. #gpio-cells = <2>;
  296. compatible = "fsl,mpc8572-gpio";
  297. reg = <0xf000 0x100>;
  298. interrupts = <47 0x2>;
  299. interrupt-parent = <&mpic>;
  300. gpio-controller;
  301. };
  302. L2: l2-cache-controller@20000 {
  303. compatible = "fsl,p2020-l2-cache-controller";
  304. reg = <0x20000 0x1000>;
  305. cache-line-size = <32>; // 32 bytes
  306. cache-size = <0x80000>; // L2,512K
  307. interrupt-parent = <&mpic>;
  308. interrupts = <16 2>;
  309. };
  310. dma@21300 {
  311. #address-cells = <1>;
  312. #size-cells = <1>;
  313. compatible = "fsl,eloplus-dma";
  314. reg = <0x21300 0x4>;
  315. ranges = <0x0 0x21100 0x200>;
  316. cell-index = <0>;
  317. dma-channel@0 {
  318. compatible = "fsl,eloplus-dma-channel";
  319. reg = <0x0 0x80>;
  320. cell-index = <0>;
  321. interrupt-parent = <&mpic>;
  322. interrupts = <20 2>;
  323. };
  324. dma-channel@80 {
  325. compatible = "fsl,eloplus-dma-channel";
  326. reg = <0x80 0x80>;
  327. cell-index = <1>;
  328. interrupt-parent = <&mpic>;
  329. interrupts = <21 2>;
  330. };
  331. dma-channel@100 {
  332. compatible = "fsl,eloplus-dma-channel";
  333. reg = <0x100 0x80>;
  334. cell-index = <2>;
  335. interrupt-parent = <&mpic>;
  336. interrupts = <22 2>;
  337. };
  338. dma-channel@180 {
  339. compatible = "fsl,eloplus-dma-channel";
  340. reg = <0x180 0x80>;
  341. cell-index = <3>;
  342. interrupt-parent = <&mpic>;
  343. interrupts = <23 2>;
  344. };
  345. };
  346. usb@22000 {
  347. #address-cells = <1>;
  348. #size-cells = <0>;
  349. compatible = "fsl-usb2-dr";
  350. reg = <0x22000 0x1000>;
  351. interrupt-parent = <&mpic>;
  352. interrupts = <28 0x2>;
  353. phy_type = "ulpi";
  354. };
  355. enet0: ethernet@24000 {
  356. #address-cells = <1>;
  357. #size-cells = <1>;
  358. cell-index = <0>;
  359. device_type = "network";
  360. model = "eTSEC";
  361. compatible = "gianfar";
  362. reg = <0x24000 0x1000>;
  363. ranges = <0x0 0x24000 0x1000>;
  364. local-mac-address = [ 00 00 00 00 00 00 ];
  365. interrupts = <29 2 30 2 34 2>;
  366. interrupt-parent = <&mpic>;
  367. fixed-link = <1 1 1000 0 0>;
  368. phy-connection-type = "rgmii-id";
  369. mdio@520 {
  370. #address-cells = <1>;
  371. #size-cells = <0>;
  372. compatible = "fsl,gianfar-mdio";
  373. reg = <0x520 0x20>;
  374. phy0: ethernet-phy@0 {
  375. interrupt-parent = <&mpic>;
  376. interrupts = <3 1>;
  377. reg = <0x0>;
  378. };
  379. phy1: ethernet-phy@1 {
  380. interrupt-parent = <&mpic>;
  381. interrupts = <3 1>;
  382. reg = <0x1>;
  383. };
  384. };
  385. };
  386. enet1: ethernet@25000 {
  387. #address-cells = <1>;
  388. #size-cells = <1>;
  389. cell-index = <1>;
  390. device_type = "network";
  391. model = "eTSEC";
  392. compatible = "gianfar";
  393. reg = <0x25000 0x1000>;
  394. ranges = <0x0 0x25000 0x1000>;
  395. local-mac-address = [ 00 00 00 00 00 00 ];
  396. interrupts = <35 2 36 2 40 2>;
  397. interrupt-parent = <&mpic>;
  398. tbi-handle = <&tbi0>;
  399. phy-handle = <&phy0>;
  400. phy-connection-type = "sgmii";
  401. mdio@520 {
  402. #address-cells = <1>;
  403. #size-cells = <0>;
  404. compatible = "fsl,gianfar-tbi";
  405. reg = <0x520 0x20>;
  406. tbi0: tbi-phy@11 {
  407. reg = <0x11>;
  408. device_type = "tbi-phy";
  409. };
  410. };
  411. };
  412. enet2: ethernet@26000 {
  413. #address-cells = <1>;
  414. #size-cells = <1>;
  415. cell-index = <2>;
  416. device_type = "network";
  417. model = "eTSEC";
  418. compatible = "gianfar";
  419. reg = <0x26000 0x1000>;
  420. ranges = <0x0 0x26000 0x1000>;
  421. local-mac-address = [ 00 00 00 00 00 00 ];
  422. interrupts = <31 2 32 2 33 2>;
  423. interrupt-parent = <&mpic>;
  424. phy-handle = <&phy1>;
  425. phy-connection-type = "rgmii-id";
  426. };
  427. sdhci@2e000 {
  428. compatible = "fsl,p2020-esdhc", "fsl,esdhc";
  429. reg = <0x2e000 0x1000>;
  430. interrupts = <72 0x2>;
  431. interrupt-parent = <&mpic>;
  432. /* Filled in by U-Boot */
  433. clock-frequency = <0>;
  434. };
  435. crypto@30000 {
  436. compatible = "fsl,sec3.1", "fsl,sec3.0", "fsl,sec2.4",
  437. "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0";
  438. reg = <0x30000 0x10000>;
  439. interrupts = <45 2 58 2>;
  440. interrupt-parent = <&mpic>;
  441. fsl,num-channels = <4>;
  442. fsl,channel-fifo-len = <24>;
  443. fsl,exec-units-mask = <0xbfe>;
  444. fsl,descriptor-types-mask = <0x3ab0ebf>;
  445. };
  446. mpic: pic@40000 {
  447. interrupt-controller;
  448. #address-cells = <0>;
  449. #interrupt-cells = <2>;
  450. reg = <0x40000 0x40000>;
  451. compatible = "chrp,open-pic";
  452. device_type = "open-pic";
  453. };
  454. msi@41600 {
  455. compatible = "fsl,p2020-msi", "fsl,mpic-msi";
  456. reg = <0x41600 0x80>;
  457. msi-available-ranges = <0 0x100>;
  458. interrupts = <
  459. 0xe0 0
  460. 0xe1 0
  461. 0xe2 0
  462. 0xe3 0
  463. 0xe4 0
  464. 0xe5 0
  465. 0xe6 0
  466. 0xe7 0>;
  467. interrupt-parent = <&mpic>;
  468. };
  469. global-utilities@e0000 { //global utilities block
  470. compatible = "fsl,p2020-guts";
  471. reg = <0xe0000 0x1000>;
  472. fsl,has-rstcr;
  473. };
  474. };
  475. pci0: pcie@ffe09000 {
  476. compatible = "fsl,mpc8548-pcie";
  477. device_type = "pci";
  478. #interrupt-cells = <1>;
  479. #size-cells = <2>;
  480. #address-cells = <3>;
  481. reg = <0 0xffe09000 0 0x1000>;
  482. bus-range = <0 255>;
  483. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  484. 0x1000000 0x0 0x00000000 0 0xffc30000 0x0 0x10000>;
  485. clock-frequency = <33333333>;
  486. interrupt-parent = <&mpic>;
  487. interrupts = <25 2>;
  488. pcie@0 {
  489. reg = <0x0 0x0 0x0 0x0 0x0>;
  490. #size-cells = <2>;
  491. #address-cells = <3>;
  492. device_type = "pci";
  493. ranges = <0x2000000 0x0 0xa0000000
  494. 0x2000000 0x0 0xa0000000
  495. 0x0 0x20000000
  496. 0x1000000 0x0 0x0
  497. 0x1000000 0x0 0x0
  498. 0x0 0x100000>;
  499. };
  500. };
  501. pci1: pcie@ffe0a000 {
  502. compatible = "fsl,mpc8548-pcie";
  503. device_type = "pci";
  504. #interrupt-cells = <1>;
  505. #size-cells = <2>;
  506. #address-cells = <3>;
  507. reg = <0 0xffe0a000 0 0x1000>;
  508. bus-range = <0 255>;
  509. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  510. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  511. clock-frequency = <33333333>;
  512. interrupt-parent = <&mpic>;
  513. interrupts = <26 2>;
  514. pcie@0 {
  515. reg = <0x0 0x0 0x0 0x0 0x0>;
  516. #size-cells = <2>;
  517. #address-cells = <3>;
  518. device_type = "pci";
  519. ranges = <0x2000000 0x0 0xc0000000
  520. 0x2000000 0x0 0xc0000000
  521. 0x0 0x20000000
  522. 0x1000000 0x0 0x0
  523. 0x1000000 0x0 0x0
  524. 0x0 0x100000>;
  525. };
  526. };
  527. };