katmai.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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 = <2>;
  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. reset-type = <2>; /* Use chip-reset */
  43. };
  44. };
  45. memory {
  46. device_type = "memory";
  47. reg = <0x0 0x00000000 0x0 0x00000000>; /* Filled in by U-Boot */
  48. };
  49. UIC0: interrupt-controller0 {
  50. compatible = "ibm,uic-440spe","ibm,uic";
  51. interrupt-controller;
  52. cell-index = <0>;
  53. dcr-reg = <0x0c0 0x009>;
  54. #address-cells = <0>;
  55. #size-cells = <0>;
  56. #interrupt-cells = <2>;
  57. };
  58. UIC1: interrupt-controller1 {
  59. compatible = "ibm,uic-440spe","ibm,uic";
  60. interrupt-controller;
  61. cell-index = <1>;
  62. dcr-reg = <0x0d0 0x009>;
  63. #address-cells = <0>;
  64. #size-cells = <0>;
  65. #interrupt-cells = <2>;
  66. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  67. interrupt-parent = <&UIC0>;
  68. };
  69. UIC2: interrupt-controller2 {
  70. compatible = "ibm,uic-440spe","ibm,uic";
  71. interrupt-controller;
  72. cell-index = <2>;
  73. dcr-reg = <0x0e0 0x009>;
  74. #address-cells = <0>;
  75. #size-cells = <0>;
  76. #interrupt-cells = <2>;
  77. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  78. interrupt-parent = <&UIC0>;
  79. };
  80. UIC3: interrupt-controller3 {
  81. compatible = "ibm,uic-440spe","ibm,uic";
  82. interrupt-controller;
  83. cell-index = <3>;
  84. dcr-reg = <0x0f0 0x009>;
  85. #address-cells = <0>;
  86. #size-cells = <0>;
  87. #interrupt-cells = <2>;
  88. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  89. interrupt-parent = <&UIC0>;
  90. };
  91. SDR0: sdr {
  92. compatible = "ibm,sdr-440spe";
  93. dcr-reg = <0x00e 0x002>;
  94. };
  95. CPR0: cpr {
  96. compatible = "ibm,cpr-440spe";
  97. dcr-reg = <0x00c 0x002>;
  98. };
  99. MQ0: mq {
  100. compatible = "ibm,mq-440spe";
  101. dcr-reg = <0x040 0x020>;
  102. };
  103. plb {
  104. compatible = "ibm,plb-440spe", "ibm,plb-440gp", "ibm,plb4";
  105. #address-cells = <2>;
  106. #size-cells = <1>;
  107. /* addr-child addr-parent size */
  108. ranges = <0x4 0x00100000 0x4 0x00100000 0x00001000
  109. 0x4 0x00200000 0x4 0x00200000 0x00000400
  110. 0x4 0xe0000000 0x4 0xe0000000 0x20000000
  111. 0xc 0x00000000 0xc 0x00000000 0x20000000
  112. 0xd 0x00000000 0xd 0x00000000 0x80000000
  113. 0xd 0x80000000 0xd 0x80000000 0x80000000
  114. 0xe 0x00000000 0xe 0x00000000 0x80000000
  115. 0xe 0x80000000 0xe 0x80000000 0x80000000
  116. 0xf 0x00000000 0xf 0x00000000 0x80000000
  117. 0xf 0x80000000 0xf 0x80000000 0x80000000>;
  118. clock-frequency = <0>; /* Filled in by zImage */
  119. SDRAM0: sdram {
  120. compatible = "ibm,sdram-440spe", "ibm,sdram-405gp";
  121. dcr-reg = <0x010 0x002>;
  122. };
  123. MAL0: mcmal {
  124. compatible = "ibm,mcmal-440spe", "ibm,mcmal2";
  125. dcr-reg = <0x180 0x062>;
  126. num-tx-chans = <2>;
  127. num-rx-chans = <1>;
  128. interrupt-parent = <&MAL0>;
  129. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  130. #interrupt-cells = <1>;
  131. #address-cells = <0>;
  132. #size-cells = <0>;
  133. interrupt-map = </*TXEOB*/ 0x0 &UIC1 0x6 0x4
  134. /*RXEOB*/ 0x1 &UIC1 0x7 0x4
  135. /*SERR*/ 0x2 &UIC1 0x1 0x4
  136. /*TXDE*/ 0x3 &UIC1 0x2 0x4
  137. /*RXDE*/ 0x4 &UIC1 0x3 0x4>;
  138. };
  139. POB0: opb {
  140. compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. ranges = <0xe0000000 0x00000004 0xe0000000 0x20000000>;
  144. clock-frequency = <0>; /* Filled in by zImage */
  145. EBC0: ebc {
  146. compatible = "ibm,ebc-440spe", "ibm,ebc-440gp", "ibm,ebc";
  147. dcr-reg = <0x012 0x002>;
  148. #address-cells = <2>;
  149. #size-cells = <1>;
  150. clock-frequency = <0>; /* Filled in by zImage */
  151. /* ranges property is supplied by U-Boot */
  152. interrupts = <0x5 0x1>;
  153. interrupt-parent = <&UIC1>;
  154. nor_flash@0,0 {
  155. compatible = "cfi-flash";
  156. bank-width = <2>;
  157. reg = <0x00000000 0x00000000 0x01000000>;
  158. #address-cells = <1>;
  159. #size-cells = <1>;
  160. partition@0 {
  161. label = "kernel";
  162. reg = <0x00000000 0x001e0000>;
  163. };
  164. partition@1e0000 {
  165. label = "dtb";
  166. reg = <0x001e0000 0x00020000>;
  167. };
  168. partition@200000 {
  169. label = "root";
  170. reg = <0x00200000 0x00200000>;
  171. };
  172. partition@400000 {
  173. label = "user";
  174. reg = <0x00400000 0x00b60000>;
  175. };
  176. partition@f60000 {
  177. label = "env";
  178. reg = <0x00f60000 0x00040000>;
  179. };
  180. partition@fa0000 {
  181. label = "u-boot";
  182. reg = <0x00fa0000 0x00060000>;
  183. };
  184. };
  185. };
  186. UART0: serial@f0000200 {
  187. device_type = "serial";
  188. compatible = "ns16550";
  189. reg = <0xf0000200 0x00000008>;
  190. virtual-reg = <0xa0000200>;
  191. clock-frequency = <0>; /* Filled in by zImage */
  192. current-speed = <115200>;
  193. interrupt-parent = <&UIC0>;
  194. interrupts = <0x0 0x4>;
  195. };
  196. UART1: serial@f0000300 {
  197. device_type = "serial";
  198. compatible = "ns16550";
  199. reg = <0xf0000300 0x00000008>;
  200. virtual-reg = <0xa0000300>;
  201. clock-frequency = <0>;
  202. current-speed = <0>;
  203. interrupt-parent = <&UIC0>;
  204. interrupts = <0x1 0x4>;
  205. };
  206. UART2: serial@f0000600 {
  207. device_type = "serial";
  208. compatible = "ns16550";
  209. reg = <0xf0000600 0x00000008>;
  210. virtual-reg = <0xa0000600>;
  211. clock-frequency = <0>;
  212. current-speed = <0>;
  213. interrupt-parent = <&UIC1>;
  214. interrupts = <0x5 0x4>;
  215. };
  216. IIC0: i2c@f0000400 {
  217. compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
  218. reg = <0xf0000400 0x00000014>;
  219. interrupt-parent = <&UIC0>;
  220. interrupts = <0x2 0x4>;
  221. };
  222. IIC1: i2c@f0000500 {
  223. compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
  224. reg = <0xf0000500 0x00000014>;
  225. interrupt-parent = <&UIC0>;
  226. interrupts = <0x3 0x4>;
  227. };
  228. EMAC0: ethernet@f0000800 {
  229. linux,network-index = <0x0>;
  230. device_type = "network";
  231. compatible = "ibm,emac-440spe", "ibm,emac4";
  232. interrupt-parent = <&UIC1>;
  233. interrupts = <0x1c 0x4 0x1d 0x4>;
  234. reg = <0xf0000800 0x00000074>;
  235. local-mac-address = [000000000000];
  236. mal-device = <&MAL0>;
  237. mal-tx-channel = <0>;
  238. mal-rx-channel = <0>;
  239. cell-index = <0>;
  240. max-frame-size = <9000>;
  241. rx-fifo-size = <4096>;
  242. tx-fifo-size = <2048>;
  243. phy-mode = "gmii";
  244. phy-map = <0x00000000>;
  245. has-inverted-stacr-oc;
  246. has-new-stacr-staopc;
  247. };
  248. };
  249. PCIX0: pci@c0ec00000 {
  250. device_type = "pci";
  251. #interrupt-cells = <1>;
  252. #size-cells = <2>;
  253. #address-cells = <3>;
  254. compatible = "ibm,plb-pcix-440spe", "ibm,plb-pcix";
  255. primary;
  256. large-inbound-windows;
  257. enable-msi-hole;
  258. reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */
  259. 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
  260. 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */
  261. 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */
  262. 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
  263. /* Outbound ranges, one memory and one IO,
  264. * later cannot be changed
  265. */
  266. ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
  267. 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
  268. /* Inbound 4GB range starting at 0 */
  269. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
  270. /* This drives busses 0 to 0xf */
  271. bus-range = <0x0 0xf>;
  272. /*
  273. * On Katmai, the following PCI-X interrupts signals
  274. * have to be enabled via jumpers (only INTA is
  275. * enabled per default):
  276. *
  277. * INTB: J3: 1-2
  278. * INTC: J2: 1-2
  279. * INTD: J1: 1-2
  280. */
  281. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  282. interrupt-map = <
  283. /* IDSEL 1 */
  284. 0x800 0x0 0x0 0x1 &UIC1 0x14 0x8
  285. 0x800 0x0 0x0 0x2 &UIC1 0x13 0x8
  286. 0x800 0x0 0x0 0x3 &UIC1 0x12 0x8
  287. 0x800 0x0 0x0 0x4 &UIC1 0x11 0x8
  288. >;
  289. };
  290. PCIE0: pciex@d00000000 {
  291. device_type = "pci";
  292. #interrupt-cells = <1>;
  293. #size-cells = <2>;
  294. #address-cells = <3>;
  295. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  296. primary;
  297. port = <0x0>; /* port number */
  298. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  299. 0x0000000c 0x10000000 0x00001000>; /* Registers */
  300. dcr-reg = <0x100 0x020>;
  301. sdr-base = <0x300>;
  302. /* Outbound ranges, one memory and one IO,
  303. * later cannot be changed
  304. */
  305. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  306. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  307. /* Inbound 4GB range starting at 0 */
  308. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
  309. /* This drives busses 0x10 to 0x1f */
  310. bus-range = <0x10 0x1f>;
  311. /* Legacy interrupts (note the weird polarity, the bridge seems
  312. * to invert PCIe legacy interrupts).
  313. * We are de-swizzling here because the numbers are actually for
  314. * port of the root complex virtual P2P bridge. But I want
  315. * to avoid putting a node for it in the tree, so the numbers
  316. * below are basically de-swizzled numbers.
  317. * The real slot is on idsel 0, so the swizzling is 1:1
  318. */
  319. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  320. interrupt-map = <
  321. 0x0 0x0 0x0 0x1 &UIC3 0x0 0x4 /* swizzled int A */
  322. 0x0 0x0 0x0 0x2 &UIC3 0x1 0x4 /* swizzled int B */
  323. 0x0 0x0 0x0 0x3 &UIC3 0x2 0x4 /* swizzled int C */
  324. 0x0 0x0 0x0 0x4 &UIC3 0x3 0x4 /* swizzled int D */>;
  325. };
  326. PCIE1: pciex@d20000000 {
  327. device_type = "pci";
  328. #interrupt-cells = <1>;
  329. #size-cells = <2>;
  330. #address-cells = <3>;
  331. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  332. primary;
  333. port = <0x1>; /* port number */
  334. reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */
  335. 0x0000000c 0x10001000 0x00001000>; /* Registers */
  336. dcr-reg = <0x120 0x020>;
  337. sdr-base = <0x340>;
  338. /* Outbound ranges, one memory and one IO,
  339. * later cannot be changed
  340. */
  341. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
  342. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
  343. /* Inbound 4GB range starting at 0 */
  344. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
  345. /* This drives busses 0x20 to 0x2f */
  346. bus-range = <0x20 0x2f>;
  347. /* Legacy interrupts (note the weird polarity, the bridge seems
  348. * to invert PCIe legacy interrupts).
  349. * We are de-swizzling here because the numbers are actually for
  350. * port of the root complex virtual P2P bridge. But I want
  351. * to avoid putting a node for it in the tree, so the numbers
  352. * below are basically de-swizzled numbers.
  353. * The real slot is on idsel 0, so the swizzling is 1:1
  354. */
  355. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  356. interrupt-map = <
  357. 0x0 0x0 0x0 0x1 &UIC3 0x4 0x4 /* swizzled int A */
  358. 0x0 0x0 0x0 0x2 &UIC3 0x5 0x4 /* swizzled int B */
  359. 0x0 0x0 0x0 0x3 &UIC3 0x6 0x4 /* swizzled int C */
  360. 0x0 0x0 0x0 0x4 &UIC3 0x7 0x4 /* swizzled int D */>;
  361. };
  362. PCIE2: pciex@d40000000 {
  363. device_type = "pci";
  364. #interrupt-cells = <1>;
  365. #size-cells = <2>;
  366. #address-cells = <3>;
  367. compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
  368. primary;
  369. port = <0x2>; /* port number */
  370. reg = <0x0000000d 0x40000000 0x20000000 /* Config space access */
  371. 0x0000000c 0x10002000 0x00001000>; /* Registers */
  372. dcr-reg = <0x140 0x020>;
  373. sdr-base = <0x370>;
  374. /* Outbound ranges, one memory and one IO,
  375. * later cannot be changed
  376. */
  377. ranges = <0x02000000 0x00000000 0x80000000 0x0000000f 0x00000000 0x00000000 0x80000000
  378. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80020000 0x00000000 0x00010000>;
  379. /* Inbound 4GB range starting at 0 */
  380. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
  381. /* This drives busses 0x30 to 0x3f */
  382. bus-range = <0x30 0x3f>;
  383. /* Legacy interrupts (note the weird polarity, the bridge seems
  384. * to invert PCIe legacy interrupts).
  385. * We are de-swizzling here because the numbers are actually for
  386. * port of the root complex virtual P2P bridge. But I want
  387. * to avoid putting a node for it in the tree, so the numbers
  388. * below are basically de-swizzled numbers.
  389. * The real slot is on idsel 0, so the swizzling is 1:1
  390. */
  391. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  392. interrupt-map = <
  393. 0x0 0x0 0x0 0x1 &UIC3 0x8 0x4 /* swizzled int A */
  394. 0x0 0x0 0x0 0x2 &UIC3 0x9 0x4 /* swizzled int B */
  395. 0x0 0x0 0x0 0x3 &UIC3 0xa 0x4 /* swizzled int C */
  396. 0x0 0x0 0x0 0x4 &UIC3 0xb 0x4 /* swizzled int D */>;
  397. };
  398. MSI: ppc4xx-msi@400300000 {
  399. compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
  400. reg = < 0x4 0x00300000 0x100>;
  401. sdr-base = <0x3B0>;
  402. msi-data = <0x00000000>;
  403. msi-mask = <0x44440000>;
  404. interrupt-count = <3>;
  405. interrupts =<0 1 2 3>;
  406. interrupt-parent = <&UIC0>;
  407. #interrupt-cells = <1>;
  408. #address-cells = <0>;
  409. #size-cells = <0>;
  410. interrupt-map = <0 &UIC0 0xC 1
  411. 1 &UIC0 0x0D 1
  412. 2 &UIC0 0x0E 1
  413. 3 &UIC0 0x0F 1>;
  414. };
  415. I2O: i2o@400100000 {
  416. compatible = "ibm,i2o-440spe";
  417. reg = <0x00000004 0x00100000 0x100>;
  418. dcr-reg = <0x060 0x020>;
  419. };
  420. DMA0: dma0@400100100 {
  421. compatible = "ibm,dma-440spe";
  422. cell-index = <0>;
  423. reg = <0x00000004 0x00100100 0x100>;
  424. dcr-reg = <0x060 0x020>;
  425. interrupt-parent = <&DMA0>;
  426. interrupts = <0 1>;
  427. #interrupt-cells = <1>;
  428. #address-cells = <0>;
  429. #size-cells = <0>;
  430. interrupt-map = <
  431. 0 &UIC0 0x14 4
  432. 1 &UIC1 0x16 4>;
  433. };
  434. DMA1: dma1@400100200 {
  435. compatible = "ibm,dma-440spe";
  436. cell-index = <1>;
  437. reg = <0x00000004 0x00100200 0x100>;
  438. dcr-reg = <0x060 0x020>;
  439. interrupt-parent = <&DMA1>;
  440. interrupts = <0 1>;
  441. #interrupt-cells = <1>;
  442. #address-cells = <0>;
  443. #size-cells = <0>;
  444. interrupt-map = <
  445. 0 &UIC0 0x16 4
  446. 1 &UIC1 0x16 4>;
  447. };
  448. xor-accel@400200000 {
  449. compatible = "amcc,xor-accelerator";
  450. reg = <0x00000004 0x00200000 0x400>;
  451. interrupt-parent = <&UIC1>;
  452. interrupts = <0x1f 4>;
  453. };
  454. };
  455. chosen {
  456. linux,stdout-path = "/plb/opb/serial@f0000200";
  457. };
  458. };