p1022ds.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. /*
  2. * P1022 DS Device Tree Source stub (no addresses or top-level ranges)
  3. *
  4. * Copyright 2012 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. &board_lbc {
  35. /*
  36. * This node is used to access the pixis via "indirect" mode,
  37. * which is done by writing the pixis register index to chip
  38. * select 0 and the value to/from chip select 1. Indirect
  39. * mode is the only way to access the pixis when DIU video
  40. * is enabled. Note that this assumes that the first column
  41. * of the 'ranges' property above is the chip select number.
  42. */
  43. board-control@0,0 {
  44. compatible = "fsl,p1022ds-indirect-pixis";
  45. reg = <0x0 0x0 1 /* CS0 */
  46. 0x1 0x0 1>; /* CS1 */
  47. interrupt-parent = <&mpic>;
  48. interrupts = <8 0 0 0>;
  49. };
  50. nor@0,0 {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. compatible = "cfi-flash";
  54. reg = <0x0 0x0 0x8000000>;
  55. bank-width = <2>;
  56. device-width = <1>;
  57. partition@0 {
  58. reg = <0x0 0x03000000>;
  59. label = "ramdisk-nor";
  60. read-only;
  61. };
  62. partition@3000000 {
  63. reg = <0x03000000 0x00e00000>;
  64. label = "diagnostic-nor";
  65. read-only;
  66. };
  67. partition@3e00000 {
  68. reg = <0x03e00000 0x00200000>;
  69. label = "dink-nor";
  70. read-only;
  71. };
  72. partition@4000000 {
  73. reg = <0x04000000 0x00400000>;
  74. label = "kernel-nor";
  75. read-only;
  76. };
  77. partition@4400000 {
  78. reg = <0x04400000 0x03b00000>;
  79. label = "jffs2-nor";
  80. };
  81. partition@7f00000 {
  82. reg = <0x07f00000 0x00080000>;
  83. label = "dtb-nor";
  84. read-only;
  85. };
  86. partition@7f80000 {
  87. reg = <0x07f80000 0x00080000>;
  88. label = "u-boot-nor";
  89. read-only;
  90. };
  91. };
  92. nand@2,0 {
  93. #address-cells = <1>;
  94. #size-cells = <1>;
  95. compatible = "fsl,elbc-fcm-nand";
  96. reg = <0x2 0x0 0x40000>;
  97. partition@0 {
  98. reg = <0x0 0x02000000>;
  99. label = "u-boot-nand";
  100. read-only;
  101. };
  102. partition@2000000 {
  103. reg = <0x02000000 0x10000000>;
  104. label = "jffs2-nand";
  105. };
  106. partition@12000000 {
  107. reg = <0x12000000 0x10000000>;
  108. label = "ramdisk-nand";
  109. read-only;
  110. };
  111. partition@22000000 {
  112. reg = <0x22000000 0x04000000>;
  113. label = "kernel-nand";
  114. };
  115. partition@26000000 {
  116. reg = <0x26000000 0x01000000>;
  117. label = "dtb-nand";
  118. read-only;
  119. };
  120. partition@27000000 {
  121. reg = <0x27000000 0x19000000>;
  122. label = "reserved-nand";
  123. };
  124. };
  125. board-control@3,0 {
  126. compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis";
  127. reg = <3 0 0x30>;
  128. interrupt-parent = <&mpic>;
  129. /*
  130. * IRQ8 is generated if the "EVENT" switch is pressed
  131. * and PX_CTL[EVESEL] is set to 00.
  132. */
  133. interrupts = <8 0 0 0>;
  134. };
  135. };
  136. &board_soc {
  137. i2c@3100 {
  138. wm8776:codec@1a {
  139. compatible = "wlf,wm8776";
  140. reg = <0x1a>;
  141. /*
  142. * clock-frequency will be set by U-Boot if
  143. * the clock is enabled.
  144. */
  145. };
  146. };
  147. spi@7000 {
  148. flash@0 {
  149. #address-cells = <1>;
  150. #size-cells = <1>;
  151. compatible = "spansion,s25sl12801";
  152. reg = <0>;
  153. spi-max-frequency = <40000000>; /* input clock */
  154. partition@0 {
  155. label = "u-boot-spi";
  156. reg = <0x00000000 0x00100000>;
  157. read-only;
  158. };
  159. partition@100000 {
  160. label = "kernel-spi";
  161. reg = <0x00100000 0x00500000>;
  162. read-only;
  163. };
  164. partition@600000 {
  165. label = "dtb-spi";
  166. reg = <0x00600000 0x00100000>;
  167. read-only;
  168. };
  169. partition@700000 {
  170. label = "file system-spi";
  171. reg = <0x00700000 0x00900000>;
  172. };
  173. };
  174. };
  175. ssi@15000 {
  176. fsl,mode = "i2s-slave";
  177. codec-handle = <&wm8776>;
  178. fsl,ssi-asynchronous;
  179. };
  180. usb@22000 {
  181. phy_type = "ulpi";
  182. };
  183. usb@23000 {
  184. status = "disabled";
  185. };
  186. mdio@24000 {
  187. phy0: ethernet-phy@0 {
  188. interrupts = <3 1 0 0>;
  189. reg = <0x1>;
  190. };
  191. phy1: ethernet-phy@1 {
  192. interrupts = <9 1 0 0>;
  193. reg = <0x2>;
  194. };
  195. tbi-phy@2 {
  196. device_type = "tbi-phy";
  197. reg = <0x2>;
  198. };
  199. };
  200. ethernet@b0000 {
  201. phy-handle = <&phy0>;
  202. phy-connection-type = "rgmii-id";
  203. };
  204. ethernet@b1000 {
  205. phy-handle = <&phy1>;
  206. phy-connection-type = "rgmii-id";
  207. };
  208. };