p1023rdb.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. /*
  2. * P1023 RDB Device Tree Source
  3. *
  4. * Copyright 2013 Freescale Semiconductor Inc.
  5. *
  6. * Author: Chunhe Lan <Chunhe.Lan@freescale.com>
  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/ "fsl/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. soc: soc@ff600000 {
  47. ranges = <0x0 0x0 0xff600000 0x200000>;
  48. i2c@3000 {
  49. eeprom@53 {
  50. compatible = "at24,24c04";
  51. reg = <0x53>;
  52. };
  53. rtc@6f {
  54. compatible = "microchip,mcp7941x";
  55. reg = <0x6f>;
  56. };
  57. };
  58. usb@22000 {
  59. dr_mode = "host";
  60. phy_type = "ulpi";
  61. };
  62. };
  63. lbc: localbus@ff605000 {
  64. reg = <0 0xff605000 0 0x1000>;
  65. /* NOR, NAND Flashes */
  66. ranges = <0x0 0x0 0x0 0xec000000 0x04000000
  67. 0x1 0x0 0x0 0xffa00000 0x08000000>;
  68. nor@0,0 {
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. compatible = "cfi-flash";
  72. reg = <0x0 0x0 0x04000000>;
  73. bank-width = <2>;
  74. device-width = <1>;
  75. partition@0 {
  76. /* 48MB for Root File System */
  77. reg = <0x00000000 0x03000000>;
  78. label = "NOR Root File System";
  79. };
  80. partition@3000000 {
  81. /* 1MB for DTB Image */
  82. reg = <0x03000000 0x00100000>;
  83. label = "NOR DTB Image";
  84. };
  85. partition@3100000 {
  86. /* 14MB for Linux Kernel Image */
  87. reg = <0x03100000 0x00e00000>;
  88. label = "NOR Linux Kernel Image";
  89. };
  90. partition@3f00000 {
  91. /* This location must not be altered */
  92. /* 512KB for u-boot Bootloader Image */
  93. /* 512KB for u-boot Environment Variables */
  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,elbc-fcm-nand";
  103. reg = <0x1 0x0 0x40000>;
  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. /* 14MB for Linux Kernel Image */
  118. reg = <0x00200000 0x00e00000>;
  119. label = "NAND Linux Kernel Image";
  120. };
  121. partition@1000000 {
  122. /* 96MB for Root File System Image */
  123. reg = <0x01000000 0x06000000>;
  124. label = "NAND Root File System";
  125. };
  126. partition@7000000 {
  127. /* 16MB for User Writable Area */
  128. reg = <0x07000000 0x01000000>;
  129. label = "NAND Writable User area";
  130. };
  131. };
  132. };
  133. pci0: pcie@ff60a000 {
  134. reg = <0 0xff60a000 0 0x1000>;
  135. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  136. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  137. pcie@0 {
  138. /* IRQ[0:3] are pulled up on board, set to active-low */
  139. interrupt-map-mask = <0xf800 0 0 7>;
  140. interrupt-map = <
  141. /* IDSEL 0x0 */
  142. 0000 0 0 1 &mpic 0 1 0 0
  143. 0000 0 0 2 &mpic 1 1 0 0
  144. 0000 0 0 3 &mpic 2 1 0 0
  145. 0000 0 0 4 &mpic 3 1 0 0
  146. >;
  147. ranges = <0x2000000 0x0 0xc0000000
  148. 0x2000000 0x0 0xc0000000
  149. 0x0 0x20000000
  150. 0x1000000 0x0 0x0
  151. 0x1000000 0x0 0x0
  152. 0x0 0x100000>;
  153. };
  154. };
  155. board_pci1: pci1: pcie@ff609000 {
  156. reg = <0 0xff609000 0 0x1000>;
  157. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  158. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  159. pcie@0 {
  160. /*
  161. * IRQ[4:6] only for PCIe, set to active-high,
  162. * IRQ[7] is pulled up on board, set to active-low
  163. */
  164. interrupt-map-mask = <0xf800 0 0 7>;
  165. interrupt-map = <
  166. /* IDSEL 0x0 */
  167. 0000 0 0 1 &mpic 4 2 0 0
  168. 0000 0 0 2 &mpic 5 2 0 0
  169. 0000 0 0 3 &mpic 6 2 0 0
  170. 0000 0 0 4 &mpic 7 1 0 0
  171. >;
  172. ranges = <0x2000000 0x0 0xa0000000
  173. 0x2000000 0x0 0xa0000000
  174. 0x0 0x20000000
  175. 0x1000000 0x0 0x0
  176. 0x1000000 0x0 0x0
  177. 0x0 0x100000>;
  178. };
  179. };
  180. pci2: pcie@ff60b000 {
  181. reg = <0 0xff60b000 0 0x1000>;
  182. ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
  183. 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
  184. pcie@0 {
  185. /*
  186. * IRQ[8:10] are pulled up on board, set to active-low
  187. * IRQ[11] only for PCIe, set to active-high,
  188. */
  189. interrupt-map-mask = <0xf800 0 0 7>;
  190. interrupt-map = <
  191. /* IDSEL 0x0 */
  192. 0000 0 0 1 &mpic 8 1 0 0
  193. 0000 0 0 2 &mpic 9 1 0 0
  194. 0000 0 0 3 &mpic 10 1 0 0
  195. 0000 0 0 4 &mpic 11 2 0 0
  196. >;
  197. ranges = <0x2000000 0x0 0x80000000
  198. 0x2000000 0x0 0x80000000
  199. 0x0 0x20000000
  200. 0x1000000 0x0 0x0
  201. 0x1000000 0x0 0x0
  202. 0x0 0x100000>;
  203. };
  204. };
  205. };
  206. /include/ "fsl/p1023si-post.dtsi"