canyonlands.dts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. /*
  2. * Device Tree Source for AMCC Canyonlands (460EX)
  3. *
  4. * Copyright 2008-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 = <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. CPM0: cpm {
  96. compatible = "ibm,cpm";
  97. dcr-access-method = "native";
  98. dcr-reg = <0x160 0x003>;
  99. unused-units = <0x00000100>;
  100. idle-doze = <0x02000000>;
  101. standby = <0xfeff791d>;
  102. };
  103. L2C0: l2c {
  104. compatible = "ibm,l2-cache-460ex", "ibm,l2-cache";
  105. dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
  106. 0x030 0x008>; /* L2 cache DCR's */
  107. cache-line-size = <32>; /* 32 bytes */
  108. cache-size = <262144>; /* L2, 256K */
  109. interrupt-parent = <&UIC1>;
  110. interrupts = <11 1>;
  111. };
  112. plb {
  113. compatible = "ibm,plb-460ex", "ibm,plb4";
  114. #address-cells = <2>;
  115. #size-cells = <1>;
  116. ranges;
  117. clock-frequency = <0>; /* Filled in by U-Boot */
  118. SDRAM0: sdram {
  119. compatible = "ibm,sdram-460ex", "ibm,sdram-405gp";
  120. dcr-reg = <0x010 0x002>;
  121. };
  122. CRYPTO: crypto@180000 {
  123. compatible = "amcc,ppc460ex-crypto", "amcc,ppc4xx-crypto";
  124. reg = <4 0x00180000 0x80400>;
  125. interrupt-parent = <&UIC0>;
  126. interrupts = <0x1d 0x4>;
  127. };
  128. MAL0: mcmal {
  129. compatible = "ibm,mcmal-460ex", "ibm,mcmal2";
  130. dcr-reg = <0x180 0x062>;
  131. num-tx-chans = <2>;
  132. num-rx-chans = <16>;
  133. #address-cells = <0>;
  134. #size-cells = <0>;
  135. interrupt-parent = <&UIC2>;
  136. interrupts = < /*TXEOB*/ 0x6 0x4
  137. /*RXEOB*/ 0x7 0x4
  138. /*SERR*/ 0x3 0x4
  139. /*TXDE*/ 0x4 0x4
  140. /*RXDE*/ 0x5 0x4>;
  141. };
  142. USB0: ehci@bffd0400 {
  143. compatible = "ibm,usb-ehci-460ex", "usb-ehci";
  144. interrupt-parent = <&UIC2>;
  145. interrupts = <0x1d 4>;
  146. reg = <4 0xbffd0400 0x90 4 0xbffd0490 0x70>;
  147. };
  148. USB1: usb@bffd0000 {
  149. compatible = "ohci-le";
  150. reg = <4 0xbffd0000 0x60>;
  151. interrupt-parent = <&UIC2>;
  152. interrupts = <0x1e 4>;
  153. };
  154. USBOTG0: usbotg@bff80000 {
  155. compatible = "amcc,dwc-otg";
  156. reg = <0x4 0xbff80000 0x10000>;
  157. interrupt-parent = <&USBOTG0>;
  158. #interrupt-cells = <1>;
  159. #address-cells = <0>;
  160. #size-cells = <0>;
  161. interrupts = <0x0 0x1 0x2>;
  162. interrupt-map = </* USB-OTG */ 0x0 &UIC2 0x1c 0x4
  163. /* HIGH-POWER */ 0x1 &UIC1 0x1a 0x8
  164. /* DMA */ 0x2 &UIC0 0xc 0x4>;
  165. };
  166. SATA0: sata@bffd1000 {
  167. compatible = "amcc,sata-460ex";
  168. reg = <4 0xbffd1000 0x800 4 0xbffd0800 0x400>;
  169. interrupt-parent = <&UIC3>;
  170. interrupts = <0x0 0x4 /* SATA */
  171. 0x5 0x4>; /* AHBDMA */
  172. };
  173. POB0: opb {
  174. compatible = "ibm,opb-460ex", "ibm,opb";
  175. #address-cells = <1>;
  176. #size-cells = <1>;
  177. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  178. clock-frequency = <0>; /* Filled in by U-Boot */
  179. EBC0: ebc {
  180. compatible = "ibm,ebc-460ex", "ibm,ebc";
  181. dcr-reg = <0x012 0x002>;
  182. #address-cells = <2>;
  183. #size-cells = <1>;
  184. clock-frequency = <0>; /* Filled in by U-Boot */
  185. /* ranges property is supplied by U-Boot */
  186. interrupts = <0x6 0x4>;
  187. interrupt-parent = <&UIC1>;
  188. nor_flash@0,0 {
  189. compatible = "amd,s29gl512n", "cfi-flash";
  190. bank-width = <2>;
  191. reg = <0x00000000 0x00000000 0x04000000>;
  192. #address-cells = <1>;
  193. #size-cells = <1>;
  194. partition@0 {
  195. label = "kernel";
  196. reg = <0x00000000 0x001e0000>;
  197. };
  198. partition@1e0000 {
  199. label = "dtb";
  200. reg = <0x001e0000 0x00020000>;
  201. };
  202. partition@200000 {
  203. label = "ramdisk";
  204. reg = <0x00200000 0x01400000>;
  205. };
  206. partition@1600000 {
  207. label = "jffs2";
  208. reg = <0x01600000 0x00400000>;
  209. };
  210. partition@1a00000 {
  211. label = "user";
  212. reg = <0x01a00000 0x02560000>;
  213. };
  214. partition@3f60000 {
  215. label = "env";
  216. reg = <0x03f60000 0x00040000>;
  217. };
  218. partition@3fa0000 {
  219. label = "u-boot";
  220. reg = <0x03fa0000 0x00060000>;
  221. };
  222. };
  223. cpld@2,0 {
  224. compatible = "amcc,ppc460ex-bcsr";
  225. reg = <2 0x0 0x9>;
  226. };
  227. ndfc@3,0 {
  228. compatible = "ibm,ndfc";
  229. reg = <0x00000003 0x00000000 0x00002000>;
  230. ccr = <0x00001000>;
  231. bank-settings = <0x80002222>;
  232. #address-cells = <1>;
  233. #size-cells = <1>;
  234. nand {
  235. #address-cells = <1>;
  236. #size-cells = <1>;
  237. partition@0 {
  238. label = "u-boot";
  239. reg = <0x00000000 0x00100000>;
  240. };
  241. partition@100000 {
  242. label = "user";
  243. reg = <0x00000000 0x03f00000>;
  244. };
  245. };
  246. };
  247. };
  248. UART0: serial@ef600300 {
  249. device_type = "serial";
  250. compatible = "ns16550";
  251. reg = <0xef600300 0x00000008>;
  252. virtual-reg = <0xef600300>;
  253. clock-frequency = <0>; /* Filled in by U-Boot */
  254. current-speed = <0>; /* Filled in by U-Boot */
  255. interrupt-parent = <&UIC1>;
  256. interrupts = <0x1 0x4>;
  257. };
  258. UART1: serial@ef600400 {
  259. device_type = "serial";
  260. compatible = "ns16550";
  261. reg = <0xef600400 0x00000008>;
  262. virtual-reg = <0xef600400>;
  263. clock-frequency = <0>; /* Filled in by U-Boot */
  264. current-speed = <0>; /* Filled in by U-Boot */
  265. interrupt-parent = <&UIC0>;
  266. interrupts = <0x1 0x4>;
  267. };
  268. IIC0: i2c@ef600700 {
  269. compatible = "ibm,iic-460ex", "ibm,iic";
  270. reg = <0xef600700 0x00000014>;
  271. interrupt-parent = <&UIC0>;
  272. interrupts = <0x2 0x4>;
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. rtc@68 {
  276. compatible = "stm,m41t80";
  277. reg = <0x68>;
  278. interrupt-parent = <&UIC2>;
  279. interrupts = <0x19 0x8>;
  280. };
  281. sttm@48 {
  282. compatible = "ad,ad7414";
  283. reg = <0x48>;
  284. interrupt-parent = <&UIC1>;
  285. interrupts = <0x14 0x8>;
  286. };
  287. };
  288. IIC1: i2c@ef600800 {
  289. compatible = "ibm,iic-460ex", "ibm,iic";
  290. reg = <0xef600800 0x00000014>;
  291. interrupt-parent = <&UIC0>;
  292. interrupts = <0x3 0x4>;
  293. };
  294. GPIO0: gpio@ef600b00 {
  295. compatible = "ibm,ppc4xx-gpio";
  296. reg = <0xef600b00 0x00000048>;
  297. gpio-controller;
  298. };
  299. ZMII0: emac-zmii@ef600d00 {
  300. compatible = "ibm,zmii-460ex", "ibm,zmii";
  301. reg = <0xef600d00 0x0000000c>;
  302. };
  303. RGMII0: emac-rgmii@ef601500 {
  304. compatible = "ibm,rgmii-460ex", "ibm,rgmii";
  305. reg = <0xef601500 0x00000008>;
  306. has-mdio;
  307. };
  308. TAH0: emac-tah@ef601350 {
  309. compatible = "ibm,tah-460ex", "ibm,tah";
  310. reg = <0xef601350 0x00000030>;
  311. };
  312. TAH1: emac-tah@ef601450 {
  313. compatible = "ibm,tah-460ex", "ibm,tah";
  314. reg = <0xef601450 0x00000030>;
  315. };
  316. EMAC0: ethernet@ef600e00 {
  317. device_type = "network";
  318. compatible = "ibm,emac-460ex", "ibm,emac4sync";
  319. interrupt-parent = <&EMAC0>;
  320. interrupts = <0x0 0x1>;
  321. #interrupt-cells = <1>;
  322. #address-cells = <0>;
  323. #size-cells = <0>;
  324. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  325. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  326. reg = <0xef600e00 0x000000c4>;
  327. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  328. mal-device = <&MAL0>;
  329. mal-tx-channel = <0>;
  330. mal-rx-channel = <0>;
  331. cell-index = <0>;
  332. max-frame-size = <9000>;
  333. rx-fifo-size = <4096>;
  334. tx-fifo-size = <2048>;
  335. rx-fifo-size-gige = <16384>;
  336. phy-mode = "rgmii";
  337. phy-map = <0x00000000>;
  338. rgmii-device = <&RGMII0>;
  339. rgmii-channel = <0>;
  340. tah-device = <&TAH0>;
  341. tah-channel = <0>;
  342. has-inverted-stacr-oc;
  343. has-new-stacr-staopc;
  344. };
  345. EMAC1: ethernet@ef600f00 {
  346. device_type = "network";
  347. compatible = "ibm,emac-460ex", "ibm,emac4sync";
  348. interrupt-parent = <&EMAC1>;
  349. interrupts = <0x0 0x1>;
  350. #interrupt-cells = <1>;
  351. #address-cells = <0>;
  352. #size-cells = <0>;
  353. interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
  354. /*Wake*/ 0x1 &UIC2 0x15 0x4>;
  355. reg = <0xef600f00 0x000000c4>;
  356. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  357. mal-device = <&MAL0>;
  358. mal-tx-channel = <1>;
  359. mal-rx-channel = <8>;
  360. cell-index = <1>;
  361. max-frame-size = <9000>;
  362. rx-fifo-size = <4096>;
  363. tx-fifo-size = <2048>;
  364. rx-fifo-size-gige = <16384>;
  365. phy-mode = "rgmii";
  366. phy-map = <0x00000000>;
  367. rgmii-device = <&RGMII0>;
  368. rgmii-channel = <1>;
  369. tah-device = <&TAH1>;
  370. tah-channel = <1>;
  371. has-inverted-stacr-oc;
  372. has-new-stacr-staopc;
  373. mdio-device = <&EMAC0>;
  374. };
  375. };
  376. PCIX0: pci@c0ec00000 {
  377. device_type = "pci";
  378. #interrupt-cells = <1>;
  379. #size-cells = <2>;
  380. #address-cells = <3>;
  381. compatible = "ibm,plb-pcix-460ex", "ibm,plb-pcix";
  382. primary;
  383. large-inbound-windows;
  384. enable-msi-hole;
  385. reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */
  386. 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
  387. 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */
  388. 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */
  389. 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
  390. /* Outbound ranges, one memory and one IO,
  391. * later cannot be changed
  392. */
  393. ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
  394. 0x02000000 0x00000000 0x00000000 0x0000000c 0x0ee00000 0x00000000 0x00100000
  395. 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
  396. /* Inbound 2GB range starting at 0 */
  397. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  398. /* This drives busses 0 to 0x3f */
  399. bus-range = <0x0 0x3f>;
  400. /* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
  401. interrupt-map-mask = <0x0 0x0 0x0 0x0>;
  402. interrupt-map = < 0x0 0x0 0x0 0x0 &UIC1 0x0 0x8 >;
  403. };
  404. PCIE0: pciex@d00000000 {
  405. device_type = "pci";
  406. #interrupt-cells = <1>;
  407. #size-cells = <2>;
  408. #address-cells = <3>;
  409. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  410. primary;
  411. port = <0x0>; /* port number */
  412. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  413. 0x0000000c 0x08010000 0x00001000>; /* Registers */
  414. dcr-reg = <0x100 0x020>;
  415. sdr-base = <0x300>;
  416. /* Outbound ranges, one memory and one IO,
  417. * later cannot be changed
  418. */
  419. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  420. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
  421. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  422. /* Inbound 2GB range starting at 0 */
  423. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  424. /* This drives busses 40 to 0x7f */
  425. bus-range = <0x40 0x7f>;
  426. /* Legacy interrupts (note the weird polarity, the bridge seems
  427. * to invert PCIe legacy interrupts).
  428. * We are de-swizzling here because the numbers are actually for
  429. * port of the root complex virtual P2P bridge. But I want
  430. * to avoid putting a node for it in the tree, so the numbers
  431. * below are basically de-swizzled numbers.
  432. * The real slot is on idsel 0, so the swizzling is 1:1
  433. */
  434. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  435. interrupt-map = <
  436. 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
  437. 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
  438. 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
  439. 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
  440. };
  441. PCIE1: pciex@d20000000 {
  442. device_type = "pci";
  443. #interrupt-cells = <1>;
  444. #size-cells = <2>;
  445. #address-cells = <3>;
  446. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  447. primary;
  448. port = <0x1>; /* port number */
  449. reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */
  450. 0x0000000c 0x08011000 0x00001000>; /* Registers */
  451. dcr-reg = <0x120 0x020>;
  452. sdr-base = <0x340>;
  453. /* Outbound ranges, one memory and one IO,
  454. * later cannot be changed
  455. */
  456. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
  457. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00100000 0x00000000 0x00100000
  458. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
  459. /* Inbound 2GB range starting at 0 */
  460. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  461. /* This drives busses 80 to 0xbf */
  462. bus-range = <0x80 0xbf>;
  463. /* Legacy interrupts (note the weird polarity, the bridge seems
  464. * to invert PCIe legacy interrupts).
  465. * We are de-swizzling here because the numbers are actually for
  466. * port of the root complex virtual P2P bridge. But I want
  467. * to avoid putting a node for it in the tree, so the numbers
  468. * below are basically de-swizzled numbers.
  469. * The real slot is on idsel 0, so the swizzling is 1:1
  470. */
  471. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  472. interrupt-map = <
  473. 0x0 0x0 0x0 0x1 &UIC3 0x10 0x4 /* swizzled int A */
  474. 0x0 0x0 0x0 0x2 &UIC3 0x11 0x4 /* swizzled int B */
  475. 0x0 0x0 0x0 0x3 &UIC3 0x12 0x4 /* swizzled int C */
  476. 0x0 0x0 0x0 0x4 &UIC3 0x13 0x4 /* swizzled int D */>;
  477. };
  478. MSI: ppc4xx-msi@C10000000 {
  479. compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
  480. reg = < 0xC 0x10000000 0x100>;
  481. sdr-base = <0x36C>;
  482. msi-data = <0x00000000>;
  483. msi-mask = <0x44440000>;
  484. interrupt-count = <3>;
  485. interrupts = <0 1 2 3>;
  486. interrupt-parent = <&UIC3>;
  487. #interrupt-cells = <1>;
  488. #address-cells = <0>;
  489. #size-cells = <0>;
  490. interrupt-map = <0 &UIC3 0x18 1
  491. 1 &UIC3 0x19 1
  492. 2 &UIC3 0x1A 1
  493. 3 &UIC3 0x1B 1>;
  494. };
  495. };
  496. };