p1023rdb.dts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. /*
  2. * P1023 RDB Device Tree Source
  3. *
  4. * Copyright 2013 - 2014 Freescale Semiconductor Inc.
  5. *
  6. * Author: Chunhe Lan <[email protected]>
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions are met:
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * * Neither the name of Freescale Semiconductor nor the
  16. * names of its contributors may be used to endorse or promote products
  17. * derived from this software without specific prior written permission.
  18. *
  19. *
  20. * ALTERNATIVELY, this software may be distributed under the terms of the
  21. * GNU General Public License ("GPL") as published by the Free Software
  22. * Foundation, either version 2 of that License or (at your option) any
  23. * later version.
  24. *
  25. * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
  26. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  27. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  28. * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  29. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  30. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  31. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  32. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  34. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. */
  36. /include/ "p1023si-pre.dtsi"
  37. / {
  38. model = "fsl,P1023";
  39. compatible = "fsl,P1023RDB";
  40. #address-cells = <2>;
  41. #size-cells = <2>;
  42. interrupt-parent = <&mpic>;
  43. memory {
  44. device_type = "memory";
  45. };
  46. reserved-memory {
  47. #address-cells = <2>;
  48. #size-cells = <2>;
  49. ranges;
  50. bman_fbpr: bman-fbpr {
  51. size = <0 0x1000000>;
  52. alignment = <0 0x1000000>;
  53. };
  54. qman_fqd: qman-fqd {
  55. size = <0 0x400000>;
  56. alignment = <0 0x400000>;
  57. };
  58. qman_pfdr: qman-pfdr {
  59. size = <0 0x2000000>;
  60. alignment = <0 0x2000000>;
  61. };
  62. };
  63. qportals: qman-portals@ff000000 {
  64. ranges = <0x0 0xf 0xff000000 0x200000>;
  65. };
  66. bportals: bman-portals@ff200000 {
  67. ranges = <0x0 0xf 0xff200000 0x200000>;
  68. };
  69. soc: soc@ff600000 {
  70. ranges = <0x0 0x0 0xff600000 0x200000>;
  71. i2c@3000 {
  72. eeprom@53 {
  73. compatible = "atmel,24c04";
  74. reg = <0x53>;
  75. };
  76. rtc@6f {
  77. compatible = "microchip,mcp7941x";
  78. reg = <0x6f>;
  79. };
  80. };
  81. usb@22000 {
  82. dr_mode = "host";
  83. phy_type = "ulpi";
  84. };
  85. };
  86. lbc: localbus@ff605000 {
  87. reg = <0 0xff605000 0 0x1000>;
  88. /* NOR, NAND Flashes */
  89. ranges = <0x0 0x0 0x0 0xec000000 0x04000000
  90. 0x1 0x0 0x0 0xffa00000 0x08000000>;
  91. nor@0,0 {
  92. #address-cells = <1>;
  93. #size-cells = <1>;
  94. compatible = "cfi-flash";
  95. reg = <0x0 0x0 0x04000000>;
  96. bank-width = <2>;
  97. device-width = <1>;
  98. partition@0 {
  99. /* 48MB for Root File System */
  100. reg = <0x00000000 0x03000000>;
  101. label = "NOR Root File System";
  102. };
  103. partition@3000000 {
  104. /* 1MB for DTB Image */
  105. reg = <0x03000000 0x00100000>;
  106. label = "NOR DTB Image";
  107. };
  108. partition@3100000 {
  109. /* 14MB for Linux Kernel Image */
  110. reg = <0x03100000 0x00e00000>;
  111. label = "NOR Linux Kernel Image";
  112. };
  113. partition@3f00000 {
  114. /* This location must not be altered */
  115. /* 512KB for u-boot Bootloader Image */
  116. /* 512KB for u-boot Environment Variables */
  117. reg = <0x03f00000 0x00100000>;
  118. label = "NOR U-Boot Image";
  119. read-only;
  120. };
  121. };
  122. nand@1,0 {
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. compatible = "fsl,elbc-fcm-nand";
  126. reg = <0x1 0x0 0x40000>;
  127. partition@0 {
  128. /* This location must not be altered */
  129. /* 1MB for u-boot Bootloader Image */
  130. reg = <0x0 0x00100000>;
  131. label = "NAND U-Boot Image";
  132. read-only;
  133. };
  134. partition@100000 {
  135. /* 1MB for DTB Image */
  136. reg = <0x00100000 0x00100000>;
  137. label = "NAND DTB Image";
  138. };
  139. partition@200000 {
  140. /* 14MB for Linux Kernel Image */
  141. reg = <0x00200000 0x00e00000>;
  142. label = "NAND Linux Kernel Image";
  143. };
  144. partition@1000000 {
  145. /* 96MB for Root File System Image */
  146. reg = <0x01000000 0x06000000>;
  147. label = "NAND Root File System";
  148. };
  149. partition@7000000 {
  150. /* 16MB for User Writable Area */
  151. reg = <0x07000000 0x01000000>;
  152. label = "NAND Writable User area";
  153. };
  154. };
  155. };
  156. pci0: pcie@ff60a000 {
  157. reg = <0 0xff60a000 0 0x1000>;
  158. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  159. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  160. pcie@0 {
  161. /* IRQ[0:3] are pulled up on board, set to active-low */
  162. interrupt-map-mask = <0xf800 0 0 7>;
  163. interrupt-map = <
  164. /* IDSEL 0x0 */
  165. 0000 0 0 1 &mpic 0 1 0 0
  166. 0000 0 0 2 &mpic 1 1 0 0
  167. 0000 0 0 3 &mpic 2 1 0 0
  168. 0000 0 0 4 &mpic 3 1 0 0
  169. >;
  170. ranges = <0x2000000 0x0 0xc0000000
  171. 0x2000000 0x0 0xc0000000
  172. 0x0 0x20000000
  173. 0x1000000 0x0 0x0
  174. 0x1000000 0x0 0x0
  175. 0x0 0x100000>;
  176. };
  177. };
  178. board_pci1: pci1: pcie@ff609000 {
  179. reg = <0 0xff609000 0 0x1000>;
  180. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  181. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  182. pcie@0 {
  183. /*
  184. * IRQ[4:6] only for PCIe, set to active-high,
  185. * IRQ[7] is pulled up on board, set to active-low
  186. */
  187. interrupt-map-mask = <0xf800 0 0 7>;
  188. interrupt-map = <
  189. /* IDSEL 0x0 */
  190. 0000 0 0 1 &mpic 4 2 0 0
  191. 0000 0 0 2 &mpic 5 2 0 0
  192. 0000 0 0 3 &mpic 6 2 0 0
  193. 0000 0 0 4 &mpic 7 1 0 0
  194. >;
  195. ranges = <0x2000000 0x0 0xa0000000
  196. 0x2000000 0x0 0xa0000000
  197. 0x0 0x20000000
  198. 0x1000000 0x0 0x0
  199. 0x1000000 0x0 0x0
  200. 0x0 0x100000>;
  201. };
  202. };
  203. pci2: pcie@ff60b000 {
  204. reg = <0 0xff60b000 0 0x1000>;
  205. ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
  206. 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
  207. pcie@0 {
  208. /*
  209. * IRQ[8:10] are pulled up on board, set to active-low
  210. * IRQ[11] only for PCIe, set to active-high,
  211. */
  212. interrupt-map-mask = <0xf800 0 0 7>;
  213. interrupt-map = <
  214. /* IDSEL 0x0 */
  215. 0000 0 0 1 &mpic 8 1 0 0
  216. 0000 0 0 2 &mpic 9 1 0 0
  217. 0000 0 0 3 &mpic 10 1 0 0
  218. 0000 0 0 4 &mpic 11 2 0 0
  219. >;
  220. ranges = <0x2000000 0x0 0x80000000
  221. 0x2000000 0x0 0x80000000
  222. 0x0 0x20000000
  223. 0x1000000 0x0 0x0
  224. 0x1000000 0x0 0x0
  225. 0x0 0x100000>;
  226. };
  227. };
  228. };
  229. /include/ "p1023si-post.dtsi"