p2020rdb-pc.dtsi 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /*
  2. * P2020 RDB-PC 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. 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 U-Boot Image";
  84. read-only;
  85. };
  86. partition@100000 {
  87. /* 1MB for DTB Image */
  88. reg = <0x00100000 0x00100000>;
  89. label = "NAND DTB Image";
  90. };
  91. partition@200000 {
  92. /* 4MB for Linux Kernel Image */
  93. reg = <0x00200000 0x00400000>;
  94. label = "NAND Linux Kernel Image";
  95. };
  96. partition@600000 {
  97. /* 4MB for Compressed Root file System Image */
  98. reg = <0x00600000 0x00400000>;
  99. label = "NAND Compressed RFS Image";
  100. };
  101. partition@a00000 {
  102. /* 7MB for JFFS2 based Root file System */
  103. reg = <0x00a00000 0x00700000>;
  104. label = "NAND JFFS2 Root File System";
  105. };
  106. partition@1100000 {
  107. /* 15MB for JFFS2 based Root file System */
  108. reg = <0x01100000 0x00f00000>;
  109. label = "NAND Writable User area";
  110. };
  111. };
  112. L2switch@2,0 {
  113. #address-cells = <1>;
  114. #size-cells = <1>;
  115. compatible = "vitesse-7385";
  116. reg = <0x2 0x0 0x20000>;
  117. };
  118. cpld@3,0 {
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. compatible = "cpld";
  122. reg = <0x3 0x0 0x20000>;
  123. read-only;
  124. };
  125. };
  126. &soc {
  127. i2c@3000 {
  128. rtc@68 {
  129. compatible = "pericom,pt7c4338";
  130. reg = <0x68>;
  131. };
  132. };
  133. spi@7000 {
  134. flash@0 {
  135. #address-cells = <1>;
  136. #size-cells = <1>;
  137. compatible = "spansion,m25p80", "jedec,spi-nor";
  138. reg = <0>;
  139. spi-max-frequency = <40000000>;
  140. partition@0 {
  141. /* 512KB for u-boot Bootloader Image */
  142. reg = <0x0 0x00080000>;
  143. label = "SPI U-Boot Image";
  144. read-only;
  145. };
  146. partition@80000 {
  147. /* 512KB for DTB Image */
  148. reg = <0x00080000 0x00080000>;
  149. label = "SPI DTB Image";
  150. };
  151. partition@100000 {
  152. /* 4MB for Linux Kernel Image */
  153. reg = <0x00100000 0x00400000>;
  154. label = "SPI Linux Kernel Image";
  155. };
  156. partition@500000 {
  157. /* 4MB for Compressed RFS Image */
  158. reg = <0x00500000 0x00400000>;
  159. label = "SPI Compressed RFS Image";
  160. };
  161. partition@900000 {
  162. /* 7MB for JFFS2 based RFS */
  163. reg = <0x00900000 0x00700000>;
  164. label = "SPI JFFS2 RFS";
  165. };
  166. };
  167. };
  168. usb@22000 {
  169. phy_type = "ulpi";
  170. };
  171. mdio@24520 {
  172. phy0: ethernet-phy@0 {
  173. interrupts = <3 1 0 0>;
  174. reg = <0x0>;
  175. };
  176. phy1: ethernet-phy@1 {
  177. interrupts = <2 1 0 0>;
  178. reg = <0x1>;
  179. };
  180. };
  181. mdio@25520 {
  182. tbi0: tbi-phy@11 {
  183. reg = <0x11>;
  184. device_type = "tbi-phy";
  185. };
  186. };
  187. mdio@26520 {
  188. status = "disabled";
  189. };
  190. ptp_clock@24e00 {
  191. fsl,tclk-period = <5>;
  192. fsl,tmr-prsc = <2>;
  193. fsl,tmr-add = <0xaaaaaaab>;
  194. fsl,tmr-fiper1 = <999999995>;
  195. fsl,tmr-fiper2 = <99990>;
  196. fsl,max-adj = <299999999>;
  197. };
  198. enet0: ethernet@24000 {
  199. fixed-link = <1 1 1000 0 0>;
  200. phy-connection-type = "rgmii-id";
  201. };
  202. enet1: ethernet@25000 {
  203. tbi-handle = <&tbi0>;
  204. phy-handle = <&phy0>;
  205. phy-connection-type = "sgmii";
  206. };
  207. enet2: ethernet@26000 {
  208. phy-handle = <&phy1>;
  209. phy-connection-type = "rgmii-id";
  210. };
  211. };