taishan.dts 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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. L2C0: l2c {
  93. compatible = "ibm,l2-cache-440gx", "ibm,l2-cache";
  94. dcr-reg = <20 8 /* Internal SRAM DCR's */
  95. 30 8>; /* L2 cache DCR's */
  96. cache-line-size = <20>; /* 32 bytes */
  97. cache-size = <40000>; /* L2, 256K */
  98. interrupt-parent = <&UIC2>;
  99. interrupts = <17 1>;
  100. };
  101. plb {
  102. compatible = "ibm,plb-440gx", "ibm,plb4";
  103. #address-cells = <2>;
  104. #size-cells = <1>;
  105. ranges;
  106. clock-frequency = <9896800>; // 160MHz
  107. SDRAM0: memory-controller {
  108. compatible = "ibm,sdram-440gp";
  109. dcr-reg = <010 2>;
  110. // FIXME: anything else?
  111. };
  112. SRAM0: sram {
  113. compatible = "ibm,sram-440gp";
  114. dcr-reg = <020 8 00a 1>;
  115. };
  116. DMA0: dma {
  117. // FIXME: ???
  118. compatible = "ibm,dma-440gp";
  119. dcr-reg = <100 027>;
  120. };
  121. MAL0: mcmal {
  122. compatible = "ibm,mcmal-440gx", "ibm,mcmal2";
  123. dcr-reg = <180 62>;
  124. num-tx-chans = <4>;
  125. num-rx-chans = <4>;
  126. interrupt-parent = <&MAL0>;
  127. interrupts = <0 1 2 3 4>;
  128. #interrupt-cells = <1>;
  129. #address-cells = <0>;
  130. #size-cells = <0>;
  131. interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
  132. /*RXEOB*/ 1 &UIC0 b 4
  133. /*SERR*/ 2 &UIC1 0 4
  134. /*TXDE*/ 3 &UIC1 1 4
  135. /*RXDE*/ 4 &UIC1 2 4>;
  136. interrupt-map-mask = <ffffffff>;
  137. };
  138. POB0: opb {
  139. compatible = "ibm,opb-440gx", "ibm,opb";
  140. #address-cells = <1>;
  141. #size-cells = <1>;
  142. /* Wish there was a nicer way of specifying a full 32-bit
  143. range */
  144. ranges = <00000000 1 00000000 80000000
  145. 80000000 1 80000000 80000000>;
  146. dcr-reg = <090 00b>;
  147. interrupt-parent = <&UIC1>;
  148. interrupts = <7 4>;
  149. clock-frequency = <4C4B400>; // 80MHz
  150. EBC0: ebc {
  151. compatible = "ibm,ebc-440gx", "ibm,ebc";
  152. dcr-reg = <012 2>;
  153. #address-cells = <2>;
  154. #size-cells = <1>;
  155. clock-frequency = <4C4B400>; // 80MHz
  156. /* ranges property is supplied by zImage
  157. * based on firmware's configuration of the
  158. * EBC bridge */
  159. interrupts = <5 4>;
  160. interrupt-parent = <&UIC1>;
  161. /* TODO: Add other EBC devices */
  162. };
  163. UART0: serial@40000200 {
  164. device_type = "serial";
  165. compatible = "ns16550";
  166. reg = <40000200 8>;
  167. virtual-reg = <e0000200>;
  168. clock-frequency = <A8C000>;
  169. current-speed = <1C200>; /* 115200 */
  170. interrupt-parent = <&UIC0>;
  171. interrupts = <0 4>;
  172. };
  173. UART1: serial@40000300 {
  174. device_type = "serial";
  175. compatible = "ns16550";
  176. reg = <40000300 8>;
  177. virtual-reg = <e0000300>;
  178. clock-frequency = <A8C000>;
  179. current-speed = <1C200>; /* 115200 */
  180. interrupt-parent = <&UIC0>;
  181. interrupts = <1 4>;
  182. };
  183. IIC0: i2c@40000400 {
  184. /* FIXME */
  185. compatible = "ibm,iic-440gp", "ibm,iic";
  186. reg = <40000400 14>;
  187. interrupt-parent = <&UIC0>;
  188. interrupts = <2 4>;
  189. };
  190. IIC1: i2c@40000500 {
  191. /* FIXME */
  192. compatible = "ibm,iic-440gp", "ibm,iic";
  193. reg = <40000500 14>;
  194. interrupt-parent = <&UIC0>;
  195. interrupts = <3 4>;
  196. };
  197. GPIO0: gpio@40000700 {
  198. /* FIXME */
  199. compatible = "ibm,gpio-440gp";
  200. reg = <40000700 20>;
  201. };
  202. ZMII0: emac-zmii@40000780 {
  203. compatible = "ibm,zmii-440gx", "ibm,zmii";
  204. reg = <40000780 c>;
  205. };
  206. RGMII0: emac-rgmii@40000790 {
  207. compatible = "ibm,rgmii";
  208. reg = <40000790 8>;
  209. };
  210. TAH0: emac-tah@40000b50 {
  211. compatible = "ibm,tah-440gx", "ibm,tah";
  212. reg = <40000b50 30>;
  213. };
  214. TAH1: emac-tah@40000d50 {
  215. compatible = "ibm,tah-440gx", "ibm,tah";
  216. reg = <40000d50 30>;
  217. };
  218. EMAC0: ethernet@40000800 {
  219. unused = <1>;
  220. device_type = "network";
  221. compatible = "ibm,emac-440gx", "ibm,emac4";
  222. interrupt-parent = <&UIC1>;
  223. interrupts = <1c 4 1d 4>;
  224. reg = <40000800 70>;
  225. local-mac-address = [000000000000]; // Filled in by zImage
  226. mal-device = <&MAL0>;
  227. mal-tx-channel = <0>;
  228. mal-rx-channel = <0>;
  229. cell-index = <0>;
  230. max-frame-size = <5dc>;
  231. rx-fifo-size = <1000>;
  232. tx-fifo-size = <800>;
  233. phy-mode = "rmii";
  234. phy-map = <00000001>;
  235. zmii-device = <&ZMII0>;
  236. zmii-channel = <0>;
  237. };
  238. EMAC1: ethernet@40000900 {
  239. unused = <1>;
  240. device_type = "network";
  241. compatible = "ibm,emac-440gx", "ibm,emac4";
  242. interrupt-parent = <&UIC1>;
  243. interrupts = <1e 4 1f 4>;
  244. reg = <40000900 70>;
  245. local-mac-address = [000000000000]; // Filled in by zImage
  246. mal-device = <&MAL0>;
  247. mal-tx-channel = <1>;
  248. mal-rx-channel = <1>;
  249. cell-index = <1>;
  250. max-frame-size = <5dc>;
  251. rx-fifo-size = <1000>;
  252. tx-fifo-size = <800>;
  253. phy-mode = "rmii";
  254. phy-map = <00000001>;
  255. zmii-device = <&ZMII0>;
  256. zmii-channel = <1>;
  257. };
  258. EMAC2: ethernet@40000c00 {
  259. device_type = "network";
  260. compatible = "ibm,emac-440gx", "ibm,emac4";
  261. interrupt-parent = <&UIC2>;
  262. interrupts = <0 4 1 4>;
  263. reg = <40000c00 70>;
  264. local-mac-address = [000000000000]; // Filled in by zImage
  265. mal-device = <&MAL0>;
  266. mal-tx-channel = <2>;
  267. mal-rx-channel = <2>;
  268. cell-index = <2>;
  269. max-frame-size = <2328>;
  270. rx-fifo-size = <1000>;
  271. tx-fifo-size = <800>;
  272. phy-mode = "rgmii";
  273. phy-map = <00000001>;
  274. rgmii-device = <&RGMII0>;
  275. rgmii-channel = <0>;
  276. zmii-device = <&ZMII0>;
  277. zmii-channel = <2>;
  278. tah-device = <&TAH0>;
  279. tah-channel = <0>;
  280. };
  281. EMAC3: ethernet@40000e00 {
  282. device_type = "network";
  283. compatible = "ibm,emac-440gx", "ibm,emac4";
  284. interrupt-parent = <&UIC2>;
  285. interrupts = <2 4 3 4>;
  286. reg = <40000e00 70>;
  287. local-mac-address = [000000000000]; // Filled in by zImage
  288. mal-device = <&MAL0>;
  289. mal-tx-channel = <3>;
  290. mal-rx-channel = <3>;
  291. cell-index = <3>;
  292. max-frame-size = <2328>;
  293. rx-fifo-size = <1000>;
  294. tx-fifo-size = <800>;
  295. phy-mode = "rgmii";
  296. phy-map = <00000003>;
  297. rgmii-device = <&RGMII0>;
  298. rgmii-channel = <1>;
  299. zmii-device = <&ZMII0>;
  300. zmii-channel = <3>;
  301. tah-device = <&TAH1>;
  302. tah-channel = <0>;
  303. };
  304. GPT0: gpt@40000a00 {
  305. /* FIXME */
  306. reg = <40000a00 d4>;
  307. interrupt-parent = <&UIC0>;
  308. interrupts = <12 4 13 4 14 4 15 4 16 4>;
  309. };
  310. };
  311. PCIX0: pci@20ec00000 {
  312. device_type = "pci";
  313. #interrupt-cells = <1>;
  314. #size-cells = <2>;
  315. #address-cells = <3>;
  316. compatible = "ibm,plb440gp-pcix", "ibm,plb-pcix";
  317. primary;
  318. large-inbound-windows;
  319. enable-msi-hole;
  320. reg = <2 0ec00000 8 /* Config space access */
  321. 0 0 0 /* no IACK cycles */
  322. 2 0ed00000 4 /* Special cycles */
  323. 2 0ec80000 100 /* Internal registers */
  324. 2 0ec80100 fc>; /* Internal messaging registers */
  325. /* Outbound ranges, one memory and one IO,
  326. * later cannot be changed
  327. */
  328. ranges = <02000000 0 80000000 00000003 80000000 0 80000000
  329. 01000000 0 00000000 00000002 08000000 0 00010000>;
  330. /* Inbound 2GB range starting at 0 */
  331. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  332. interrupt-map-mask = <f800 0 0 7>;
  333. interrupt-map = <
  334. /* IDSEL 1 */
  335. 0800 0 0 1 &UIC0 17 8
  336. 0800 0 0 2 &UIC0 18 8
  337. 0800 0 0 3 &UIC0 19 8
  338. 0800 0 0 4 &UIC0 1a 8
  339. /* IDSEL 2 */
  340. 1000 0 0 1 &UIC0 18 8
  341. 1000 0 0 2 &UIC0 19 8
  342. 1000 0 0 3 &UIC0 1a 8
  343. 1000 0 0 4 &UIC0 17 8
  344. >;
  345. };
  346. };
  347. chosen {
  348. linux,stdout-path = "/plb/opb/serial@40000300";
  349. };
  350. };