p2020rdb.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /*
  2. * P2020 RDB Device Tree Source
  3. *
  4. * Copyright 2009-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/ "p2020si-pre.dtsi"
  12. / {
  13. model = "fsl,P2020RDB";
  14. compatible = "fsl,P2020RDB";
  15. aliases {
  16. ethernet0 = &enet0;
  17. ethernet1 = &enet1;
  18. ethernet2 = &enet2;
  19. serial0 = &serial0;
  20. serial1 = &serial1;
  21. pci0 = &pci0;
  22. pci1 = &pci1;
  23. };
  24. memory {
  25. device_type = "memory";
  26. };
  27. lbc: localbus@ffe05000 {
  28. reg = <0 0xffe05000 0 0x1000>;
  29. /* NOR and NAND Flashes */
  30. ranges = <0x0 0x0 0x0 0xef000000 0x01000000
  31. 0x1 0x0 0x0 0xffa00000 0x00040000
  32. 0x2 0x0 0x0 0xffb00000 0x00020000>;
  33. nor@0,0 {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. compatible = "cfi-flash";
  37. reg = <0x0 0x0 0x1000000>;
  38. bank-width = <2>;
  39. device-width = <1>;
  40. partition@0 {
  41. /* This location must not be altered */
  42. /* 256KB for Vitesse 7385 Switch firmware */
  43. reg = <0x0 0x00040000>;
  44. label = "NOR (RO) Vitesse-7385 Firmware";
  45. read-only;
  46. };
  47. partition@40000 {
  48. /* 256KB for DTB Image */
  49. reg = <0x00040000 0x00040000>;
  50. label = "NOR (RO) DTB Image";
  51. read-only;
  52. };
  53. partition@80000 {
  54. /* 3.5 MB for Linux Kernel Image */
  55. reg = <0x00080000 0x00380000>;
  56. label = "NOR (RO) Linux Kernel Image";
  57. read-only;
  58. };
  59. partition@400000 {
  60. /* 11MB for JFFS2 based Root file System */
  61. reg = <0x00400000 0x00b00000>;
  62. label = "NOR (RW) JFFS2 Root File System";
  63. };
  64. partition@f00000 {
  65. /* This location must not be altered */
  66. /* 512KB for u-boot Bootloader Image */
  67. /* 512KB for u-boot Environment Variables */
  68. reg = <0x00f00000 0x00100000>;
  69. label = "NOR (RO) U-Boot Image";
  70. read-only;
  71. };
  72. };
  73. nand@1,0 {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "fsl,p2020-fcm-nand",
  77. "fsl,elbc-fcm-nand";
  78. reg = <0x1 0x0 0x40000>;
  79. partition@0 {
  80. /* This location must not be altered */
  81. /* 1MB for u-boot Bootloader Image */
  82. reg = <0x0 0x00100000>;
  83. label = "NAND (RO) U-Boot Image";
  84. read-only;
  85. };
  86. partition@100000 {
  87. /* 1MB for DTB Image */
  88. reg = <0x00100000 0x00100000>;
  89. label = "NAND (RO) DTB Image";
  90. read-only;
  91. };
  92. partition@200000 {
  93. /* 4MB for Linux Kernel Image */
  94. reg = <0x00200000 0x00400000>;
  95. label = "NAND (RO) Linux Kernel Image";
  96. read-only;
  97. };
  98. partition@600000 {
  99. /* 4MB for Compressed Root file System Image */
  100. reg = <0x00600000 0x00400000>;
  101. label = "NAND (RO) Compressed RFS Image";
  102. read-only;
  103. };
  104. partition@a00000 {
  105. /* 7MB for JFFS2 based Root file System */
  106. reg = <0x00a00000 0x00700000>;
  107. label = "NAND (RW) JFFS2 Root File System";
  108. };
  109. partition@1100000 {
  110. /* 15MB for JFFS2 based Root file System */
  111. reg = <0x01100000 0x00f00000>;
  112. label = "NAND (RW) Writable User area";
  113. };
  114. };
  115. L2switch@2,0 {
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. compatible = "vitesse-7385";
  119. reg = <0x2 0x0 0x20000>;
  120. };
  121. };
  122. soc: soc@ffe00000 {
  123. ranges = <0x0 0x0 0xffe00000 0x100000>;
  124. i2c@3000 {
  125. rtc@68 {
  126. compatible = "dallas,ds1339";
  127. reg = <0x68>;
  128. };
  129. };
  130. spi@7000 {
  131. flash@0 {
  132. #address-cells = <1>;
  133. #size-cells = <1>;
  134. compatible = "spansion,s25sl12801", "jedec,spi-nor";
  135. reg = <0>;
  136. spi-max-frequency = <40000000>;
  137. partition@0 {
  138. /* 512KB for u-boot Bootloader Image */
  139. reg = <0x0 0x00080000>;
  140. label = "SPI (RO) U-Boot Image";
  141. read-only;
  142. };
  143. partition@80000 {
  144. /* 512KB for DTB Image */
  145. reg = <0x00080000 0x00080000>;
  146. label = "SPI (RO) DTB Image";
  147. read-only;
  148. };
  149. partition@100000 {
  150. /* 4MB for Linux Kernel Image */
  151. reg = <0x00100000 0x00400000>;
  152. label = "SPI (RO) Linux Kernel Image";
  153. read-only;
  154. };
  155. partition@500000 {
  156. /* 4MB for Compressed RFS Image */
  157. reg = <0x00500000 0x00400000>;
  158. label = "SPI (RO) Compressed RFS Image";
  159. read-only;
  160. };
  161. partition@900000 {
  162. /* 7MB for JFFS2 based RFS */
  163. reg = <0x00900000 0x00700000>;
  164. label = "SPI (RW) JFFS2 RFS";
  165. };
  166. };
  167. };
  168. usb@22000 {
  169. phy_type = "ulpi";
  170. dr_mode = "host";
  171. };
  172. mdio@24520 {
  173. phy0: ethernet-phy@0 {
  174. interrupts = <3 1 0 0>;
  175. reg = <0x0>;
  176. };
  177. phy1: ethernet-phy@1 {
  178. interrupts = <3 1 0 0>;
  179. reg = <0x1>;
  180. };
  181. tbi-phy@2 {
  182. device_type = "tbi-phy";
  183. reg = <0x2>;
  184. };
  185. };
  186. mdio@25520 {
  187. tbi0: tbi-phy@11 {
  188. reg = <0x11>;
  189. device_type = "tbi-phy";
  190. };
  191. };
  192. mdio@26520 {
  193. status = "disabled";
  194. };
  195. ptp_clock@24e00 {
  196. fsl,tclk-period = <5>;
  197. fsl,tmr-prsc = <200>;
  198. fsl,tmr-add = <0xCCCCCCCD>;
  199. fsl,tmr-fiper1 = <0x3B9AC9FB>;
  200. fsl,tmr-fiper2 = <0x0001869B>;
  201. fsl,max-adj = <249999999>;
  202. };
  203. enet0: ethernet@24000 {
  204. fixed-link = <1 1 1000 0 0>;
  205. phy-connection-type = "rgmii-id";
  206. };
  207. enet1: ethernet@25000 {
  208. tbi-handle = <&tbi0>;
  209. phy-handle = <&phy0>;
  210. phy-connection-type = "sgmii";
  211. };
  212. enet2: ethernet@26000 {
  213. phy-handle = <&phy1>;
  214. phy-connection-type = "rgmii-id";
  215. };
  216. };
  217. pci0: pcie@ffe08000 {
  218. reg = <0 0xffe08000 0 0x1000>;
  219. status = "disabled";
  220. };
  221. pci1: pcie@ffe09000 {
  222. reg = <0 0xffe09000 0 0x1000>;
  223. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  224. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  225. pcie@0 {
  226. ranges = <0x2000000 0x0 0xa0000000
  227. 0x2000000 0x0 0xa0000000
  228. 0x0 0x20000000
  229. 0x1000000 0x0 0x0
  230. 0x1000000 0x0 0x0
  231. 0x0 0x100000>;
  232. };
  233. };
  234. pci2: pcie@ffe0a000 {
  235. reg = <0 0xffe0a000 0 0x1000>;
  236. ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
  237. 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
  238. pcie@0 {
  239. ranges = <0x2000000 0x0 0x80000000
  240. 0x2000000 0x0 0x80000000
  241. 0x0 0x20000000
  242. 0x1000000 0x0 0x0
  243. 0x1000000 0x0 0x0
  244. 0x0 0x100000>;
  245. };
  246. };
  247. };
  248. /include/ "p2020si-post.dtsi"