eiger.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. /*
  2. * Device Tree Source for AMCC (AppliedMicro) Eiger(460SX)
  3. *
  4. * Copyright 2009 AMCC (AppliedMicro) <ttnguyen@amcc.com>
  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 = <2>;
  13. #size-cells = <1>;
  14. model = "amcc,eiger";
  15. compatible = "amcc,eiger";
  16. dcr-parent = <&{/cpus/cpu@0}>;
  17. aliases {
  18. ethernet0 = &EMAC0;
  19. ethernet1 = &EMAC1;
  20. ethernet2 = &EMAC2;
  21. ethernet3 = &EMAC3;
  22. serial0 = &UART0;
  23. serial1 = &UART1;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. cpu@0 {
  29. device_type = "cpu";
  30. model = "PowerPC,460SX";
  31. reg = <0x00000000>;
  32. clock-frequency = <0>; /* Filled in by U-Boot */
  33. timebase-frequency = <0>; /* Filled in by U-Boot */
  34. i-cache-line-size = <32>;
  35. d-cache-line-size = <32>;
  36. i-cache-size = <32768>;
  37. d-cache-size = <32768>;
  38. dcr-controller;
  39. dcr-access-method = "native";
  40. };
  41. };
  42. memory {
  43. device_type = "memory";
  44. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  45. };
  46. UIC0: interrupt-controller0 {
  47. compatible = "ibm,uic-460sx","ibm,uic";
  48. interrupt-controller;
  49. cell-index = <0>;
  50. dcr-reg = <0x0c0 0x009>;
  51. #address-cells = <0>;
  52. #size-cells = <0>;
  53. #interrupt-cells = <2>;
  54. };
  55. UIC1: interrupt-controller1 {
  56. compatible = "ibm,uic-460sx","ibm,uic";
  57. interrupt-controller;
  58. cell-index = <1>;
  59. dcr-reg = <0x0d0 0x009>;
  60. #address-cells = <0>;
  61. #size-cells = <0>;
  62. #interrupt-cells = <2>;
  63. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  64. interrupt-parent = <&UIC0>;
  65. };
  66. UIC2: interrupt-controller2 {
  67. compatible = "ibm,uic-460sx","ibm,uic";
  68. interrupt-controller;
  69. cell-index = <2>;
  70. dcr-reg = <0x0e0 0x009>;
  71. #address-cells = <0>;
  72. #size-cells = <0>;
  73. #interrupt-cells = <2>;
  74. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  75. interrupt-parent = <&UIC0>;
  76. };
  77. UIC3: interrupt-controller3 {
  78. compatible = "ibm,uic-460sx","ibm,uic";
  79. interrupt-controller;
  80. cell-index = <3>;
  81. dcr-reg = <0x0f0 0x009>;
  82. #address-cells = <0>;
  83. #size-cells = <0>;
  84. #interrupt-cells = <2>;
  85. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  86. interrupt-parent = <&UIC0>;
  87. };
  88. SDR0: sdr {
  89. compatible = "ibm,sdr-460sx";
  90. dcr-reg = <0x00e 0x002>;
  91. };
  92. CPR0: cpr {
  93. compatible = "ibm,cpr-460sx";
  94. dcr-reg = <0x00c 0x002>;
  95. };
  96. plb {
  97. compatible = "ibm,plb-460sx", "ibm,plb4";
  98. #address-cells = <2>;
  99. #size-cells = <1>;
  100. ranges;
  101. clock-frequency = <0>; /* Filled in by U-Boot */
  102. SDRAM0: sdram {
  103. compatible = "ibm,sdram-460sx", "ibm,sdram-405gp";
  104. dcr-reg = <0x010 0x002>;
  105. };
  106. MAL0: mcmal {
  107. compatible = "ibm,mcmal-460sx", "ibm,mcmal2";
  108. dcr-reg = <0x180 0x62>;
  109. num-tx-chans = <4>;
  110. num-rx-chans = <32>;
  111. #address-cells = <1>;
  112. #size-cells = <1>;
  113. interrupt-parent = <&UIC1>;
  114. interrupts = < /*TXEOB*/ 0x6 0x4
  115. /*RXEOB*/ 0x7 0x4
  116. /*SERR*/ 0x1 0x4
  117. /*TXDE*/ 0x2 0x4
  118. /*RXDE*/ 0x3 0x4
  119. /*COAL TX0*/ 0x18 0x2
  120. /*COAL TX1*/ 0x19 0x2
  121. /*COAL TX2*/ 0x1a 0x2
  122. /*COAL TX3*/ 0x1b 0x2
  123. /*COAL RX0*/ 0x1c 0x2
  124. /*COAL RX1*/ 0x1d 0x2
  125. /*COAL RX2*/ 0x1e 0x2
  126. /*COAL RX3*/ 0x1f 0x2>;
  127. };
  128. POB0: opb {
  129. compatible = "ibm,opb-460sx", "ibm,opb";
  130. #address-cells = <1>;
  131. #size-cells = <1>;
  132. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  133. clock-frequency = <0>; /* Filled in by U-Boot */
  134. EBC0: ebc {
  135. compatible = "ibm,ebc-460sx", "ibm,ebc";
  136. dcr-reg = <0x012 0x002>;
  137. #address-cells = <2>;
  138. #size-cells = <1>;
  139. clock-frequency = <0>; /* Filled in by U-Boot */
  140. /* ranges property is supplied by U-Boot */
  141. interrupts = <0x6 0x4>;
  142. interrupt-parent = <&UIC1>;
  143. nor_flash@0,0 {
  144. compatible = "amd,s29gl512n", "cfi-flash";
  145. bank-width = <2>;
  146. /* reg property is supplied in by U-Boot */
  147. #address-cells = <1>;
  148. #size-cells = <1>;
  149. partition@0 {
  150. label = "kernel";
  151. reg = <0x00000000 0x001e0000>;
  152. };
  153. partition@1e0000 {
  154. label = "dtb";
  155. reg = <0x001e0000 0x00020000>;
  156. };
  157. partition@200000 {
  158. label = "ramdisk";
  159. reg = <0x00200000 0x01400000>;
  160. };
  161. partition@1600000 {
  162. label = "jffs2";
  163. reg = <0x01600000 0x00400000>;
  164. };
  165. partition@1a00000 {
  166. label = "user";
  167. reg = <0x01a00000 0x02560000>;
  168. };
  169. partition@3f60000 {
  170. label = "env";
  171. reg = <0x03f60000 0x00040000>;
  172. };
  173. partition@3fa0000 {
  174. label = "u-boot";
  175. reg = <0x03fa0000 0x00060000>;
  176. };
  177. };
  178. ndfc@1,0 {
  179. compatible = "ibm,ndfc";
  180. /* reg property is supplied by U-boot */
  181. ccr = <0x00003000>;
  182. bank-settings = <0x80002222>;
  183. #address-cells = <1>;
  184. #size-cells = <1>;
  185. nand {
  186. #address-cells = <1>;
  187. #size-cells = <1>;
  188. partition@0 {
  189. label = "uboot";
  190. reg = <0x00000000 0x00200000>;
  191. };
  192. partition@200000 {
  193. label = "uboot-environment";
  194. reg = <0x00200000 0x00100000>;
  195. };
  196. partition@300000 {
  197. label = "linux";
  198. reg = <0x00300000 0x00300000>;
  199. };
  200. partition@600000 {
  201. label = "root-file-system";
  202. reg = <0x00600000 0x01900000>;
  203. };
  204. partition@1f00000 {
  205. label = "device-tree";
  206. reg = <0x01f00000 0x00020000>;
  207. };
  208. partition@1f20000 {
  209. label = "data";
  210. reg = <0x01f20000 0x060E0000>;
  211. };
  212. };
  213. };
  214. };
  215. UART0: serial@ef600200 {
  216. device_type = "serial";
  217. compatible = "ns16550";
  218. reg = <0xef600200 0x00000008>;
  219. virtual-reg = <0xef600200>;
  220. clock-frequency = <0>; /* Filled in by U-Boot */
  221. current-speed = <0>; /* Filled in by U-Boot */
  222. interrupt-parent = <&UIC0>;
  223. interrupts = <0x0 0x4>;
  224. };
  225. UART1: serial@ef600300 {
  226. device_type = "serial";
  227. compatible = "ns16550";
  228. reg = <0xef600300 0x00000008>;
  229. virtual-reg = <0xef600300>;
  230. clock-frequency = <0>; /* Filled in by U-Boot */
  231. current-speed = <0>; /* Filled in by U-Boot */
  232. interrupt-parent = <&UIC0>;
  233. interrupts = <0x1 0x4>;
  234. };
  235. IIC0: i2c@ef600400 {
  236. compatible = "ibm,iic-460sx", "ibm,iic";
  237. reg = <0xef600400 0x00000014>;
  238. interrupt-parent = <&UIC0>;
  239. interrupts = <0x2 0x4>;
  240. #address-cells = <1>;
  241. #size-cells = <0>;
  242. index = <0>;
  243. };
  244. IIC1: i2c@ef600500 {
  245. compatible = "ibm,iic-460sx", "ibm,iic";
  246. reg = <0xef600500 0x00000014>;
  247. interrupt-parent = <&UIC0>;
  248. interrupts = <0x3 0x4>;
  249. #address-cells = <1>;
  250. #size-cells = <0>;
  251. index = <1>;
  252. };
  253. RGMII0: emac-rgmii@ef600900 {
  254. compatible = "ibm,rgmii-460sx", "ibm,rgmii";
  255. reg = <0xef600900 0x00000008>;
  256. has-mdio;
  257. };
  258. RGMII1: emac-rgmii@ef600920 {
  259. compatible = "ibm,rgmii-460sx", "ibm,rgmii";
  260. reg = <0xef600920 0x00000008>;
  261. has-mdio;
  262. };
  263. TAH0: emac-tah@ef600e50 {
  264. compatible = "ibm,tah-460sx", "ibm,tah";
  265. reg = <0xef600e50 0x00000030>;
  266. };
  267. TAH1: emac-tah@ef600f50 {
  268. compatible = "ibm,tah-460sx", "ibm,tah";
  269. reg = <0xef600f50 0x00000030>;
  270. };
  271. EMAC0: ethernet@ef600a00 {
  272. device_type = "network";
  273. compatible = "ibm,emac-460sx", "ibm,emac4";
  274. interrupt-parent = <&EMAC0>;
  275. interrupts = <0x0 0x1>;
  276. #interrupt-cells = <1>;
  277. #address-cells = <0>;
  278. #size-cells = <0>;
  279. interrupt-map = </*Status*/ 0x0 &UIC0 0x13 0x4
  280. /*Wake*/ 0x1 &UIC2 0x1d 0x4>;
  281. reg = <0xef600a00 0x00000070>;
  282. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  283. mal-device = <&MAL0>;
  284. mal-tx-channel = <0>;
  285. mal-rx-channel = <0>;
  286. cell-index = <0>;
  287. max-frame-size = <9000>;
  288. rx-fifo-size = <4096>;
  289. tx-fifo-size = <2048>;
  290. rx-fifo-size-gige = <16384>;
  291. phy-mode = "rgmii";
  292. phy-map = <0x00000000>;
  293. rgmii-device = <&RGMII0>;
  294. rgmii-channel = <0>;
  295. tah-device = <&TAH0>;
  296. tah-channel = <0>;
  297. has-inverted-stacr-oc;
  298. has-new-stacr-staopc;
  299. };
  300. EMAC1: ethernet@ef600b00 {
  301. device_type = "network";
  302. compatible = "ibm,emac-460sx", "ibm,emac4";
  303. interrupt-parent = <&EMAC1>;
  304. interrupts = <0x0 0x1>;
  305. #interrupt-cells = <1>;
  306. #address-cells = <0>;
  307. #size-cells = <0>;
  308. interrupt-map = </*Status*/ 0x0 &UIC0 0x14 0x4
  309. /*Wake*/ 0x1 &UIC2 0x1d 0x4>;
  310. reg = <0xef600b00 0x00000070>;
  311. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  312. mal-device = <&MAL0>;
  313. mal-tx-channel = <1>;
  314. mal-rx-channel = <8>;
  315. cell-index = <1>;
  316. max-frame-size = <9000>;
  317. rx-fifo-size = <4096>;
  318. tx-fifo-size = <2048>;
  319. rx-fifo-size-gige = <16384>;
  320. phy-mode = "rgmii";
  321. phy-map = <0x00000000>;
  322. rgmii-device = <&RGMII0>;
  323. rgmii-channel = <1>;
  324. tah-device = <&TAH1>;
  325. tah-channel = <1>;
  326. has-inverted-stacr-oc;
  327. has-new-stacr-staopc;
  328. mdio-device = <&EMAC0>;
  329. };
  330. EMAC2: ethernet@ef600c00 {
  331. device_type = "network";
  332. compatible = "ibm,emac-460sx", "ibm,emac4";
  333. interrupt-parent = <&EMAC2>;
  334. interrupts = <0x0 0x1>;
  335. #interrupt-cells = <1>;
  336. #address-cells = <0>;
  337. #size-cells = <0>;
  338. interrupt-map = </*Status*/ 0x0 &UIC0 0x15 0x4
  339. /*Wake*/ 0x1 &UIC2 0x1d 0x4>;
  340. reg = <0xef600c00 0x00000070>;
  341. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  342. mal-device = <&MAL0>;
  343. mal-tx-channel = <2>;
  344. mal-rx-channel = <16>;
  345. cell-index = <2>;
  346. max-frame-size = <9000>;
  347. rx-fifo-size = <4096>;
  348. tx-fifo-size = <2048>;
  349. rx-fifo-size-gige = <16384>;
  350. tx-fifo-size-gige = <16384>; /* emac2&3 only */
  351. phy-mode = "rgmii";
  352. phy-map = <0x00000000>;
  353. rgmii-device = <&RGMII1>;
  354. rgmii-channel = <0>;
  355. has-inverted-stacr-oc;
  356. has-new-stacr-staopc;
  357. mdio-device = <&EMAC0>;
  358. };
  359. EMAC3: ethernet@ef600d00 {
  360. device_type = "network";
  361. compatible = "ibm,emac-460sx", "ibm,emac4";
  362. interrupt-parent = <&EMAC3>;
  363. interrupts = <0x0 0x1>;
  364. #interrupt-cells = <1>;
  365. #address-cells = <0>;
  366. #size-cells = <0>;
  367. interrupt-map = </*Status*/ 0x0 &UIC0 0x16 0x4
  368. /*Wake*/ 0x1 &UIC2 0x1d 0x4>;
  369. reg = <0xef600d00 0x00000070>;
  370. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  371. mal-device = <&MAL0>;
  372. mal-tx-channel = <3>;
  373. mal-rx-channel = <24>;
  374. cell-index = <3>;
  375. max-frame-size = <9000>;
  376. rx-fifo-size = <4096>;
  377. tx-fifo-size = <2048>;
  378. rx-fifo-size-gige = <16384>;
  379. tx-fifo-size-gige = <16384>; /* emac2&3 only */
  380. phy-mode = "rgmii";
  381. phy-map = <0x00000000>;
  382. rgmii-device = <&RGMII1>;
  383. rgmii-channel = <1>;
  384. has-inverted-stacr-oc;
  385. has-new-stacr-staopc;
  386. mdio-device = <&EMAC0>;
  387. };
  388. };
  389. };
  390. chosen {
  391. linux,stdout-path = "/plb/opb/serial@ef600200";
  392. };
  393. };