c293pcie.dts 5.3 KB

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