canyonlands.dts 15 KB

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