p1021rdb.dtsi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /*
  2. * P1021 RDB Device Tree Source stub (no addresses or top-level ranges)
  3. *
  4. * Copyright 2011 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. &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 Vitesse-7385 Firmware";
  47. read-only;
  48. };
  49. partition@40000 {
  50. /* 256KB for DTB Image */
  51. reg = <0x00040000 0x00040000>;
  52. label = "NOR DTB Image";
  53. };
  54. partition@80000 {
  55. /* 3.5 MB for Linux Kernel Image */
  56. reg = <0x00080000 0x00380000>;
  57. label = "NOR Linux Kernel Image";
  58. };
  59. partition@400000 {
  60. /* 11MB for JFFS2 based Root file System */
  61. reg = <0x00400000 0x00b00000>;
  62. label = "NOR 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 U-Boot Image";
  70. };
  71. };
  72. nand@1,0 {
  73. #address-cells = <1>;
  74. #size-cells = <1>;
  75. compatible = "fsl,p1021-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 U-Boot Image";
  83. read-only;
  84. };
  85. partition@100000 {
  86. /* 1MB for DTB Image */
  87. reg = <0x00100000 0x00100000>;
  88. label = "NAND DTB Image";
  89. };
  90. partition@200000 {
  91. /* 4MB for Linux Kernel Image */
  92. reg = <0x00200000 0x00400000>;
  93. label = "NAND Linux Kernel Image";
  94. };
  95. partition@600000 {
  96. /* 4MB for Compressed Root file System Image */
  97. reg = <0x00600000 0x00400000>;
  98. label = "NAND Compressed RFS Image";
  99. };
  100. partition@a00000 {
  101. /* 7MB for JFFS2 based Root file System */
  102. reg = <0x00a00000 0x00700000>;
  103. label = "NAND JFFS2 Root File System";
  104. };
  105. partition@1100000 {
  106. /* 15MB for User Writable Area */
  107. reg = <0x01100000 0x00f00000>;
  108. label = "NAND Writable User area";
  109. };
  110. };
  111. L2switch@2,0 {
  112. #address-cells = <1>;
  113. #size-cells = <1>;
  114. compatible = "vitesse-7385";
  115. reg = <0x2 0x0 0x20000>;
  116. };
  117. };
  118. &soc {
  119. i2c@3000 {
  120. rtc@68 {
  121. compatible = "pericom,pt7c4338";
  122. reg = <0x68>;
  123. };
  124. };
  125. spi@7000 {
  126. flash@0 {
  127. #address-cells = <1>;
  128. #size-cells = <1>;
  129. compatible = "spansion,s25sl12801";
  130. reg = <0>;
  131. spi-max-frequency = <40000000>; /* input clock */
  132. partition@u-boot {
  133. /* 512KB for u-boot Bootloader Image */
  134. reg = <0x0 0x00080000>;
  135. label = "SPI Flash U-Boot Image";
  136. read-only;
  137. };
  138. partition@dtb {
  139. /* 512KB for DTB Image */
  140. reg = <0x00080000 0x00080000>;
  141. label = "SPI Flash DTB Image";
  142. };
  143. partition@kernel {
  144. /* 4MB for Linux Kernel Image */
  145. reg = <0x00100000 0x00400000>;
  146. label = "SPI Flash Linux Kernel Image";
  147. };
  148. partition@fs {
  149. /* 4MB for Compressed RFS Image */
  150. reg = <0x00500000 0x00400000>;
  151. label = "SPI Flash Compressed RFSImage";
  152. };
  153. partition@jffs-fs {
  154. /* 7MB for JFFS2 based RFS */
  155. reg = <0x00900000 0x00700000>;
  156. label = "SPI Flash JFFS2 RFS";
  157. };
  158. };
  159. };
  160. usb@22000 {
  161. phy_type = "ulpi";
  162. };
  163. mdio@24000 {
  164. phy0: ethernet-phy@0 {
  165. interrupt-parent = <&mpic>;
  166. interrupts = <3 1 0 0>;
  167. reg = <0x0>;
  168. };
  169. phy1: ethernet-phy@1 {
  170. interrupt-parent = <&mpic>;
  171. interrupts = <2 1 0 0>;
  172. reg = <0x1>;
  173. };
  174. tbi0: tbi-phy@11 {
  175. reg = <0x11>;
  176. device_type = "tbi-phy";
  177. };
  178. };
  179. mdio@25000 {
  180. tbi1: tbi-phy@11 {
  181. reg = <0x11>;
  182. device_type = "tbi-phy";
  183. };
  184. };
  185. mdio@26000 {
  186. tbi2: tbi-phy@11 {
  187. reg = <0x11>;
  188. device_type = "tbi-phy";
  189. };
  190. };
  191. enet0: ethernet@b0000 {
  192. fixed-link = <1 1 1000 0 0>;
  193. phy-connection-type = "rgmii-id";
  194. };
  195. enet1: ethernet@b1000 {
  196. phy-handle = <&phy0>;
  197. tbi-handle = <&tbi1>;
  198. phy-connection-type = "sgmii";
  199. };
  200. enet2: ethernet@b2000 {
  201. phy-handle = <&phy1>;
  202. tbi-handle = <&tbi2>;
  203. phy-connection-type = "rgmii-id";
  204. };
  205. };