p1020rdb.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. /*
  2. * P1020 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,P1020";
  14. compatible = "fsl,P1020RDB";
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. aliases {
  18. serial0 = &serial0;
  19. serial1 = &serial1;
  20. ethernet0 = &enet0;
  21. ethernet1 = &enet1;
  22. ethernet2 = &enet2;
  23. pci0 = &pci0;
  24. pci1 = &pci1;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,P1020@0 {
  30. device_type = "cpu";
  31. reg = <0x0>;
  32. next-level-cache = <&L2>;
  33. };
  34. PowerPC,P1020@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,p1020-elbc", "fsl,elbc", "simple-bus";
  47. reg = <0 0xffe05000 0 0x1000>;
  48. interrupts = <19 2>;
  49. interrupt-parent = <&mpic>;
  50. /* NOR, NAND Flashes and Vitesse 5 port L2 switch */
  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,p1020-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,p1020-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,p1020-ecm", "fsl,ecm";
  157. reg = <0x1000 0x1000>;
  158. interrupts = <16 2>;
  159. interrupt-parent = <&mpic>;
  160. };
  161. memory-controller@2000 {
  162. compatible = "fsl,p1020-memory-controller";
  163. reg = <0x2000 0x1000>;
  164. interrupt-parent = <&mpic>;
  165. interrupts = <16 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. gpio: gpio-controller@f000 {
  259. #gpio-cells = <2>;
  260. compatible = "fsl,mpc8572-gpio";
  261. reg = <0xf000 0x100>;
  262. interrupts = <47 0x2>;
  263. interrupt-parent = <&mpic>;
  264. gpio-controller;
  265. };
  266. L2: l2-cache-controller@20000 {
  267. compatible = "fsl,p1020-l2-cache-controller";
  268. reg = <0x20000 0x1000>;
  269. cache-line-size = <32>; // 32 bytes
  270. cache-size = <0x40000>; // L2,256K
  271. interrupt-parent = <&mpic>;
  272. interrupts = <16 2>;
  273. };
  274. dma@21300 {
  275. #address-cells = <1>;
  276. #size-cells = <1>;
  277. compatible = "fsl,eloplus-dma";
  278. reg = <0x21300 0x4>;
  279. ranges = <0x0 0x21100 0x200>;
  280. cell-index = <0>;
  281. dma-channel@0 {
  282. compatible = "fsl,eloplus-dma-channel";
  283. reg = <0x0 0x80>;
  284. cell-index = <0>;
  285. interrupt-parent = <&mpic>;
  286. interrupts = <20 2>;
  287. };
  288. dma-channel@80 {
  289. compatible = "fsl,eloplus-dma-channel";
  290. reg = <0x80 0x80>;
  291. cell-index = <1>;
  292. interrupt-parent = <&mpic>;
  293. interrupts = <21 2>;
  294. };
  295. dma-channel@100 {
  296. compatible = "fsl,eloplus-dma-channel";
  297. reg = <0x100 0x80>;
  298. cell-index = <2>;
  299. interrupt-parent = <&mpic>;
  300. interrupts = <22 2>;
  301. };
  302. dma-channel@180 {
  303. compatible = "fsl,eloplus-dma-channel";
  304. reg = <0x180 0x80>;
  305. cell-index = <3>;
  306. interrupt-parent = <&mpic>;
  307. interrupts = <23 2>;
  308. };
  309. };
  310. mdio@24000 {
  311. #address-cells = <1>;
  312. #size-cells = <0>;
  313. compatible = "fsl,etsec2-mdio";
  314. reg = <0x24000 0x1000 0xb0030 0x4>;
  315. phy0: ethernet-phy@0 {
  316. interrupt-parent = <&mpic>;
  317. interrupts = <3 1>;
  318. reg = <0x0>;
  319. };
  320. phy1: ethernet-phy@1 {
  321. interrupt-parent = <&mpic>;
  322. interrupts = <2 1>;
  323. reg = <0x1>;
  324. };
  325. };
  326. mdio@25000 {
  327. #address-cells = <1>;
  328. #size-cells = <0>;
  329. compatible = "fsl,etsec2-tbi";
  330. reg = <0x25000 0x1000 0xb1030 0x4>;
  331. tbi0: tbi-phy@11 {
  332. reg = <0x11>;
  333. device_type = "tbi-phy";
  334. };
  335. };
  336. enet0: ethernet@b0000 {
  337. #address-cells = <1>;
  338. #size-cells = <1>;
  339. device_type = "network";
  340. model = "eTSEC";
  341. compatible = "fsl,etsec2";
  342. fsl,num_rx_queues = <0x8>;
  343. fsl,num_tx_queues = <0x8>;
  344. local-mac-address = [ 00 00 00 00 00 00 ];
  345. interrupt-parent = <&mpic>;
  346. fixed-link = <1 1 1000 0 0>;
  347. phy-connection-type = "rgmii-id";
  348. queue-group@0 {
  349. #address-cells = <1>;
  350. #size-cells = <1>;
  351. reg = <0xb0000 0x1000>;
  352. interrupts = <29 2 30 2 34 2>;
  353. };
  354. queue-group@1 {
  355. #address-cells = <1>;
  356. #size-cells = <1>;
  357. reg = <0xb4000 0x1000>;
  358. interrupts = <17 2 18 2 24 2>;
  359. };
  360. };
  361. enet1: ethernet@b1000 {
  362. #address-cells = <1>;
  363. #size-cells = <1>;
  364. device_type = "network";
  365. model = "eTSEC";
  366. compatible = "fsl,etsec2";
  367. fsl,num_rx_queues = <0x8>;
  368. fsl,num_tx_queues = <0x8>;
  369. local-mac-address = [ 00 00 00 00 00 00 ];
  370. interrupt-parent = <&mpic>;
  371. phy-handle = <&phy0>;
  372. tbi-handle = <&tbi0>;
  373. phy-connection-type = "sgmii";
  374. queue-group@0 {
  375. #address-cells = <1>;
  376. #size-cells = <1>;
  377. reg = <0xb1000 0x1000>;
  378. interrupts = <35 2 36 2 40 2>;
  379. };
  380. queue-group@1 {
  381. #address-cells = <1>;
  382. #size-cells = <1>;
  383. reg = <0xb5000 0x1000>;
  384. interrupts = <51 2 52 2 67 2>;
  385. };
  386. };
  387. enet2: ethernet@b2000 {
  388. #address-cells = <1>;
  389. #size-cells = <1>;
  390. device_type = "network";
  391. model = "eTSEC";
  392. compatible = "fsl,etsec2";
  393. fsl,num_rx_queues = <0x8>;
  394. fsl,num_tx_queues = <0x8>;
  395. local-mac-address = [ 00 00 00 00 00 00 ];
  396. interrupt-parent = <&mpic>;
  397. phy-handle = <&phy1>;
  398. phy-connection-type = "rgmii-id";
  399. queue-group@0 {
  400. #address-cells = <1>;
  401. #size-cells = <1>;
  402. reg = <0xb2000 0x1000>;
  403. interrupts = <31 2 32 2 33 2>;
  404. };
  405. queue-group@1 {
  406. #address-cells = <1>;
  407. #size-cells = <1>;
  408. reg = <0xb6000 0x1000>;
  409. interrupts = <25 2 26 2 27 2>;
  410. };
  411. };
  412. usb@22000 {
  413. #address-cells = <1>;
  414. #size-cells = <0>;
  415. compatible = "fsl-usb2-dr";
  416. reg = <0x22000 0x1000>;
  417. interrupt-parent = <&mpic>;
  418. interrupts = <28 0x2>;
  419. phy_type = "ulpi";
  420. };
  421. /* USB2 is shared with localbus, so it must be disabled
  422. by default. We can't put 'status = "disabled";' here
  423. since U-Boot doesn't clear the status property when
  424. it enables USB2. OTOH, U-Boot does create a new node
  425. when there isn't any. So, just comment it out.
  426. usb@23000 {
  427. #address-cells = <1>;
  428. #size-cells = <0>;
  429. compatible = "fsl-usb2-dr";
  430. reg = <0x23000 0x1000>;
  431. interrupt-parent = <&mpic>;
  432. interrupts = <46 0x2>;
  433. phy_type = "ulpi";
  434. };
  435. */
  436. sdhci@2e000 {
  437. compatible = "fsl,p1020-esdhc", "fsl,esdhc";
  438. reg = <0x2e000 0x1000>;
  439. interrupts = <72 0x2>;
  440. interrupt-parent = <&mpic>;
  441. /* Filled in by U-Boot */
  442. clock-frequency = <0>;
  443. };
  444. crypto@30000 {
  445. compatible = "fsl,sec3.1", "fsl,sec3.0", "fsl,sec2.4",
  446. "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0";
  447. reg = <0x30000 0x10000>;
  448. interrupts = <45 2 58 2>;
  449. interrupt-parent = <&mpic>;
  450. fsl,num-channels = <4>;
  451. fsl,channel-fifo-len = <24>;
  452. fsl,exec-units-mask = <0xbfe>;
  453. fsl,descriptor-types-mask = <0x3ab0ebf>;
  454. };
  455. mpic: pic@40000 {
  456. interrupt-controller;
  457. #address-cells = <0>;
  458. #interrupt-cells = <2>;
  459. reg = <0x40000 0x40000>;
  460. compatible = "chrp,open-pic";
  461. device_type = "open-pic";
  462. };
  463. msi@41600 {
  464. compatible = "fsl,p1020-msi", "fsl,mpic-msi";
  465. reg = <0x41600 0x80>;
  466. msi-available-ranges = <0 0x100>;
  467. interrupts = <
  468. 0xe0 0
  469. 0xe1 0
  470. 0xe2 0
  471. 0xe3 0
  472. 0xe4 0
  473. 0xe5 0
  474. 0xe6 0
  475. 0xe7 0>;
  476. interrupt-parent = <&mpic>;
  477. };
  478. global-utilities@e0000 { //global utilities block
  479. compatible = "fsl,p1020-guts";
  480. reg = <0xe0000 0x1000>;
  481. fsl,has-rstcr;
  482. };
  483. };
  484. pci0: pcie@ffe09000 {
  485. compatible = "fsl,mpc8548-pcie";
  486. device_type = "pci";
  487. #interrupt-cells = <1>;
  488. #size-cells = <2>;
  489. #address-cells = <3>;
  490. reg = <0 0xffe09000 0 0x1000>;
  491. bus-range = <0 255>;
  492. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  493. 0x1000000 0x0 0x00000000 0 0xffc30000 0x0 0x10000>;
  494. clock-frequency = <33333333>;
  495. interrupt-parent = <&mpic>;
  496. interrupts = <16 2>;
  497. pcie@0 {
  498. reg = <0x0 0x0 0x0 0x0 0x0>;
  499. #size-cells = <2>;
  500. #address-cells = <3>;
  501. device_type = "pci";
  502. ranges = <0x2000000 0x0 0xa0000000
  503. 0x2000000 0x0 0xa0000000
  504. 0x0 0x20000000
  505. 0x1000000 0x0 0x0
  506. 0x1000000 0x0 0x0
  507. 0x0 0x100000>;
  508. };
  509. };
  510. pci1: pcie@ffe0a000 {
  511. compatible = "fsl,mpc8548-pcie";
  512. device_type = "pci";
  513. #interrupt-cells = <1>;
  514. #size-cells = <2>;
  515. #address-cells = <3>;
  516. reg = <0 0xffe0a000 0 0x1000>;
  517. bus-range = <0 255>;
  518. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  519. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  520. clock-frequency = <33333333>;
  521. interrupt-parent = <&mpic>;
  522. interrupts = <16 2>;
  523. pcie@0 {
  524. reg = <0x0 0x0 0x0 0x0 0x0>;
  525. #size-cells = <2>;
  526. #address-cells = <3>;
  527. device_type = "pci";
  528. ranges = <0x2000000 0x0 0xc0000000
  529. 0x2000000 0x0 0xc0000000
  530. 0x0 0x20000000
  531. 0x1000000 0x0 0x0
  532. 0x1000000 0x0 0x0
  533. 0x0 0x100000>;
  534. };
  535. };
  536. };