bluestone.dts 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. SDR0: sdr {
  100. compatible = "ibm,sdr-apm821xx";
  101. dcr-reg = <0x00e 0x002>;
  102. };
  103. CPR0: cpr {
  104. compatible = "ibm,cpr-apm821xx";
  105. dcr-reg = <0x00c 0x002>;
  106. };
  107. L2C0: l2c {
  108. compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
  109. dcr-reg = <0x020 0x008
  110. 0x030 0x008>;
  111. cache-line-size = <32>;
  112. cache-size = <262144>;
  113. interrupt-parent = <&UIC1>;
  114. interrupts = <11 1>;
  115. };
  116. plb {
  117. compatible = "ibm,plb4";
  118. #address-cells = <2>;
  119. #size-cells = <1>;
  120. ranges;
  121. clock-frequency = <0>; /* Filled in by U-Boot */
  122. SDRAM0: sdram {
  123. compatible = "ibm,sdram-apm821xx";
  124. dcr-reg = <0x010 0x002>;
  125. };
  126. MAL0: mcmal {
  127. compatible = "ibm,mcmal2";
  128. descriptor-memory = "ocm";
  129. dcr-reg = <0x180 0x062>;
  130. num-tx-chans = <1>;
  131. num-rx-chans = <1>;
  132. #address-cells = <0>;
  133. #size-cells = <0>;
  134. interrupt-parent = <&UIC2>;
  135. interrupts = < /*TXEOB*/ 0x6 0x4
  136. /*RXEOB*/ 0x7 0x4
  137. /*SERR*/ 0x3 0x4
  138. /*TXDE*/ 0x4 0x4
  139. /*RXDE*/ 0x5 0x4>;
  140. };
  141. POB0: opb {
  142. compatible = "ibm,opb";
  143. #address-cells = <1>;
  144. #size-cells = <1>;
  145. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  146. clock-frequency = <0>; /* Filled in by U-Boot */
  147. EBC0: ebc {
  148. compatible = "ibm,ebc";
  149. dcr-reg = <0x012 0x002>;
  150. #address-cells = <2>;
  151. #size-cells = <1>;
  152. clock-frequency = <0>; /* Filled in by U-Boot */
  153. /* ranges property is supplied by U-Boot */
  154. ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
  155. interrupts = <0x6 0x4>;
  156. interrupt-parent = <&UIC1>;
  157. nor_flash@0,0 {
  158. compatible = "amd,s29gl512n", "cfi-flash";
  159. bank-width = <2>;
  160. reg = <0x00000000 0x00000000 0x00400000>;
  161. #address-cells = <1>;
  162. #size-cells = <1>;
  163. partition@0 {
  164. label = "kernel";
  165. reg = <0x00000000 0x00180000>;
  166. };
  167. partition@180000 {
  168. label = "env";
  169. reg = <0x00180000 0x00020000>;
  170. };
  171. partition@1a0000 {
  172. label = "u-boot";
  173. reg = <0x001a0000 0x00060000>;
  174. };
  175. };
  176. ndfc@1,0 {
  177. compatible = "ibm,ndfc";
  178. reg = <0x00000003 0x00000000 0x00002000>;
  179. ccr = <0x00001000>;
  180. bank-settings = <0x80002222>;
  181. #address-cells = <1>;
  182. #size-cells = <1>;
  183. /* 2Gb Nand Flash */
  184. nand {
  185. #address-cells = <1>;
  186. #size-cells = <1>;
  187. partition@0 {
  188. label = "firmware";
  189. reg = <0x00000000 0x00C00000>;
  190. };
  191. partition@c00000 {
  192. label = "environment";
  193. reg = <0x00C00000 0x00B00000>;
  194. };
  195. partition@1700000 {
  196. label = "kernel";
  197. reg = <0x01700000 0x00E00000>;
  198. };
  199. partition@2500000 {
  200. label = "root";
  201. reg = <0x02500000 0x08200000>;
  202. };
  203. partition@a700000 {
  204. label = "device-tree";
  205. reg = <0x0A700000 0x00B00000>;
  206. };
  207. partition@b200000 {
  208. label = "config";
  209. reg = <0x0B200000 0x00D00000>;
  210. };
  211. partition@bf00000 {
  212. label = "diag";
  213. reg = <0x0BF00000 0x00C00000>;
  214. };
  215. partition@cb00000 {
  216. label = "vendor";
  217. reg = <0x0CB00000 0x3500000>;
  218. };
  219. };
  220. };
  221. };
  222. UART0: serial@ef600300 {
  223. device_type = "serial";
  224. compatible = "ns16550";
  225. reg = <0xef600300 0x00000008>;
  226. virtual-reg = <0xef600300>;
  227. clock-frequency = <0>; /* Filled in by U-Boot */
  228. current-speed = <0>; /* Filled in by U-Boot */
  229. interrupt-parent = <&UIC1>;
  230. interrupts = <0x1 0x4>;
  231. };
  232. UART1: serial@ef600400 {
  233. device_type = "serial";
  234. compatible = "ns16550";
  235. reg = <0xef600400 0x00000008>;
  236. virtual-reg = <0xef600400>;
  237. clock-frequency = <0>; /* Filled in by U-Boot */
  238. current-speed = <0>; /* Filled in by U-Boot */
  239. interrupt-parent = <&UIC0>;
  240. interrupts = <0x1 0x4>;
  241. };
  242. IIC0: i2c@ef600700 {
  243. compatible = "ibm,iic";
  244. reg = <0xef600700 0x00000014>;
  245. interrupt-parent = <&UIC0>;
  246. interrupts = <0x2 0x4>;
  247. #address-cells = <1>;
  248. #size-cells = <0>;
  249. rtc@68 {
  250. compatible = "stm,m41t80";
  251. reg = <0x68>;
  252. interrupt-parent = <&UIC0>;
  253. interrupts = <0x9 0x8>;
  254. };
  255. sttm@4C {
  256. compatible = "adm,adm1032";
  257. reg = <0x4C>;
  258. interrupt-parent = <&UIC1>;
  259. interrupts = <0x1E 0x8>; /* CPU_THERNAL_L */
  260. };
  261. };
  262. IIC1: i2c@ef600800 {
  263. compatible = "ibm,iic";
  264. reg = <0xef600800 0x00000014>;
  265. interrupt-parent = <&UIC0>;
  266. interrupts = <0x3 0x4>;
  267. };
  268. RGMII0: emac-rgmii@ef601500 {
  269. compatible = "ibm,rgmii";
  270. reg = <0xef601500 0x00000008>;
  271. has-mdio;
  272. };
  273. TAH0: emac-tah@ef601350 {
  274. compatible = "ibm,tah";
  275. reg = <0xef601350 0x00000030>;
  276. };
  277. EMAC0: ethernet@ef600c00 {
  278. device_type = "network";
  279. compatible = "ibm,emac-apm821xx", "ibm,emac4sync";
  280. interrupt-parent = <&EMAC0>;
  281. interrupts = <0x0 0x1>;
  282. #interrupt-cells = <1>;
  283. #address-cells = <0>;
  284. #size-cells = <0>;
  285. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  286. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  287. reg = <0xef600c00 0x000000c4>;
  288. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  289. mal-device = <&MAL0>;
  290. mal-tx-channel = <0>;
  291. mal-rx-channel = <0>;
  292. cell-index = <0>;
  293. max-frame-size = <9000>;
  294. rx-fifo-size = <16384>;
  295. tx-fifo-size = <2048>;
  296. phy-mode = "rgmii";
  297. phy-map = <0x00000000>;
  298. rgmii-device = <&RGMII0>;
  299. rgmii-channel = <0>;
  300. tah-device = <&TAH0>;
  301. tah-channel = <0>;
  302. has-inverted-stacr-oc;
  303. has-new-stacr-staopc;
  304. };
  305. };
  306. PCIE0: pciex@d00000000 {
  307. device_type = "pci";
  308. #interrupt-cells = <1>;
  309. #size-cells = <2>;
  310. #address-cells = <3>;
  311. compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
  312. primary;
  313. port = <0x0>; /* port number */
  314. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  315. 0x0000000c 0x08010000 0x00001000>; /* Registers */
  316. dcr-reg = <0x100 0x020>;
  317. sdr-base = <0x300>;
  318. /* Outbound ranges, one memory and one IO,
  319. * later cannot be changed
  320. */
  321. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  322. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
  323. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  324. /* Inbound 2GB range starting at 0 */
  325. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  326. /* This drives busses 40 to 0x7f */
  327. bus-range = <0x40 0x7f>;
  328. /* Legacy interrupts (note the weird polarity, the bridge seems
  329. * to invert PCIe legacy interrupts).
  330. * We are de-swizzling here because the numbers are actually for
  331. * port of the root complex virtual P2P bridge. But I want
  332. * to avoid putting a node for it in the tree, so the numbers
  333. * below are basically de-swizzled numbers.
  334. * The real slot is on idsel 0, so the swizzling is 1:1
  335. */
  336. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  337. interrupt-map = <
  338. 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
  339. 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
  340. 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
  341. 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
  342. };
  343. };
  344. };