p1025rdb.dtsi 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /*
  2. * P1025 RDB Device Tree Source stub (no addresses or top-level ranges)
  3. *
  4. * Copyright 2011 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. &lbc {
  35. nor@0,0 {
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. compatible = "cfi-flash";
  39. reg = <0x0 0x0 0x1000000>;
  40. bank-width = <2>;
  41. device-width = <1>;
  42. partition@0 {
  43. /* This location must not be altered */
  44. /* 256KB for Vitesse 7385 Switch firmware */
  45. reg = <0x0 0x00040000>;
  46. label = "NOR Vitesse-7385 Firmware";
  47. read-only;
  48. };
  49. partition@40000 {
  50. /* 256KB for DTB Image */
  51. reg = <0x00040000 0x00040000>;
  52. label = "NOR DTB Image";
  53. };
  54. partition@80000 {
  55. /* 3.5 MB for Linux Kernel Image */
  56. reg = <0x00080000 0x00380000>;
  57. label = "NOR Linux Kernel Image";
  58. };
  59. partition@400000 {
  60. /* 11MB for JFFS2 based Root file System */
  61. reg = <0x00400000 0x00b00000>;
  62. label = "NOR JFFS2 Root File System";
  63. };
  64. partition@f00000 {
  65. /* This location must not be altered */
  66. /* 512KB for u-boot Bootloader Image */
  67. /* 512KB for u-boot Environment Variables */
  68. reg = <0x00f00000 0x00100000>;
  69. label = "NOR U-Boot Image";
  70. read-only;
  71. };
  72. };
  73. nand@1,0 {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "fsl,p1025-fcm-nand",
  77. "fsl,elbc-fcm-nand";
  78. reg = <0x1 0x0 0x40000>;
  79. partition@0 {
  80. /* This location must not be altered */
  81. /* 1MB for u-boot Bootloader Image */
  82. reg = <0x0 0x00100000>;
  83. label = "NAND U-Boot Image";
  84. read-only;
  85. };
  86. partition@100000 {
  87. /* 1MB for DTB Image */
  88. reg = <0x00100000 0x00100000>;
  89. label = "NAND DTB Image";
  90. };
  91. partition@200000 {
  92. /* 4MB for Linux Kernel Image */
  93. reg = <0x00200000 0x00400000>;
  94. label = "NAND Linux Kernel Image";
  95. };
  96. partition@600000 {
  97. /* 4MB for Compressed Root file System Image */
  98. reg = <0x00600000 0x00400000>;
  99. label = "NAND Compressed RFS Image";
  100. };
  101. partition@a00000 {
  102. /* 7MB for JFFS2 based Root file System */
  103. reg = <0x00a00000 0x00700000>;
  104. label = "NAND JFFS2 Root File System";
  105. };
  106. partition@1100000 {
  107. /* 15MB for JFFS2 based Root file System */
  108. reg = <0x01100000 0x00f00000>;
  109. label = "NAND Writable User area";
  110. };
  111. };
  112. };
  113. &soc {
  114. i2c@3000 {
  115. rtc@68 {
  116. compatible = "dallas,ds1339";
  117. reg = <0x68>;
  118. };
  119. };
  120. spi@7000 {
  121. flash@0 {
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. compatible = "spansion,s25sl12801", "jedec,spi-nor";
  125. reg = <0>;
  126. spi-max-frequency = <40000000>; /* input clock */
  127. partition@u-boot {
  128. /* 512KB for u-boot Bootloader Image */
  129. reg = <0x0 0x00080000>;
  130. label = "u-boot";
  131. read-only;
  132. };
  133. partition@dtb {
  134. /* 512KB for DTB Image */
  135. reg = <0x00080000 0x00080000>;
  136. label = "dtb";
  137. };
  138. partition@kernel {
  139. /* 4MB for Linux Kernel Image */
  140. reg = <0x00100000 0x00400000>;
  141. label = "kernel";
  142. };
  143. partition@fs {
  144. /* 4MB for Compressed RFS Image */
  145. reg = <0x00500000 0x00400000>;
  146. label = "file system";
  147. };
  148. partition@jffs-fs {
  149. /* 7MB for JFFS2 based RFS */
  150. reg = <0x00900000 0x00700000>;
  151. label = "file system jffs2";
  152. };
  153. };
  154. };
  155. usb@22000 {
  156. phy_type = "ulpi";
  157. };
  158. /* USB2 is shared with localbus, so it must be disabled
  159. by default. We can't put 'status = "disabled";' here
  160. since U-Boot doesn't clear the status property when
  161. it enables USB2. OTOH, U-Boot does create a new node
  162. when there isn't any. So, just comment it out.
  163. usb@23000 {
  164. phy_type = "ulpi";
  165. };
  166. */
  167. mdio@24000 {
  168. phy0: ethernet-phy@0 {
  169. interrupt-parent = <&mpic>;
  170. interrupts = <3 1>;
  171. reg = <0x0>;
  172. };
  173. phy1: ethernet-phy@1 {
  174. interrupt-parent = <&mpic>;
  175. interrupts = <2 1>;
  176. reg = <0x1>;
  177. };
  178. tbi0: tbi-phy@11 {
  179. reg = <0x11>;
  180. device_type = "tbi-phy";
  181. };
  182. };
  183. mdio@25000 {
  184. tbi1: tbi-phy@11 {
  185. reg = <0x11>;
  186. device_type = "tbi-phy";
  187. };
  188. };
  189. mdio@26000 {
  190. tbi2: tbi-phy@11 {
  191. reg = <0x11>;
  192. device_type = "tbi-phy";
  193. };
  194. };
  195. enet0: ethernet@b0000 {
  196. fixed-link = <1 1 1000 0 0>;
  197. phy-connection-type = "rgmii-id";
  198. };
  199. enet1: ethernet@b1000 {
  200. phy-handle = <&phy0>;
  201. tbi-handle = <&tbi1>;
  202. phy-connection-type = "sgmii";
  203. };
  204. enet2: ethernet@b2000 {
  205. phy-handle = <&phy1>;
  206. phy-connection-type = "rgmii-id";
  207. };
  208. par_io@e0100 {
  209. #address-cells = <1>;
  210. #size-cells = <1>;
  211. reg = <0xe0100 0x60>;
  212. ranges = <0x0 0xe0100 0x60>;
  213. device_type = "par_io";
  214. num-ports = <3>;
  215. pio1: ucc_pin@1 {
  216. pio-map = <
  217. /* port pin dir open_drain assignment has_irq */
  218. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  219. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  220. 0x0 0x17 0x2 0x0 0x2 0x0 /* CLK12 */
  221. 0x0 0x18 0x2 0x0 0x1 0x0 /* CLK9 */
  222. 0x0 0x7 0x1 0x0 0x2 0x0 /* ENET1_TXD0_SER1_TXD0 */
  223. 0x0 0x9 0x1 0x0 0x2 0x0 /* ENET1_TXD1_SER1_TXD1 */
  224. 0x0 0xb 0x1 0x0 0x2 0x0 /* ENET1_TXD2_SER1_TXD2 */
  225. 0x0 0xc 0x1 0x0 0x2 0x0 /* ENET1_TXD3_SER1_TXD3 */
  226. 0x0 0x6 0x2 0x0 0x2 0x0 /* ENET1_RXD0_SER1_RXD0 */
  227. 0x0 0xa 0x2 0x0 0x2 0x0 /* ENET1_RXD1_SER1_RXD1 */
  228. 0x0 0xe 0x2 0x0 0x2 0x0 /* ENET1_RXD2_SER1_RXD2 */
  229. 0x0 0xf 0x2 0x0 0x2 0x0 /* ENET1_RXD3_SER1_RXD3 */
  230. 0x0 0x5 0x1 0x0 0x2 0x0 /* ENET1_TX_EN_SER1_RTS_B */
  231. 0x0 0xd 0x1 0x0 0x2 0x0 /* ENET1_TX_ER */
  232. 0x0 0x4 0x2 0x0 0x2 0x0 /* ENET1_RX_DV_SER1_CTS_B */
  233. 0x0 0x8 0x2 0x0 0x2 0x0 /* ENET1_RX_ER_SER1_CD_B */
  234. 0x0 0x11 0x2 0x0 0x2 0x0 /* ENET1_CRS */
  235. 0x0 0x10 0x2 0x0 0x2 0x0>; /* ENET1_COL */
  236. };
  237. pio2: ucc_pin@2 {
  238. pio-map = <
  239. /* port pin dir open_drain assignment has_irq */
  240. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  241. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  242. 0x1 0xb 0x2 0x0 0x1 0x0 /* CLK13 */
  243. 0x1 0x7 0x1 0x0 0x2 0x0 /* ENET5_TXD0_SER5_TXD0 */
  244. 0x1 0xa 0x1 0x0 0x2 0x0 /* ENET5_TXD1_SER5_TXD1 */
  245. 0x1 0x6 0x2 0x0 0x2 0x0 /* ENET5_RXD0_SER5_RXD0 */
  246. 0x1 0x9 0x2 0x0 0x2 0x0 /* ENET5_RXD1_SER5_RXD1 */
  247. 0x1 0x5 0x1 0x0 0x2 0x0 /* ENET5_TX_EN_SER5_RTS_B */
  248. 0x1 0x4 0x2 0x0 0x2 0x0 /* ENET5_RX_DV_SER5_CTS_B */
  249. 0x1 0x8 0x2 0x0 0x2 0x0>; /* ENET5_RX_ER_SER5_CD_B */
  250. };
  251. pio3: ucc_pin@3 {
  252. pio-map = <
  253. /* port pin dir open_drain assignment has_irq */
  254. 0x0 0x16 0x2 0x0 0x2 0x0 /* SER7_CD_B*/
  255. 0x0 0x12 0x2 0x0 0x2 0x0 /* SER7_CTS_B*/
  256. 0x0 0x13 0x1 0x0 0x2 0x0 /* SER7_RTS_B*/
  257. 0x0 0x14 0x2 0x0 0x2 0x0 /* SER7_RXD0*/
  258. 0x0 0x15 0x1 0x0 0x2 0x0>; /* SER7_TXD0*/
  259. };
  260. pio4: ucc_pin@4 {
  261. pio-map = <
  262. /* port pin dir open_drain assignment has_irq */
  263. 0x1 0x0 0x2 0x0 0x2 0x0 /* SER3_CD_B*/
  264. 0x0 0x1c 0x2 0x0 0x2 0x0 /* SER3_CTS_B*/
  265. 0x0 0x1d 0x1 0x0 0x2 0x0 /* SER3_RTS_B*/
  266. 0x0 0x1e 0x2 0x0 0x2 0x0 /* SER3_RXD0*/
  267. 0x0 0x1f 0x1 0x0 0x2 0x0>; /* SER3_TXD0*/
  268. };
  269. };
  270. };
  271. &qe {
  272. serial2: ucc@2600 {
  273. device_type = "serial";
  274. compatible = "ucc_uart";
  275. port-number = <0>;
  276. rx-clock-name = "brg6";
  277. tx-clock-name = "brg6";
  278. pio-handle = <&pio3>;
  279. };
  280. serial3: ucc@2200 {
  281. device_type = "serial";
  282. compatible = "ucc_uart";
  283. port-number = <1>;
  284. rx-clock-name = "brg2";
  285. tx-clock-name = "brg2";
  286. pio-handle = <&pio4>;
  287. };
  288. };