taishan.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. /*
  2. * Device Tree Source for IBM/AMCC Taishan
  3. *
  4. * Copyright 2007 IBM Corp.
  5. * Hugh Blemings <hugh@au.ibm.com> based off code by
  6. * Josh Boyer <jwboyer@linux.vnet.ibm.com>, David Gibson <dwg@au1.ibm.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without
  10. * any warranty of any kind, whether express or implied.
  11. */
  12. /dts-v1/;
  13. / {
  14. #address-cells = <2>;
  15. #size-cells = <1>;
  16. model = "amcc,taishan";
  17. compatible = "amcc,taishan";
  18. dcr-parent = <&{/cpus/cpu@0}>;
  19. aliases {
  20. ethernet0 = &EMAC2;
  21. ethernet1 = &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,440GX";
  31. reg = <0x00000000>;
  32. clock-frequency = <800000000>; // 800MHz
  33. timebase-frequency = <0>; // Filled in by zImage
  34. i-cache-line-size = <50>;
  35. d-cache-line-size = <50>;
  36. i-cache-size = <32768>; /* 32 kB */
  37. d-cache-size = <32768>; /* 32 kB */
  38. dcr-controller;
  39. dcr-access-method = "native";
  40. };
  41. };
  42. memory {
  43. device_type = "memory";
  44. reg = <0x00000000 0x00000000 0x00000000>; // Filled in by zImage
  45. };
  46. UICB0: interrupt-controller-base {
  47. compatible = "ibm,uic-440gx", "ibm,uic";
  48. interrupt-controller;
  49. cell-index = <3>;
  50. dcr-reg = <0x200 0x009>;
  51. #address-cells = <0>;
  52. #size-cells = <0>;
  53. #interrupt-cells = <2>;
  54. };
  55. UIC0: interrupt-controller0 {
  56. compatible = "ibm,uic-440gx", "ibm,uic";
  57. interrupt-controller;
  58. cell-index = <0>;
  59. dcr-reg = <0x0c0 0x009>;
  60. #address-cells = <0>;
  61. #size-cells = <0>;
  62. #interrupt-cells = <2>;
  63. interrupts = <0x1 0x4 0x0 0x4>; /* cascade - first non-critical */
  64. interrupt-parent = <&UICB0>;
  65. };
  66. UIC1: interrupt-controller1 {
  67. compatible = "ibm,uic-440gx", "ibm,uic";
  68. interrupt-controller;
  69. cell-index = <1>;
  70. dcr-reg = <0x0d0 0x009>;
  71. #address-cells = <0>;
  72. #size-cells = <0>;
  73. #interrupt-cells = <2>;
  74. interrupts = <0x3 0x4 0x2 0x4>; /* cascade */
  75. interrupt-parent = <&UICB0>;
  76. };
  77. UIC2: interrupt-controller2 {
  78. compatible = "ibm,uic-440gx", "ibm,uic";
  79. interrupt-controller;
  80. cell-index = <2>; /* was 1 */
  81. dcr-reg = <0x210 0x009>;
  82. #address-cells = <0>;
  83. #size-cells = <0>;
  84. #interrupt-cells = <2>;
  85. interrupts = <0x5 0x4 0x4 0x4>; /* cascade */
  86. interrupt-parent = <&UICB0>;
  87. };
  88. CPC0: cpc {
  89. compatible = "ibm,cpc-440gp";
  90. dcr-reg = <0x0b0 0x003 0x0e0 0x010>;
  91. // FIXME: anything else?
  92. };
  93. L2C0: l2c {
  94. compatible = "ibm,l2-cache-440gx", "ibm,l2-cache";
  95. dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
  96. 0x030 0x008>; /* L2 cache DCR's */
  97. cache-line-size = <32>; /* 32 bytes */
  98. cache-size = <262144>; /* L2, 256K */
  99. interrupt-parent = <&UIC2>;
  100. interrupts = <0x17 0x1>;
  101. };
  102. plb {
  103. compatible = "ibm,plb-440gx", "ibm,plb4";
  104. #address-cells = <2>;
  105. #size-cells = <1>;
  106. ranges;
  107. clock-frequency = <160000000>; // 160MHz
  108. SDRAM0: memory-controller {
  109. compatible = "ibm,sdram-440gp";
  110. dcr-reg = <0x010 0x002>;
  111. // FIXME: anything else?
  112. };
  113. SRAM0: sram {
  114. compatible = "ibm,sram-440gp";
  115. dcr-reg = <0x020 0x008 0x00a 0x001>;
  116. };
  117. DMA0: dma {
  118. // FIXME: ???
  119. compatible = "ibm,dma-440gp";
  120. dcr-reg = <0x100 0x027>;
  121. };
  122. MAL0: mcmal {
  123. compatible = "ibm,mcmal-440gx", "ibm,mcmal2";
  124. dcr-reg = <0x180 0x062>;
  125. num-tx-chans = <4>;
  126. num-rx-chans = <4>;
  127. interrupt-parent = <&MAL0>;
  128. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  129. #interrupt-cells = <1>;
  130. #address-cells = <0>;
  131. #size-cells = <0>;
  132. interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
  133. /*RXEOB*/ 0x1 &UIC0 0xb 0x4
  134. /*SERR*/ 0x2 &UIC1 0x0 0x4
  135. /*TXDE*/ 0x3 &UIC1 0x1 0x4
  136. /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
  137. interrupt-map-mask = <0xffffffff>;
  138. };
  139. POB0: opb {
  140. compatible = "ibm,opb-440gx", "ibm,opb";
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. /* Wish there was a nicer way of specifying a full 32-bit
  144. range */
  145. ranges = <0x00000000 0x00000001 0x00000000 0x80000000
  146. 0x80000000 0x00000001 0x80000000 0x80000000>;
  147. dcr-reg = <0x090 0x00b>;
  148. interrupt-parent = <&UIC1>;
  149. interrupts = <0x7 0x4>;
  150. clock-frequency = <80000000>; // 80MHz
  151. EBC0: ebc {
  152. compatible = "ibm,ebc-440gx", "ibm,ebc";
  153. dcr-reg = <0x012 0x002>;
  154. #address-cells = <2>;
  155. #size-cells = <1>;
  156. clock-frequency = <80000000>; // 80MHz
  157. /* ranges property is supplied by zImage
  158. * based on firmware's configuration of the
  159. * EBC bridge */
  160. interrupts = <0x5 0x4>;
  161. interrupt-parent = <&UIC1>;
  162. nor_flash@0,0 {
  163. compatible = "cfi-flash";
  164. bank-width = <4>;
  165. device-width = <2>;
  166. reg = <0x0 0x0 0x4000000>;
  167. #address-cells = <1>;
  168. #size-cells = <1>;
  169. partition@0 {
  170. label = "kernel";
  171. reg = <0x0 0x180000>;
  172. };
  173. partition@180000 {
  174. label = "root";
  175. reg = <0x180000 0x200000>;
  176. };
  177. partition@380000 {
  178. label = "user";
  179. reg = <0x380000 0x3bc0000>;
  180. };
  181. partition@3f40000 {
  182. label = "env";
  183. reg = <0x3f40000 0x80000>;
  184. };
  185. partition@3fc0000 {
  186. label = "u-boot";
  187. reg = <0x3fc0000 0x40000>;
  188. };
  189. };
  190. };
  191. UART0: serial@40000200 {
  192. device_type = "serial";
  193. compatible = "ns16550";
  194. reg = <0x40000200 0x00000008>;
  195. virtual-reg = <0xe0000200>;
  196. clock-frequency = <11059200>;
  197. current-speed = <115200>; /* 115200 */
  198. interrupt-parent = <&UIC0>;
  199. interrupts = <0x0 0x4>;
  200. };
  201. UART1: serial@40000300 {
  202. device_type = "serial";
  203. compatible = "ns16550";
  204. reg = <0x40000300 0x00000008>;
  205. virtual-reg = <0xe0000300>;
  206. clock-frequency = <11059200>;
  207. current-speed = <115200>; /* 115200 */
  208. interrupt-parent = <&UIC0>;
  209. interrupts = <0x1 0x4>;
  210. };
  211. IIC0: i2c@40000400 {
  212. /* FIXME */
  213. compatible = "ibm,iic-440gp", "ibm,iic";
  214. reg = <0x40000400 0x00000014>;
  215. interrupt-parent = <&UIC0>;
  216. interrupts = <0x2 0x4>;
  217. };
  218. IIC1: i2c@40000500 {
  219. /* FIXME */
  220. compatible = "ibm,iic-440gp", "ibm,iic";
  221. reg = <0x40000500 0x00000014>;
  222. interrupt-parent = <&UIC0>;
  223. interrupts = <0x3 0x4>;
  224. };
  225. GPIO0: gpio@40000700 {
  226. /* FIXME */
  227. compatible = "ibm,gpio-440gp";
  228. reg = <0x40000700 0x00000020>;
  229. };
  230. ZMII0: emac-zmii@40000780 {
  231. compatible = "ibm,zmii-440gx", "ibm,zmii";
  232. reg = <0x40000780 0x0000000c>;
  233. };
  234. RGMII0: emac-rgmii@40000790 {
  235. compatible = "ibm,rgmii";
  236. reg = <0x40000790 0x00000008>;
  237. };
  238. TAH0: emac-tah@40000b50 {
  239. compatible = "ibm,tah-440gx", "ibm,tah";
  240. reg = <0x40000b50 0x00000030>;
  241. };
  242. TAH1: emac-tah@40000d50 {
  243. compatible = "ibm,tah-440gx", "ibm,tah";
  244. reg = <0x40000d50 0x00000030>;
  245. };
  246. EMAC0: ethernet@40000800 {
  247. unused = <0x1>;
  248. device_type = "network";
  249. compatible = "ibm,emac-440gx", "ibm,emac4";
  250. interrupt-parent = <&UIC1>;
  251. interrupts = <0x1c 0x4 0x1d 0x4>;
  252. reg = <0x40000800 0x00000074>;
  253. local-mac-address = [000000000000]; // Filled in by zImage
  254. mal-device = <&MAL0>;
  255. mal-tx-channel = <0>;
  256. mal-rx-channel = <0>;
  257. cell-index = <0>;
  258. max-frame-size = <1500>;
  259. rx-fifo-size = <4096>;
  260. tx-fifo-size = <2048>;
  261. phy-mode = "rmii";
  262. phy-map = <0x00000001>;
  263. zmii-device = <&ZMII0>;
  264. zmii-channel = <0>;
  265. };
  266. EMAC1: ethernet@40000900 {
  267. unused = <0x1>;
  268. device_type = "network";
  269. compatible = "ibm,emac-440gx", "ibm,emac4";
  270. interrupt-parent = <&UIC1>;
  271. interrupts = <0x1e 0x4 0x1f 0x4>;
  272. reg = <0x40000900 0x00000074>;
  273. local-mac-address = [000000000000]; // Filled in by zImage
  274. mal-device = <&MAL0>;
  275. mal-tx-channel = <1>;
  276. mal-rx-channel = <1>;
  277. cell-index = <1>;
  278. max-frame-size = <1500>;
  279. rx-fifo-size = <4096>;
  280. tx-fifo-size = <2048>;
  281. phy-mode = "rmii";
  282. phy-map = <0x00000001>;
  283. zmii-device = <&ZMII0>;
  284. zmii-channel = <1>;
  285. };
  286. EMAC2: ethernet@40000c00 {
  287. device_type = "network";
  288. compatible = "ibm,emac-440gx", "ibm,emac4";
  289. interrupt-parent = <&UIC2>;
  290. interrupts = <0x0 0x4 0x1 0x4>;
  291. reg = <0x40000c00 0x00000074>;
  292. local-mac-address = [000000000000]; // Filled in by zImage
  293. mal-device = <&MAL0>;
  294. mal-tx-channel = <2>;
  295. mal-rx-channel = <2>;
  296. cell-index = <2>;
  297. max-frame-size = <9000>;
  298. rx-fifo-size = <4096>;
  299. tx-fifo-size = <2048>;
  300. phy-mode = "rgmii";
  301. phy-address = <1>;
  302. rgmii-device = <&RGMII0>;
  303. rgmii-channel = <0>;
  304. zmii-device = <&ZMII0>;
  305. zmii-channel = <2>;
  306. tah-device = <&TAH0>;
  307. tah-channel = <0>;
  308. };
  309. EMAC3: ethernet@40000e00 {
  310. device_type = "network";
  311. compatible = "ibm,emac-440gx", "ibm,emac4";
  312. interrupt-parent = <&UIC2>;
  313. interrupts = <0x2 0x4 0x3 0x4>;
  314. reg = <0x40000e00 0x00000074>;
  315. local-mac-address = [000000000000]; // Filled in by zImage
  316. mal-device = <&MAL0>;
  317. mal-tx-channel = <3>;
  318. mal-rx-channel = <3>;
  319. cell-index = <3>;
  320. max-frame-size = <9000>;
  321. rx-fifo-size = <4096>;
  322. tx-fifo-size = <2048>;
  323. phy-mode = "rgmii";
  324. phy-address = <3>;
  325. rgmii-device = <&RGMII0>;
  326. rgmii-channel = <1>;
  327. zmii-device = <&ZMII0>;
  328. zmii-channel = <3>;
  329. tah-device = <&TAH1>;
  330. tah-channel = <0>;
  331. };
  332. GPT0: gpt@40000a00 {
  333. /* FIXME */
  334. reg = <0x40000a00 0x000000d4>;
  335. interrupt-parent = <&UIC0>;
  336. interrupts = <0x12 0x4 0x13 0x4 0x14 0x4 0x15 0x4 0x16 0x4>;
  337. };
  338. };
  339. PCIX0: pci@20ec00000 {
  340. device_type = "pci";
  341. #interrupt-cells = <1>;
  342. #size-cells = <2>;
  343. #address-cells = <3>;
  344. compatible = "ibm,plb440gp-pcix", "ibm,plb-pcix";
  345. primary;
  346. large-inbound-windows;
  347. enable-msi-hole;
  348. reg = <0x00000002 0x0ec00000 0x00000008 /* Config space access */
  349. 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
  350. 0x00000002 0x0ed00000 0x00000004 /* Special cycles */
  351. 0x00000002 0x0ec80000 0x00000100 /* Internal registers */
  352. 0x00000002 0x0ec80100 0x000000fc>; /* Internal messaging registers */
  353. /* Outbound ranges, one memory and one IO,
  354. * later cannot be changed
  355. */
  356. ranges = <0x02000000 0x00000000 0x80000000 0x00000003 0x80000000 0x00000000 0x80000000
  357. 0x01000000 0x00000000 0x00000000 0x00000002 0x08000000 0x00000000 0x00010000>;
  358. /* Inbound 2GB range starting at 0 */
  359. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  360. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  361. interrupt-map = <
  362. /* IDSEL 1 */
  363. 0x800 0x0 0x0 0x1 &UIC0 0x17 0x8
  364. 0x800 0x0 0x0 0x2 &UIC0 0x18 0x8
  365. 0x800 0x0 0x0 0x3 &UIC0 0x19 0x8
  366. 0x800 0x0 0x0 0x4 &UIC0 0x1a 0x8
  367. /* IDSEL 2 */
  368. 0x1000 0x0 0x0 0x1 &UIC0 0x18 0x8
  369. 0x1000 0x0 0x0 0x2 &UIC0 0x19 0x8
  370. 0x1000 0x0 0x0 0x3 &UIC0 0x1a 0x8
  371. 0x1000 0x0 0x0 0x4 &UIC0 0x17 0x8
  372. >;
  373. };
  374. };
  375. chosen {
  376. linux,stdout-path = "/plb/opb/serial@40000300";
  377. };
  378. };