bluestone.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. /*
  2. * Device Tree for Bluestone (APM821xx) board.
  3. *
  4. * Copyright (c) 2010, Applied Micro Circuits Corporation
  5. * Author: Tirumala R Marri <tmarri@apm.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. *
  22. */
  23. /dts-v1/;
  24. / {
  25. #address-cells = <2>;
  26. #size-cells = <1>;
  27. model = "apm,bluestone";
  28. compatible = "apm,bluestone";
  29. dcr-parent = <&{/cpus/cpu@0}>;
  30. aliases {
  31. ethernet0 = &EMAC0;
  32. serial0 = &UART0;
  33. serial1 = &UART1;
  34. };
  35. cpus {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. cpu@0 {
  39. device_type = "cpu";
  40. model = "PowerPC,apm821xx";
  41. reg = <0x00000000>;
  42. clock-frequency = <0>; /* Filled in by U-Boot */
  43. timebase-frequency = <0>; /* Filled in by U-Boot */
  44. i-cache-line-size = <32>;
  45. d-cache-line-size = <32>;
  46. i-cache-size = <32768>;
  47. d-cache-size = <32768>;
  48. dcr-controller;
  49. dcr-access-method = "native";
  50. next-level-cache = <&L2C0>;
  51. };
  52. };
  53. memory {
  54. device_type = "memory";
  55. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  56. };
  57. UIC0: interrupt-controller0 {
  58. compatible = "ibm,uic";
  59. interrupt-controller;
  60. cell-index = <0>;
  61. dcr-reg = <0x0c0 0x009>;
  62. #address-cells = <0>;
  63. #size-cells = <0>;
  64. #interrupt-cells = <2>;
  65. };
  66. UIC1: interrupt-controller1 {
  67. compatible = "ibm,uic";
  68. interrupt-controller;
  69. cell-index = <1>;
  70. dcr-reg = <0x0d0 0x009>;
  71. #address-cells = <0>;
  72. #size-cells = <0>;
  73. #interrupt-cells = <2>;
  74. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  75. interrupt-parent = <&UIC0>;
  76. };
  77. UIC2: interrupt-controller2 {
  78. compatible = "ibm,uic";
  79. interrupt-controller;
  80. cell-index = <2>;
  81. dcr-reg = <0x0e0 0x009>;
  82. #address-cells = <0>;
  83. #size-cells = <0>;
  84. #interrupt-cells = <2>;
  85. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  86. interrupt-parent = <&UIC0>;
  87. };
  88. UIC3: interrupt-controller3 {
  89. compatible = "ibm,uic";
  90. interrupt-controller;
  91. cell-index = <3>;
  92. dcr-reg = <0x0f0 0x009>;
  93. #address-cells = <0>;
  94. #size-cells = <0>;
  95. #interrupt-cells = <2>;
  96. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  97. interrupt-parent = <&UIC0>;
  98. };
  99. OCM: ocm@400040000 {
  100. compatible = "ibm,ocm";
  101. status = "ok";
  102. cell-index = <1>;
  103. /* configured in U-Boot */
  104. reg = <4 0x00040000 0x8000>; /* 32K */
  105. };
  106. SDR0: sdr {
  107. compatible = "ibm,sdr-apm821xx";
  108. dcr-reg = <0x00e 0x002>;
  109. };
  110. CPR0: cpr {
  111. compatible = "ibm,cpr-apm821xx";
  112. dcr-reg = <0x00c 0x002>;
  113. };
  114. L2C0: l2c {
  115. compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
  116. dcr-reg = <0x020 0x008
  117. 0x030 0x008>;
  118. cache-line-size = <32>;
  119. cache-size = <262144>;
  120. interrupt-parent = <&UIC1>;
  121. interrupts = <11 1>;
  122. };
  123. plb {
  124. compatible = "ibm,plb4";
  125. #address-cells = <2>;
  126. #size-cells = <1>;
  127. ranges;
  128. clock-frequency = <0>; /* Filled in by U-Boot */
  129. SDRAM0: sdram {
  130. compatible = "ibm,sdram-apm821xx";
  131. dcr-reg = <0x010 0x002>;
  132. };
  133. MAL0: mcmal {
  134. compatible = "ibm,mcmal2";
  135. descriptor-memory = "ocm";
  136. dcr-reg = <0x180 0x062>;
  137. num-tx-chans = <1>;
  138. num-rx-chans = <1>;
  139. #address-cells = <0>;
  140. #size-cells = <0>;
  141. interrupt-parent = <&UIC2>;
  142. interrupts = < /*TXEOB*/ 0x6 0x4
  143. /*RXEOB*/ 0x7 0x4
  144. /*SERR*/ 0x3 0x4
  145. /*TXDE*/ 0x4 0x4
  146. /*RXDE*/ 0x5 0x4>;
  147. };
  148. POB0: opb {
  149. compatible = "ibm,opb";
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  153. clock-frequency = <0>; /* Filled in by U-Boot */
  154. EBC0: ebc {
  155. compatible = "ibm,ebc";
  156. dcr-reg = <0x012 0x002>;
  157. #address-cells = <2>;
  158. #size-cells = <1>;
  159. clock-frequency = <0>; /* Filled in by U-Boot */
  160. /* ranges property is supplied by U-Boot */
  161. ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
  162. interrupts = <0x6 0x4>;
  163. interrupt-parent = <&UIC1>;
  164. nor_flash@0,0 {
  165. compatible = "amd,s29gl512n", "cfi-flash";
  166. bank-width = <2>;
  167. reg = <0x00000000 0x00000000 0x00400000>;
  168. #address-cells = <1>;
  169. #size-cells = <1>;
  170. partition@0 {
  171. label = "kernel";
  172. reg = <0x00000000 0x00180000>;
  173. };
  174. partition@180000 {
  175. label = "env";
  176. reg = <0x00180000 0x00020000>;
  177. };
  178. partition@1a0000 {
  179. label = "u-boot";
  180. reg = <0x001a0000 0x00060000>;
  181. };
  182. };
  183. ndfc@1,0 {
  184. compatible = "ibm,ndfc";
  185. reg = <0x00000003 0x00000000 0x00002000>;
  186. ccr = <0x00001000>;
  187. bank-settings = <0x80002222>;
  188. #address-cells = <1>;
  189. #size-cells = <1>;
  190. /* 2Gb Nand Flash */
  191. nand {
  192. #address-cells = <1>;
  193. #size-cells = <1>;
  194. partition@0 {
  195. label = "firmware";
  196. reg = <0x00000000 0x00C00000>;
  197. };
  198. partition@c00000 {
  199. label = "environment";
  200. reg = <0x00C00000 0x00B00000>;
  201. };
  202. partition@1700000 {
  203. label = "kernel";
  204. reg = <0x01700000 0x00E00000>;
  205. };
  206. partition@2500000 {
  207. label = "root";
  208. reg = <0x02500000 0x08200000>;
  209. };
  210. partition@a700000 {
  211. label = "device-tree";
  212. reg = <0x0A700000 0x00B00000>;
  213. };
  214. partition@b200000 {
  215. label = "config";
  216. reg = <0x0B200000 0x00D00000>;
  217. };
  218. partition@bf00000 {
  219. label = "diag";
  220. reg = <0x0BF00000 0x00C00000>;
  221. };
  222. partition@cb00000 {
  223. label = "vendor";
  224. reg = <0x0CB00000 0x3500000>;
  225. };
  226. };
  227. };
  228. };
  229. UART0: serial@ef600300 {
  230. device_type = "serial";
  231. compatible = "ns16550";
  232. reg = <0xef600300 0x00000008>;
  233. virtual-reg = <0xef600300>;
  234. clock-frequency = <0>; /* Filled in by U-Boot */
  235. current-speed = <0>; /* Filled in by U-Boot */
  236. interrupt-parent = <&UIC1>;
  237. interrupts = <0x1 0x4>;
  238. };
  239. UART1: serial@ef600400 {
  240. device_type = "serial";
  241. compatible = "ns16550";
  242. reg = <0xef600400 0x00000008>;
  243. virtual-reg = <0xef600400>;
  244. clock-frequency = <0>; /* Filled in by U-Boot */
  245. current-speed = <0>; /* Filled in by U-Boot */
  246. interrupt-parent = <&UIC0>;
  247. interrupts = <0x1 0x4>;
  248. };
  249. IIC0: i2c@ef600700 {
  250. compatible = "ibm,iic";
  251. reg = <0xef600700 0x00000014>;
  252. interrupt-parent = <&UIC0>;
  253. interrupts = <0x2 0x4>;
  254. #address-cells = <1>;
  255. #size-cells = <0>;
  256. rtc@68 {
  257. compatible = "st,m41t80";
  258. reg = <0x68>;
  259. interrupt-parent = <&UIC0>;
  260. interrupts = <0x9 0x8>;
  261. };
  262. sttm@4C {
  263. compatible = "adm,adm1032";
  264. reg = <0x4C>;
  265. interrupt-parent = <&UIC1>;
  266. interrupts = <0x1E 0x8>; /* CPU_THERNAL_L */
  267. };
  268. };
  269. IIC1: i2c@ef600800 {
  270. compatible = "ibm,iic";
  271. reg = <0xef600800 0x00000014>;
  272. interrupt-parent = <&UIC0>;
  273. interrupts = <0x3 0x4>;
  274. };
  275. RGMII0: emac-rgmii@ef601500 {
  276. compatible = "ibm,rgmii";
  277. reg = <0xef601500 0x00000008>;
  278. has-mdio;
  279. };
  280. TAH0: emac-tah@ef601350 {
  281. compatible = "ibm,tah";
  282. reg = <0xef601350 0x00000030>;
  283. };
  284. EMAC0: ethernet@ef600c00 {
  285. device_type = "network";
  286. compatible = "ibm,emac-apm821xx", "ibm,emac4sync";
  287. interrupt-parent = <&EMAC0>;
  288. interrupts = <0x0 0x1>;
  289. #interrupt-cells = <1>;
  290. #address-cells = <0>;
  291. #size-cells = <0>;
  292. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  293. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  294. reg = <0xef600c00 0x000000c4>;
  295. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  296. mal-device = <&MAL0>;
  297. mal-tx-channel = <0>;
  298. mal-rx-channel = <0>;
  299. cell-index = <0>;
  300. max-frame-size = <9000>;
  301. rx-fifo-size = <16384>;
  302. tx-fifo-size = <2048>;
  303. phy-mode = "rgmii";
  304. phy-map = <0x00000000>;
  305. rgmii-device = <&RGMII0>;
  306. rgmii-channel = <0>;
  307. tah-device = <&TAH0>;
  308. tah-channel = <0>;
  309. has-inverted-stacr-oc;
  310. has-new-stacr-staopc;
  311. };
  312. };
  313. PCIE0: pciex@d00000000 {
  314. device_type = "pci";
  315. #interrupt-cells = <1>;
  316. #size-cells = <2>;
  317. #address-cells = <3>;
  318. compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
  319. primary;
  320. port = <0x0>; /* port number */
  321. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  322. 0x0000000c 0x08010000 0x00001000>; /* Registers */
  323. dcr-reg = <0x100 0x020>;
  324. sdr-base = <0x300>;
  325. /* Outbound ranges, one memory and one IO,
  326. * later cannot be changed
  327. */
  328. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  329. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
  330. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  331. /* Inbound 2GB range starting at 0 */
  332. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  333. /* This drives busses 40 to 0x7f */
  334. bus-range = <0x40 0x7f>;
  335. /* Legacy interrupts (note the weird polarity, the bridge seems
  336. * to invert PCIe legacy interrupts).
  337. * We are de-swizzling here because the numbers are actually for
  338. * port of the root complex virtual P2P bridge. But I want
  339. * to avoid putting a node for it in the tree, so the numbers
  340. * below are basically de-swizzled numbers.
  341. * The real slot is on idsel 0, so the swizzling is 1:1
  342. */
  343. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  344. interrupt-map = <
  345. 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
  346. 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
  347. 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
  348. 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
  349. };
  350. MSI: ppc4xx-msi@C10000000 {
  351. compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
  352. reg = < 0xC 0x10000000 0x100
  353. 0xC 0x10000000 0x100>;
  354. sdr-base = <0x36C>;
  355. msi-data = <0x00004440>;
  356. msi-mask = <0x0000ffe0>;
  357. interrupts =<0 1 2 3 4 5 6 7>;
  358. interrupt-parent = <&MSI>;
  359. #interrupt-cells = <1>;
  360. #address-cells = <0>;
  361. #size-cells = <0>;
  362. msi-available-ranges = <0x0 0x100>;
  363. interrupt-map = <
  364. 0 &UIC3 0x18 1
  365. 1 &UIC3 0x19 1
  366. 2 &UIC3 0x1A 1
  367. 3 &UIC3 0x1B 1
  368. 4 &UIC3 0x1C 1
  369. 5 &UIC3 0x1D 1
  370. 6 &UIC3 0x1E 1
  371. 7 &UIC3 0x1F 1
  372. >;
  373. };
  374. };
  375. };