p1021mds.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * P1021 MDS Device Tree Source
  4. *
  5. * Copyright 2010,2012 Freescale Semiconductor Inc.
  6. */
  7. /include/ "p1021si-pre.dtsi"
  8. / {
  9. model = "fsl,P1021";
  10. compatible = "fsl,P1021MDS";
  11. aliases {
  12. ethernet3 = &enet3;
  13. ethernet4 = &enet4;
  14. };
  15. memory {
  16. device_type = "memory";
  17. };
  18. lbc: localbus@ffe05000 {
  19. reg = <0x0 0xffe05000 0x0 0x1000>;
  20. /* NAND Flash, BCSR, PMC0/1*/
  21. ranges = <0x0 0x0 0x0 0xfc000000 0x02000000
  22. 0x1 0x0 0x0 0xf8000000 0x00008000
  23. 0x2 0x0 0x0 0xf8010000 0x00020000
  24. 0x3 0x0 0x0 0xf8020000 0x00020000>;
  25. nand@0,0 {
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. compatible = "fsl,p1021-fcm-nand",
  29. "fsl,elbc-fcm-nand";
  30. reg = <0x0 0x0 0x40000>;
  31. partition@0 {
  32. /* This location must not be altered */
  33. /* 1MB for u-boot Bootloader Image */
  34. reg = <0x0 0x00100000>;
  35. label = "NAND (RO) U-Boot Image";
  36. read-only;
  37. };
  38. partition@100000 {
  39. /* 1MB for DTB Image */
  40. reg = <0x00100000 0x00100000>;
  41. label = "NAND (RO) DTB Image";
  42. read-only;
  43. };
  44. partition@200000 {
  45. /* 4MB for Linux Kernel Image */
  46. reg = <0x00200000 0x00400000>;
  47. label = "NAND (RO) Linux Kernel Image";
  48. read-only;
  49. };
  50. partition@600000 {
  51. /* 5MB for Compressed Root file System Image */
  52. reg = <0x00600000 0x00500000>;
  53. label = "NAND (RO) Compressed RFS Image";
  54. read-only;
  55. };
  56. partition@b00000 {
  57. /* 6MB for JFFS2 based Root file System */
  58. reg = <0x00a00000 0x00600000>;
  59. label = "NAND (RW) JFFS2 Root File System";
  60. };
  61. partition@1100000 {
  62. /* 14MB for JFFS2 based Root file System */
  63. reg = <0x01100000 0x00e00000>;
  64. label = "NAND (RW) Writable User area";
  65. };
  66. partition@1f00000 {
  67. /* 1MB for microcode */
  68. reg = <0x01f00000 0x00100000>;
  69. label = "NAND (RO) QE Ucode";
  70. read-only;
  71. };
  72. };
  73. bcsr@1,0 {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "fsl,p1021mds-bcsr";
  77. reg = <1 0 0x8000>;
  78. ranges = <0 1 0 0x8000>;
  79. };
  80. pib@2,0 {
  81. compatible = "fsl,p1021mds-pib";
  82. reg = <2 0 0x10000>;
  83. };
  84. pib@3,0 {
  85. compatible = "fsl,p1021mds-pib";
  86. reg = <3 0 0x10000>;
  87. };
  88. };
  89. soc: soc@ffe00000 {
  90. compatible = "fsl,p1021-immr", "simple-bus";
  91. ranges = <0x0 0x0 0xffe00000 0x100000>;
  92. i2c@3000 {
  93. rtc@68 {
  94. compatible = "dallas,ds1374";
  95. reg = <0x68>;
  96. };
  97. };
  98. spi@7000 {
  99. flash@0 {
  100. #address-cells = <1>;
  101. #size-cells = <1>;
  102. compatible = "spansion,s25sl12801", "jedec,spi-nor";
  103. reg = <0>;
  104. spi-max-frequency = <40000000>; /* input clock */
  105. partition@u-boot {
  106. label = "u-boot-spi";
  107. reg = <0x00000000 0x00100000>;
  108. read-only;
  109. };
  110. partition@kernel {
  111. label = "kernel-spi";
  112. reg = <0x00100000 0x00500000>;
  113. read-only;
  114. };
  115. partition@dtb {
  116. label = "dtb-spi";
  117. reg = <0x00600000 0x00100000>;
  118. read-only;
  119. };
  120. partition@fs {
  121. label = "file system-spi";
  122. reg = <0x00700000 0x00900000>;
  123. };
  124. };
  125. };
  126. usb@22000 {
  127. phy_type = "ulpi";
  128. dr_mode = "host";
  129. };
  130. mdio@24000 {
  131. phy0: ethernet-phy@0 {
  132. interrupts = <1 1 0 0>;
  133. reg = <0x0>;
  134. };
  135. phy1: ethernet-phy@1 {
  136. interrupts = <2 1 0 0>;
  137. reg = <0x1>;
  138. };
  139. phy4: ethernet-phy@4 {
  140. reg = <0x4>;
  141. };
  142. tbi-phy@5 {
  143. device_type = "tbi-phy";
  144. reg = <0x5>;
  145. };
  146. };
  147. mdio@25000 {
  148. tbi0: tbi-phy@11 {
  149. reg = <0x11>;
  150. device_type = "tbi-phy";
  151. };
  152. };
  153. ethernet@b0000 {
  154. phy-handle = <&phy0>;
  155. phy-connection-type = "rgmii-id";
  156. };
  157. ethernet@b1000 {
  158. phy-handle = <&phy4>;
  159. tbi-handle = <&tbi0>;
  160. phy-connection-type = "sgmii";
  161. };
  162. ethernet@b2000 {
  163. phy-handle = <&phy1>;
  164. phy-connection-type = "rgmii-id";
  165. };
  166. par_io@e0100 {
  167. #address-cells = <1>;
  168. #size-cells = <1>;
  169. reg = <0xe0100 0x60>;
  170. ranges = <0x0 0xe0100 0x60>;
  171. device_type = "par_io";
  172. num-ports = <3>;
  173. pio1: ucc_pin@1 {
  174. pio-map = <
  175. /* port pin dir open_drain assignment has_irq */
  176. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  177. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  178. 0x0 0x17 0x2 0x0 0x2 0x0 /* CLK12 */
  179. 0x0 0x18 0x2 0x0 0x1 0x0 /* CLK9 */
  180. 0x0 0x7 0x1 0x0 0x2 0x0 /* ENET1_TXD0_SER1_TXD0 */
  181. 0x0 0x9 0x1 0x0 0x2 0x0 /* ENET1_TXD1_SER1_TXD1 */
  182. 0x0 0xb 0x1 0x0 0x2 0x0 /* ENET1_TXD2_SER1_TXD2 */
  183. 0x0 0xc 0x1 0x0 0x2 0x0 /* ENET1_TXD3_SER1_TXD3 */
  184. 0x0 0x6 0x2 0x0 0x2 0x0 /* ENET1_RXD0_SER1_RXD0 */
  185. 0x0 0xa 0x2 0x0 0x2 0x0 /* ENET1_RXD1_SER1_RXD1 */
  186. 0x0 0xe 0x2 0x0 0x2 0x0 /* ENET1_RXD2_SER1_RXD2 */
  187. 0x0 0xf 0x2 0x0 0x2 0x0 /* ENET1_RXD3_SER1_RXD3 */
  188. 0x0 0x5 0x1 0x0 0x2 0x0 /* ENET1_TX_EN_SER1_RTS_B */
  189. 0x0 0xd 0x1 0x0 0x2 0x0 /* ENET1_TX_ER */
  190. 0x0 0x4 0x2 0x0 0x2 0x0 /* ENET1_RX_DV_SER1_CTS_B */
  191. 0x0 0x8 0x2 0x0 0x2 0x0 /* ENET1_RX_ER_SER1_CD_B */
  192. 0x0 0x11 0x2 0x0 0x2 0x0 /* ENET1_CRS */
  193. 0x0 0x10 0x2 0x0 0x2 0x0>; /* ENET1_COL */
  194. };
  195. pio2: ucc_pin@2 {
  196. pio-map = <
  197. /* port pin dir open_drain assignment has_irq */
  198. 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
  199. 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
  200. 0x1 0xb 0x2 0x0 0x1 0x0 /* CLK13 */
  201. 0x1 0x7 0x1 0x0 0x2 0x0 /* ENET5_TXD0_SER5_TXD0 */
  202. 0x1 0xa 0x1 0x0 0x2 0x0 /* ENET5_TXD1_SER5_TXD1 */
  203. 0x1 0x6 0x2 0x0 0x2 0x0 /* ENET5_RXD0_SER5_RXD0 */
  204. 0x1 0x9 0x2 0x0 0x2 0x0 /* ENET5_RXD1_SER5_RXD1 */
  205. 0x1 0x5 0x1 0x0 0x2 0x0 /* ENET5_TX_EN_SER5_RTS_B */
  206. 0x1 0x4 0x2 0x0 0x2 0x0 /* ENET5_RX_DV_SER5_CTS_B */
  207. 0x1 0x8 0x2 0x0 0x2 0x0>; /* ENET5_RX_ER_SER5_CD_B */
  208. };
  209. };
  210. };
  211. pci0: pcie@ffe09000 {
  212. reg = <0 0xffe09000 0 0x1000>;
  213. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  214. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  215. pcie@0 {
  216. ranges = <0x2000000 0x0 0xa0000000
  217. 0x2000000 0x0 0xa0000000
  218. 0x0 0x20000000
  219. 0x1000000 0x0 0x0
  220. 0x1000000 0x0 0x0
  221. 0x0 0x100000>;
  222. };
  223. };
  224. pci1: pcie@ffe0a000 {
  225. reg = <0 0xffe0a000 0 0x1000>;
  226. ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
  227. 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
  228. pcie@0 {
  229. ranges = <0x2000000 0x0 0xc0000000
  230. 0x2000000 0x0 0xc0000000
  231. 0x0 0x20000000
  232. 0x1000000 0x0 0x0
  233. 0x1000000 0x0 0x0
  234. 0x0 0x100000>;
  235. };
  236. };
  237. qe: qe@ffe80000 {
  238. ranges = <0x0 0x0 0xffe80000 0x40000>;
  239. reg = <0 0xffe80000 0 0x480>;
  240. brg-frequency = <0>;
  241. bus-frequency = <0>;
  242. status = "disabled"; /* no firmware loaded */
  243. enet3: ucc@2000 {
  244. device_type = "network";
  245. compatible = "ucc_geth";
  246. local-mac-address = [ 00 00 00 00 00 00 ];
  247. rx-clock-name = "clk12";
  248. tx-clock-name = "clk9";
  249. pio-handle = <&pio1>;
  250. phy-handle = <&qe_phy0>;
  251. phy-connection-type = "mii";
  252. };
  253. mdio@2120 {
  254. qe_phy0: ethernet-phy@0 {
  255. interrupt-parent = <&mpic>;
  256. interrupts = <4 1 0 0>;
  257. reg = <0x0>;
  258. };
  259. qe_phy1: ethernet-phy@3 {
  260. interrupt-parent = <&mpic>;
  261. interrupts = <5 1 0 0>;
  262. reg = <0x3>;
  263. };
  264. tbi-phy@11 {
  265. reg = <0x11>;
  266. device_type = "tbi-phy";
  267. };
  268. };
  269. enet4: ucc@2400 {
  270. device_type = "network";
  271. compatible = "ucc_geth";
  272. local-mac-address = [ 00 00 00 00 00 00 ];
  273. rx-clock-name = "none";
  274. tx-clock-name = "clk13";
  275. pio-handle = <&pio2>;
  276. phy-handle = <&qe_phy1>;
  277. phy-connection-type = "rmii";
  278. };
  279. };
  280. };
  281. /include/ "p1021si-post.dtsi"