sbc8349.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. device_type = "ethernet-phy";
  161. };
  162. phy1: ethernet-phy@1a {
  163. interrupt-parent = <&ipic>;
  164. interrupts = <21 0x8>;
  165. reg = <0x1a>;
  166. device_type = "ethernet-phy";
  167. };
  168. tbi0: tbi-phy@11 {
  169. reg = <0x11>;
  170. device_type = "tbi-phy";
  171. };
  172. };
  173. };
  174. enet1: ethernet@25000 {
  175. #address-cells = <1>;
  176. #size-cells = <1>;
  177. cell-index = <1>;
  178. device_type = "network";
  179. model = "TSEC";
  180. compatible = "gianfar";
  181. reg = <0x25000 0x1000>;
  182. ranges = <0x0 0x25000 0x1000>;
  183. local-mac-address = [ 00 00 00 00 00 00 ];
  184. interrupts = <35 0x8 36 0x8 37 0x8>;
  185. interrupt-parent = <&ipic>;
  186. tbi-handle = <&tbi1>;
  187. phy-handle = <&phy1>;
  188. linux,network-index = <1>;
  189. mdio@520 {
  190. #address-cells = <1>;
  191. #size-cells = <0>;
  192. compatible = "fsl,gianfar-tbi";
  193. reg = <0x520 0x20>;
  194. tbi1: tbi-phy@11 {
  195. reg = <0x11>;
  196. device_type = "tbi-phy";
  197. };
  198. };
  199. };
  200. serial0: serial@4500 {
  201. cell-index = <0>;
  202. device_type = "serial";
  203. compatible = "fsl,ns16550", "ns16550";
  204. reg = <0x4500 0x100>;
  205. clock-frequency = <0>;
  206. interrupts = <9 0x8>;
  207. interrupt-parent = <&ipic>;
  208. };
  209. serial1: serial@4600 {
  210. cell-index = <1>;
  211. device_type = "serial";
  212. compatible = "fsl,ns16550", "ns16550";
  213. reg = <0x4600 0x100>;
  214. clock-frequency = <0>;
  215. interrupts = <10 0x8>;
  216. interrupt-parent = <&ipic>;
  217. };
  218. crypto@30000 {
  219. compatible = "fsl,sec2.0";
  220. reg = <0x30000 0x10000>;
  221. interrupts = <11 0x8>;
  222. interrupt-parent = <&ipic>;
  223. fsl,num-channels = <4>;
  224. fsl,channel-fifo-len = <24>;
  225. fsl,exec-units-mask = <0x7e>;
  226. fsl,descriptor-types-mask = <0x01010ebf>;
  227. };
  228. /* IPIC
  229. * interrupts cell = <intr #, sense>
  230. * sense values match linux IORESOURCE_IRQ_* defines:
  231. * sense == 8: Level, low assertion
  232. * sense == 2: Edge, high-to-low change
  233. */
  234. ipic: pic@700 {
  235. interrupt-controller;
  236. #address-cells = <0>;
  237. #interrupt-cells = <2>;
  238. reg = <0x700 0x100>;
  239. device_type = "ipic";
  240. };
  241. };
  242. localbus@e0005000 {
  243. #address-cells = <2>;
  244. #size-cells = <1>;
  245. compatible = "fsl,mpc8349-localbus", "simple-bus";
  246. reg = <0xe0005000 0x1000>;
  247. interrupts = <77 0x8>;
  248. interrupt-parent = <&ipic>;
  249. ranges = <0x0 0x0 0xff800000 0x00800000 /* 8MB Flash */
  250. 0x1 0x0 0xf8000000 0x00002000 /* 8KB EEPROM */
  251. 0x2 0x0 0x10000000 0x04000000 /* 64MB SDRAM */
  252. 0x3 0x0 0x10000000 0x04000000>; /* 64MB SDRAM */
  253. flash@0,0 {
  254. #address-cells = <1>;
  255. #size-cells = <1>;
  256. compatible = "intel,28F640J3A", "cfi-flash";
  257. reg = <0x0 0x0 0x800000>;
  258. bank-width = <2>;
  259. device-width = <1>;
  260. partition@0 {
  261. label = "u-boot";
  262. reg = <0x00000000 0x00040000>;
  263. read-only;
  264. };
  265. partition@40000 {
  266. label = "user";
  267. reg = <0x00040000 0x006c0000>;
  268. };
  269. partition@700000 {
  270. label = "legacy u-boot";
  271. reg = <0x00700000 0x00100000>;
  272. read-only;
  273. };
  274. };
  275. };
  276. pci0: pci@e0008500 {
  277. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  278. interrupt-map = <
  279. /* IDSEL 0x11 */
  280. 0x8800 0x0 0x0 0x1 &ipic 48 0x8
  281. 0x8800 0x0 0x0 0x2 &ipic 17 0x8
  282. 0x8800 0x0 0x0 0x3 &ipic 18 0x8
  283. 0x8800 0x0 0x0 0x4 &ipic 19 0x8>;
  284. interrupt-parent = <&ipic>;
  285. interrupts = <0x42 0x8>;
  286. bus-range = <0 0>;
  287. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  288. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  289. 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
  290. clock-frequency = <66666666>;
  291. #interrupt-cells = <1>;
  292. #size-cells = <2>;
  293. #address-cells = <3>;
  294. reg = <0xe0008500 0x100 /* internal registers */
  295. 0xe0008300 0x8>; /* config space access registers */
  296. compatible = "fsl,mpc8349-pci";
  297. device_type = "pci";
  298. };
  299. };