canyonlands.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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. /dts-v1/;
  11. / {
  12. #address-cells = <2>;
  13. #size-cells = <1>;
  14. model = "amcc,canyonlands";
  15. compatible = "amcc,canyonlands";
  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,460EX";
  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 = <32768>;
  35. d-cache-size = <32768>;
  36. dcr-controller;
  37. dcr-access-method = "native";
  38. next-level-cache = <&L2C0>;
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  44. };
  45. UIC0: interrupt-controller0 {
  46. compatible = "ibm,uic-460ex","ibm,uic";
  47. interrupt-controller;
  48. cell-index = <0>;
  49. dcr-reg = <0x0c0 0x009>;
  50. #address-cells = <0>;
  51. #size-cells = <0>;
  52. #interrupt-cells = <2>;
  53. };
  54. UIC1: interrupt-controller1 {
  55. compatible = "ibm,uic-460ex","ibm,uic";
  56. interrupt-controller;
  57. cell-index = <1>;
  58. dcr-reg = <0x0d0 0x009>;
  59. #address-cells = <0>;
  60. #size-cells = <0>;
  61. #interrupt-cells = <2>;
  62. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  63. interrupt-parent = <&UIC0>;
  64. };
  65. UIC2: interrupt-controller2 {
  66. compatible = "ibm,uic-460ex","ibm,uic";
  67. interrupt-controller;
  68. cell-index = <2>;
  69. dcr-reg = <0x0e0 0x009>;
  70. #address-cells = <0>;
  71. #size-cells = <0>;
  72. #interrupt-cells = <2>;
  73. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  74. interrupt-parent = <&UIC0>;
  75. };
  76. UIC3: interrupt-controller3 {
  77. compatible = "ibm,uic-460ex","ibm,uic";
  78. interrupt-controller;
  79. cell-index = <3>;
  80. dcr-reg = <0x0f0 0x009>;
  81. #address-cells = <0>;
  82. #size-cells = <0>;
  83. #interrupt-cells = <2>;
  84. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  85. interrupt-parent = <&UIC0>;
  86. };
  87. SDR0: sdr {
  88. compatible = "ibm,sdr-460ex";
  89. dcr-reg = <0x00e 0x002>;
  90. };
  91. CPR0: cpr {
  92. compatible = "ibm,cpr-460ex";
  93. dcr-reg = <0x00c 0x002>;
  94. };
  95. L2C0: l2c {
  96. compatible = "ibm,l2-cache-460ex", "ibm,l2-cache";
  97. dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
  98. 0x030 0x008>; /* L2 cache DCR's */
  99. cache-line-size = <32>; /* 32 bytes */
  100. cache-size = <262144>; /* L2, 256K */
  101. interrupt-parent = <&UIC1>;
  102. interrupts = <11 1>;
  103. };
  104. plb {
  105. compatible = "ibm,plb-460ex", "ibm,plb4";
  106. #address-cells = <2>;
  107. #size-cells = <1>;
  108. ranges;
  109. clock-frequency = <0>; /* Filled in by U-Boot */
  110. SDRAM0: sdram {
  111. compatible = "ibm,sdram-460ex", "ibm,sdram-405gp";
  112. dcr-reg = <0x010 0x002>;
  113. };
  114. CRYPTO: crypto@180000 {
  115. compatible = "amcc,ppc460ex-crypto", "amcc,ppc4xx-crypto";
  116. reg = <4 0x00180000 0x80400>;
  117. interrupt-parent = <&UIC0>;
  118. interrupts = <0x1d 0x4>;
  119. };
  120. MAL0: mcmal {
  121. compatible = "ibm,mcmal-460ex", "ibm,mcmal2";
  122. dcr-reg = <0x180 0x062>;
  123. num-tx-chans = <2>;
  124. num-rx-chans = <16>;
  125. #address-cells = <0>;
  126. #size-cells = <0>;
  127. interrupt-parent = <&UIC2>;
  128. interrupts = < /*TXEOB*/ 0x6 0x4
  129. /*RXEOB*/ 0x7 0x4
  130. /*SERR*/ 0x3 0x4
  131. /*TXDE*/ 0x4 0x4
  132. /*RXDE*/ 0x5 0x4>;
  133. };
  134. USB0: ehci@bffd0400 {
  135. compatible = "ibm,usb-ehci-460ex", "usb-ehci";
  136. interrupt-parent = <&UIC2>;
  137. interrupts = <0x1d 4>;
  138. reg = <4 0xbffd0400 0x90 4 0xbffd0490 0x70>;
  139. };
  140. USB1: usb@bffd0000 {
  141. compatible = "ohci-le";
  142. reg = <4 0xbffd0000 0x60>;
  143. interrupt-parent = <&UIC2>;
  144. interrupts = <0x1e 4>;
  145. };
  146. POB0: opb {
  147. compatible = "ibm,opb-460ex", "ibm,opb";
  148. #address-cells = <1>;
  149. #size-cells = <1>;
  150. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  151. clock-frequency = <0>; /* Filled in by U-Boot */
  152. EBC0: ebc {
  153. compatible = "ibm,ebc-460ex", "ibm,ebc";
  154. dcr-reg = <0x012 0x002>;
  155. #address-cells = <2>;
  156. #size-cells = <1>;
  157. clock-frequency = <0>; /* Filled in by U-Boot */
  158. /* ranges property is supplied by U-Boot */
  159. interrupts = <0x6 0x4>;
  160. interrupt-parent = <&UIC1>;
  161. nor_flash@0,0 {
  162. compatible = "amd,s29gl512n", "cfi-flash";
  163. bank-width = <2>;
  164. reg = <0x00000000 0x00000000 0x04000000>;
  165. #address-cells = <1>;
  166. #size-cells = <1>;
  167. partition@0 {
  168. label = "kernel";
  169. reg = <0x00000000 0x001e0000>;
  170. };
  171. partition@1e0000 {
  172. label = "dtb";
  173. reg = <0x001e0000 0x00020000>;
  174. };
  175. partition@200000 {
  176. label = "ramdisk";
  177. reg = <0x00200000 0x01400000>;
  178. };
  179. partition@1600000 {
  180. label = "jffs2";
  181. reg = <0x01600000 0x00400000>;
  182. };
  183. partition@1a00000 {
  184. label = "user";
  185. reg = <0x01a00000 0x02560000>;
  186. };
  187. partition@3f60000 {
  188. label = "env";
  189. reg = <0x03f60000 0x00040000>;
  190. };
  191. partition@3fa0000 {
  192. label = "u-boot";
  193. reg = <0x03fa0000 0x00060000>;
  194. };
  195. };
  196. };
  197. UART0: serial@ef600300 {
  198. device_type = "serial";
  199. compatible = "ns16550";
  200. reg = <0xef600300 0x00000008>;
  201. virtual-reg = <0xef600300>;
  202. clock-frequency = <0>; /* Filled in by U-Boot */
  203. current-speed = <0>; /* Filled in by U-Boot */
  204. interrupt-parent = <&UIC1>;
  205. interrupts = <0x1 0x4>;
  206. };
  207. UART1: serial@ef600400 {
  208. device_type = "serial";
  209. compatible = "ns16550";
  210. reg = <0xef600400 0x00000008>;
  211. virtual-reg = <0xef600400>;
  212. clock-frequency = <0>; /* Filled in by U-Boot */
  213. current-speed = <0>; /* Filled in by U-Boot */
  214. interrupt-parent = <&UIC0>;
  215. interrupts = <0x1 0x4>;
  216. };
  217. UART2: serial@ef600500 {
  218. device_type = "serial";
  219. compatible = "ns16550";
  220. reg = <0xef600500 0x00000008>;
  221. virtual-reg = <0xef600500>;
  222. clock-frequency = <0>; /* Filled in by U-Boot */
  223. current-speed = <0>; /* Filled in by U-Boot */
  224. interrupt-parent = <&UIC1>;
  225. interrupts = <0x1d 0x4>;
  226. };
  227. UART3: serial@ef600600 {
  228. device_type = "serial";
  229. compatible = "ns16550";
  230. reg = <0xef600600 0x00000008>;
  231. virtual-reg = <0xef600600>;
  232. clock-frequency = <0>; /* Filled in by U-Boot */
  233. current-speed = <0>; /* Filled in by U-Boot */
  234. interrupt-parent = <&UIC1>;
  235. interrupts = <0x1e 0x4>;
  236. };
  237. IIC0: i2c@ef600700 {
  238. compatible = "ibm,iic-460ex", "ibm,iic";
  239. reg = <0xef600700 0x00000014>;
  240. interrupt-parent = <&UIC0>;
  241. interrupts = <0x2 0x4>;
  242. #address-cells = <1>;
  243. #size-cells = <0>;
  244. rtc@68 {
  245. compatible = "stm,m41t80";
  246. reg = <0x68>;
  247. interrupt-parent = <&UIC2>;
  248. interrupts = <0x19 0x8>;
  249. };
  250. sttm@48 {
  251. compatible = "ad,ad7414";
  252. reg = <0x48>;
  253. interrupt-parent = <&UIC1>;
  254. interrupts = <0x14 0x8>;
  255. };
  256. };
  257. IIC1: i2c@ef600800 {
  258. compatible = "ibm,iic-460ex", "ibm,iic";
  259. reg = <0xef600800 0x00000014>;
  260. interrupt-parent = <&UIC0>;
  261. interrupts = <0x3 0x4>;
  262. };
  263. ZMII0: emac-zmii@ef600d00 {
  264. compatible = "ibm,zmii-460ex", "ibm,zmii";
  265. reg = <0xef600d00 0x0000000c>;
  266. };
  267. RGMII0: emac-rgmii@ef601500 {
  268. compatible = "ibm,rgmii-460ex", "ibm,rgmii";
  269. reg = <0xef601500 0x00000008>;
  270. has-mdio;
  271. };
  272. TAH0: emac-tah@ef601350 {
  273. compatible = "ibm,tah-460ex", "ibm,tah";
  274. reg = <0xef601350 0x00000030>;
  275. };
  276. TAH1: emac-tah@ef601450 {
  277. compatible = "ibm,tah-460ex", "ibm,tah";
  278. reg = <0xef601450 0x00000030>;
  279. };
  280. EMAC0: ethernet@ef600e00 {
  281. device_type = "network";
  282. compatible = "ibm,emac-460ex", "ibm,emac4sync";
  283. interrupt-parent = <&EMAC0>;
  284. interrupts = <0x0 0x1>;
  285. #interrupt-cells = <1>;
  286. #address-cells = <0>;
  287. #size-cells = <0>;
  288. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  289. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  290. reg = <0xef600e00 0x000000c4>;
  291. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  292. mal-device = <&MAL0>;
  293. mal-tx-channel = <0>;
  294. mal-rx-channel = <0>;
  295. cell-index = <0>;
  296. max-frame-size = <9000>;
  297. rx-fifo-size = <4096>;
  298. tx-fifo-size = <2048>;
  299. phy-mode = "rgmii";
  300. phy-map = <0x00000000>;
  301. rgmii-device = <&RGMII0>;
  302. rgmii-channel = <0>;
  303. tah-device = <&TAH0>;
  304. tah-channel = <0>;
  305. has-inverted-stacr-oc;
  306. has-new-stacr-staopc;
  307. };
  308. EMAC1: ethernet@ef600f00 {
  309. device_type = "network";
  310. compatible = "ibm,emac-460ex", "ibm,emac4sync";
  311. interrupt-parent = <&EMAC1>;
  312. interrupts = <0x0 0x1>;
  313. #interrupt-cells = <1>;
  314. #address-cells = <0>;
  315. #size-cells = <0>;
  316. interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
  317. /*Wake*/ 0x1 &UIC2 0x15 0x4>;
  318. reg = <0xef600f00 0x000000c4>;
  319. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  320. mal-device = <&MAL0>;
  321. mal-tx-channel = <1>;
  322. mal-rx-channel = <8>;
  323. cell-index = <1>;
  324. max-frame-size = <9000>;
  325. rx-fifo-size = <4096>;
  326. tx-fifo-size = <2048>;
  327. phy-mode = "rgmii";
  328. phy-map = <0x00000000>;
  329. rgmii-device = <&RGMII0>;
  330. rgmii-channel = <1>;
  331. tah-device = <&TAH1>;
  332. tah-channel = <1>;
  333. has-inverted-stacr-oc;
  334. has-new-stacr-staopc;
  335. mdio-device = <&EMAC0>;
  336. };
  337. };
  338. PCIX0: pci@c0ec00000 {
  339. device_type = "pci";
  340. #interrupt-cells = <1>;
  341. #size-cells = <2>;
  342. #address-cells = <3>;
  343. compatible = "ibm,plb-pcix-460ex", "ibm,plb-pcix";
  344. primary;
  345. large-inbound-windows;
  346. enable-msi-hole;
  347. reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */
  348. 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
  349. 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */
  350. 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */
  351. 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
  352. /* Outbound ranges, one memory and one IO,
  353. * later cannot be changed
  354. */
  355. ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
  356. 0x02000000 0x00000000 0x00000000 0x0000000c 0x0ee00000 0x00000000 0x00100000
  357. 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
  358. /* Inbound 2GB range starting at 0 */
  359. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  360. /* This drives busses 0 to 0x3f */
  361. bus-range = <0x0 0x3f>;
  362. /* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
  363. interrupt-map-mask = <0x0 0x0 0x0 0x0>;
  364. interrupt-map = < 0x0 0x0 0x0 0x0 &UIC1 0x0 0x8 >;
  365. };
  366. PCIE0: pciex@d00000000 {
  367. device_type = "pci";
  368. #interrupt-cells = <1>;
  369. #size-cells = <2>;
  370. #address-cells = <3>;
  371. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  372. primary;
  373. port = <0x0>; /* port number */
  374. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  375. 0x0000000c 0x08010000 0x00001000>; /* Registers */
  376. dcr-reg = <0x100 0x020>;
  377. sdr-base = <0x300>;
  378. /* Outbound ranges, one memory and one IO,
  379. * later cannot be changed
  380. */
  381. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  382. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
  383. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  384. /* Inbound 2GB range starting at 0 */
  385. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  386. /* This drives busses 40 to 0x7f */
  387. bus-range = <0x40 0x7f>;
  388. /* Legacy interrupts (note the weird polarity, the bridge seems
  389. * to invert PCIe legacy interrupts).
  390. * We are de-swizzling here because the numbers are actually for
  391. * port of the root complex virtual P2P bridge. But I want
  392. * to avoid putting a node for it in the tree, so the numbers
  393. * below are basically de-swizzled numbers.
  394. * The real slot is on idsel 0, so the swizzling is 1:1
  395. */
  396. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  397. interrupt-map = <
  398. 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
  399. 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
  400. 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
  401. 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
  402. };
  403. PCIE1: pciex@d20000000 {
  404. device_type = "pci";
  405. #interrupt-cells = <1>;
  406. #size-cells = <2>;
  407. #address-cells = <3>;
  408. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  409. primary;
  410. port = <0x1>; /* port number */
  411. reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */
  412. 0x0000000c 0x08011000 0x00001000>; /* Registers */
  413. dcr-reg = <0x120 0x020>;
  414. sdr-base = <0x340>;
  415. /* Outbound ranges, one memory and one IO,
  416. * later cannot be changed
  417. */
  418. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
  419. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00100000 0x00000000 0x00100000
  420. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
  421. /* Inbound 2GB range starting at 0 */
  422. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  423. /* This drives busses 80 to 0xbf */
  424. bus-range = <0x80 0xbf>;
  425. /* Legacy interrupts (note the weird polarity, the bridge seems
  426. * to invert PCIe legacy interrupts).
  427. * We are de-swizzling here because the numbers are actually for
  428. * port of the root complex virtual P2P bridge. But I want
  429. * to avoid putting a node for it in the tree, so the numbers
  430. * below are basically de-swizzled numbers.
  431. * The real slot is on idsel 0, so the swizzling is 1:1
  432. */
  433. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  434. interrupt-map = <
  435. 0x0 0x0 0x0 0x1 &UIC3 0x10 0x4 /* swizzled int A */
  436. 0x0 0x0 0x0 0x2 &UIC3 0x11 0x4 /* swizzled int B */
  437. 0x0 0x0 0x0 0x3 &UIC3 0x12 0x4 /* swizzled int C */
  438. 0x0 0x0 0x0 0x4 &UIC3 0x13 0x4 /* swizzled int D */>;
  439. };
  440. };
  441. };