katmai.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. /*
  2. * Device Tree Source for AMCC Katmai eval board
  3. *
  4. * Copyright (c) 2006, 2007 IBM Corp.
  5. * Benjamin Herrenschmidt <benh@kernel.crashing.org>
  6. *
  7. * Copyright (c) 2006, 2007 IBM Corp.
  8. * Josh Boyer <jwboyer@linux.vnet.ibm.com>
  9. *
  10. * This file is licensed under the terms of the GNU General Public
  11. * License version 2. This program is licensed "as is" without
  12. * any warranty of any kind, whether express or implied.
  13. */
  14. / {
  15. #address-cells = <2>;
  16. #size-cells = <1>;
  17. model = "amcc,katmai";
  18. compatible = "amcc,katmai";
  19. dcr-parent = <&/cpus/cpu@0>;
  20. aliases {
  21. ethernet0 = &EMAC0;
  22. serial0 = &UART0;
  23. serial1 = &UART1;
  24. serial2 = &UART2;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. cpu@0 {
  30. device_type = "cpu";
  31. model = "PowerPC,440SPe";
  32. reg = <0>;
  33. clock-frequency = <0>; /* Filled in by zImage */
  34. timebase-frequency = <0>; /* Filled in by zImage */
  35. i-cache-line-size = <20>;
  36. d-cache-line-size = <20>;
  37. i-cache-size = <20000>;
  38. d-cache-size = <20000>;
  39. dcr-controller;
  40. dcr-access-method = "native";
  41. };
  42. };
  43. memory {
  44. device_type = "memory";
  45. reg = <0 0 0>; /* Filled in by zImage */
  46. };
  47. UIC0: interrupt-controller0 {
  48. compatible = "ibm,uic-440spe","ibm,uic";
  49. interrupt-controller;
  50. cell-index = <0>;
  51. dcr-reg = <0c0 009>;
  52. #address-cells = <0>;
  53. #size-cells = <0>;
  54. #interrupt-cells = <2>;
  55. };
  56. UIC1: interrupt-controller1 {
  57. compatible = "ibm,uic-440spe","ibm,uic";
  58. interrupt-controller;
  59. cell-index = <1>;
  60. dcr-reg = <0d0 009>;
  61. #address-cells = <0>;
  62. #size-cells = <0>;
  63. #interrupt-cells = <2>;
  64. interrupts = <1e 4 1f 4>; /* cascade */
  65. interrupt-parent = <&UIC0>;
  66. };
  67. UIC2: interrupt-controller2 {
  68. compatible = "ibm,uic-440spe","ibm,uic";
  69. interrupt-controller;
  70. cell-index = <2>;
  71. dcr-reg = <0e0 009>;
  72. #address-cells = <0>;
  73. #size-cells = <0>;
  74. #interrupt-cells = <2>;
  75. interrupts = <a 4 b 4>; /* cascade */
  76. interrupt-parent = <&UIC0>;
  77. };
  78. UIC3: interrupt-controller3 {
  79. compatible = "ibm,uic-440spe","ibm,uic";
  80. interrupt-controller;
  81. cell-index = <3>;
  82. dcr-reg = <0f0 009>;
  83. #address-cells = <0>;
  84. #size-cells = <0>;
  85. #interrupt-cells = <2>;
  86. interrupts = <10 4 11 4>; /* cascade */
  87. interrupt-parent = <&UIC0>;
  88. };
  89. SDR0: sdr {
  90. compatible = "ibm,sdr-440spe";
  91. dcr-reg = <00e 002>;
  92. };
  93. CPR0: cpr {
  94. compatible = "ibm,cpr-440spe";
  95. dcr-reg = <00c 002>;
  96. };
  97. plb {
  98. compatible = "ibm,plb-440spe", "ibm,plb-440gp", "ibm,plb4";
  99. #address-cells = <2>;
  100. #size-cells = <1>;
  101. ranges;
  102. clock-frequency = <0>; /* Filled in by zImage */
  103. SDRAM0: sdram {
  104. compatible = "ibm,sdram-440spe", "ibm,sdram-405gp";
  105. dcr-reg = <010 2>;
  106. };
  107. MAL0: mcmal {
  108. compatible = "ibm,mcmal-440spe", "ibm,mcmal2";
  109. dcr-reg = <180 62>;
  110. num-tx-chans = <2>;
  111. num-rx-chans = <1>;
  112. interrupt-parent = <&MAL0>;
  113. interrupts = <0 1 2 3 4>;
  114. #interrupt-cells = <1>;
  115. #address-cells = <0>;
  116. #size-cells = <0>;
  117. interrupt-map = </*TXEOB*/ 0 &UIC1 6 4
  118. /*RXEOB*/ 1 &UIC1 7 4
  119. /*SERR*/ 2 &UIC1 1 4
  120. /*TXDE*/ 3 &UIC1 2 4
  121. /*RXDE*/ 4 &UIC1 3 4>;
  122. };
  123. POB0: opb {
  124. compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
  125. #address-cells = <1>;
  126. #size-cells = <1>;
  127. ranges = <00000000 4 e0000000 20000000>;
  128. clock-frequency = <0>; /* Filled in by zImage */
  129. EBC0: ebc {
  130. compatible = "ibm,ebc-440spe", "ibm,ebc-440gp", "ibm,ebc";
  131. dcr-reg = <012 2>;
  132. #address-cells = <2>;
  133. #size-cells = <1>;
  134. clock-frequency = <0>; /* Filled in by zImage */
  135. interrupts = <5 1>;
  136. interrupt-parent = <&UIC1>;
  137. };
  138. UART0: serial@10000200 {
  139. device_type = "serial";
  140. compatible = "ns16550";
  141. reg = <10000200 8>;
  142. virtual-reg = <a0000200>;
  143. clock-frequency = <0>; /* Filled in by zImage */
  144. current-speed = <1c200>;
  145. interrupt-parent = <&UIC0>;
  146. interrupts = <0 4>;
  147. };
  148. UART1: serial@10000300 {
  149. device_type = "serial";
  150. compatible = "ns16550";
  151. reg = <10000300 8>;
  152. virtual-reg = <a0000300>;
  153. clock-frequency = <0>;
  154. current-speed = <0>;
  155. interrupt-parent = <&UIC0>;
  156. interrupts = <1 4>;
  157. };
  158. UART2: serial@10000600 {
  159. device_type = "serial";
  160. compatible = "ns16550";
  161. reg = <10000600 8>;
  162. virtual-reg = <a0000600>;
  163. clock-frequency = <0>;
  164. current-speed = <0>;
  165. interrupt-parent = <&UIC1>;
  166. interrupts = <5 4>;
  167. };
  168. IIC0: i2c@10000400 {
  169. device_type = "i2c";
  170. compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
  171. reg = <10000400 14>;
  172. interrupt-parent = <&UIC0>;
  173. interrupts = <2 4>;
  174. };
  175. IIC1: i2c@10000500 {
  176. device_type = "i2c";
  177. compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
  178. reg = <10000500 14>;
  179. interrupt-parent = <&UIC0>;
  180. interrupts = <3 4>;
  181. };
  182. EMAC0: ethernet@10000800 {
  183. linux,network-index = <0>;
  184. device_type = "network";
  185. compatible = "ibm,emac-440spe", "ibm,emac4";
  186. interrupt-parent = <&UIC1>;
  187. interrupts = <1c 4 1d 4>;
  188. reg = <10000800 70>;
  189. local-mac-address = [000000000000];
  190. mal-device = <&MAL0>;
  191. mal-tx-channel = <0>;
  192. mal-rx-channel = <0>;
  193. cell-index = <0>;
  194. max-frame-size = <5dc>;
  195. rx-fifo-size = <1000>;
  196. tx-fifo-size = <800>;
  197. phy-mode = "gmii";
  198. phy-map = <00000000>;
  199. has-inverted-stacr-oc;
  200. has-new-stacr-staopc;
  201. };
  202. };
  203. PCIX0: pci@c0ec00000 {
  204. device_type = "pci";
  205. #interrupt-cells = <1>;
  206. #size-cells = <2>;
  207. #address-cells = <3>;
  208. compatible = "ibm,plb-pcix-440spe", "ibm,plb-pcix";
  209. primary;
  210. large-inbound-windows;
  211. enable-msi-hole;
  212. reg = <c 0ec00000 8 /* Config space access */
  213. 0 0 0 /* no IACK cycles */
  214. c 0ed00000 4 /* Special cycles */
  215. c 0ec80000 100 /* Internal registers */
  216. c 0ec80100 fc>; /* Internal messaging registers */
  217. /* Outbound ranges, one memory and one IO,
  218. * later cannot be changed
  219. */
  220. ranges = <02000000 0 80000000 0000000d 80000000 0 80000000
  221. 01000000 0 00000000 0000000c 08000000 0 00010000>;
  222. /* Inbound 2GB range starting at 0 */
  223. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  224. /* This drives busses 0 to 0xf */
  225. bus-range = <0 f>;
  226. /*
  227. * On Katmai, the following PCI-X interrupts signals
  228. * have to be enabled via jumpers (only INTA is
  229. * enabled per default):
  230. *
  231. * INTB: J3: 1-2
  232. * INTC: J2: 1-2
  233. * INTD: J1: 1-2
  234. */
  235. interrupt-map-mask = <f800 0 0 7>;
  236. interrupt-map = <
  237. /* IDSEL 1 */
  238. 0800 0 0 1 &UIC1 14 8
  239. 0800 0 0 2 &UIC1 13 8
  240. 0800 0 0 3 &UIC1 12 8
  241. 0800 0 0 4 &UIC1 11 8
  242. >;
  243. };
  244. PCIE0: pciex@d00000000 {
  245. device_type = "pci";
  246. #interrupt-cells = <1>;
  247. #size-cells = <2>;
  248. #address-cells = <3>;
  249. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  250. primary;
  251. port = <0>; /* port number */
  252. reg = <d 00000000 20000000 /* Config space access */
  253. c 10000000 00001000>; /* Registers */
  254. dcr-reg = <100 020>;
  255. sdr-base = <300>;
  256. /* Outbound ranges, one memory and one IO,
  257. * later cannot be changed
  258. */
  259. ranges = <02000000 0 80000000 0000000e 00000000 0 80000000
  260. 01000000 0 00000000 0000000f 80000000 0 00010000>;
  261. /* Inbound 2GB range starting at 0 */
  262. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  263. /* This drives busses 10 to 0x1f */
  264. bus-range = <10 1f>;
  265. /* Legacy interrupts (note the weird polarity, the bridge seems
  266. * to invert PCIe legacy interrupts).
  267. * We are de-swizzling here because the numbers are actually for
  268. * port of the root complex virtual P2P bridge. But I want
  269. * to avoid putting a node for it in the tree, so the numbers
  270. * below are basically de-swizzled numbers.
  271. * The real slot is on idsel 0, so the swizzling is 1:1
  272. */
  273. interrupt-map-mask = <0000 0 0 7>;
  274. interrupt-map = <
  275. 0000 0 0 1 &UIC3 0 4 /* swizzled int A */
  276. 0000 0 0 2 &UIC3 1 4 /* swizzled int B */
  277. 0000 0 0 3 &UIC3 2 4 /* swizzled int C */
  278. 0000 0 0 4 &UIC3 3 4 /* swizzled int D */>;
  279. };
  280. PCIE1: pciex@d20000000 {
  281. device_type = "pci";
  282. #interrupt-cells = <1>;
  283. #size-cells = <2>;
  284. #address-cells = <3>;
  285. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  286. primary;
  287. port = <1>; /* port number */
  288. reg = <d 20000000 20000000 /* Config space access */
  289. c 10001000 00001000>; /* Registers */
  290. dcr-reg = <120 020>;
  291. sdr-base = <340>;
  292. /* Outbound ranges, one memory and one IO,
  293. * later cannot be changed
  294. */
  295. ranges = <02000000 0 80000000 0000000e 80000000 0 80000000
  296. 01000000 0 00000000 0000000f 80010000 0 00010000>;
  297. /* Inbound 2GB range starting at 0 */
  298. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  299. /* This drives busses 10 to 0x1f */
  300. bus-range = <20 2f>;
  301. /* Legacy interrupts (note the weird polarity, the bridge seems
  302. * to invert PCIe legacy interrupts).
  303. * We are de-swizzling here because the numbers are actually for
  304. * port of the root complex virtual P2P bridge. But I want
  305. * to avoid putting a node for it in the tree, so the numbers
  306. * below are basically de-swizzled numbers.
  307. * The real slot is on idsel 0, so the swizzling is 1:1
  308. */
  309. interrupt-map-mask = <0000 0 0 7>;
  310. interrupt-map = <
  311. 0000 0 0 1 &UIC3 4 4 /* swizzled int A */
  312. 0000 0 0 2 &UIC3 5 4 /* swizzled int B */
  313. 0000 0 0 3 &UIC3 6 4 /* swizzled int C */
  314. 0000 0 0 4 &UIC3 7 4 /* swizzled int D */>;
  315. };
  316. PCIE2: pciex@d40000000 {
  317. device_type = "pci";
  318. #interrupt-cells = <1>;
  319. #size-cells = <2>;
  320. #address-cells = <3>;
  321. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  322. primary;
  323. port = <2>; /* port number */
  324. reg = <d 40000000 20000000 /* Config space access */
  325. c 10002000 00001000>; /* Registers */
  326. dcr-reg = <140 020>;
  327. sdr-base = <370>;
  328. /* Outbound ranges, one memory and one IO,
  329. * later cannot be changed
  330. */
  331. ranges = <02000000 0 80000000 0000000f 00000000 0 80000000
  332. 01000000 0 00000000 0000000f 80020000 0 00010000>;
  333. /* Inbound 2GB range starting at 0 */
  334. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  335. /* This drives busses 10 to 0x1f */
  336. bus-range = <30 3f>;
  337. /* Legacy interrupts (note the weird polarity, the bridge seems
  338. * to invert PCIe legacy interrupts).
  339. * We are de-swizzling here because the numbers are actually for
  340. * port of the root complex virtual P2P bridge. But I want
  341. * to avoid putting a node for it in the tree, so the numbers
  342. * below are basically de-swizzled numbers.
  343. * The real slot is on idsel 0, so the swizzling is 1:1
  344. */
  345. interrupt-map-mask = <0000 0 0 7>;
  346. interrupt-map = <
  347. 0000 0 0 1 &UIC3 8 4 /* swizzled int A */
  348. 0000 0 0 2 &UIC3 9 4 /* swizzled int B */
  349. 0000 0 0 3 &UIC3 a 4 /* swizzled int C */
  350. 0000 0 0 4 &UIC3 b 4 /* swizzled int D */>;
  351. };
  352. };
  353. chosen {
  354. linux,stdout-path = "/plb/opb/serial@10000200";
  355. };
  356. };