p1020rdb.dts 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. /*
  2. * P1020 RDB Device Tree Source
  3. *
  4. * Copyright 2009-2011 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/ "p1020si.dtsi"
  12. / {
  13. model = "fsl,P1020RDB";
  14. compatible = "fsl,P1020RDB";
  15. aliases {
  16. serial0 = &serial0;
  17. serial1 = &serial1;
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. ethernet2 = &enet2;
  21. pci0 = &pci0;
  22. pci1 = &pci1;
  23. };
  24. memory {
  25. device_type = "memory";
  26. };
  27. localbus@ffe05000 {
  28. /* NOR, NAND Flashes and Vitesse 5 port L2 switch */
  29. ranges = <0x0 0x0 0x0 0xef000000 0x01000000
  30. 0x1 0x0 0x0 0xffa00000 0x00040000
  31. 0x2 0x0 0x0 0xffb00000 0x00020000>;
  32. nor@0,0 {
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. compatible = "cfi-flash";
  36. reg = <0x0 0x0 0x1000000>;
  37. bank-width = <2>;
  38. device-width = <1>;
  39. partition@0 {
  40. /* This location must not be altered */
  41. /* 256KB for Vitesse 7385 Switch firmware */
  42. reg = <0x0 0x00040000>;
  43. label = "NOR (RO) Vitesse-7385 Firmware";
  44. read-only;
  45. };
  46. partition@40000 {
  47. /* 256KB for DTB Image */
  48. reg = <0x00040000 0x00040000>;
  49. label = "NOR (RO) DTB Image";
  50. read-only;
  51. };
  52. partition@80000 {
  53. /* 3.5 MB for Linux Kernel Image */
  54. reg = <0x00080000 0x00380000>;
  55. label = "NOR (RO) Linux Kernel Image";
  56. read-only;
  57. };
  58. partition@400000 {
  59. /* 11MB for JFFS2 based Root file System */
  60. reg = <0x00400000 0x00b00000>;
  61. label = "NOR (RW) JFFS2 Root File System";
  62. };
  63. partition@f00000 {
  64. /* This location must not be altered */
  65. /* 512KB for u-boot Bootloader Image */
  66. /* 512KB for u-boot Environment Variables */
  67. reg = <0x00f00000 0x00100000>;
  68. label = "NOR (RO) U-Boot Image";
  69. read-only;
  70. };
  71. };
  72. nand@1,0 {
  73. #address-cells = <1>;
  74. #size-cells = <1>;
  75. compatible = "fsl,p1020-fcm-nand",
  76. "fsl,elbc-fcm-nand";
  77. reg = <0x1 0x0 0x40000>;
  78. partition@0 {
  79. /* This location must not be altered */
  80. /* 1MB for u-boot Bootloader Image */
  81. reg = <0x0 0x00100000>;
  82. label = "NAND (RO) U-Boot Image";
  83. read-only;
  84. };
  85. partition@100000 {
  86. /* 1MB for DTB Image */
  87. reg = <0x00100000 0x00100000>;
  88. label = "NAND (RO) DTB Image";
  89. read-only;
  90. };
  91. partition@200000 {
  92. /* 4MB for Linux Kernel Image */
  93. reg = <0x00200000 0x00400000>;
  94. label = "NAND (RO) Linux Kernel Image";
  95. read-only;
  96. };
  97. partition@600000 {
  98. /* 4MB for Compressed Root file System Image */
  99. reg = <0x00600000 0x00400000>;
  100. label = "NAND (RO) Compressed RFS Image";
  101. read-only;
  102. };
  103. partition@a00000 {
  104. /* 7MB for JFFS2 based Root file System */
  105. reg = <0x00a00000 0x00700000>;
  106. label = "NAND (RW) JFFS2 Root File System";
  107. };
  108. partition@1100000 {
  109. /* 15MB for JFFS2 based Root file System */
  110. reg = <0x01100000 0x00f00000>;
  111. label = "NAND (RW) Writable User area";
  112. };
  113. };
  114. L2switch@2,0 {
  115. #address-cells = <1>;
  116. #size-cells = <1>;
  117. compatible = "vitesse-7385";
  118. reg = <0x2 0x0 0x20000>;
  119. };
  120. };
  121. soc@ffe00000 {
  122. i2c@3000 {
  123. rtc@68 {
  124. compatible = "dallas,ds1339";
  125. reg = <0x68>;
  126. };
  127. };
  128. spi@7000 {
  129. fsl_m25p80@0 {
  130. #address-cells = <1>;
  131. #size-cells = <1>;
  132. compatible = "fsl,espi-flash";
  133. reg = <0>;
  134. linux,modalias = "fsl_m25p80";
  135. modal = "s25sl128b";
  136. spi-max-frequency = <50000000>;
  137. mode = <0>;
  138. partition@0 {
  139. /* 512KB for u-boot Bootloader Image */
  140. reg = <0x0 0x00080000>;
  141. label = "SPI (RO) U-Boot Image";
  142. read-only;
  143. };
  144. partition@80000 {
  145. /* 512KB for DTB Image */
  146. reg = <0x00080000 0x00080000>;
  147. label = "SPI (RO) DTB Image";
  148. read-only;
  149. };
  150. partition@100000 {
  151. /* 4MB for Linux Kernel Image */
  152. reg = <0x00100000 0x00400000>;
  153. label = "SPI (RO) Linux Kernel Image";
  154. read-only;
  155. };
  156. partition@500000 {
  157. /* 4MB for Compressed RFS Image */
  158. reg = <0x00500000 0x00400000>;
  159. label = "SPI (RO) Compressed RFS Image";
  160. read-only;
  161. };
  162. partition@900000 {
  163. /* 7MB for JFFS2 based RFS */
  164. reg = <0x00900000 0x00700000>;
  165. label = "SPI (RW) JFFS2 RFS";
  166. };
  167. };
  168. };
  169. mdio@24000 {
  170. phy0: ethernet-phy@0 {
  171. interrupt-parent = <&mpic>;
  172. interrupts = <3 1>;
  173. reg = <0x0>;
  174. };
  175. phy1: ethernet-phy@1 {
  176. interrupt-parent = <&mpic>;
  177. interrupts = <2 1>;
  178. reg = <0x1>;
  179. };
  180. };
  181. mdio@25000 {
  182. tbi0: tbi-phy@11 {
  183. reg = <0x11>;
  184. device_type = "tbi-phy";
  185. };
  186. };
  187. enet0: ethernet@b0000 {
  188. fixed-link = <1 1 1000 0 0>;
  189. phy-connection-type = "rgmii-id";
  190. };
  191. enet1: ethernet@b1000 {
  192. phy-handle = <&phy0>;
  193. tbi-handle = <&tbi0>;
  194. phy-connection-type = "sgmii";
  195. };
  196. enet2: ethernet@b2000 {
  197. phy-handle = <&phy1>;
  198. phy-connection-type = "rgmii-id";
  199. };
  200. usb@22000 {
  201. phy_type = "ulpi";
  202. };
  203. /* USB2 is shared with localbus, so it must be disabled
  204. by default. We can't put 'status = "disabled";' here
  205. since U-Boot doesn't clear the status property when
  206. it enables USB2. OTOH, U-Boot does create a new node
  207. when there isn't any. So, just comment it out.
  208. usb@23000 {
  209. phy_type = "ulpi";
  210. };
  211. */
  212. };
  213. pci0: pcie@ffe09000 {
  214. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  215. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  216. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  217. interrupt-map = <
  218. /* IDSEL 0x0 */
  219. 0000 0x0 0x0 0x1 &mpic 0x4 0x1
  220. 0000 0x0 0x0 0x2 &mpic 0x5 0x1
  221. 0000 0x0 0x0 0x3 &mpic 0x6 0x1
  222. 0000 0x0 0x0 0x4 &mpic 0x7 0x1
  223. >;
  224. pcie@0 {
  225. reg = <0x0 0x0 0x0 0x0 0x0>;
  226. #size-cells = <2>;
  227. #address-cells = <3>;
  228. device_type = "pci";
  229. ranges = <0x2000000 0x0 0xa0000000
  230. 0x2000000 0x0 0xa0000000
  231. 0x0 0x20000000
  232. 0x1000000 0x0 0x0
  233. 0x1000000 0x0 0x0
  234. 0x0 0x100000>;
  235. };
  236. };
  237. pci1: pcie@ffe0a000 {
  238. ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
  239. 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
  240. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  241. interrupt-map = <
  242. /* IDSEL 0x0 */
  243. 0000 0x0 0x0 0x1 &mpic 0x0 0x1
  244. 0000 0x0 0x0 0x2 &mpic 0x1 0x1
  245. 0000 0x0 0x0 0x3 &mpic 0x2 0x1
  246. 0000 0x0 0x0 0x4 &mpic 0x3 0x1
  247. >;
  248. pcie@0 {
  249. reg = <0x0 0x0 0x0 0x0 0x0>;
  250. #size-cells = <2>;
  251. #address-cells = <3>;
  252. device_type = "pci";
  253. ranges = <0x2000000 0x0 0x80000000
  254. 0x2000000 0x0 0x80000000
  255. 0x0 0x20000000
  256. 0x1000000 0x0 0x0
  257. 0x1000000 0x0 0x0
  258. 0x0 0x100000>;
  259. };
  260. };
  261. };