gef_ppc9a.dts 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /*
  2. * GE PPC9A Device Tree Source
  3. *
  4. * Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * Based on: SBS CM6 Device Tree Source
  12. * Copyright 2007 SBS Technologies GmbH & Co. KG
  13. * And: mpc8641_hpcn.dts (MPC8641 HPCN Device Tree Source)
  14. * Copyright 2006 Freescale Semiconductor Inc.
  15. */
  16. /*
  17. * Compiled with dtc -I dts -O dtb -o gef_ppc9a.dtb gef_ppc9a.dts
  18. */
  19. /dts-v1/;
  20. / {
  21. model = "GEF_PPC9A";
  22. compatible = "gef,ppc9a";
  23. #address-cells = <1>;
  24. #size-cells = <1>;
  25. aliases {
  26. ethernet0 = &enet0;
  27. ethernet1 = &enet1;
  28. serial0 = &serial0;
  29. serial1 = &serial1;
  30. pci0 = &pci0;
  31. };
  32. cpus {
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. PowerPC,8641@0 {
  36. device_type = "cpu";
  37. reg = <0>;
  38. d-cache-line-size = <32>; // 32 bytes
  39. i-cache-line-size = <32>; // 32 bytes
  40. d-cache-size = <32768>; // L1, 32K
  41. i-cache-size = <32768>; // L1, 32K
  42. timebase-frequency = <0>; // From uboot
  43. bus-frequency = <0>; // From uboot
  44. clock-frequency = <0>; // From uboot
  45. };
  46. PowerPC,8641@1 {
  47. device_type = "cpu";
  48. reg = <1>;
  49. d-cache-line-size = <32>; // 32 bytes
  50. i-cache-line-size = <32>; // 32 bytes
  51. d-cache-size = <32768>; // L1, 32K
  52. i-cache-size = <32768>; // L1, 32K
  53. timebase-frequency = <0>; // From uboot
  54. bus-frequency = <0>; // From uboot
  55. clock-frequency = <0>; // From uboot
  56. };
  57. };
  58. memory {
  59. device_type = "memory";
  60. reg = <0x0 0x40000000>; // set by uboot
  61. };
  62. localbus@fef05000 {
  63. #address-cells = <2>;
  64. #size-cells = <1>;
  65. compatible = "fsl,mpc8641-localbus", "simple-bus";
  66. reg = <0xfef05000 0x1000>;
  67. interrupts = <19 2>;
  68. interrupt-parent = <&mpic>;
  69. ranges = <0 0 0xff000000 0x01000000 // 16MB Boot flash
  70. 1 0 0xe8000000 0x08000000 // Paged Flash 0
  71. 2 0 0xe0000000 0x08000000 // Paged Flash 1
  72. 3 0 0xfc100000 0x00020000 // NVRAM
  73. 4 0 0xfc000000 0x00008000 // FPGA
  74. 5 0 0xfc008000 0x00008000 // AFIX FPGA
  75. 6 0 0xfd000000 0x00800000 // IO FPGA (8-bit)
  76. 7 0 0xfd800000 0x00800000>; // IO FPGA (32-bit)
  77. /* flash@0,0 is a mirror of part of the memory in flash@1,0
  78. flash@0,0 {
  79. compatible = "gef,ppc9a-firmware-mirror", "cfi-flash";
  80. reg = <0x0 0x0 0x1000000>;
  81. bank-width = <4>;
  82. device-width = <2>;
  83. #address-cells = <1>;
  84. #size-cells = <1>;
  85. partition@0 {
  86. label = "firmware";
  87. reg = <0x0 0x1000000>;
  88. read-only;
  89. };
  90. };
  91. */
  92. flash@1,0 {
  93. compatible = "gef,ppc9a-paged-flash", "cfi-flash";
  94. reg = <0x1 0x0 0x8000000>;
  95. bank-width = <4>;
  96. device-width = <2>;
  97. #address-cells = <1>;
  98. #size-cells = <1>;
  99. partition@0 {
  100. label = "user";
  101. reg = <0x0 0x7800000>;
  102. };
  103. partition@7800000 {
  104. label = "firmware";
  105. reg = <0x7800000 0x800000>;
  106. read-only;
  107. };
  108. };
  109. nvram@3,0 {
  110. device_type = "nvram";
  111. compatible = "simtek,stk14ca8";
  112. reg = <0x3 0x0 0x20000>;
  113. };
  114. fpga@4,0 {
  115. compatible = "gef,ppc9a-fpga-regs";
  116. reg = <0x4 0x0 0x40>;
  117. };
  118. wdt@4,2000 {
  119. compatible = "gef,ppc9a-fpga-wdt", "gef,fpga-wdt-1.00",
  120. "gef,fpga-wdt";
  121. reg = <0x4 0x2000 0x8>;
  122. interrupts = <0x1a 0x4>;
  123. interrupt-parent = <&gef_pic>;
  124. };
  125. /* Second watchdog available, driver currently supports one.
  126. wdt@4,2010 {
  127. compatible = "gef,ppc9a-fpga-wdt", "gef,fpga-wdt-1.00",
  128. "gef,fpga-wdt";
  129. reg = <0x4 0x2010 0x8>;
  130. interrupts = <0x1b 0x4>;
  131. interrupt-parent = <&gef_pic>;
  132. };
  133. */
  134. gef_pic: pic@4,4000 {
  135. #interrupt-cells = <1>;
  136. interrupt-controller;
  137. compatible = "gef,ppc9a-fpga-pic", "gef,fpga-pic-1.00";
  138. reg = <0x4 0x4000 0x20>;
  139. interrupts = <0x8
  140. 0x9>;
  141. interrupt-parent = <&mpic>;
  142. };
  143. gef_gpio: gpio@7,14000 {
  144. #gpio-cells = <2>;
  145. compatible = "gef,ppc9a-gpio", "gef,sbc610-gpio";
  146. reg = <0x7 0x14000 0x24>;
  147. gpio-controller;
  148. };
  149. };
  150. soc@fef00000 {
  151. #address-cells = <1>;
  152. #size-cells = <1>;
  153. #interrupt-cells = <2>;
  154. device_type = "soc";
  155. compatible = "fsl,mpc8641-soc", "simple-bus";
  156. ranges = <0x0 0xfef00000 0x00100000>;
  157. bus-frequency = <33333333>;
  158. mcm-law@0 {
  159. compatible = "fsl,mcm-law";
  160. reg = <0x0 0x1000>;
  161. fsl,num-laws = <10>;
  162. };
  163. mcm@1000 {
  164. compatible = "fsl,mpc8641-mcm", "fsl,mcm";
  165. reg = <0x1000 0x1000>;
  166. interrupts = <17 2>;
  167. interrupt-parent = <&mpic>;
  168. };
  169. i2c1: i2c@3000 {
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. compatible = "fsl-i2c";
  173. reg = <0x3000 0x100>;
  174. interrupts = <0x2b 0x2>;
  175. interrupt-parent = <&mpic>;
  176. dfsrr;
  177. hwmon@48 {
  178. compatible = "national,lm92";
  179. reg = <0x48>;
  180. };
  181. hwmon@4c {
  182. compatible = "adi,adt7461";
  183. reg = <0x4c>;
  184. };
  185. rtc@51 {
  186. compatible = "epson,rx8581";
  187. reg = <0x00000051>;
  188. };
  189. eti@6b {
  190. compatible = "dallas,ds1682";
  191. reg = <0x6b>;
  192. };
  193. };
  194. i2c2: i2c@3100 {
  195. #address-cells = <1>;
  196. #size-cells = <0>;
  197. compatible = "fsl-i2c";
  198. reg = <0x3100 0x100>;
  199. interrupts = <0x2b 0x2>;
  200. interrupt-parent = <&mpic>;
  201. dfsrr;
  202. };
  203. dma@21300 {
  204. #address-cells = <1>;
  205. #size-cells = <1>;
  206. compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
  207. reg = <0x21300 0x4>;
  208. ranges = <0x0 0x21100 0x200>;
  209. cell-index = <0>;
  210. dma-channel@0 {
  211. compatible = "fsl,mpc8641-dma-channel",
  212. "fsl,eloplus-dma-channel";
  213. reg = <0x0 0x80>;
  214. cell-index = <0>;
  215. interrupt-parent = <&mpic>;
  216. interrupts = <20 2>;
  217. };
  218. dma-channel@80 {
  219. compatible = "fsl,mpc8641-dma-channel",
  220. "fsl,eloplus-dma-channel";
  221. reg = <0x80 0x80>;
  222. cell-index = <1>;
  223. interrupt-parent = <&mpic>;
  224. interrupts = <21 2>;
  225. };
  226. dma-channel@100 {
  227. compatible = "fsl,mpc8641-dma-channel",
  228. "fsl,eloplus-dma-channel";
  229. reg = <0x100 0x80>;
  230. cell-index = <2>;
  231. interrupt-parent = <&mpic>;
  232. interrupts = <22 2>;
  233. };
  234. dma-channel@180 {
  235. compatible = "fsl,mpc8641-dma-channel",
  236. "fsl,eloplus-dma-channel";
  237. reg = <0x180 0x80>;
  238. cell-index = <3>;
  239. interrupt-parent = <&mpic>;
  240. interrupts = <23 2>;
  241. };
  242. };
  243. enet0: ethernet@24000 {
  244. #address-cells = <1>;
  245. #size-cells = <1>;
  246. cell-index = <0>;
  247. device_type = "network";
  248. model = "TSEC";
  249. compatible = "gianfar";
  250. reg = <0x24000 0x1000>;
  251. ranges = <0x0 0x24000 0x1000>;
  252. local-mac-address = [ 00 00 00 00 00 00 ];
  253. interrupts = <29 2 30 2 34 2>;
  254. interrupt-parent = <&mpic>;
  255. tbi-handle = <&tbi0>;
  256. phy-handle = <&phy0>;
  257. phy-connection-type = "gmii";
  258. mdio@520 {
  259. #address-cells = <1>;
  260. #size-cells = <0>;
  261. compatible = "fsl,gianfar-mdio";
  262. reg = <0x520 0x20>;
  263. phy0: ethernet-phy@0 {
  264. interrupt-parent = <&gef_pic>;
  265. interrupts = <0x9 0x4>;
  266. reg = <1>;
  267. };
  268. phy2: ethernet-phy@2 {
  269. interrupt-parent = <&gef_pic>;
  270. interrupts = <0x8 0x4>;
  271. reg = <3>;
  272. };
  273. tbi0: tbi-phy@11 {
  274. reg = <0x11>;
  275. device_type = "tbi-phy";
  276. };
  277. };
  278. };
  279. enet1: ethernet@26000 {
  280. #address-cells = <1>;
  281. #size-cells = <1>;
  282. cell-index = <2>;
  283. device_type = "network";
  284. model = "TSEC";
  285. compatible = "gianfar";
  286. reg = <0x26000 0x1000>;
  287. ranges = <0x0 0x26000 0x1000>;
  288. local-mac-address = [ 00 00 00 00 00 00 ];
  289. interrupts = <31 2 32 2 33 2>;
  290. interrupt-parent = <&mpic>;
  291. tbi-handle = <&tbi2>;
  292. phy-handle = <&phy2>;
  293. phy-connection-type = "gmii";
  294. mdio@520 {
  295. #address-cells = <1>;
  296. #size-cells = <0>;
  297. compatible = "fsl,gianfar-tbi";
  298. reg = <0x520 0x20>;
  299. tbi2: tbi-phy@11 {
  300. reg = <0x11>;
  301. device_type = "tbi-phy";
  302. };
  303. };
  304. };
  305. serial0: serial@4500 {
  306. cell-index = <0>;
  307. device_type = "serial";
  308. compatible = "fsl,ns16550", "ns16550";
  309. reg = <0x4500 0x100>;
  310. clock-frequency = <0>;
  311. interrupts = <0x2a 0x2>;
  312. interrupt-parent = <&mpic>;
  313. };
  314. serial1: serial@4600 {
  315. cell-index = <1>;
  316. device_type = "serial";
  317. compatible = "fsl,ns16550", "ns16550";
  318. reg = <0x4600 0x100>;
  319. clock-frequency = <0>;
  320. interrupts = <0x1c 0x2>;
  321. interrupt-parent = <&mpic>;
  322. };
  323. mpic: pic@40000 {
  324. clock-frequency = <0>;
  325. interrupt-controller;
  326. #address-cells = <0>;
  327. #interrupt-cells = <2>;
  328. reg = <0x40000 0x40000>;
  329. compatible = "chrp,open-pic";
  330. device_type = "open-pic";
  331. };
  332. msi@41600 {
  333. compatible = "fsl,mpc8641-msi", "fsl,mpic-msi";
  334. reg = <0x41600 0x80>;
  335. msi-available-ranges = <0 0x100>;
  336. interrupts = <
  337. 0xe0 0
  338. 0xe1 0
  339. 0xe2 0
  340. 0xe3 0
  341. 0xe4 0
  342. 0xe5 0
  343. 0xe6 0
  344. 0xe7 0>;
  345. interrupt-parent = <&mpic>;
  346. };
  347. global-utilities@e0000 {
  348. compatible = "fsl,mpc8641-guts";
  349. reg = <0xe0000 0x1000>;
  350. fsl,has-rstcr;
  351. };
  352. };
  353. pci0: pcie@fef08000 {
  354. compatible = "fsl,mpc8641-pcie";
  355. device_type = "pci";
  356. #interrupt-cells = <1>;
  357. #size-cells = <2>;
  358. #address-cells = <3>;
  359. reg = <0xfef08000 0x1000>;
  360. bus-range = <0x0 0xff>;
  361. ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x40000000
  362. 0x01000000 0x0 0x00000000 0xfe000000 0x0 0x00400000>;
  363. clock-frequency = <33333333>;
  364. interrupt-parent = <&mpic>;
  365. interrupts = <0x18 0x2>;
  366. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  367. interrupt-map = <
  368. 0x0000 0x0 0x0 0x1 &mpic 0x0 0x1
  369. 0x0000 0x0 0x0 0x2 &mpic 0x1 0x1
  370. 0x0000 0x0 0x0 0x3 &mpic 0x2 0x1
  371. 0x0000 0x0 0x0 0x4 &mpic 0x3 0x1
  372. >;
  373. pcie@0 {
  374. reg = <0 0 0 0 0>;
  375. #size-cells = <2>;
  376. #address-cells = <3>;
  377. device_type = "pci";
  378. ranges = <0x02000000 0x0 0x80000000
  379. 0x02000000 0x0 0x80000000
  380. 0x0 0x40000000
  381. 0x01000000 0x0 0x00000000
  382. 0x01000000 0x0 0x00000000
  383. 0x0 0x00400000>;
  384. };
  385. };
  386. };