kilauea.dts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. /*
  2. * Device Tree Source for AMCC Kilauea (405EX)
  3. *
  4. * Copyright 2007-2009 DENX Software Engineering, Stefan Roese <sr@denx.de>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without
  8. * any warranty of any kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. model = "amcc,kilauea";
  15. compatible = "amcc,kilauea";
  16. dcr-parent = <&{/cpus/cpu@0}>;
  17. aliases {
  18. ethernet0 = &EMAC0;
  19. ethernet1 = &EMAC1;
  20. serial0 = &UART0;
  21. serial1 = &UART1;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. cpu@0 {
  27. device_type = "cpu";
  28. model = "PowerPC,405EX";
  29. reg = <0x00000000>;
  30. clock-frequency = <0>; /* Filled in by U-Boot */
  31. timebase-frequency = <0>; /* Filled in by U-Boot */
  32. i-cache-line-size = <32>;
  33. d-cache-line-size = <32>;
  34. i-cache-size = <16384>; /* 16 kB */
  35. d-cache-size = <16384>; /* 16 kB */
  36. dcr-controller;
  37. dcr-access-method = "native";
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. reg = <0x00000000 0x00000000>; /* Filled in by U-Boot */
  43. };
  44. UIC0: interrupt-controller {
  45. compatible = "ibm,uic-405ex", "ibm,uic";
  46. interrupt-controller;
  47. cell-index = <0>;
  48. dcr-reg = <0x0c0 0x009>;
  49. #address-cells = <0>;
  50. #size-cells = <0>;
  51. #interrupt-cells = <2>;
  52. };
  53. UIC1: interrupt-controller1 {
  54. compatible = "ibm,uic-405ex","ibm,uic";
  55. interrupt-controller;
  56. cell-index = <1>;
  57. dcr-reg = <0x0d0 0x009>;
  58. #address-cells = <0>;
  59. #size-cells = <0>;
  60. #interrupt-cells = <2>;
  61. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  62. interrupt-parent = <&UIC0>;
  63. };
  64. UIC2: interrupt-controller2 {
  65. compatible = "ibm,uic-405ex","ibm,uic";
  66. interrupt-controller;
  67. cell-index = <2>;
  68. dcr-reg = <0x0e0 0x009>;
  69. #address-cells = <0>;
  70. #size-cells = <0>;
  71. #interrupt-cells = <2>;
  72. interrupts = <0x1c 0x4 0x1d 0x4>; /* cascade */
  73. interrupt-parent = <&UIC0>;
  74. };
  75. CPM0: cpm {
  76. compatible = "ibm,cpm";
  77. dcr-access-method = "native";
  78. dcr-reg = <0x0b0 0x003>;
  79. unused-units = <0x00000000>;
  80. idle-doze = <0x02000000>;
  81. standby = <0xe3e74800>;
  82. };
  83. plb {
  84. compatible = "ibm,plb-405ex", "ibm,plb4";
  85. #address-cells = <1>;
  86. #size-cells = <1>;
  87. ranges;
  88. clock-frequency = <0>; /* Filled in by U-Boot */
  89. SDRAM0: memory-controller {
  90. compatible = "ibm,sdram-405ex", "ibm,sdram-4xx-ddr2";
  91. dcr-reg = <0x010 0x002>;
  92. interrupt-parent = <&UIC2>;
  93. interrupts = <0x5 0x4 /* ECC DED Error */
  94. 0x6 0x4>; /* ECC SEC Error */
  95. };
  96. CRYPTO: crypto@ef700000 {
  97. compatible = "amcc,ppc405ex-crypto", "amcc,ppc4xx-crypto";
  98. reg = <0xef700000 0x80400>;
  99. interrupt-parent = <&UIC0>;
  100. interrupts = <0x17 0x2>;
  101. };
  102. MAL0: mcmal {
  103. compatible = "ibm,mcmal-405ex", "ibm,mcmal2";
  104. dcr-reg = <0x180 0x062>;
  105. num-tx-chans = <2>;
  106. num-rx-chans = <2>;
  107. interrupt-parent = <&MAL0>;
  108. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  109. #interrupt-cells = <1>;
  110. #address-cells = <0>;
  111. #size-cells = <0>;
  112. interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
  113. /*RXEOB*/ 0x1 &UIC0 0xb 0x4
  114. /*SERR*/ 0x2 &UIC1 0x0 0x4
  115. /*TXDE*/ 0x3 &UIC1 0x1 0x4
  116. /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
  117. interrupt-map-mask = <0xffffffff>;
  118. };
  119. POB0: opb {
  120. compatible = "ibm,opb-405ex", "ibm,opb";
  121. #address-cells = <1>;
  122. #size-cells = <1>;
  123. ranges = <0x80000000 0x80000000 0x10000000
  124. 0xef600000 0xef600000 0x00a00000
  125. 0xf0000000 0xf0000000 0x10000000>;
  126. dcr-reg = <0x0a0 0x005>;
  127. clock-frequency = <0>; /* Filled in by U-Boot */
  128. EBC0: ebc {
  129. compatible = "ibm,ebc-405ex", "ibm,ebc";
  130. dcr-reg = <0x012 0x002>;
  131. #address-cells = <2>;
  132. #size-cells = <1>;
  133. clock-frequency = <0>; /* Filled in by U-Boot */
  134. /* ranges property is supplied by U-Boot */
  135. interrupts = <0x5 0x1>;
  136. interrupt-parent = <&UIC1>;
  137. nor_flash@0,0 {
  138. compatible = "amd,s29gl512n", "cfi-flash";
  139. bank-width = <2>;
  140. reg = <0x00000000 0x00000000 0x04000000>;
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. partition@0 {
  144. label = "kernel";
  145. reg = <0x00000000 0x001e0000>;
  146. };
  147. partition@1e0000 {
  148. label = "dtb";
  149. reg = <0x001e0000 0x00020000>;
  150. };
  151. partition@200000 {
  152. label = "root";
  153. reg = <0x00200000 0x00200000>;
  154. };
  155. partition@400000 {
  156. label = "user";
  157. reg = <0x00400000 0x03b60000>;
  158. };
  159. partition@3f60000 {
  160. label = "env";
  161. reg = <0x03f60000 0x00040000>;
  162. };
  163. partition@3fa0000 {
  164. label = "u-boot";
  165. reg = <0x03fa0000 0x00060000>;
  166. };
  167. };
  168. ndfc@1,0 {
  169. compatible = "ibm,ndfc";
  170. reg = <0x00000001 0x00000000 0x00002000>;
  171. ccr = <0x00001000>;
  172. bank-settings = <0x80002222>;
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. nand {
  176. #address-cells = <1>;
  177. #size-cells = <1>;
  178. partition@0 {
  179. label = "u-boot";
  180. reg = <0x00000000 0x00100000>;
  181. };
  182. partition@100000 {
  183. label = "user";
  184. reg = <0x00000000 0x03f00000>;
  185. };
  186. };
  187. };
  188. };
  189. UART0: serial@ef600200 {
  190. device_type = "serial";
  191. compatible = "ns16550";
  192. reg = <0xef600200 0x00000008>;
  193. virtual-reg = <0xef600200>;
  194. clock-frequency = <0>; /* Filled in by U-Boot */
  195. current-speed = <0>;
  196. interrupt-parent = <&UIC0>;
  197. interrupts = <0x1a 0x4>;
  198. };
  199. UART1: serial@ef600300 {
  200. device_type = "serial";
  201. compatible = "ns16550";
  202. reg = <0xef600300 0x00000008>;
  203. virtual-reg = <0xef600300>;
  204. clock-frequency = <0>; /* Filled in by U-Boot */
  205. current-speed = <0>;
  206. interrupt-parent = <&UIC0>;
  207. interrupts = <0x1 0x4>;
  208. };
  209. IIC0: i2c@ef600400 {
  210. compatible = "ibm,iic-405ex", "ibm,iic";
  211. reg = <0xef600400 0x00000014>;
  212. interrupt-parent = <&UIC0>;
  213. interrupts = <0x2 0x4>;
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. rtc@68 {
  217. compatible = "dallas,ds1338";
  218. reg = <0x68>;
  219. };
  220. dtt@48 {
  221. compatible = "dallas,ds1775";
  222. reg = <0x48>;
  223. };
  224. };
  225. IIC1: i2c@ef600500 {
  226. compatible = "ibm,iic-405ex", "ibm,iic";
  227. reg = <0xef600500 0x00000014>;
  228. interrupt-parent = <&UIC0>;
  229. interrupts = <0x7 0x4>;
  230. };
  231. RGMII0: emac-rgmii@ef600b00 {
  232. compatible = "ibm,rgmii-405ex", "ibm,rgmii";
  233. reg = <0xef600b00 0x00000104>;
  234. has-mdio;
  235. };
  236. EMAC0: ethernet@ef600900 {
  237. linux,network-index = <0x0>;
  238. device_type = "network";
  239. compatible = "ibm,emac-405ex", "ibm,emac4sync";
  240. interrupt-parent = <&EMAC0>;
  241. interrupts = <0x0 0x1>;
  242. #interrupt-cells = <1>;
  243. #address-cells = <0>;
  244. #size-cells = <0>;
  245. interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4
  246. /*Wake*/ 0x1 &UIC1 0x1d 0x4>;
  247. reg = <0xef600900 0x000000c4>;
  248. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  249. mal-device = <&MAL0>;
  250. mal-tx-channel = <0>;
  251. mal-rx-channel = <0>;
  252. cell-index = <0>;
  253. max-frame-size = <9000>;
  254. rx-fifo-size = <4096>;
  255. tx-fifo-size = <2048>;
  256. rx-fifo-size-gige = <16384>;
  257. tx-fifo-size-gige = <16384>;
  258. phy-mode = "rgmii";
  259. phy-map = <0x00000000>;
  260. rgmii-device = <&RGMII0>;
  261. rgmii-channel = <0>;
  262. has-inverted-stacr-oc;
  263. has-new-stacr-staopc;
  264. };
  265. EMAC1: ethernet@ef600a00 {
  266. linux,network-index = <0x1>;
  267. device_type = "network";
  268. compatible = "ibm,emac-405ex", "ibm,emac4sync";
  269. interrupt-parent = <&EMAC1>;
  270. interrupts = <0x0 0x1>;
  271. #interrupt-cells = <1>;
  272. #address-cells = <0>;
  273. #size-cells = <0>;
  274. interrupt-map = </*Status*/ 0x0 &UIC0 0x19 0x4
  275. /*Wake*/ 0x1 &UIC1 0x1f 0x4>;
  276. reg = <0xef600a00 0x000000c4>;
  277. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  278. mal-device = <&MAL0>;
  279. mal-tx-channel = <1>;
  280. mal-rx-channel = <1>;
  281. cell-index = <1>;
  282. max-frame-size = <9000>;
  283. rx-fifo-size = <4096>;
  284. tx-fifo-size = <2048>;
  285. rx-fifo-size-gige = <16384>;
  286. tx-fifo-size-gige = <16384>;
  287. phy-mode = "rgmii";
  288. phy-map = <0x00000000>;
  289. rgmii-device = <&RGMII0>;
  290. rgmii-channel = <1>;
  291. has-inverted-stacr-oc;
  292. has-new-stacr-staopc;
  293. };
  294. };
  295. PCIE0: pciex@0a0000000 {
  296. device_type = "pci";
  297. #interrupt-cells = <1>;
  298. #size-cells = <2>;
  299. #address-cells = <3>;
  300. compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
  301. primary;
  302. port = <0x0>; /* port number */
  303. reg = <0xa0000000 0x20000000 /* Config space access */
  304. 0xef000000 0x00001000>; /* Registers */
  305. dcr-reg = <0x040 0x020>;
  306. sdr-base = <0x400>;
  307. /* Outbound ranges, one memory and one IO,
  308. * later cannot be changed
  309. */
  310. ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000
  311. 0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>;
  312. /* Inbound 2GB range starting at 0 */
  313. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  314. /* This drives busses 0x00 to 0x3f */
  315. bus-range = <0x0 0x3f>;
  316. /* Legacy interrupts (note the weird polarity, the bridge seems
  317. * to invert PCIe legacy interrupts).
  318. * We are de-swizzling here because the numbers are actually for
  319. * port of the root complex virtual P2P bridge. But I want
  320. * to avoid putting a node for it in the tree, so the numbers
  321. * below are basically de-swizzled numbers.
  322. * The real slot is on idsel 0, so the swizzling is 1:1
  323. */
  324. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  325. interrupt-map = <
  326. 0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */
  327. 0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */
  328. 0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */
  329. 0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>;
  330. };
  331. PCIE1: pciex@0c0000000 {
  332. device_type = "pci";
  333. #interrupt-cells = <1>;
  334. #size-cells = <2>;
  335. #address-cells = <3>;
  336. compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
  337. primary;
  338. port = <0x1>; /* port number */
  339. reg = <0xc0000000 0x20000000 /* Config space access */
  340. 0xef001000 0x00001000>; /* Registers */
  341. dcr-reg = <0x060 0x020>;
  342. sdr-base = <0x440>;
  343. /* Outbound ranges, one memory and one IO,
  344. * later cannot be changed
  345. */
  346. ranges = <0x02000000 0x00000000 0x80000000 0x98000000 0x00000000 0x08000000
  347. 0x01000000 0x00000000 0x00000000 0xe0010000 0x00000000 0x00010000>;
  348. /* Inbound 2GB range starting at 0 */
  349. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  350. /* This drives busses 0x40 to 0x7f */
  351. bus-range = <0x40 0x7f>;
  352. /* Legacy interrupts (note the weird polarity, the bridge seems
  353. * to invert PCIe legacy interrupts).
  354. * We are de-swizzling here because the numbers are actually for
  355. * port of the root complex virtual P2P bridge. But I want
  356. * to avoid putting a node for it in the tree, so the numbers
  357. * below are basically de-swizzled numbers.
  358. * The real slot is on idsel 0, so the swizzling is 1:1
  359. */
  360. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  361. interrupt-map = <
  362. 0x0 0x0 0x0 0x1 &UIC2 0xb 0x4 /* swizzled int A */
  363. 0x0 0x0 0x0 0x2 &UIC2 0xc 0x4 /* swizzled int B */
  364. 0x0 0x0 0x0 0x3 &UIC2 0xd 0x4 /* swizzled int C */
  365. 0x0 0x0 0x0 0x4 &UIC2 0xe 0x4 /* swizzled int D */>;
  366. };
  367. MSI: ppc4xx-msi@C10000000 {
  368. compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
  369. reg = <0xEF620000 0x100>;
  370. sdr-base = <0x4B0>;
  371. msi-data = <0x00000000>;
  372. msi-mask = <0x44440000>;
  373. interrupt-count = <12>;
  374. interrupts = <0 1 2 3 4 5 6 7 8 9 0xA 0xB 0xC 0xD>;
  375. interrupt-parent = <&UIC2>;
  376. #interrupt-cells = <1>;
  377. #address-cells = <0>;
  378. #size-cells = <0>;
  379. interrupt-map = <0 &UIC2 0x10 1
  380. 1 &UIC2 0x11 1
  381. 2 &UIC2 0x12 1
  382. 2 &UIC2 0x13 1
  383. 2 &UIC2 0x14 1
  384. 2 &UIC2 0x15 1
  385. 2 &UIC2 0x16 1
  386. 2 &UIC2 0x17 1
  387. 2 &UIC2 0x18 1
  388. 2 &UIC2 0x19 1
  389. 2 &UIC2 0x1A 1
  390. 2 &UIC2 0x1B 1
  391. 2 &UIC2 0x1C 1
  392. 3 &UIC2 0x1D 1>;
  393. };
  394. };
  395. };