c293pcie.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /*
  2. * C293 PCIE Device Tree Source
  3. *
  4. * Copyright 2013 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. /include/ "c293si-pre.dtsi"
  35. / {
  36. model = "fsl,C293PCIE";
  37. compatible = "fsl,C293PCIE";
  38. memory {
  39. device_type = "memory";
  40. };
  41. ifc: ifc@fffe1e000 {
  42. reg = <0xf 0xffe1e000 0 0x2000>;
  43. ranges = <0x0 0x0 0xf 0xec000000 0x04000000
  44. 0x1 0x0 0xf 0xff800000 0x00010000
  45. 0x2 0x0 0xf 0xffdf0000 0x00010000>;
  46. };
  47. soc: soc@fffe00000 {
  48. ranges = <0x0 0xf 0xffe00000 0x100000>;
  49. };
  50. pci0: pcie@fffe0a000 {
  51. reg = <0xf 0xffe0a000 0 0x1000>;
  52. ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000
  53. 0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>;
  54. pcie@0 {
  55. ranges = <0x2000000 0x0 0x80000000
  56. 0x2000000 0x0 0x80000000
  57. 0x0 0x20000000
  58. 0x1000000 0x0 0x0
  59. 0x1000000 0x0 0x0
  60. 0x0 0x100000>;
  61. };
  62. };
  63. };
  64. &ifc {
  65. nor@0,0 {
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. compatible = "cfi-flash";
  69. reg = <0x0 0x0 0x4000000>;
  70. bank-width = <2>;
  71. device-width = <1>;
  72. partition@0 {
  73. /* 1MB for DTB Image */
  74. reg = <0x0 0x00100000>;
  75. label = "NOR DTB Image";
  76. };
  77. partition@100000 {
  78. /* 8 MB for Linux Kernel Image */
  79. reg = <0x00100000 0x00800000>;
  80. label = "NOR Linux Kernel Image";
  81. };
  82. partition@900000 {
  83. /* 53MB for rootfs */
  84. reg = <0x00900000 0x03500000>;
  85. label = "NOR Rootfs Image";
  86. };
  87. partition@3e00000 {
  88. /* 1MB for blob encrypted key */
  89. reg = <0x03e00000 0x00100000>;
  90. label = "NOR blob encrypted key";
  91. };
  92. partition@3f00000 {
  93. /* 512KB for u-boot Bootloader Image and evn */
  94. reg = <0x03f00000 0x00100000>;
  95. label = "NOR U-Boot Image";
  96. read-only;
  97. };
  98. };
  99. nand@1,0 {
  100. #address-cells = <1>;
  101. #size-cells = <1>;
  102. compatible = "fsl,ifc-nand";
  103. reg = <0x1 0x0 0x10000>;
  104. partition@0 {
  105. /* This location must not be altered */
  106. /* 1MB for u-boot Bootloader Image */
  107. reg = <0x0 0x00100000>;
  108. label = "NAND U-Boot Image";
  109. read-only;
  110. };
  111. partition@100000 {
  112. /* 1MB for DTB Image */
  113. reg = <0x00100000 0x00100000>;
  114. label = "NAND DTB Image";
  115. };
  116. partition@200000 {
  117. /* 16MB for Linux Kernel Image */
  118. reg = <0x00200000 0x01000000>;
  119. label = "NAND Linux Kernel Image";
  120. };
  121. partition@1200000 {
  122. /* 4078MB for Root file System Image */
  123. reg = <0x00600000 0xfee00000>;
  124. label = "NAND RFS Image";
  125. };
  126. };
  127. cpld@2,0 {
  128. compatible = "fsl,c293pcie-cpld";
  129. reg = <0x2 0x0 0x20>;
  130. };
  131. };
  132. &soc {
  133. i2c@3000 {
  134. eeprom@50 {
  135. compatible = "st,24c1024";
  136. reg = <0x50>;
  137. };
  138. adt7461@4c {
  139. compatible = "adi,adt7461";
  140. reg = <0x4c>;
  141. };
  142. };
  143. spi@7000 {
  144. flash@0 {
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. compatible = "spansion,s25sl12801", "jedec,spi-nor";
  148. reg = <0>;
  149. spi-max-frequency = <50000000>;
  150. partition@0 {
  151. /* 1MB for u-boot Bootloader Image */
  152. /* 1MB for Environment */
  153. reg = <0x0 0x00100000>;
  154. label = "SPI Flash U-Boot Image";
  155. read-only;
  156. };
  157. partition@100000 {
  158. /* 512KB for DTB Image */
  159. reg = <0x00100000 0x00080000>;
  160. label = "SPI Flash DTB Image";
  161. };
  162. partition@180000 {
  163. /* 4MB for Linux Kernel Image */
  164. reg = <0x00180000 0x00400000>;
  165. label = "SPI Flash Linux Kernel Image";
  166. };
  167. partition@580000 {
  168. /* 10.5MB for RFS Image */
  169. reg = <0x00580000 0x00a80000>;
  170. label = "SPI Flash RFS Image";
  171. };
  172. };
  173. };
  174. mdio@24000 {
  175. phy0: ethernet-phy@0 {
  176. interrupts = <2 1 0 0>;
  177. reg = <0x0>;
  178. };
  179. phy1: ethernet-phy@1 {
  180. interrupts = <2 1 0 0>;
  181. reg = <0x2>;
  182. };
  183. };
  184. enet0: ethernet@b0000 {
  185. phy-handle = <&phy0>;
  186. phy-connection-type = "rgmii-id";
  187. };
  188. enet1: ethernet@b1000 {
  189. phy-handle = <&phy1>;
  190. phy-connection-type = "rgmii-id";
  191. };
  192. };
  193. /include/ "c293si-post.dtsi"