taishan.dts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. /*
  2. * Device Tree Source for IBM/AMCC Taishan
  3. *
  4. * Copyright 2007 IBM Corp.
  5. * Hugh Blemings <hugh@au.ibm.com> based off code by
  6. * Josh Boyer <jwboyer@linux.vnet.ibm.com>, David Gibson <dwg@au1.ibm.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without
  10. * any warranty of any kind, whether express or implied.
  11. */
  12. / {
  13. #address-cells = <2>;
  14. #size-cells = <1>;
  15. model = "amcc,taishan";
  16. compatible = "amcc,taishan";
  17. dcr-parent = <&/cpus/cpu@0>;
  18. aliases {
  19. ethernet0 = &EMAC2;
  20. ethernet1 = &EMAC3;
  21. serial0 = &UART0;
  22. serial1 = &UART1;
  23. };
  24. cpus {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. cpu@0 {
  28. device_type = "cpu";
  29. model = "PowerPC,440GX";
  30. reg = <0>;
  31. clock-frequency = <2FAF0800>; // 800MHz
  32. timebase-frequency = <0>; // Filled in by zImage
  33. i-cache-line-size = <32>;
  34. d-cache-line-size = <32>;
  35. i-cache-size = <8000>; /* 32 kB */
  36. d-cache-size = <8000>; /* 32 kB */
  37. dcr-controller;
  38. dcr-access-method = "native";
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0 0 0>; // Filled in by zImage
  44. };
  45. UICB0: interrupt-controller-base {
  46. compatible = "ibm,uic-440gx", "ibm,uic";
  47. interrupt-controller;
  48. cell-index = <3>;
  49. dcr-reg = <200 009>;
  50. #address-cells = <0>;
  51. #size-cells = <0>;
  52. #interrupt-cells = <2>;
  53. };
  54. UIC0: interrupt-controller0 {
  55. compatible = "ibm,uic-440gx", "ibm,uic";
  56. interrupt-controller;
  57. cell-index = <0>;
  58. dcr-reg = <0c0 009>;
  59. #address-cells = <0>;
  60. #size-cells = <0>;
  61. #interrupt-cells = <2>;
  62. interrupts = <01 4 00 4>; /* cascade - first non-critical */
  63. interrupt-parent = <&UICB0>;
  64. };
  65. UIC1: interrupt-controller1 {
  66. compatible = "ibm,uic-440gx", "ibm,uic";
  67. interrupt-controller;
  68. cell-index = <1>;
  69. dcr-reg = <0d0 009>;
  70. #address-cells = <0>;
  71. #size-cells = <0>;
  72. #interrupt-cells = <2>;
  73. interrupts = <03 4 02 4>; /* cascade */
  74. interrupt-parent = <&UICB0>;
  75. };
  76. UIC2: interrupt-controller2 {
  77. compatible = "ibm,uic-440gx", "ibm,uic";
  78. interrupt-controller;
  79. cell-index = <2>; /* was 1 */
  80. dcr-reg = <210 009>;
  81. #address-cells = <0>;
  82. #size-cells = <0>;
  83. #interrupt-cells = <2>;
  84. interrupts = <05 4 04 4>; /* cascade */
  85. interrupt-parent = <&UICB0>;
  86. };
  87. CPC0: cpc {
  88. compatible = "ibm,cpc-440gp";
  89. dcr-reg = <0b0 003 0e0 010>;
  90. // FIXME: anything else?
  91. };
  92. plb {
  93. compatible = "ibm,plb-440gx", "ibm,plb4";
  94. #address-cells = <2>;
  95. #size-cells = <1>;
  96. ranges;
  97. clock-frequency = <9896800>; // 160MHz
  98. SDRAM0: memory-controller {
  99. compatible = "ibm,sdram-440gp";
  100. dcr-reg = <010 2>;
  101. // FIXME: anything else?
  102. };
  103. SRAM0: sram {
  104. compatible = "ibm,sram-440gp";
  105. dcr-reg = <020 8 00a 1>;
  106. };
  107. DMA0: dma {
  108. // FIXME: ???
  109. compatible = "ibm,dma-440gp";
  110. dcr-reg = <100 027>;
  111. };
  112. MAL0: mcmal {
  113. compatible = "ibm,mcmal-440gx", "ibm,mcmal2";
  114. dcr-reg = <180 62>;
  115. num-tx-chans = <4>;
  116. num-rx-chans = <4>;
  117. interrupt-parent = <&MAL0>;
  118. interrupts = <0 1 2 3 4>;
  119. #interrupt-cells = <1>;
  120. #address-cells = <0>;
  121. #size-cells = <0>;
  122. interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
  123. /*RXEOB*/ 1 &UIC0 b 4
  124. /*SERR*/ 2 &UIC1 0 4
  125. /*TXDE*/ 3 &UIC1 1 4
  126. /*RXDE*/ 4 &UIC1 2 4>;
  127. interrupt-map-mask = <ffffffff>;
  128. };
  129. POB0: opb {
  130. compatible = "ibm,opb-440gx", "ibm,opb";
  131. #address-cells = <1>;
  132. #size-cells = <1>;
  133. /* Wish there was a nicer way of specifying a full 32-bit
  134. range */
  135. ranges = <00000000 1 00000000 80000000
  136. 80000000 1 80000000 80000000>;
  137. dcr-reg = <090 00b>;
  138. interrupt-parent = <&UIC1>;
  139. interrupts = <7 4>;
  140. clock-frequency = <4C4B400>; // 80MHz
  141. EBC0: ebc {
  142. compatible = "ibm,ebc-440gx", "ibm,ebc";
  143. dcr-reg = <012 2>;
  144. #address-cells = <2>;
  145. #size-cells = <1>;
  146. clock-frequency = <4C4B400>; // 80MHz
  147. /* ranges property is supplied by zImage
  148. * based on firmware's configuration of the
  149. * EBC bridge */
  150. interrupts = <5 4>;
  151. interrupt-parent = <&UIC1>;
  152. /* TODO: Add other EBC devices */
  153. };
  154. UART0: serial@40000200 {
  155. device_type = "serial";
  156. compatible = "ns16550";
  157. reg = <40000200 8>;
  158. virtual-reg = <e0000200>;
  159. clock-frequency = <A8C000>;
  160. current-speed = <1C200>; /* 115200 */
  161. interrupt-parent = <&UIC0>;
  162. interrupts = <0 4>;
  163. };
  164. UART1: serial@40000300 {
  165. device_type = "serial";
  166. compatible = "ns16550";
  167. reg = <40000300 8>;
  168. virtual-reg = <e0000300>;
  169. clock-frequency = <A8C000>;
  170. current-speed = <1C200>; /* 115200 */
  171. interrupt-parent = <&UIC0>;
  172. interrupts = <1 4>;
  173. };
  174. IIC0: i2c@40000400 {
  175. /* FIXME */
  176. device_type = "i2c";
  177. compatible = "ibm,iic-440gp", "ibm,iic";
  178. reg = <40000400 14>;
  179. interrupt-parent = <&UIC0>;
  180. interrupts = <2 4>;
  181. };
  182. IIC1: i2c@40000500 {
  183. /* FIXME */
  184. device_type = "i2c";
  185. compatible = "ibm,iic-440gp", "ibm,iic";
  186. reg = <40000500 14>;
  187. interrupt-parent = <&UIC0>;
  188. interrupts = <3 4>;
  189. };
  190. GPIO0: gpio@40000700 {
  191. /* FIXME */
  192. compatible = "ibm,gpio-440gp";
  193. reg = <40000700 20>;
  194. };
  195. ZMII0: emac-zmii@40000780 {
  196. device_type = "zgmii-interface";
  197. compatible = "ibm,zmii-440gx", "ibm,zmii";
  198. reg = <40000780 c>;
  199. };
  200. RGMII0: emac-rgmii@40000790 {
  201. device_type = "rgmii-interface";
  202. compatible = "ibm,rgmii";
  203. reg = <40000790 8>;
  204. };
  205. EMAC0: ethernet@40000800 {
  206. unused = <1>;
  207. linux,network-index = <2>;
  208. device_type = "network";
  209. compatible = "ibm,emac-440gx", "ibm,emac4";
  210. interrupt-parent = <&UIC1>;
  211. interrupts = <1c 4 1d 4>;
  212. reg = <40000800 70>;
  213. local-mac-address = [000000000000]; // Filled in by zImage
  214. mal-device = <&MAL0>;
  215. mal-tx-channel = <0>;
  216. mal-rx-channel = <0>;
  217. cell-index = <0>;
  218. max-frame-size = <5dc>;
  219. rx-fifo-size = <1000>;
  220. tx-fifo-size = <800>;
  221. phy-mode = "rmii";
  222. phy-map = <00000001>;
  223. zmii-device = <&ZMII0>;
  224. zmii-channel = <0>;
  225. };
  226. EMAC1: ethernet@40000900 {
  227. unused = <1>;
  228. linux,network-index = <3>;
  229. device_type = "network";
  230. compatible = "ibm,emac-440gx", "ibm,emac4";
  231. interrupt-parent = <&UIC1>;
  232. interrupts = <1e 4 1f 4>;
  233. reg = <40000900 70>;
  234. local-mac-address = [000000000000]; // Filled in by zImage
  235. mal-device = <&MAL0>;
  236. mal-tx-channel = <1>;
  237. mal-rx-channel = <1>;
  238. cell-index = <1>;
  239. max-frame-size = <5dc>;
  240. rx-fifo-size = <1000>;
  241. tx-fifo-size = <800>;
  242. phy-mode = "rmii";
  243. phy-map = <00000001>;
  244. zmii-device = <&ZMII0>;
  245. zmii-channel = <1>;
  246. };
  247. EMAC2: ethernet@40000c00 {
  248. linux,network-index = <0>;
  249. device_type = "network";
  250. compatible = "ibm,emac-440gx", "ibm,emac4";
  251. interrupt-parent = <&UIC2>;
  252. interrupts = <0 4 1 4>;
  253. reg = <40000c00 70>;
  254. local-mac-address = [000000000000]; // Filled in by zImage
  255. mal-device = <&MAL0>;
  256. mal-tx-channel = <2>;
  257. mal-rx-channel = <2>;
  258. cell-index = <2>;
  259. max-frame-size = <5dc>;
  260. rx-fifo-size = <1000>;
  261. tx-fifo-size = <800>;
  262. phy-mode = "rgmii";
  263. phy-map = <00000001>;
  264. rgmii-device = <&RGMII0>;
  265. rgmii-channel = <0>;
  266. zmii-device = <&ZMII0>;
  267. zmii-channel = <2>;
  268. };
  269. EMAC3: ethernet@40000e00 {
  270. linux,network-index = <1>;
  271. device_type = "network";
  272. compatible = "ibm,emac-440gx", "ibm,emac4";
  273. interrupt-parent = <&UIC2>;
  274. interrupts = <2 4 3 4>;
  275. reg = <40000e00 70>;
  276. local-mac-address = [000000000000]; // Filled in by zImage
  277. mal-device = <&MAL0>;
  278. mal-tx-channel = <3>;
  279. mal-rx-channel = <3>;
  280. cell-index = <3>;
  281. max-frame-size = <5dc>;
  282. rx-fifo-size = <1000>;
  283. tx-fifo-size = <800>;
  284. phy-mode = "rgmii";
  285. phy-map = <00000003>;
  286. rgmii-device = <&RGMII0>;
  287. rgmii-channel = <1>;
  288. zmii-device = <&ZMII0>;
  289. zmii-channel = <3>;
  290. };
  291. GPT0: gpt@40000a00 {
  292. /* FIXME */
  293. reg = <40000a00 d4>;
  294. interrupt-parent = <&UIC0>;
  295. interrupts = <12 4 13 4 14 4 15 4 16 4>;
  296. };
  297. };
  298. PCIX0: pci@20ec00000 {
  299. device_type = "pci";
  300. #interrupt-cells = <1>;
  301. #size-cells = <2>;
  302. #address-cells = <3>;
  303. compatible = "ibm,plb440gp-pcix", "ibm,plb-pcix";
  304. primary;
  305. large-inbound-windows;
  306. enable-msi-hole;
  307. reg = <2 0ec00000 8 /* Config space access */
  308. 0 0 0 /* no IACK cycles */
  309. 2 0ed00000 4 /* Special cycles */
  310. 2 0ec80000 100 /* Internal registers */
  311. 2 0ec80100 fc>; /* Internal messaging registers */
  312. /* Outbound ranges, one memory and one IO,
  313. * later cannot be changed
  314. */
  315. ranges = <02000000 0 80000000 00000003 80000000 0 80000000
  316. 01000000 0 00000000 00000002 08000000 0 00010000>;
  317. /* Inbound 2GB range starting at 0 */
  318. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  319. interrupt-map-mask = <f800 0 0 7>;
  320. interrupt-map = <
  321. /* IDSEL 1 */
  322. 0800 0 0 1 &UIC0 17 8
  323. 0800 0 0 2 &UIC0 18 8
  324. 0800 0 0 3 &UIC0 19 8
  325. 0800 0 0 4 &UIC0 1a 8
  326. /* IDSEL 2 */
  327. 1000 0 0 1 &UIC0 18 8
  328. 1000 0 0 2 &UIC0 19 8
  329. 1000 0 0 3 &UIC0 1a 8
  330. 1000 0 0 4 &UIC0 17 8
  331. >;
  332. };
  333. };
  334. chosen {
  335. linux,stdout-path = "/plb/opb/serial@40000300";
  336. };
  337. };