sbc8349.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. /*
  2. * SBC8349E Device Tree Source
  3. *
  4. * Copyright 2007 Wind River Inc.
  5. *
  6. * Paul Gortmaker (see MAINTAINERS for contact information)
  7. *
  8. * -based largely on the Freescale MPC834x_MDS dts.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. */
  15. /dts-v1/;
  16. / {
  17. model = "SBC8349E";
  18. compatible = "SBC834xE";
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. aliases {
  22. ethernet0 = &enet0;
  23. ethernet1 = &enet1;
  24. serial0 = &serial0;
  25. serial1 = &serial1;
  26. pci0 = &pci0;
  27. };
  28. cpus {
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. PowerPC,8349@0 {
  32. device_type = "cpu";
  33. reg = <0x0>;
  34. d-cache-line-size = <32>;
  35. i-cache-line-size = <32>;
  36. d-cache-size = <32768>;
  37. i-cache-size = <32768>;
  38. timebase-frequency = <0>; // from bootloader
  39. bus-frequency = <0>; // from bootloader
  40. clock-frequency = <0>; // from bootloader
  41. };
  42. };
  43. memory {
  44. device_type = "memory";
  45. reg = <0x00000000 0x10000000>; // 256MB at 0
  46. };
  47. soc8349@e0000000 {
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. device_type = "soc";
  51. ranges = <0x0 0xe0000000 0x00100000>;
  52. reg = <0xe0000000 0x00000200>;
  53. bus-frequency = <0>;
  54. wdt@200 {
  55. compatible = "mpc83xx_wdt";
  56. reg = <0x200 0x100>;
  57. };
  58. i2c@3000 {
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. cell-index = <0>;
  62. compatible = "fsl-i2c";
  63. reg = <0x3000 0x100>;
  64. interrupts = <14 0x8>;
  65. interrupt-parent = <&ipic>;
  66. dfsrr;
  67. };
  68. i2c@3100 {
  69. #address-cells = <1>;
  70. #size-cells = <0>;
  71. cell-index = <1>;
  72. compatible = "fsl-i2c";
  73. reg = <0x3100 0x100>;
  74. interrupts = <15 0x8>;
  75. interrupt-parent = <&ipic>;
  76. dfsrr;
  77. };
  78. spi@7000 {
  79. cell-index = <0>;
  80. compatible = "fsl,spi";
  81. reg = <0x7000 0x1000>;
  82. interrupts = <16 0x8>;
  83. interrupt-parent = <&ipic>;
  84. mode = "cpu";
  85. };
  86. dma@82a8 {
  87. #address-cells = <1>;
  88. #size-cells = <1>;
  89. compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
  90. reg = <0x82a8 4>;
  91. ranges = <0 0x8100 0x1a8>;
  92. interrupt-parent = <&ipic>;
  93. interrupts = <71 8>;
  94. cell-index = <0>;
  95. dma-channel@0 {
  96. compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
  97. reg = <0 0x80>;
  98. cell-index = <0>;
  99. interrupt-parent = <&ipic>;
  100. interrupts = <71 8>;
  101. };
  102. dma-channel@80 {
  103. compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
  104. reg = <0x80 0x80>;
  105. cell-index = <1>;
  106. interrupt-parent = <&ipic>;
  107. interrupts = <71 8>;
  108. };
  109. dma-channel@100 {
  110. compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
  111. reg = <0x100 0x80>;
  112. cell-index = <2>;
  113. interrupt-parent = <&ipic>;
  114. interrupts = <71 8>;
  115. };
  116. dma-channel@180 {
  117. compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
  118. reg = <0x180 0x28>;
  119. cell-index = <3>;
  120. interrupt-parent = <&ipic>;
  121. interrupts = <71 8>;
  122. };
  123. };
  124. /* phy type (ULPI or SERIAL) are only types supported for MPH */
  125. /* port = 0 or 1 */
  126. usb@22000 {
  127. compatible = "fsl-usb2-mph";
  128. reg = <0x22000 0x1000>;
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. interrupt-parent = <&ipic>;
  132. interrupts = <39 0x8>;
  133. phy_type = "ulpi";
  134. port0;
  135. };
  136. enet0: ethernet@24000 {
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. cell-index = <0>;
  140. device_type = "network";
  141. model = "TSEC";
  142. compatible = "gianfar";
  143. reg = <0x24000 0x1000>;
  144. ranges = <0x0 0x24000 0x1000>;
  145. local-mac-address = [ 00 00 00 00 00 00 ];
  146. interrupts = <32 0x8 33 0x8 34 0x8>;
  147. interrupt-parent = <&ipic>;
  148. tbi-handle = <&tbi0>;
  149. phy-handle = <&phy0>;
  150. linux,network-index = <0>;
  151. mdio@520 {
  152. #address-cells = <1>;
  153. #size-cells = <0>;
  154. compatible = "fsl,gianfar-mdio";
  155. reg = <0x520 0x20>;
  156. phy0: ethernet-phy@19 {
  157. interrupt-parent = <&ipic>;
  158. interrupts = <20 0x8>;
  159. reg = <0x19>;
  160. };
  161. phy1: ethernet-phy@1a {
  162. interrupt-parent = <&ipic>;
  163. interrupts = <21 0x8>;
  164. reg = <0x1a>;
  165. };
  166. tbi0: tbi-phy@11 {
  167. reg = <0x11>;
  168. device_type = "tbi-phy";
  169. };
  170. };
  171. };
  172. enet1: ethernet@25000 {
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. cell-index = <1>;
  176. device_type = "network";
  177. model = "TSEC";
  178. compatible = "gianfar";
  179. reg = <0x25000 0x1000>;
  180. ranges = <0x0 0x25000 0x1000>;
  181. local-mac-address = [ 00 00 00 00 00 00 ];
  182. interrupts = <35 0x8 36 0x8 37 0x8>;
  183. interrupt-parent = <&ipic>;
  184. tbi-handle = <&tbi1>;
  185. phy-handle = <&phy1>;
  186. linux,network-index = <1>;
  187. mdio@520 {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. compatible = "fsl,gianfar-tbi";
  191. reg = <0x520 0x20>;
  192. tbi1: tbi-phy@11 {
  193. reg = <0x11>;
  194. device_type = "tbi-phy";
  195. };
  196. };
  197. };
  198. serial0: serial@4500 {
  199. cell-index = <0>;
  200. device_type = "serial";
  201. compatible = "fsl,ns16550", "ns16550";
  202. reg = <0x4500 0x100>;
  203. clock-frequency = <0>;
  204. interrupts = <9 0x8>;
  205. interrupt-parent = <&ipic>;
  206. };
  207. serial1: serial@4600 {
  208. cell-index = <1>;
  209. device_type = "serial";
  210. compatible = "fsl,ns16550", "ns16550";
  211. reg = <0x4600 0x100>;
  212. clock-frequency = <0>;
  213. interrupts = <10 0x8>;
  214. interrupt-parent = <&ipic>;
  215. };
  216. crypto@30000 {
  217. compatible = "fsl,sec2.0";
  218. reg = <0x30000 0x10000>;
  219. interrupts = <11 0x8>;
  220. interrupt-parent = <&ipic>;
  221. fsl,num-channels = <4>;
  222. fsl,channel-fifo-len = <24>;
  223. fsl,exec-units-mask = <0x7e>;
  224. fsl,descriptor-types-mask = <0x01010ebf>;
  225. };
  226. /* IPIC
  227. * interrupts cell = <intr #, sense>
  228. * sense values match linux IORESOURCE_IRQ_* defines:
  229. * sense == 8: Level, low assertion
  230. * sense == 2: Edge, high-to-low change
  231. */
  232. ipic: pic@700 {
  233. interrupt-controller;
  234. #address-cells = <0>;
  235. #interrupt-cells = <2>;
  236. reg = <0x700 0x100>;
  237. device_type = "ipic";
  238. };
  239. };
  240. localbus@e0005000 {
  241. #address-cells = <2>;
  242. #size-cells = <1>;
  243. compatible = "fsl,mpc8349-localbus", "simple-bus";
  244. reg = <0xe0005000 0x1000>;
  245. interrupts = <77 0x8>;
  246. interrupt-parent = <&ipic>;
  247. ranges = <0x0 0x0 0xff800000 0x00800000 /* 8MB Flash */
  248. 0x1 0x0 0xf8000000 0x00002000 /* 8KB EEPROM */
  249. 0x2 0x0 0x10000000 0x04000000 /* 64MB SDRAM */
  250. 0x3 0x0 0x10000000 0x04000000>; /* 64MB SDRAM */
  251. flash@0,0 {
  252. #address-cells = <1>;
  253. #size-cells = <1>;
  254. compatible = "intel,28F640J3A", "cfi-flash";
  255. reg = <0x0 0x0 0x800000>;
  256. bank-width = <2>;
  257. device-width = <1>;
  258. partition@0 {
  259. label = "u-boot";
  260. reg = <0x00000000 0x00040000>;
  261. read-only;
  262. };
  263. partition@40000 {
  264. label = "user";
  265. reg = <0x00040000 0x006c0000>;
  266. };
  267. partition@700000 {
  268. label = "legacy u-boot";
  269. reg = <0x00700000 0x00100000>;
  270. read-only;
  271. };
  272. };
  273. };
  274. pci0: pci@e0008500 {
  275. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  276. interrupt-map = <
  277. /* IDSEL 0x11 */
  278. 0x8800 0x0 0x0 0x1 &ipic 48 0x8
  279. 0x8800 0x0 0x0 0x2 &ipic 17 0x8
  280. 0x8800 0x0 0x0 0x3 &ipic 18 0x8
  281. 0x8800 0x0 0x0 0x4 &ipic 19 0x8>;
  282. interrupt-parent = <&ipic>;
  283. interrupts = <0x42 0x8>;
  284. bus-range = <0 0>;
  285. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  286. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  287. 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
  288. clock-frequency = <66666666>;
  289. #interrupt-cells = <1>;
  290. #size-cells = <2>;
  291. #address-cells = <3>;
  292. reg = <0xe0008500 0x100 /* internal registers */
  293. 0xe0008300 0x8>; /* config space access registers */
  294. compatible = "fsl,mpc8349-pci";
  295. device_type = "pci";
  296. };
  297. };