p1020rdb.dtsi 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. /*
  2. * P1020 RDB Device Tree Source stub (no addresses or top-level ranges)
  3. *
  4. * Copyright 2011-2012 Freescale Semiconductor Inc.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions are met:
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * * Neither the name of Freescale Semiconductor nor the
  14. * names of its contributors may be used to endorse or promote products
  15. * derived from this software without specific prior written permission.
  16. *
  17. *
  18. * ALTERNATIVELY, this software may be distributed under the terms of the
  19. * GNU General Public License ("GPL") as published by the Free Software
  20. * Foundation, either version 2 of that License or (at your option) any
  21. * later version.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
  24. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  25. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  26. * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  27. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  28. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  29. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  30. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  32. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33. */
  34. &board_lbc {
  35. nor@0,0 {
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. compatible = "cfi-flash";
  39. reg = <0x0 0x0 0x1000000>;
  40. bank-width = <2>;
  41. device-width = <1>;
  42. partition@0 {
  43. /* This location must not be altered */
  44. /* 256KB for Vitesse 7385 Switch firmware */
  45. reg = <0x0 0x00040000>;
  46. label = "NOR (RO) Vitesse-7385 Firmware";
  47. read-only;
  48. };
  49. partition@40000 {
  50. /* 256KB for DTB Image */
  51. reg = <0x00040000 0x00040000>;
  52. label = "NOR (RO) DTB Image";
  53. read-only;
  54. };
  55. partition@80000 {
  56. /* 3.5 MB for Linux Kernel Image */
  57. reg = <0x00080000 0x00380000>;
  58. label = "NOR (RO) Linux Kernel Image";
  59. read-only;
  60. };
  61. partition@400000 {
  62. /* 11MB for JFFS2 based Root file System */
  63. reg = <0x00400000 0x00b00000>;
  64. label = "NOR (RW) JFFS2 Root File System";
  65. };
  66. partition@f00000 {
  67. /* This location must not be altered */
  68. /* 512KB for u-boot Bootloader Image */
  69. /* 512KB for u-boot Environment Variables */
  70. reg = <0x00f00000 0x00100000>;
  71. label = "NOR (RO) U-Boot Image";
  72. read-only;
  73. };
  74. };
  75. nand@1,0 {
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. compatible = "fsl,p1020-fcm-nand",
  79. "fsl,elbc-fcm-nand";
  80. reg = <0x1 0x0 0x40000>;
  81. partition@0 {
  82. /* This location must not be altered */
  83. /* 1MB for u-boot Bootloader Image */
  84. reg = <0x0 0x00100000>;
  85. label = "NAND (RO) U-Boot Image";
  86. read-only;
  87. };
  88. partition@100000 {
  89. /* 1MB for DTB Image */
  90. reg = <0x00100000 0x00100000>;
  91. label = "NAND (RO) DTB Image";
  92. read-only;
  93. };
  94. partition@200000 {
  95. /* 4MB for Linux Kernel Image */
  96. reg = <0x00200000 0x00400000>;
  97. label = "NAND (RO) Linux Kernel Image";
  98. read-only;
  99. };
  100. partition@600000 {
  101. /* 4MB for Compressed Root file System Image */
  102. reg = <0x00600000 0x00400000>;
  103. label = "NAND (RO) Compressed RFS Image";
  104. read-only;
  105. };
  106. partition@a00000 {
  107. /* 7MB for JFFS2 based Root file System */
  108. reg = <0x00a00000 0x00700000>;
  109. label = "NAND (RW) JFFS2 Root File System";
  110. };
  111. partition@1100000 {
  112. /* 15MB for JFFS2 based Root file System */
  113. reg = <0x01100000 0x00f00000>;
  114. label = "NAND (RW) Writable User area";
  115. };
  116. };
  117. L2switch@2,0 {
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. compatible = "vitesse-7385";
  121. reg = <0x2 0x0 0x20000>;
  122. };
  123. };
  124. &board_soc {
  125. i2c@3000 {
  126. rtc@68 {
  127. compatible = "dallas,ds1339";
  128. reg = <0x68>;
  129. };
  130. };
  131. spi@7000 {
  132. flash@0 {
  133. #address-cells = <1>;
  134. #size-cells = <1>;
  135. compatible = "spansion,s25sl12801", "jedec,spi-nor";
  136. reg = <0>;
  137. spi-max-frequency = <40000000>; /* input clock */
  138. partition@u-boot {
  139. /* 512KB for u-boot Bootloader Image */
  140. reg = <0x0 0x00080000>;
  141. label = "u-boot";
  142. read-only;
  143. };
  144. partition@dtb {
  145. /* 512KB for DTB Image */
  146. reg = <0x00080000 0x00080000>;
  147. label = "dtb";
  148. read-only;
  149. };
  150. partition@kernel {
  151. /* 4MB for Linux Kernel Image */
  152. reg = <0x00100000 0x00400000>;
  153. label = "kernel";
  154. read-only;
  155. };
  156. partition@fs {
  157. /* 4MB for Compressed RFS Image */
  158. reg = <0x00500000 0x00400000>;
  159. label = "file system";
  160. read-only;
  161. };
  162. partition@jffs-fs {
  163. /* 7MB for JFFS2 based RFS */
  164. reg = <0x00900000 0x00700000>;
  165. label = "file system jffs2";
  166. };
  167. };
  168. };
  169. usb@22000 {
  170. phy_type = "ulpi";
  171. dr_mode = "host";
  172. };
  173. /* USB2 is shared with localbus. It is used
  174. only in case of SPI and SD boot after
  175. appropriate device-tree fixup done by uboot */
  176. usb@23000 {
  177. phy_type = "ulpi";
  178. dr_mode = "host";
  179. };
  180. mdio@24000 {
  181. phy0: ethernet-phy@0 {
  182. interrupt-parent = <&mpic>;
  183. interrupts = <3 1>;
  184. reg = <0x0>;
  185. };
  186. phy1: ethernet-phy@1 {
  187. interrupt-parent = <&mpic>;
  188. interrupts = <2 1>;
  189. reg = <0x1>;
  190. };
  191. tbi-phy@2 {
  192. device_type = "tbi-phy";
  193. reg = <0x2>;
  194. };
  195. };
  196. mdio@25000 {
  197. tbi0: tbi-phy@11 {
  198. reg = <0x11>;
  199. device_type = "tbi-phy";
  200. };
  201. };
  202. enet0: ethernet@b0000 {
  203. fixed-link = <1 1 1000 0 0>;
  204. phy-connection-type = "rgmii-id";
  205. };
  206. enet1: ethernet@b1000 {
  207. phy-handle = <&phy0>;
  208. tbi-handle = <&tbi0>;
  209. phy-connection-type = "sgmii";
  210. };
  211. enet2: ethernet@b2000 {
  212. phy-handle = <&phy1>;
  213. phy-connection-type = "rgmii-id";
  214. };
  215. };