akebono.dts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. /*
  2. * Device Tree Source for IBM Embedded PPC 476 Platform
  3. *
  4. * Copyright © 2013 Tony Breeds IBM Corporation
  5. * Copyright © 2013 Alistair Popple IBM Corporation
  6. *
  7. * This file is licensed under the terms of the GNU General Public
  8. * License version 2. This program is licensed "as is" without
  9. * any warranty of any kind, whether express or implied.
  10. */
  11. /dts-v1/;
  12. /memreserve/ 0x01f00000 0x00100000; // spin table
  13. / {
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. model = "ibm,akebono";
  17. compatible = "ibm,akebono", "ibm,476gtr";
  18. dcr-parent = <&{/cpus/cpu@0}>;
  19. aliases {
  20. serial0 = &UART0;
  21. };
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. cpu@0 {
  26. device_type = "cpu";
  27. model = "PowerPC,476";
  28. reg = <0>;
  29. clock-frequency = <1600000000>; // 1.6 GHz
  30. timebase-frequency = <100000000>; // 100Mhz
  31. i-cache-line-size = <32>;
  32. d-cache-line-size = <32>;
  33. i-cache-size = <32768>;
  34. d-cache-size = <32768>;
  35. dcr-controller;
  36. dcr-access-method = "native";
  37. status = "ok";
  38. };
  39. cpu@1 {
  40. device_type = "cpu";
  41. model = "PowerPC,476";
  42. reg = <1>;
  43. clock-frequency = <1600000000>; // 1.6 GHz
  44. timebase-frequency = <100000000>; // 100Mhz
  45. i-cache-line-size = <32>;
  46. d-cache-line-size = <32>;
  47. i-cache-size = <32768>;
  48. d-cache-size = <32768>;
  49. dcr-controller;
  50. dcr-access-method = "native";
  51. status = "disabled";
  52. enable-method = "spin-table";
  53. cpu-release-addr = <0x0 0x01f00000>;
  54. };
  55. };
  56. memory {
  57. device_type = "memory";
  58. reg = <0x0 0x0 0x0 0x0>; // filled in by zImage
  59. };
  60. MPIC: interrupt-controller {
  61. compatible = "chrp,open-pic";
  62. interrupt-controller;
  63. dcr-reg = <0xffc00000 0x00040000>;
  64. #address-cells = <0>;
  65. #size-cells = <0>;
  66. #interrupt-cells = <2>;
  67. single-cpu-affinity;
  68. };
  69. plb {
  70. compatible = "ibm,plb6";
  71. #address-cells = <2>;
  72. #size-cells = <2>;
  73. ranges;
  74. clock-frequency = <200000000>; // 200Mhz
  75. HSTA0: hsta@310000e0000 {
  76. compatible = "ibm,476gtr-hsta-msi", "ibm,hsta-msi";
  77. reg = <0x310 0x000e0000 0x0 0xf0>;
  78. interrupt-parent = <&MPIC>;
  79. interrupts = <108 0
  80. 109 0
  81. 110 0
  82. 111 0
  83. 112 0
  84. 113 0
  85. 114 0
  86. 115 0
  87. 116 0
  88. 117 0
  89. 118 0
  90. 119 0
  91. 120 0
  92. 121 0
  93. 122 0
  94. 123 0>;
  95. };
  96. MAL0: mcmal {
  97. compatible = "ibm,mcmal-476gtr", "ibm,mcmal2";
  98. dcr-reg = <0xc0000000 0x062>;
  99. num-tx-chans = <1>;
  100. num-rx-chans = <1>;
  101. #address-cells = <0>;
  102. #size-cells = <0>;
  103. interrupt-parent = <&MPIC>;
  104. interrupts = < /*TXEOB*/ 77 0x4
  105. /*RXEOB*/ 78 0x4
  106. /*SERR*/ 76 0x4
  107. /*TXDE*/ 79 0x4
  108. /*RXDE*/ 80 0x4>;
  109. };
  110. SATA0: sata@30000010000 {
  111. compatible = "ibm,476gtr-ahci";
  112. reg = <0x300 0x00010000 0x0 0x10000>;
  113. interrupt-parent = <&MPIC>;
  114. interrupts = <93 2>;
  115. };
  116. EHCI0: ehci@30010000000 {
  117. compatible = "ibm,476gtr-ehci", "generic-ehci";
  118. reg = <0x300 0x10000000 0x0 0x10000>;
  119. interrupt-parent = <&MPIC>;
  120. interrupts = <85 2>;
  121. };
  122. SD0: sd@30000000000 {
  123. compatible = "ibm,476gtr-sdhci", "generic-sdhci";
  124. reg = <0x300 0x00000000 0x0 0x10000>;
  125. interrupts = <91 2>;
  126. interrupt-parent = <&MPIC>;
  127. };
  128. OHCI0: ohci@30010010000 {
  129. compatible = "ibm,476gtr-ohci", "generic-ohci";
  130. reg = <0x300 0x10010000 0x0 0x10000>;
  131. interrupt-parent = <&MPIC>;
  132. interrupts = <89 1>;
  133. };
  134. OHCI1: ohci@30010020000 {
  135. compatible = "ibm,476gtr-ohci", "generic-ohci";
  136. reg = <0x300 0x10020000 0x0 0x10000>;
  137. interrupt-parent = <&MPIC>;
  138. interrupts = <88 1>;
  139. };
  140. POB0: opb {
  141. compatible = "ibm,opb-4xx", "ibm,opb";
  142. #address-cells = <1>;
  143. #size-cells = <1>;
  144. /* Wish there was a nicer way of specifying a full
  145. * 32-bit range
  146. */
  147. ranges = <0x00000000 0x0000033f 0x00000000 0x80000000
  148. 0x80000000 0x0000033f 0x80000000 0x80000000>;
  149. clock-frequency = <100000000>;
  150. RGMII0: emac-rgmii-wol@50004 {
  151. compatible = "ibm,rgmii-wol-476gtr", "ibm,rgmii-wol";
  152. reg = <0x50004 0x00000008>;
  153. has-mdio;
  154. };
  155. EMAC0: ethernet@30000 {
  156. device_type = "network";
  157. compatible = "ibm,emac-476gtr", "ibm,emac4sync";
  158. interrupt-parent = <&EMAC0>;
  159. interrupts = <0x0 0x1>;
  160. #interrupt-cells = <1>;
  161. #address-cells = <0>;
  162. #size-cells = <0>;
  163. interrupt-map = </*Status*/ 0x0 &MPIC 81 0x4
  164. /*Wake*/ 0x1 &MPIC 82 0x4>;
  165. reg = <0x30000 0x78>;
  166. /* local-mac-address will normally be added by
  167. * the wrapper. If your device doesn't support
  168. * passing data to the wrapper (in the form
  169. * local-mac-addr=<hwaddr>) then you will need
  170. * to set it manually here. */
  171. //local-mac-address = [000000000000];
  172. mal-device = <&MAL0>;
  173. mal-tx-channel = <0>;
  174. mal-rx-channel = <0>;
  175. cell-index = <0>;
  176. max-frame-size = <9000>;
  177. rx-fifo-size = <4096>;
  178. tx-fifo-size = <2048>;
  179. rx-fifo-size-gige = <16384>;
  180. phy-mode = "rgmii";
  181. phy-map = <0x00000000>;
  182. rgmii-wol-device = <&RGMII0>;
  183. has-inverted-stacr-oc;
  184. has-new-stacr-staopc;
  185. };
  186. UART0: serial@10000 {
  187. device_type = "serial";
  188. compatible = "ns16750", "ns16550";
  189. reg = <0x10000 0x00000008>;
  190. virtual-reg = <0xe8010000>;
  191. clock-frequency = <1851851>;
  192. current-speed = <38400>;
  193. interrupt-parent = <&MPIC>;
  194. interrupts = <39 2>;
  195. };
  196. IIC0: i2c@00000000 {
  197. compatible = "ibm,iic-476gtr", "ibm,iic";
  198. reg = <0x0 0x00000020>;
  199. interrupt-parent = <&MPIC>;
  200. interrupts = <37 2>;
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. rtc@68 {
  204. compatible = "st,m41t80", "m41st85";
  205. reg = <0x68>;
  206. };
  207. };
  208. IIC1: i2c@00000100 {
  209. compatible = "ibm,iic-476gtr", "ibm,iic";
  210. reg = <0x100 0x00000020>;
  211. interrupt-parent = <&MPIC>;
  212. interrupts = <38 2>;
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. avr@58 {
  216. compatible = "ibm,akebono-avr";
  217. reg = <0x58>;
  218. };
  219. };
  220. FPGA0: fpga@ebc00000 {
  221. compatible = "ibm,akebono-fpga";
  222. reg = <0xebc00000 0x8>;
  223. };
  224. };
  225. PCIE0: pciex@10100000000 {
  226. device_type = "pci";
  227. #interrupt-cells = <1>;
  228. #size-cells = <2>;
  229. #address-cells = <3>;
  230. compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
  231. primary;
  232. port = <0x0>; /* port number */
  233. reg = <0x00000101 0x00000000 0x0 0x10000000 /* Config space access */
  234. 0x00000100 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
  235. dcr-reg = <0xc0 0x20>;
  236. // pci_space < pci_addr > < cpu_addr > < size >
  237. ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000
  238. 0x01000000 0x0 0x0 0x00000140 0x0 0x0 0x00010000>;
  239. /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
  240. * PCI devices must be able to write to the HSTA module.
  241. */
  242. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
  243. /* This drives busses 0 to 0xf */
  244. bus-range = <0x0 0xf>;
  245. /* Legacy interrupts (note the weird polarity, the bridge seems
  246. * to invert PCIe legacy interrupts).
  247. * We are de-swizzling here because the numbers are actually for
  248. * port of the root complex virtual P2P bridge. But I want
  249. * to avoid putting a node for it in the tree, so the numbers
  250. * below are basically de-swizzled numbers.
  251. * The real slot is on idsel 0, so the swizzling is 1:1
  252. */
  253. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  254. interrupt-map = <
  255. 0x0 0x0 0x0 0x1 &MPIC 45 0x2 /* int A */
  256. 0x0 0x0 0x0 0x2 &MPIC 46 0x2 /* int B */
  257. 0x0 0x0 0x0 0x3 &MPIC 47 0x2 /* int C */
  258. 0x0 0x0 0x0 0x4 &MPIC 48 0x2 /* int D */>;
  259. };
  260. PCIE1: pciex@20100000000 {
  261. device_type = "pci";
  262. #interrupt-cells = <1>;
  263. #size-cells = <2>;
  264. #address-cells = <3>;
  265. compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
  266. primary;
  267. port = <0x1>; /* port number */
  268. reg = <0x00000201 0x00000000 0x0 0x10000000 /* Config space access */
  269. 0x00000200 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
  270. dcr-reg = <0x100 0x20>;
  271. // pci_space < pci_addr > < cpu_addr > < size >
  272. ranges = <0x02000000 0x00000000 0x80000000 0x00000210 0x80000000 0x0 0x80000000
  273. 0x01000000 0x0 0x0 0x00000240 0x0 0x0 0x00010000>;
  274. /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
  275. * PCI devices must be able to write to the HSTA module.
  276. */
  277. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
  278. /* This drives busses 0 to 0xf */
  279. bus-range = <0x0 0xf>;
  280. /* Legacy interrupts (note the weird polarity, the bridge seems
  281. * to invert PCIe legacy interrupts).
  282. * We are de-swizzling here because the numbers are actually for
  283. * port of the root complex virtual P2P bridge. But I want
  284. * to avoid putting a node for it in the tree, so the numbers
  285. * below are basically de-swizzled numbers.
  286. * The real slot is on idsel 0, so the swizzling is 1:1
  287. */
  288. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  289. interrupt-map = <
  290. 0x0 0x0 0x0 0x1 &MPIC 53 0x2 /* int A */
  291. 0x0 0x0 0x0 0x2 &MPIC 54 0x2 /* int B */
  292. 0x0 0x0 0x0 0x3 &MPIC 55 0x2 /* int C */
  293. 0x0 0x0 0x0 0x4 &MPIC 56 0x2 /* int D */>;
  294. };
  295. PCIE2: pciex@18100000000 {
  296. device_type = "pci";
  297. #interrupt-cells = <1>;
  298. #size-cells = <2>;
  299. #address-cells = <3>;
  300. compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
  301. primary;
  302. port = <0x2>; /* port number */
  303. reg = <0x00000181 0x00000000 0x0 0x10000000 /* Config space access */
  304. 0x00000180 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
  305. dcr-reg = <0xe0 0x20>;
  306. // pci_space < pci_addr > < cpu_addr > < size >
  307. ranges = <0x02000000 0x00000000 0x80000000 0x00000190 0x80000000 0x0 0x80000000
  308. 0x01000000 0x0 0x0 0x000001c0 0x0 0x0 0x00010000>;
  309. /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
  310. * PCI devices must be able to write to the HSTA module.
  311. */
  312. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
  313. /* This drives busses 0 to 0xf */
  314. bus-range = <0x0 0xf>;
  315. /* Legacy interrupts (note the weird polarity, the bridge seems
  316. * to invert PCIe legacy interrupts).
  317. * We are de-swizzling here because the numbers are actually for
  318. * port of the root complex virtual P2P bridge. But I want
  319. * to avoid putting a node for it in the tree, so the numbers
  320. * below are basically de-swizzled numbers.
  321. * The real slot is on idsel 0, so the swizzling is 1:1
  322. */
  323. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  324. interrupt-map = <
  325. 0x0 0x0 0x0 0x1 &MPIC 61 0x2 /* int A */
  326. 0x0 0x0 0x0 0x2 &MPIC 62 0x2 /* int B */
  327. 0x0 0x0 0x0 0x3 &MPIC 63 0x2 /* int C */
  328. 0x0 0x0 0x0 0x4 &MPIC 64 0x2 /* int D */>;
  329. };
  330. PCIE3: pciex@28100000000 {
  331. device_type = "pci";
  332. #interrupt-cells = <1>;
  333. #size-cells = <2>;
  334. #address-cells = <3>;
  335. compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
  336. primary;
  337. port = <0x3>; /* port number */
  338. reg = <0x00000281 0x00000000 0x0 0x10000000 /* Config space access */
  339. 0x00000280 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
  340. dcr-reg = <0x120 0x20>;
  341. // pci_space < pci_addr > < cpu_addr > < size >
  342. ranges = <0x02000000 0x00000000 0x80000000 0x00000290 0x80000000 0x0 0x80000000
  343. 0x01000000 0x0 0x0 0x000002c0 0x0 0x0 0x00010000>;
  344. /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
  345. * PCI devices must be able to write to the HSTA module.
  346. */
  347. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
  348. /* This drives busses 0 to 0xf */
  349. bus-range = <0x0 0xf>;
  350. /* Legacy interrupts (note the weird polarity, the bridge seems
  351. * to invert PCIe legacy interrupts).
  352. * We are de-swizzling here because the numbers are actually for
  353. * port of the root complex virtual P2P bridge. But I want
  354. * to avoid putting a node for it in the tree, so the numbers
  355. * below are basically de-swizzled numbers.
  356. * The real slot is on idsel 0, so the swizzling is 1:1
  357. */
  358. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  359. interrupt-map = <
  360. 0x0 0x0 0x0 0x1 &MPIC 69 0x2 /* int A */
  361. 0x0 0x0 0x0 0x2 &MPIC 70 0x2 /* int B */
  362. 0x0 0x0 0x0 0x3 &MPIC 71 0x2 /* int C */
  363. 0x0 0x0 0x0 0x4 &MPIC 72 0x2 /* int D */>;
  364. };
  365. };
  366. chosen {
  367. linux,stdout-path = &UART0;
  368. };
  369. };