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. /dts-v1/;
  15. / {
  16. #address-cells = <2>;
  17. #size-cells = <1>;
  18. model = "amcc,katmai";
  19. compatible = "amcc,katmai";
  20. dcr-parent = <&{/cpus/cpu@0}>;
  21. aliases {
  22. ethernet0 = &EMAC0;
  23. serial0 = &UART0;
  24. serial1 = &UART1;
  25. serial2 = &UART2;
  26. };
  27. cpus {
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. cpu@0 {
  31. device_type = "cpu";
  32. model = "PowerPC,440SPe";
  33. reg = <0x00000000>;
  34. clock-frequency = <0>; /* Filled in by zImage */
  35. timebase-frequency = <0>; /* Filled in by zImage */
  36. i-cache-line-size = <32>;
  37. d-cache-line-size = <32>;
  38. i-cache-size = <32768>;
  39. d-cache-size = <32768>;
  40. dcr-controller;
  41. dcr-access-method = "native";
  42. };
  43. };
  44. memory {
  45. device_type = "memory";
  46. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
  47. };
  48. UIC0: interrupt-controller0 {
  49. compatible = "ibm,uic-440spe","ibm,uic";
  50. interrupt-controller;
  51. cell-index = <0>;
  52. dcr-reg = <0x0c0 0x009>;
  53. #address-cells = <0>;
  54. #size-cells = <0>;
  55. #interrupt-cells = <2>;
  56. };
  57. UIC1: interrupt-controller1 {
  58. compatible = "ibm,uic-440spe","ibm,uic";
  59. interrupt-controller;
  60. cell-index = <1>;
  61. dcr-reg = <0x0d0 0x009>;
  62. #address-cells = <0>;
  63. #size-cells = <0>;
  64. #interrupt-cells = <2>;
  65. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  66. interrupt-parent = <&UIC0>;
  67. };
  68. UIC2: interrupt-controller2 {
  69. compatible = "ibm,uic-440spe","ibm,uic";
  70. interrupt-controller;
  71. cell-index = <2>;
  72. dcr-reg = <0x0e0 0x009>;
  73. #address-cells = <0>;
  74. #size-cells = <0>;
  75. #interrupt-cells = <2>;
  76. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  77. interrupt-parent = <&UIC0>;
  78. };
  79. UIC3: interrupt-controller3 {
  80. compatible = "ibm,uic-440spe","ibm,uic";
  81. interrupt-controller;
  82. cell-index = <3>;
  83. dcr-reg = <0x0f0 0x009>;
  84. #address-cells = <0>;
  85. #size-cells = <0>;
  86. #interrupt-cells = <2>;
  87. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  88. interrupt-parent = <&UIC0>;
  89. };
  90. SDR0: sdr {
  91. compatible = "ibm,sdr-440spe";
  92. dcr-reg = <0x00e 0x002>;
  93. };
  94. CPR0: cpr {
  95. compatible = "ibm,cpr-440spe";
  96. dcr-reg = <0x00c 0x002>;
  97. };
  98. plb {
  99. compatible = "ibm,plb-440spe", "ibm,plb-440gp", "ibm,plb4";
  100. #address-cells = <2>;
  101. #size-cells = <1>;
  102. ranges;
  103. clock-frequency = <0>; /* Filled in by zImage */
  104. SDRAM0: sdram {
  105. compatible = "ibm,sdram-440spe", "ibm,sdram-405gp";
  106. dcr-reg = <0x010 0x002>;
  107. };
  108. MAL0: mcmal {
  109. compatible = "ibm,mcmal-440spe", "ibm,mcmal2";
  110. dcr-reg = <0x180 0x062>;
  111. num-tx-chans = <2>;
  112. num-rx-chans = <1>;
  113. interrupt-parent = <&MAL0>;
  114. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  115. #interrupt-cells = <1>;
  116. #address-cells = <0>;
  117. #size-cells = <0>;
  118. interrupt-map = </*TXEOB*/ 0x0 &UIC1 0x6 0x4
  119. /*RXEOB*/ 0x1 &UIC1 0x7 0x4
  120. /*SERR*/ 0x2 &UIC1 0x1 0x4
  121. /*TXDE*/ 0x3 &UIC1 0x2 0x4
  122. /*RXDE*/ 0x4 &UIC1 0x3 0x4>;
  123. };
  124. POB0: opb {
  125. compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. ranges = <0x00000000 0x00000004 0xe0000000 0x20000000>;
  129. clock-frequency = <0>; /* Filled in by zImage */
  130. EBC0: ebc {
  131. compatible = "ibm,ebc-440spe", "ibm,ebc-440gp", "ibm,ebc";
  132. dcr-reg = <0x012 0x002>;
  133. #address-cells = <2>;
  134. #size-cells = <1>;
  135. clock-frequency = <0>; /* Filled in by zImage */
  136. interrupts = <0x5 0x1>;
  137. interrupt-parent = <&UIC1>;
  138. };
  139. UART0: serial@10000200 {
  140. device_type = "serial";
  141. compatible = "ns16550";
  142. reg = <0x10000200 0x00000008>;
  143. virtual-reg = <0xa0000200>;
  144. clock-frequency = <0>; /* Filled in by zImage */
  145. current-speed = <115200>;
  146. interrupt-parent = <&UIC0>;
  147. interrupts = <0x0 0x4>;
  148. };
  149. UART1: serial@10000300 {
  150. device_type = "serial";
  151. compatible = "ns16550";
  152. reg = <0x10000300 0x00000008>;
  153. virtual-reg = <0xa0000300>;
  154. clock-frequency = <0>;
  155. current-speed = <0>;
  156. interrupt-parent = <&UIC0>;
  157. interrupts = <0x1 0x4>;
  158. };
  159. UART2: serial@10000600 {
  160. device_type = "serial";
  161. compatible = "ns16550";
  162. reg = <0x10000600 0x00000008>;
  163. virtual-reg = <0xa0000600>;
  164. clock-frequency = <0>;
  165. current-speed = <0>;
  166. interrupt-parent = <&UIC1>;
  167. interrupts = <0x5 0x4>;
  168. };
  169. IIC0: i2c@10000400 {
  170. compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
  171. reg = <0x10000400 0x00000014>;
  172. interrupt-parent = <&UIC0>;
  173. interrupts = <0x2 0x4>;
  174. };
  175. IIC1: i2c@10000500 {
  176. compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
  177. reg = <0x10000500 0x00000014>;
  178. interrupt-parent = <&UIC0>;
  179. interrupts = <0x3 0x4>;
  180. };
  181. EMAC0: ethernet@10000800 {
  182. linux,network-index = <0x0>;
  183. device_type = "network";
  184. compatible = "ibm,emac-440spe", "ibm,emac4";
  185. interrupt-parent = <&UIC1>;
  186. interrupts = <0x1c 0x4 0x1d 0x4>;
  187. reg = <0x10000800 0x00000074>;
  188. local-mac-address = [000000000000];
  189. mal-device = <&MAL0>;
  190. mal-tx-channel = <0>;
  191. mal-rx-channel = <0>;
  192. cell-index = <0>;
  193. max-frame-size = <9000>;
  194. rx-fifo-size = <4096>;
  195. tx-fifo-size = <2048>;
  196. phy-mode = "gmii";
  197. phy-map = <0x00000000>;
  198. has-inverted-stacr-oc;
  199. has-new-stacr-staopc;
  200. };
  201. };
  202. PCIX0: pci@c0ec00000 {
  203. device_type = "pci";
  204. #interrupt-cells = <1>;
  205. #size-cells = <2>;
  206. #address-cells = <3>;
  207. compatible = "ibm,plb-pcix-440spe", "ibm,plb-pcix";
  208. primary;
  209. large-inbound-windows;
  210. enable-msi-hole;
  211. reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */
  212. 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
  213. 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */
  214. 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */
  215. 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
  216. /* Outbound ranges, one memory and one IO,
  217. * later cannot be changed
  218. */
  219. ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
  220. 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
  221. /* Inbound 2GB range starting at 0 */
  222. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  223. /* This drives busses 0 to 0xf */
  224. bus-range = <0x0 0xf>;
  225. /*
  226. * On Katmai, the following PCI-X interrupts signals
  227. * have to be enabled via jumpers (only INTA is
  228. * enabled per default):
  229. *
  230. * INTB: J3: 1-2
  231. * INTC: J2: 1-2
  232. * INTD: J1: 1-2
  233. */
  234. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  235. interrupt-map = <
  236. /* IDSEL 1 */
  237. 0x800 0x0 0x0 0x1 &UIC1 0x14 0x8
  238. 0x800 0x0 0x0 0x2 &UIC1 0x13 0x8
  239. 0x800 0x0 0x0 0x3 &UIC1 0x12 0x8
  240. 0x800 0x0 0x0 0x4 &UIC1 0x11 0x8
  241. >;
  242. };
  243. PCIE0: pciex@d00000000 {
  244. device_type = "pci";
  245. #interrupt-cells = <1>;
  246. #size-cells = <2>;
  247. #address-cells = <3>;
  248. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  249. primary;
  250. port = <0x0>; /* port number */
  251. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  252. 0x0000000c 0x10000000 0x00001000>; /* Registers */
  253. dcr-reg = <0x100 0x020>;
  254. sdr-base = <0x300>;
  255. /* Outbound ranges, one memory and one IO,
  256. * later cannot be changed
  257. */
  258. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  259. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  260. /* Inbound 2GB range starting at 0 */
  261. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  262. /* This drives busses 10 to 0x1f */
  263. bus-range = <0x10 0x1f>;
  264. /* Legacy interrupts (note the weird polarity, the bridge seems
  265. * to invert PCIe legacy interrupts).
  266. * We are de-swizzling here because the numbers are actually for
  267. * port of the root complex virtual P2P bridge. But I want
  268. * to avoid putting a node for it in the tree, so the numbers
  269. * below are basically de-swizzled numbers.
  270. * The real slot is on idsel 0, so the swizzling is 1:1
  271. */
  272. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  273. interrupt-map = <
  274. 0x0 0x0 0x0 0x1 &UIC3 0x0 0x4 /* swizzled int A */
  275. 0x0 0x0 0x0 0x2 &UIC3 0x1 0x4 /* swizzled int B */
  276. 0x0 0x0 0x0 0x3 &UIC3 0x2 0x4 /* swizzled int C */
  277. 0x0 0x0 0x0 0x4 &UIC3 0x3 0x4 /* swizzled int D */>;
  278. };
  279. PCIE1: pciex@d20000000 {
  280. device_type = "pci";
  281. #interrupt-cells = <1>;
  282. #size-cells = <2>;
  283. #address-cells = <3>;
  284. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  285. primary;
  286. port = <0x1>; /* port number */
  287. reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */
  288. 0x0000000c 0x10001000 0x00001000>; /* Registers */
  289. dcr-reg = <0x120 0x020>;
  290. sdr-base = <0x340>;
  291. /* Outbound ranges, one memory and one IO,
  292. * later cannot be changed
  293. */
  294. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
  295. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
  296. /* Inbound 2GB range starting at 0 */
  297. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  298. /* This drives busses 10 to 0x1f */
  299. bus-range = <0x20 0x2f>;
  300. /* Legacy interrupts (note the weird polarity, the bridge seems
  301. * to invert PCIe legacy interrupts).
  302. * We are de-swizzling here because the numbers are actually for
  303. * port of the root complex virtual P2P bridge. But I want
  304. * to avoid putting a node for it in the tree, so the numbers
  305. * below are basically de-swizzled numbers.
  306. * The real slot is on idsel 0, so the swizzling is 1:1
  307. */
  308. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  309. interrupt-map = <
  310. 0x0 0x0 0x0 0x1 &UIC3 0x4 0x4 /* swizzled int A */
  311. 0x0 0x0 0x0 0x2 &UIC3 0x5 0x4 /* swizzled int B */
  312. 0x0 0x0 0x0 0x3 &UIC3 0x6 0x4 /* swizzled int C */
  313. 0x0 0x0 0x0 0x4 &UIC3 0x7 0x4 /* swizzled int D */>;
  314. };
  315. PCIE2: pciex@d40000000 {
  316. device_type = "pci";
  317. #interrupt-cells = <1>;
  318. #size-cells = <2>;
  319. #address-cells = <3>;
  320. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  321. primary;
  322. port = <0x2>; /* port number */
  323. reg = <0x0000000d 0x40000000 0x20000000 /* Config space access */
  324. 0x0000000c 0x10002000 0x00001000>; /* Registers */
  325. dcr-reg = <0x140 0x020>;
  326. sdr-base = <0x370>;
  327. /* Outbound ranges, one memory and one IO,
  328. * later cannot be changed
  329. */
  330. ranges = <0x02000000 0x00000000 0x80000000 0x0000000f 0x00000000 0x00000000 0x80000000
  331. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80020000 0x00000000 0x00010000>;
  332. /* Inbound 2GB range starting at 0 */
  333. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  334. /* This drives busses 10 to 0x1f */
  335. bus-range = <0x30 0x3f>;
  336. /* Legacy interrupts (note the weird polarity, the bridge seems
  337. * to invert PCIe legacy interrupts).
  338. * We are de-swizzling here because the numbers are actually for
  339. * port of the root complex virtual P2P bridge. But I want
  340. * to avoid putting a node for it in the tree, so the numbers
  341. * below are basically de-swizzled numbers.
  342. * The real slot is on idsel 0, so the swizzling is 1:1
  343. */
  344. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  345. interrupt-map = <
  346. 0x0 0x0 0x0 0x1 &UIC3 0x8 0x4 /* swizzled int A */
  347. 0x0 0x0 0x0 0x2 &UIC3 0x9 0x4 /* swizzled int B */
  348. 0x0 0x0 0x0 0x3 &UIC3 0xa 0x4 /* swizzled int C */
  349. 0x0 0x0 0x0 0x4 &UIC3 0xb 0x4 /* swizzled int D */>;
  350. };
  351. };
  352. chosen {
  353. linux,stdout-path = "/plb/opb/serial@10000200";
  354. };
  355. };