p1021mds.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. /*
  2. * P1021 MDS Device Tree Source
  3. *
  4. * Copyright 2010 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. /include/ "fsl/p1021si-pre.dtsi"
  12. / {
  13. model = "fsl,P1021";
  14. compatible = "fsl,P1021MDS";
  15. aliases {
  16. ethernet3 = &enet3;
  17. ethernet4 = &enet4;
  18. };
  19. memory {
  20. device_type = "memory";
  21. };
  22. lbc: localbus@ffe05000 {
  23. reg = <0x0 0xffe05000 0x0 0x1000>;
  24. /* NAND Flash, BCSR, PMC0/1*/
  25. ranges = <0x0 0x0 0x0 0xfc000000 0x02000000
  26. 0x1 0x0 0x0 0xf8000000 0x00008000
  27. 0x2 0x0 0x0 0xf8010000 0x00020000
  28. 0x3 0x0 0x0 0xf8020000 0x00020000>;
  29. nand@0,0 {
  30. #address-cells = <1>;
  31. #size-cells = <1>;
  32. compatible = "fsl,p1021-fcm-nand",
  33. "fsl,elbc-fcm-nand";
  34. reg = <0x0 0x0 0x40000>;
  35. partition@0 {
  36. /* This location must not be altered */
  37. /* 1MB for u-boot Bootloader Image */
  38. reg = <0x0 0x00100000>;
  39. label = "NAND (RO) U-Boot Image";
  40. read-only;
  41. };
  42. partition@100000 {
  43. /* 1MB for DTB Image */
  44. reg = <0x00100000 0x00100000>;
  45. label = "NAND (RO) DTB Image";
  46. read-only;
  47. };
  48. partition@200000 {
  49. /* 4MB for Linux Kernel Image */
  50. reg = <0x00200000 0x00400000>;
  51. label = "NAND (RO) Linux Kernel Image";
  52. read-only;
  53. };
  54. partition@600000 {
  55. /* 5MB for Compressed Root file System Image */
  56. reg = <0x00600000 0x00500000>;
  57. label = "NAND (RO) Compressed RFS Image";
  58. read-only;
  59. };
  60. partition@b00000 {
  61. /* 6MB for JFFS2 based Root file System */
  62. reg = <0x00a00000 0x00600000>;
  63. label = "NAND (RW) JFFS2 Root File System";
  64. };
  65. partition@1100000 {
  66. /* 14MB for JFFS2 based Root file System */
  67. reg = <0x01100000 0x00e00000>;
  68. label = "NAND (RW) Writable User area";
  69. };
  70. partition@1f00000 {
  71. /* 1MB for microcode */
  72. reg = <0x01f00000 0x00100000>;
  73. label = "NAND (RO) QE Ucode";
  74. read-only;
  75. };
  76. };
  77. bcsr@1,0 {
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. compatible = "fsl,p1021mds-bcsr";
  81. reg = <1 0 0x8000>;
  82. ranges = <0 1 0 0x8000>;
  83. };
  84. pib@2,0 {
  85. compatible = "fsl,p1021mds-pib";
  86. reg = <2 0 0x10000>;
  87. };
  88. pib@3,0 {
  89. compatible = "fsl,p1021mds-pib";
  90. reg = <3 0 0x10000>;
  91. };
  92. };
  93. soc: soc@ffe00000 {
  94. compatible = "fsl,p1021-immr", "simple-bus";
  95. ranges = <0x0 0x0 0xffe00000 0x100000>;
  96. i2c@3000 {
  97. rtc@68 {
  98. compatible = "dallas,ds1374";
  99. reg = <0x68>;
  100. };
  101. };
  102. spi@7000 {
  103. flash@0 {
  104. #address-cells = <1>;
  105. #size-cells = <1>;
  106. compatible = "spansion,s25sl12801";
  107. reg = <0>;
  108. spi-max-frequency = <40000000>; /* input clock */
  109. partition@u-boot {
  110. label = "u-boot-spi";
  111. reg = <0x00000000 0x00100000>;
  112. read-only;
  113. };
  114. partition@kernel {
  115. label = "kernel-spi";
  116. reg = <0x00100000 0x00500000>;
  117. read-only;
  118. };
  119. partition@dtb {
  120. label = "dtb-spi";
  121. reg = <0x00600000 0x00100000>;
  122. read-only;
  123. };
  124. partition@fs {
  125. label = "file system-spi";
  126. reg = <0x00700000 0x00900000>;
  127. };
  128. };
  129. };
  130. usb@22000 {
  131. phy_type = "ulpi";
  132. };
  133. mdio@24000 {
  134. phy0: ethernet-phy@0 {
  135. interrupts = <1 1 0 0>;
  136. reg = <0x0>;
  137. };
  138. phy1: ethernet-phy@1 {
  139. interrupts = <2 1 0 0>;
  140. reg = <0x1>;
  141. };
  142. phy4: ethernet-phy@4 {
  143. reg = <0x4>;
  144. };
  145. tbi-phy@5 {
  146. device_type = "tbi-phy";
  147. reg = <0x5>;
  148. };
  149. };
  150. mdio@25000 {
  151. tbi0: tbi-phy@11 {
  152. reg = <0x11>;
  153. device_type = "tbi-phy";
  154. };
  155. };
  156. ethernet@b0000 {
  157. phy-handle = <&phy0>;
  158. phy-connection-type = "rgmii-id";
  159. };
  160. ethernet@b1000 {
  161. phy-handle = <&phy4>;
  162. tbi-handle = <&tbi0>;
  163. phy-connection-type = "sgmii";
  164. };
  165. ethernet@b2000 {
  166. phy-handle = <&phy1>;
  167. phy-connection-type = "rgmii-id";
  168. };
  169. par_io@e0100 {
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. reg = <0xe0100 0x60>;
  173. ranges = <0x0 0xe0100 0x60>;
  174. device_type = "par_io";
  175. num-ports = <3>;
  176. pio1: ucc_pin@01 {
  177. pio-map = <
  178. /* port pin dir open_drain assignment has_irq */
  179. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  180. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  181. 0x0 0x17 0x2 0x0 0x2 0x0 /* CLK12 */
  182. 0x0 0x18 0x2 0x0 0x1 0x0 /* CLK9 */
  183. 0x0 0x7 0x1 0x0 0x2 0x0 /* ENET1_TXD0_SER1_TXD0 */
  184. 0x0 0x9 0x1 0x0 0x2 0x0 /* ENET1_TXD1_SER1_TXD1 */
  185. 0x0 0xb 0x1 0x0 0x2 0x0 /* ENET1_TXD2_SER1_TXD2 */
  186. 0x0 0xc 0x1 0x0 0x2 0x0 /* ENET1_TXD3_SER1_TXD3 */
  187. 0x0 0x6 0x2 0x0 0x2 0x0 /* ENET1_RXD0_SER1_RXD0 */
  188. 0x0 0xa 0x2 0x0 0x2 0x0 /* ENET1_RXD1_SER1_RXD1 */
  189. 0x0 0xe 0x2 0x0 0x2 0x0 /* ENET1_RXD2_SER1_RXD2 */
  190. 0x0 0xf 0x2 0x0 0x2 0x0 /* ENET1_RXD3_SER1_RXD3 */
  191. 0x0 0x5 0x1 0x0 0x2 0x0 /* ENET1_TX_EN_SER1_RTS_B */
  192. 0x0 0xd 0x1 0x0 0x2 0x0 /* ENET1_TX_ER */
  193. 0x0 0x4 0x2 0x0 0x2 0x0 /* ENET1_RX_DV_SER1_CTS_B */
  194. 0x0 0x8 0x2 0x0 0x2 0x0 /* ENET1_RX_ER_SER1_CD_B */
  195. 0x0 0x11 0x2 0x0 0x2 0x0 /* ENET1_CRS */
  196. 0x0 0x10 0x2 0x0 0x2 0x0>; /* ENET1_COL */
  197. };
  198. pio2: ucc_pin@02 {
  199. pio-map = <
  200. /* port pin dir open_drain assignment has_irq */
  201. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  202. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  203. 0x1 0xb 0x2 0x0 0x1 0x0 /* CLK13 */
  204. 0x1 0x7 0x1 0x0 0x2 0x0 /* ENET5_TXD0_SER5_TXD0 */
  205. 0x1 0xa 0x1 0x0 0x2 0x0 /* ENET5_TXD1_SER5_TXD1 */
  206. 0x1 0x6 0x2 0x0 0x2 0x0 /* ENET5_RXD0_SER5_RXD0 */
  207. 0x1 0x9 0x2 0x0 0x2 0x0 /* ENET5_RXD1_SER5_RXD1 */
  208. 0x1 0x5 0x1 0x0 0x2 0x0 /* ENET5_TX_EN_SER5_RTS_B */
  209. 0x1 0x4 0x2 0x0 0x2 0x0 /* ENET5_RX_DV_SER5_CTS_B */
  210. 0x1 0x8 0x2 0x0 0x2 0x0>; /* ENET5_RX_ER_SER5_CD_B */
  211. };
  212. };
  213. };
  214. pci0: pcie@ffe09000 {
  215. reg = <0 0xffe09000 0 0x1000>;
  216. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  217. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  218. pcie@0 {
  219. ranges = <0x2000000 0x0 0xa0000000
  220. 0x2000000 0x0 0xa0000000
  221. 0x0 0x20000000
  222. 0x1000000 0x0 0x0
  223. 0x1000000 0x0 0x0
  224. 0x0 0x100000>;
  225. };
  226. };
  227. pci1: pcie@ffe0a000 {
  228. reg = <0 0xffe0a000 0 0x1000>;
  229. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  230. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  231. pcie@0 {
  232. ranges = <0x2000000 0x0 0xc0000000
  233. 0x2000000 0x0 0xc0000000
  234. 0x0 0x20000000
  235. 0x1000000 0x0 0x0
  236. 0x1000000 0x0 0x0
  237. 0x0 0x100000>;
  238. };
  239. };
  240. qe: qe@ffe80000 {
  241. ranges = <0x0 0x0 0xffe80000 0x40000>;
  242. reg = <0 0xffe80000 0 0x480>;
  243. brg-frequency = <0>;
  244. bus-frequency = <0>;
  245. status = "disabled"; /* no firmware loaded */
  246. enet3: ucc@2000 {
  247. device_type = "network";
  248. compatible = "ucc_geth";
  249. local-mac-address = [ 00 00 00 00 00 00 ];
  250. rx-clock-name = "clk12";
  251. tx-clock-name = "clk9";
  252. pio-handle = <&pio1>;
  253. phy-handle = <&qe_phy0>;
  254. phy-connection-type = "mii";
  255. };
  256. mdio@2120 {
  257. qe_phy0: ethernet-phy@0 {
  258. interrupt-parent = <&mpic>;
  259. interrupts = <4 1 0 0>;
  260. reg = <0x0>;
  261. device_type = "ethernet-phy";
  262. };
  263. qe_phy1: ethernet-phy@03 {
  264. interrupt-parent = <&mpic>;
  265. interrupts = <5 1 0 0>;
  266. reg = <0x3>;
  267. device_type = "ethernet-phy";
  268. };
  269. tbi-phy@11 {
  270. reg = <0x11>;
  271. device_type = "tbi-phy";
  272. };
  273. };
  274. enet4: ucc@2400 {
  275. device_type = "network";
  276. compatible = "ucc_geth";
  277. local-mac-address = [ 00 00 00 00 00 00 ];
  278. rx-clock-name = "none";
  279. tx-clock-name = "clk13";
  280. pio-handle = <&pio2>;
  281. phy-handle = <&qe_phy1>;
  282. phy-connection-type = "rmii";
  283. };
  284. };
  285. };
  286. /include/ "fsl/p1021si-post.dtsi"