canyonlands.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. /*
  2. * Device Tree Source for AMCC Canyonlands (460EX)
  3. *
  4. * Copyright 2008 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. / {
  11. #address-cells = <2>;
  12. #size-cells = <1>;
  13. model = "amcc,canyonlands";
  14. compatible = "amcc,canyonlands";
  15. dcr-parent = <&/cpus/cpu@0>;
  16. aliases {
  17. ethernet0 = &EMAC0;
  18. ethernet1 = &EMAC1;
  19. serial0 = &UART0;
  20. serial1 = &UART1;
  21. };
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. cpu@0 {
  26. device_type = "cpu";
  27. model = "PowerPC,460EX";
  28. reg = <0>;
  29. clock-frequency = <0>; /* Filled in by U-Boot */
  30. timebase-frequency = <0>; /* Filled in by U-Boot */
  31. i-cache-line-size = <20>;
  32. d-cache-line-size = <20>;
  33. i-cache-size = <8000>;
  34. d-cache-size = <8000>;
  35. dcr-controller;
  36. dcr-access-method = "native";
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0 0 0>; /* Filled in by U-Boot */
  42. };
  43. UIC0: interrupt-controller0 {
  44. compatible = "ibm,uic-460ex","ibm,uic";
  45. interrupt-controller;
  46. cell-index = <0>;
  47. dcr-reg = <0c0 009>;
  48. #address-cells = <0>;
  49. #size-cells = <0>;
  50. #interrupt-cells = <2>;
  51. };
  52. UIC1: interrupt-controller1 {
  53. compatible = "ibm,uic-460ex","ibm,uic";
  54. interrupt-controller;
  55. cell-index = <1>;
  56. dcr-reg = <0d0 009>;
  57. #address-cells = <0>;
  58. #size-cells = <0>;
  59. #interrupt-cells = <2>;
  60. interrupts = <1e 4 1f 4>; /* cascade */
  61. interrupt-parent = <&UIC0>;
  62. };
  63. UIC2: interrupt-controller2 {
  64. compatible = "ibm,uic-460ex","ibm,uic";
  65. interrupt-controller;
  66. cell-index = <2>;
  67. dcr-reg = <0e0 009>;
  68. #address-cells = <0>;
  69. #size-cells = <0>;
  70. #interrupt-cells = <2>;
  71. interrupts = <a 4 b 4>; /* cascade */
  72. interrupt-parent = <&UIC0>;
  73. };
  74. UIC3: interrupt-controller3 {
  75. compatible = "ibm,uic-460ex","ibm,uic";
  76. interrupt-controller;
  77. cell-index = <3>;
  78. dcr-reg = <0f0 009>;
  79. #address-cells = <0>;
  80. #size-cells = <0>;
  81. #interrupt-cells = <2>;
  82. interrupts = <10 4 11 4>; /* cascade */
  83. interrupt-parent = <&UIC0>;
  84. };
  85. SDR0: sdr {
  86. compatible = "ibm,sdr-460ex";
  87. dcr-reg = <00e 002>;
  88. };
  89. CPR0: cpr {
  90. compatible = "ibm,cpr-460ex";
  91. dcr-reg = <00c 002>;
  92. };
  93. plb {
  94. compatible = "ibm,plb-460ex", "ibm,plb4";
  95. #address-cells = <2>;
  96. #size-cells = <1>;
  97. ranges;
  98. clock-frequency = <0>; /* Filled in by U-Boot */
  99. SDRAM0: sdram {
  100. compatible = "ibm,sdram-460ex", "ibm,sdram-405gp";
  101. dcr-reg = <010 2>;
  102. };
  103. MAL0: mcmal {
  104. compatible = "ibm,mcmal-460ex", "ibm,mcmal2";
  105. dcr-reg = <180 62>;
  106. num-tx-chans = <2>;
  107. num-rx-chans = <10>;
  108. #address-cells = <0>;
  109. #size-cells = <0>;
  110. interrupt-parent = <&UIC2>;
  111. interrupts = < /*TXEOB*/ 6 4
  112. /*RXEOB*/ 7 4
  113. /*SERR*/ 3 4
  114. /*TXDE*/ 4 4
  115. /*RXDE*/ 5 4>;
  116. };
  117. POB0: opb {
  118. compatible = "ibm,opb-460ex", "ibm,opb";
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. ranges = <b0000000 4 b0000000 50000000>;
  122. clock-frequency = <0>; /* Filled in by U-Boot */
  123. EBC0: ebc {
  124. compatible = "ibm,ebc-460ex", "ibm,ebc";
  125. dcr-reg = <012 2>;
  126. #address-cells = <2>;
  127. #size-cells = <1>;
  128. clock-frequency = <0>; /* Filled in by U-Boot */
  129. /* ranges property is supplied by U-Boot */
  130. interrupts = <6 4>;
  131. interrupt-parent = <&UIC1>;
  132. nor_flash@0,0 {
  133. compatible = "amd,s29gl512n", "cfi-flash";
  134. bank-width = <2>;
  135. reg = <0 000000 4000000>;
  136. #address-cells = <1>;
  137. #size-cells = <1>;
  138. partition@0 {
  139. label = "kernel";
  140. reg = <0 1e0000>;
  141. };
  142. partition@1e0000 {
  143. label = "dtb";
  144. reg = <1e0000 20000>;
  145. };
  146. partition@200000 {
  147. label = "ramdisk";
  148. reg = <200000 1400000>;
  149. };
  150. partition@1600000 {
  151. label = "jffs2";
  152. reg = <1600000 400000>;
  153. };
  154. partition@1a00000 {
  155. label = "user";
  156. reg = <1a00000 2560000>;
  157. };
  158. partition@3f60000 {
  159. label = "env";
  160. reg = <3f60000 40000>;
  161. };
  162. partition@3fa0000 {
  163. label = "u-boot";
  164. reg = <3fa0000 60000>;
  165. };
  166. };
  167. };
  168. UART0: serial@ef600300 {
  169. device_type = "serial";
  170. compatible = "ns16550";
  171. reg = <ef600300 8>;
  172. virtual-reg = <ef600300>;
  173. clock-frequency = <0>; /* Filled in by U-Boot */
  174. current-speed = <0>; /* Filled in by U-Boot */
  175. interrupt-parent = <&UIC1>;
  176. interrupts = <1 4>;
  177. };
  178. UART1: serial@ef600400 {
  179. device_type = "serial";
  180. compatible = "ns16550";
  181. reg = <ef600400 8>;
  182. virtual-reg = <ef600400>;
  183. clock-frequency = <0>; /* Filled in by U-Boot */
  184. current-speed = <0>; /* Filled in by U-Boot */
  185. interrupt-parent = <&UIC0>;
  186. interrupts = <1 4>;
  187. };
  188. UART2: serial@ef600500 {
  189. device_type = "serial";
  190. compatible = "ns16550";
  191. reg = <ef600500 8>;
  192. virtual-reg = <ef600500>;
  193. clock-frequency = <0>; /* Filled in by U-Boot */
  194. current-speed = <0>; /* Filled in by U-Boot */
  195. interrupt-parent = <&UIC1>;
  196. interrupts = <1d 4>;
  197. };
  198. UART3: serial@ef600600 {
  199. device_type = "serial";
  200. compatible = "ns16550";
  201. reg = <ef600600 8>;
  202. virtual-reg = <ef600600>;
  203. clock-frequency = <0>; /* Filled in by U-Boot */
  204. current-speed = <0>; /* Filled in by U-Boot */
  205. interrupt-parent = <&UIC1>;
  206. interrupts = <1e 4>;
  207. };
  208. IIC0: i2c@ef600700 {
  209. compatible = "ibm,iic-460ex", "ibm,iic";
  210. reg = <ef600700 14>;
  211. interrupt-parent = <&UIC0>;
  212. interrupts = <2 4>;
  213. };
  214. IIC1: i2c@ef600800 {
  215. compatible = "ibm,iic-460ex", "ibm,iic";
  216. reg = <ef600800 14>;
  217. interrupt-parent = <&UIC0>;
  218. interrupts = <3 4>;
  219. };
  220. ZMII0: emac-zmii@ef600d00 {
  221. compatible = "ibm,zmii-460ex", "ibm,zmii";
  222. reg = <ef600d00 c>;
  223. };
  224. RGMII0: emac-rgmii@ef601500 {
  225. compatible = "ibm,rgmii-460ex", "ibm,rgmii";
  226. reg = <ef601500 8>;
  227. has-mdio;
  228. };
  229. TAH0: emac-tah@ef601350 {
  230. compatible = "ibm,tah-460ex", "ibm,tah";
  231. reg = <ef601350 30>;
  232. };
  233. TAH1: emac-tah@ef601450 {
  234. compatible = "ibm,tah-460ex", "ibm,tah";
  235. reg = <ef601450 30>;
  236. };
  237. EMAC0: ethernet@ef600e00 {
  238. device_type = "network";
  239. compatible = "ibm,emac-460ex", "ibm,emac4";
  240. interrupt-parent = <&EMAC0>;
  241. interrupts = <0 1>;
  242. #interrupt-cells = <1>;
  243. #address-cells = <0>;
  244. #size-cells = <0>;
  245. interrupt-map = </*Status*/ 0 &UIC2 10 4
  246. /*Wake*/ 1 &UIC2 14 4>;
  247. reg = <ef600e00 70>;
  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 = <2328>;
  254. rx-fifo-size = <1000>;
  255. tx-fifo-size = <800>;
  256. phy-mode = "rgmii";
  257. phy-map = <00000000>;
  258. rgmii-device = <&RGMII0>;
  259. rgmii-channel = <0>;
  260. tah-device = <&TAH0>;
  261. tah-channel = <0>;
  262. has-inverted-stacr-oc;
  263. has-new-stacr-staopc;
  264. };
  265. EMAC1: ethernet@ef600f00 {
  266. device_type = "network";
  267. compatible = "ibm,emac-460ex", "ibm,emac4";
  268. interrupt-parent = <&EMAC1>;
  269. interrupts = <0 1>;
  270. #interrupt-cells = <1>;
  271. #address-cells = <0>;
  272. #size-cells = <0>;
  273. interrupt-map = </*Status*/ 0 &UIC2 11 4
  274. /*Wake*/ 1 &UIC2 15 4>;
  275. reg = <ef600f00 70>;
  276. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  277. mal-device = <&MAL0>;
  278. mal-tx-channel = <1>;
  279. mal-rx-channel = <8>;
  280. cell-index = <1>;
  281. max-frame-size = <2328>;
  282. rx-fifo-size = <1000>;
  283. tx-fifo-size = <800>;
  284. phy-mode = "rgmii";
  285. phy-map = <00000000>;
  286. rgmii-device = <&RGMII0>;
  287. rgmii-channel = <1>;
  288. tah-device = <&TAH1>;
  289. tah-channel = <1>;
  290. has-inverted-stacr-oc;
  291. has-new-stacr-staopc;
  292. mdio-device = <&EMAC0>;
  293. };
  294. };
  295. PCIX0: pci@c0ec00000 {
  296. device_type = "pci";
  297. #interrupt-cells = <1>;
  298. #size-cells = <2>;
  299. #address-cells = <3>;
  300. compatible = "ibm,plb-pcix-460ex", "ibm,plb-pcix";
  301. primary;
  302. large-inbound-windows;
  303. enable-msi-hole;
  304. reg = <c 0ec00000 8 /* Config space access */
  305. 0 0 0 /* no IACK cycles */
  306. c 0ed00000 4 /* Special cycles */
  307. c 0ec80000 100 /* Internal registers */
  308. c 0ec80100 fc>; /* Internal messaging registers */
  309. /* Outbound ranges, one memory and one IO,
  310. * later cannot be changed
  311. */
  312. ranges = <02000000 0 80000000 0000000d 80000000 0 80000000
  313. 01000000 0 00000000 0000000c 08000000 0 00010000>;
  314. /* Inbound 2GB range starting at 0 */
  315. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  316. /* This drives busses 0 to 0x3f */
  317. bus-range = <0 3f>;
  318. /* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
  319. interrupt-map-mask = <0000 0 0 0>;
  320. interrupt-map = < 0000 0 0 0 &UIC1 0 8 >;
  321. };
  322. PCIE0: pciex@d00000000 {
  323. device_type = "pci";
  324. #interrupt-cells = <1>;
  325. #size-cells = <2>;
  326. #address-cells = <3>;
  327. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  328. primary;
  329. port = <0>; /* port number */
  330. reg = <d 00000000 20000000 /* Config space access */
  331. c 08010000 00001000>; /* Registers */
  332. dcr-reg = <100 020>;
  333. sdr-base = <300>;
  334. /* Outbound ranges, one memory and one IO,
  335. * later cannot be changed
  336. */
  337. ranges = <02000000 0 80000000 0000000e 00000000 0 80000000
  338. 01000000 0 00000000 0000000f 80000000 0 00010000>;
  339. /* Inbound 2GB range starting at 0 */
  340. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  341. /* This drives busses 40 to 0x7f */
  342. bus-range = <40 7f>;
  343. /* Legacy interrupts (note the weird polarity, the bridge seems
  344. * to invert PCIe legacy interrupts).
  345. * We are de-swizzling here because the numbers are actually for
  346. * port of the root complex virtual P2P bridge. But I want
  347. * to avoid putting a node for it in the tree, so the numbers
  348. * below are basically de-swizzled numbers.
  349. * The real slot is on idsel 0, so the swizzling is 1:1
  350. */
  351. interrupt-map-mask = <0000 0 0 7>;
  352. interrupt-map = <
  353. 0000 0 0 1 &UIC3 c 4 /* swizzled int A */
  354. 0000 0 0 2 &UIC3 d 4 /* swizzled int B */
  355. 0000 0 0 3 &UIC3 e 4 /* swizzled int C */
  356. 0000 0 0 4 &UIC3 f 4 /* swizzled int D */>;
  357. };
  358. PCIE1: pciex@d20000000 {
  359. device_type = "pci";
  360. #interrupt-cells = <1>;
  361. #size-cells = <2>;
  362. #address-cells = <3>;
  363. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  364. primary;
  365. port = <1>; /* port number */
  366. reg = <d 20000000 20000000 /* Config space access */
  367. c 08011000 00001000>; /* Registers */
  368. dcr-reg = <120 020>;
  369. sdr-base = <340>;
  370. /* Outbound ranges, one memory and one IO,
  371. * later cannot be changed
  372. */
  373. ranges = <02000000 0 80000000 0000000e 80000000 0 80000000
  374. 01000000 0 00000000 0000000f 80010000 0 00010000>;
  375. /* Inbound 2GB range starting at 0 */
  376. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  377. /* This drives busses 80 to 0xbf */
  378. bus-range = <80 bf>;
  379. /* Legacy interrupts (note the weird polarity, the bridge seems
  380. * to invert PCIe legacy interrupts).
  381. * We are de-swizzling here because the numbers are actually for
  382. * port of the root complex virtual P2P bridge. But I want
  383. * to avoid putting a node for it in the tree, so the numbers
  384. * below are basically de-swizzled numbers.
  385. * The real slot is on idsel 0, so the swizzling is 1:1
  386. */
  387. interrupt-map-mask = <0000 0 0 7>;
  388. interrupt-map = <
  389. 0000 0 0 1 &UIC3 10 4 /* swizzled int A */
  390. 0000 0 0 2 &UIC3 11 4 /* swizzled int B */
  391. 0000 0 0 3 &UIC3 12 4 /* swizzled int C */
  392. 0000 0 0 4 &UIC3 13 4 /* swizzled int D */>;
  393. };
  394. };
  395. };