p1021mds.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /*
  2. * P1021 MDS Device Tree Source
  3. *
  4. * Copyright 2010,2012 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. dr_mode = "host";
  133. };
  134. mdio@24000 {
  135. phy0: ethernet-phy@0 {
  136. interrupts = <1 1 0 0>;
  137. reg = <0x0>;
  138. };
  139. phy1: ethernet-phy@1 {
  140. interrupts = <2 1 0 0>;
  141. reg = <0x1>;
  142. };
  143. phy4: ethernet-phy@4 {
  144. reg = <0x4>;
  145. };
  146. tbi-phy@5 {
  147. device_type = "tbi-phy";
  148. reg = <0x5>;
  149. };
  150. };
  151. mdio@25000 {
  152. tbi0: tbi-phy@11 {
  153. reg = <0x11>;
  154. device_type = "tbi-phy";
  155. };
  156. };
  157. ethernet@b0000 {
  158. phy-handle = <&phy0>;
  159. phy-connection-type = "rgmii-id";
  160. };
  161. ethernet@b1000 {
  162. phy-handle = <&phy4>;
  163. tbi-handle = <&tbi0>;
  164. phy-connection-type = "sgmii";
  165. };
  166. ethernet@b2000 {
  167. phy-handle = <&phy1>;
  168. phy-connection-type = "rgmii-id";
  169. };
  170. par_io@e0100 {
  171. #address-cells = <1>;
  172. #size-cells = <1>;
  173. reg = <0xe0100 0x60>;
  174. ranges = <0x0 0xe0100 0x60>;
  175. device_type = "par_io";
  176. num-ports = <3>;
  177. pio1: ucc_pin@01 {
  178. pio-map = <
  179. /* port pin dir open_drain assignment has_irq */
  180. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  181. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  182. 0x0 0x17 0x2 0x0 0x2 0x0 /* CLK12 */
  183. 0x0 0x18 0x2 0x0 0x1 0x0 /* CLK9 */
  184. 0x0 0x7 0x1 0x0 0x2 0x0 /* ENET1_TXD0_SER1_TXD0 */
  185. 0x0 0x9 0x1 0x0 0x2 0x0 /* ENET1_TXD1_SER1_TXD1 */
  186. 0x0 0xb 0x1 0x0 0x2 0x0 /* ENET1_TXD2_SER1_TXD2 */
  187. 0x0 0xc 0x1 0x0 0x2 0x0 /* ENET1_TXD3_SER1_TXD3 */
  188. 0x0 0x6 0x2 0x0 0x2 0x0 /* ENET1_RXD0_SER1_RXD0 */
  189. 0x0 0xa 0x2 0x0 0x2 0x0 /* ENET1_RXD1_SER1_RXD1 */
  190. 0x0 0xe 0x2 0x0 0x2 0x0 /* ENET1_RXD2_SER1_RXD2 */
  191. 0x0 0xf 0x2 0x0 0x2 0x0 /* ENET1_RXD3_SER1_RXD3 */
  192. 0x0 0x5 0x1 0x0 0x2 0x0 /* ENET1_TX_EN_SER1_RTS_B */
  193. 0x0 0xd 0x1 0x0 0x2 0x0 /* ENET1_TX_ER */
  194. 0x0 0x4 0x2 0x0 0x2 0x0 /* ENET1_RX_DV_SER1_CTS_B */
  195. 0x0 0x8 0x2 0x0 0x2 0x0 /* ENET1_RX_ER_SER1_CD_B */
  196. 0x0 0x11 0x2 0x0 0x2 0x0 /* ENET1_CRS */
  197. 0x0 0x10 0x2 0x0 0x2 0x0>; /* ENET1_COL */
  198. };
  199. pio2: ucc_pin@02 {
  200. pio-map = <
  201. /* port pin dir open_drain assignment has_irq */
  202. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  203. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  204. 0x1 0xb 0x2 0x0 0x1 0x0 /* CLK13 */
  205. 0x1 0x7 0x1 0x0 0x2 0x0 /* ENET5_TXD0_SER5_TXD0 */
  206. 0x1 0xa 0x1 0x0 0x2 0x0 /* ENET5_TXD1_SER5_TXD1 */
  207. 0x1 0x6 0x2 0x0 0x2 0x0 /* ENET5_RXD0_SER5_RXD0 */
  208. 0x1 0x9 0x2 0x0 0x2 0x0 /* ENET5_RXD1_SER5_RXD1 */
  209. 0x1 0x5 0x1 0x0 0x2 0x0 /* ENET5_TX_EN_SER5_RTS_B */
  210. 0x1 0x4 0x2 0x0 0x2 0x0 /* ENET5_RX_DV_SER5_CTS_B */
  211. 0x1 0x8 0x2 0x0 0x2 0x0>; /* ENET5_RX_ER_SER5_CD_B */
  212. };
  213. };
  214. };
  215. pci0: pcie@ffe09000 {
  216. reg = <0 0xffe09000 0 0x1000>;
  217. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  218. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  219. pcie@0 {
  220. ranges = <0x2000000 0x0 0xa0000000
  221. 0x2000000 0x0 0xa0000000
  222. 0x0 0x20000000
  223. 0x1000000 0x0 0x0
  224. 0x1000000 0x0 0x0
  225. 0x0 0x100000>;
  226. };
  227. };
  228. pci1: pcie@ffe0a000 {
  229. reg = <0 0xffe0a000 0 0x1000>;
  230. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  231. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  232. pcie@0 {
  233. ranges = <0x2000000 0x0 0xc0000000
  234. 0x2000000 0x0 0xc0000000
  235. 0x0 0x20000000
  236. 0x1000000 0x0 0x0
  237. 0x1000000 0x0 0x0
  238. 0x0 0x100000>;
  239. };
  240. };
  241. qe: qe@ffe80000 {
  242. ranges = <0x0 0x0 0xffe80000 0x40000>;
  243. reg = <0 0xffe80000 0 0x480>;
  244. brg-frequency = <0>;
  245. bus-frequency = <0>;
  246. status = "disabled"; /* no firmware loaded */
  247. enet3: ucc@2000 {
  248. device_type = "network";
  249. compatible = "ucc_geth";
  250. local-mac-address = [ 00 00 00 00 00 00 ];
  251. rx-clock-name = "clk12";
  252. tx-clock-name = "clk9";
  253. pio-handle = <&pio1>;
  254. phy-handle = <&qe_phy0>;
  255. phy-connection-type = "mii";
  256. };
  257. mdio@2120 {
  258. qe_phy0: ethernet-phy@0 {
  259. interrupt-parent = <&mpic>;
  260. interrupts = <4 1 0 0>;
  261. reg = <0x0>;
  262. device_type = "ethernet-phy";
  263. };
  264. qe_phy1: ethernet-phy@03 {
  265. interrupt-parent = <&mpic>;
  266. interrupts = <5 1 0 0>;
  267. reg = <0x3>;
  268. device_type = "ethernet-phy";
  269. };
  270. tbi-phy@11 {
  271. reg = <0x11>;
  272. device_type = "tbi-phy";
  273. };
  274. };
  275. enet4: ucc@2400 {
  276. device_type = "network";
  277. compatible = "ucc_geth";
  278. local-mac-address = [ 00 00 00 00 00 00 ];
  279. rx-clock-name = "none";
  280. tx-clock-name = "clk13";
  281. pio-handle = <&pio2>;
  282. phy-handle = <&qe_phy1>;
  283. phy-connection-type = "rmii";
  284. };
  285. };
  286. };
  287. /include/ "fsl/p1021si-post.dtsi"