p1022ds.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. /*
  2. * P1022 DS 36Bit Physical Address Map Device Tree Source
  3. *
  4. * Copyright 2010 Freescale Semiconductor, Inc.
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. / {
  12. model = "fsl,P1022";
  13. compatible = "fsl,P1022DS";
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. interrupt-parent = <&mpic>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. serial0 = &serial0;
  21. serial1 = &serial1;
  22. pci0 = &pci0;
  23. pci1 = &pci1;
  24. pci2 = &pci2;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,P1022@0 {
  30. device_type = "cpu";
  31. reg = <0x0>;
  32. next-level-cache = <&L2>;
  33. };
  34. PowerPC,P1022@1 {
  35. device_type = "cpu";
  36. reg = <0x1>;
  37. next-level-cache = <&L2>;
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. };
  43. localbus@fffe05000 {
  44. #address-cells = <2>;
  45. #size-cells = <1>;
  46. compatible = "fsl,p1022-elbc", "fsl,elbc", "simple-bus";
  47. reg = <0 0xffe05000 0 0x1000>;
  48. interrupts = <19 2>;
  49. ranges = <0x0 0x0 0xf 0xe8000000 0x08000000
  50. 0x1 0x0 0xf 0xe0000000 0x08000000
  51. 0x2 0x0 0x0 0xffa00000 0x00040000
  52. 0x3 0x0 0xf 0xffdf0000 0x00008000>;
  53. nor@0,0 {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "cfi-flash";
  57. reg = <0x0 0x0 0x8000000>;
  58. bank-width = <2>;
  59. device-width = <1>;
  60. partition@0 {
  61. reg = <0x0 0x03000000>;
  62. label = "ramdisk-nor";
  63. read-only;
  64. };
  65. partition@3000000 {
  66. reg = <0x03000000 0x00e00000>;
  67. label = "diagnostic-nor";
  68. read-only;
  69. };
  70. partition@3e00000 {
  71. reg = <0x03e00000 0x00200000>;
  72. label = "dink-nor";
  73. read-only;
  74. };
  75. partition@4000000 {
  76. reg = <0x04000000 0x00400000>;
  77. label = "kernel-nor";
  78. read-only;
  79. };
  80. partition@4400000 {
  81. reg = <0x04400000 0x03b00000>;
  82. label = "jffs2-nor";
  83. };
  84. partition@7f00000 {
  85. reg = <0x07f00000 0x00080000>;
  86. label = "dtb-nor";
  87. read-only;
  88. };
  89. partition@7f80000 {
  90. reg = <0x07f80000 0x00080000>;
  91. label = "u-boot-nor";
  92. read-only;
  93. };
  94. };
  95. nand@2,0 {
  96. #address-cells = <1>;
  97. #size-cells = <1>;
  98. compatible = "fsl,elbc-fcm-nand";
  99. reg = <0x2 0x0 0x40000>;
  100. partition@0 {
  101. reg = <0x0 0x02000000>;
  102. label = "u-boot-nand";
  103. read-only;
  104. };
  105. partition@2000000 {
  106. reg = <0x02000000 0x10000000>;
  107. label = "jffs2-nand";
  108. };
  109. partition@12000000 {
  110. reg = <0x12000000 0x10000000>;
  111. label = "ramdisk-nand";
  112. read-only;
  113. };
  114. partition@22000000 {
  115. reg = <0x22000000 0x04000000>;
  116. label = "kernel-nand";
  117. };
  118. partition@26000000 {
  119. reg = <0x26000000 0x01000000>;
  120. label = "dtb-nand";
  121. read-only;
  122. };
  123. partition@27000000 {
  124. reg = <0x27000000 0x19000000>;
  125. label = "reserved-nand";
  126. };
  127. };
  128. board-control@3,0 {
  129. compatible = "fsl,p1022ds-pixis";
  130. reg = <3 0 0x30>;
  131. interrupt-parent = <&mpic>;
  132. /*
  133. * IRQ8 is generated if the "EVENT" switch is pressed
  134. * and PX_CTL[EVESEL] is set to 00.
  135. */
  136. interrupts = <8 8>;
  137. };
  138. };
  139. soc@fffe00000 {
  140. #address-cells = <1>;
  141. #size-cells = <1>;
  142. device_type = "soc";
  143. compatible = "fsl,p1022-immr", "simple-bus";
  144. ranges = <0x0 0xf 0xffe00000 0x100000>;
  145. bus-frequency = <0>; // Filled out by uboot.
  146. ecm-law@0 {
  147. compatible = "fsl,ecm-law";
  148. reg = <0x0 0x1000>;
  149. fsl,num-laws = <12>;
  150. };
  151. ecm@1000 {
  152. compatible = "fsl,p1022-ecm", "fsl,ecm";
  153. reg = <0x1000 0x1000>;
  154. interrupts = <16 2>;
  155. };
  156. memory-controller@2000 {
  157. compatible = "fsl,p1022-memory-controller";
  158. reg = <0x2000 0x1000>;
  159. interrupts = <16 2>;
  160. };
  161. i2c@3000 {
  162. #address-cells = <1>;
  163. #size-cells = <0>;
  164. cell-index = <0>;
  165. compatible = "fsl-i2c";
  166. reg = <0x3000 0x100>;
  167. interrupts = <43 2>;
  168. dfsrr;
  169. };
  170. i2c@3100 {
  171. #address-cells = <1>;
  172. #size-cells = <0>;
  173. cell-index = <1>;
  174. compatible = "fsl-i2c";
  175. reg = <0x3100 0x100>;
  176. interrupts = <43 2>;
  177. dfsrr;
  178. wm8776:codec@1a {
  179. compatible = "wlf,wm8776";
  180. reg = <0x1a>;
  181. /* MCLK source is a stand-alone oscillator */
  182. clock-frequency = <12288000>;
  183. };
  184. };
  185. serial0: serial@4500 {
  186. cell-index = <0>;
  187. device_type = "serial";
  188. compatible = "ns16550";
  189. reg = <0x4500 0x100>;
  190. clock-frequency = <0>;
  191. interrupts = <42 2>;
  192. };
  193. serial1: serial@4600 {
  194. cell-index = <1>;
  195. device_type = "serial";
  196. compatible = "ns16550";
  197. reg = <0x4600 0x100>;
  198. clock-frequency = <0>;
  199. interrupts = <42 2>;
  200. };
  201. spi@7000 {
  202. cell-index = <0>;
  203. #address-cells = <1>;
  204. #size-cells = <0>;
  205. compatible = "fsl,espi";
  206. reg = <0x7000 0x1000>;
  207. interrupts = <59 0x2>;
  208. espi,num-ss-bits = <4>;
  209. mode = "cpu";
  210. fsl_m25p80@0 {
  211. #address-cells = <1>;
  212. #size-cells = <1>;
  213. compatible = "fsl,espi-flash";
  214. reg = <0>;
  215. linux,modalias = "fsl_m25p80";
  216. spi-max-frequency = <40000000>; /* input clock */
  217. partition@0 {
  218. label = "u-boot-spi";
  219. reg = <0x00000000 0x00100000>;
  220. read-only;
  221. };
  222. partition@100000 {
  223. label = "kernel-spi";
  224. reg = <0x00100000 0x00500000>;
  225. read-only;
  226. };
  227. partition@600000 {
  228. label = "dtb-spi";
  229. reg = <0x00600000 0x00100000>;
  230. read-only;
  231. };
  232. partition@700000 {
  233. label = "file system-spi";
  234. reg = <0x00700000 0x00900000>;
  235. };
  236. };
  237. };
  238. ssi@15000 {
  239. compatible = "fsl,mpc8610-ssi";
  240. cell-index = <0>;
  241. reg = <0x15000 0x100>;
  242. interrupts = <75 2>;
  243. fsl,mode = "i2s-slave";
  244. codec-handle = <&wm8776>;
  245. fsl,playback-dma = <&dma00>;
  246. fsl,capture-dma = <&dma01>;
  247. fsl,fifo-depth = <16>;
  248. };
  249. dma@c300 {
  250. #address-cells = <1>;
  251. #size-cells = <1>;
  252. compatible = "fsl,eloplus-dma";
  253. reg = <0xc300 0x4>;
  254. ranges = <0x0 0xc100 0x200>;
  255. cell-index = <1>;
  256. dma00: dma-channel@0 {
  257. compatible = "fsl,ssi-dma-channel";
  258. reg = <0x0 0x80>;
  259. cell-index = <0>;
  260. interrupts = <76 2>;
  261. };
  262. dma01: dma-channel@80 {
  263. compatible = "fsl,ssi-dma-channel";
  264. reg = <0x80 0x80>;
  265. cell-index = <1>;
  266. interrupts = <77 2>;
  267. };
  268. dma-channel@100 {
  269. compatible = "fsl,eloplus-dma-channel";
  270. reg = <0x100 0x80>;
  271. cell-index = <2>;
  272. interrupts = <78 2>;
  273. };
  274. dma-channel@180 {
  275. compatible = "fsl,eloplus-dma-channel";
  276. reg = <0x180 0x80>;
  277. cell-index = <3>;
  278. interrupts = <79 2>;
  279. };
  280. };
  281. gpio: gpio-controller@f000 {
  282. #gpio-cells = <2>;
  283. compatible = "fsl,mpc8572-gpio";
  284. reg = <0xf000 0x100>;
  285. interrupts = <47 0x2>;
  286. gpio-controller;
  287. };
  288. L2: l2-cache-controller@20000 {
  289. compatible = "fsl,p1022-l2-cache-controller";
  290. reg = <0x20000 0x1000>;
  291. cache-line-size = <32>; // 32 bytes
  292. cache-size = <0x40000>; // L2, 256K
  293. interrupts = <16 2>;
  294. };
  295. dma@21300 {
  296. #address-cells = <1>;
  297. #size-cells = <1>;
  298. compatible = "fsl,eloplus-dma";
  299. reg = <0x21300 0x4>;
  300. ranges = <0x0 0x21100 0x200>;
  301. cell-index = <0>;
  302. dma-channel@0 {
  303. compatible = "fsl,eloplus-dma-channel";
  304. reg = <0x0 0x80>;
  305. cell-index = <0>;
  306. interrupts = <20 2>;
  307. };
  308. dma-channel@80 {
  309. compatible = "fsl,eloplus-dma-channel";
  310. reg = <0x80 0x80>;
  311. cell-index = <1>;
  312. interrupts = <21 2>;
  313. };
  314. dma-channel@100 {
  315. compatible = "fsl,eloplus-dma-channel";
  316. reg = <0x100 0x80>;
  317. cell-index = <2>;
  318. interrupts = <22 2>;
  319. };
  320. dma-channel@180 {
  321. compatible = "fsl,eloplus-dma-channel";
  322. reg = <0x180 0x80>;
  323. cell-index = <3>;
  324. interrupts = <23 2>;
  325. };
  326. };
  327. usb@22000 {
  328. #address-cells = <1>;
  329. #size-cells = <0>;
  330. compatible = "fsl-usb2-dr";
  331. reg = <0x22000 0x1000>;
  332. interrupts = <28 0x2>;
  333. phy_type = "ulpi";
  334. };
  335. mdio@24000 {
  336. #address-cells = <1>;
  337. #size-cells = <0>;
  338. compatible = "fsl,etsec2-mdio";
  339. reg = <0x24000 0x1000 0xb0030 0x4>;
  340. phy0: ethernet-phy@0 {
  341. interrupts = <3 1>;
  342. reg = <0x1>;
  343. };
  344. phy1: ethernet-phy@1 {
  345. interrupts = <9 1>;
  346. reg = <0x2>;
  347. };
  348. };
  349. mdio@25000 {
  350. #address-cells = <1>;
  351. #size-cells = <0>;
  352. compatible = "fsl,etsec2-mdio";
  353. reg = <0x25000 0x1000 0xb1030 0x4>;
  354. };
  355. enet0: ethernet@B0000 {
  356. #address-cells = <1>;
  357. #size-cells = <1>;
  358. cell-index = <0>;
  359. device_type = "network";
  360. model = "eTSEC";
  361. compatible = "fsl,etsec2";
  362. fsl,num_rx_queues = <0x8>;
  363. fsl,num_tx_queues = <0x8>;
  364. fsl,magic-packet;
  365. fsl,wake-on-filer;
  366. local-mac-address = [ 00 00 00 00 00 00 ];
  367. fixed-link = <1 1 1000 0 0>;
  368. phy-handle = <&phy0>;
  369. phy-connection-type = "rgmii-id";
  370. queue-group@0{
  371. #address-cells = <1>;
  372. #size-cells = <1>;
  373. reg = <0xB0000 0x1000>;
  374. interrupts = <29 2 30 2 34 2>;
  375. };
  376. queue-group@1{
  377. #address-cells = <1>;
  378. #size-cells = <1>;
  379. reg = <0xB4000 0x1000>;
  380. interrupts = <17 2 18 2 24 2>;
  381. };
  382. };
  383. enet1: ethernet@B1000 {
  384. #address-cells = <1>;
  385. #size-cells = <1>;
  386. cell-index = <0>;
  387. device_type = "network";
  388. model = "eTSEC";
  389. compatible = "fsl,etsec2";
  390. fsl,num_rx_queues = <0x8>;
  391. fsl,num_tx_queues = <0x8>;
  392. local-mac-address = [ 00 00 00 00 00 00 ];
  393. fixed-link = <1 1 1000 0 0>;
  394. phy-handle = <&phy1>;
  395. phy-connection-type = "rgmii-id";
  396. queue-group@0{
  397. #address-cells = <1>;
  398. #size-cells = <1>;
  399. reg = <0xB1000 0x1000>;
  400. interrupts = <35 2 36 2 40 2>;
  401. };
  402. queue-group@1{
  403. #address-cells = <1>;
  404. #size-cells = <1>;
  405. reg = <0xB5000 0x1000>;
  406. interrupts = <51 2 52 2 67 2>;
  407. };
  408. };
  409. sdhci@2e000 {
  410. compatible = "fsl,p1022-esdhc", "fsl,esdhc";
  411. reg = <0x2e000 0x1000>;
  412. interrupts = <72 0x2>;
  413. fsl,sdhci-auto-cmd12;
  414. /* Filled in by U-Boot */
  415. clock-frequency = <0>;
  416. };
  417. crypto@30000 {
  418. compatible = "fsl,sec3.3", "fsl,sec3.1", "fsl,sec3.0",
  419. "fsl,sec2.4", "fsl,sec2.2", "fsl,sec2.1",
  420. "fsl,sec2.0";
  421. reg = <0x30000 0x10000>;
  422. interrupts = <45 2 58 2>;
  423. fsl,num-channels = <4>;
  424. fsl,channel-fifo-len = <24>;
  425. fsl,exec-units-mask = <0x97c>;
  426. fsl,descriptor-types-mask = <0x3a30abf>;
  427. };
  428. sata@18000 {
  429. compatible = "fsl,mpc8536-sata", "fsl,pq-sata";
  430. reg = <0x18000 0x1000>;
  431. cell-index = <1>;
  432. interrupts = <74 0x2>;
  433. };
  434. sata@19000 {
  435. compatible = "fsl,mpc8536-sata", "fsl,pq-sata";
  436. reg = <0x19000 0x1000>;
  437. cell-index = <2>;
  438. interrupts = <41 0x2>;
  439. };
  440. power@e0070{
  441. compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc";
  442. reg = <0xe0070 0x20>;
  443. };
  444. display@10000 {
  445. compatible = "fsl,diu", "fsl,p1022-diu";
  446. reg = <0x10000 1000>;
  447. interrupts = <64 2>;
  448. };
  449. timer@41100 {
  450. compatible = "fsl,mpic-global-timer";
  451. reg = <0x41100 0x204>;
  452. interrupts = <0xf7 0x2>;
  453. };
  454. mpic: pic@40000 {
  455. interrupt-controller;
  456. #address-cells = <0>;
  457. #interrupt-cells = <2>;
  458. reg = <0x40000 0x40000>;
  459. compatible = "chrp,open-pic";
  460. device_type = "open-pic";
  461. };
  462. msi@41600 {
  463. compatible = "fsl,p1022-msi", "fsl,mpic-msi";
  464. reg = <0x41600 0x80>;
  465. msi-available-ranges = <0 0x100>;
  466. interrupts = <
  467. 0xe0 0
  468. 0xe1 0
  469. 0xe2 0
  470. 0xe3 0
  471. 0xe4 0
  472. 0xe5 0
  473. 0xe6 0
  474. 0xe7 0>;
  475. };
  476. global-utilities@e0000 { //global utilities block
  477. compatible = "fsl,p1022-guts";
  478. reg = <0xe0000 0x1000>;
  479. fsl,has-rstcr;
  480. };
  481. };
  482. pci0: pcie@fffe09000 {
  483. compatible = "fsl,p1022-pcie";
  484. device_type = "pci";
  485. #interrupt-cells = <1>;
  486. #size-cells = <2>;
  487. #address-cells = <3>;
  488. reg = <0xf 0xffe09000 0 0x1000>;
  489. bus-range = <0 255>;
  490. ranges = <0x2000000 0x0 0xa0000000 0xc 0x20000000 0x0 0x20000000
  491. 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>;
  492. clock-frequency = <33333333>;
  493. interrupts = <16 2>;
  494. interrupt-map-mask = <0xf800 0 0 7>;
  495. interrupt-map = <
  496. /* IDSEL 0x0 */
  497. 0000 0 0 1 &mpic 4 1
  498. 0000 0 0 2 &mpic 5 1
  499. 0000 0 0 3 &mpic 6 1
  500. 0000 0 0 4 &mpic 7 1
  501. >;
  502. pcie@0 {
  503. reg = <0x0 0x0 0x0 0x0 0x0>;
  504. #size-cells = <2>;
  505. #address-cells = <3>;
  506. device_type = "pci";
  507. ranges = <0x2000000 0x0 0xe0000000
  508. 0x2000000 0x0 0xe0000000
  509. 0x0 0x20000000
  510. 0x1000000 0x0 0x0
  511. 0x1000000 0x0 0x0
  512. 0x0 0x100000>;
  513. };
  514. };
  515. pci1: pcie@fffe0a000 {
  516. compatible = "fsl,p1022-pcie";
  517. device_type = "pci";
  518. #interrupt-cells = <1>;
  519. #size-cells = <2>;
  520. #address-cells = <3>;
  521. reg = <0xf 0xffe0a000 0 0x1000>;
  522. bus-range = <0 255>;
  523. ranges = <0x2000000 0x0 0xc0000000 0xc 0x40000000 0x0 0x20000000
  524. 0x1000000 0x0 0x00000000 0xf 0xffc20000 0x0 0x10000>;
  525. clock-frequency = <33333333>;
  526. interrupts = <16 2>;
  527. interrupt-map-mask = <0xf800 0 0 7>;
  528. interrupt-map = <
  529. /* IDSEL 0x0 */
  530. 0000 0 0 1 &mpic 0 1
  531. 0000 0 0 2 &mpic 1 1
  532. 0000 0 0 3 &mpic 2 1
  533. 0000 0 0 4 &mpic 3 1
  534. >;
  535. pcie@0 {
  536. reg = <0x0 0x0 0x0 0x0 0x0>;
  537. #size-cells = <2>;
  538. #address-cells = <3>;
  539. device_type = "pci";
  540. ranges = <0x2000000 0x0 0xe0000000
  541. 0x2000000 0x0 0xe0000000
  542. 0x0 0x20000000
  543. 0x1000000 0x0 0x0
  544. 0x1000000 0x0 0x0
  545. 0x0 0x100000>;
  546. };
  547. };
  548. pci2: pcie@fffe0b000 {
  549. compatible = "fsl,p1022-pcie";
  550. device_type = "pci";
  551. #interrupt-cells = <1>;
  552. #size-cells = <2>;
  553. #address-cells = <3>;
  554. reg = <0xf 0xffe0b000 0 0x1000>;
  555. bus-range = <0 255>;
  556. ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000
  557. 0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>;
  558. clock-frequency = <33333333>;
  559. interrupts = <16 2>;
  560. interrupt-map-mask = <0xf800 0 0 7>;
  561. interrupt-map = <
  562. /* IDSEL 0x0 */
  563. 0000 0 0 1 &mpic 8 1
  564. 0000 0 0 2 &mpic 9 1
  565. 0000 0 0 3 &mpic 10 1
  566. 0000 0 0 4 &mpic 11 1
  567. >;
  568. pcie@0 {
  569. reg = <0x0 0x0 0x0 0x0 0x0>;
  570. #size-cells = <2>;
  571. #address-cells = <3>;
  572. device_type = "pci";
  573. ranges = <0x2000000 0x0 0xe0000000
  574. 0x2000000 0x0 0xe0000000
  575. 0x0 0x20000000
  576. 0x1000000 0x0 0x0
  577. 0x1000000 0x0 0x0
  578. 0x0 0x100000>;
  579. };
  580. };
  581. };