gef_sbc610.dts 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /*
  2. * GE Fanuc SBC610 Device Tree Source
  3. *
  4. * Copyright 2008 GE Fanuc 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_sbc610.dtb gef_sbc610.dts
  18. */
  19. /dts-v1/;
  20. / {
  21. model = "GEF_SBC610";
  22. compatible = "gef,sbc610";
  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. nvram@3,0 {
  78. device_type = "nvram";
  79. compatible = "simtek,stk14ca8";
  80. reg = <0x3 0x0 0x20000>;
  81. };
  82. fpga@4,0 {
  83. compatible = "gef,fpga-regs";
  84. reg = <0x4 0x0 0x40>;
  85. };
  86. wdt@4,2000 {
  87. compatible = "gef,fpga-wdt";
  88. reg = <0x4 0x2000 0x8>;
  89. interrupts = <0x1a 0x4>;
  90. interrupt-parent = <&gef_pic>;
  91. };
  92. /* Second watchdog available, driver currently supports one.
  93. wdt@4,2010 {
  94. compatible = "gef,fpga-wdt";
  95. reg = <0x4 0x2010 0x8>;
  96. interrupts = <0x1b 0x4>;
  97. interrupt-parent = <&gef_pic>;
  98. };
  99. */
  100. gef_pic: pic@4,4000 {
  101. #interrupt-cells = <1>;
  102. interrupt-controller;
  103. compatible = "gef,fpga-pic";
  104. reg = <0x4 0x4000 0x20>;
  105. interrupts = <0x8
  106. 0x9>;
  107. interrupt-parent = <&mpic>;
  108. };
  109. gef_gpio: gpio@7,14000 {
  110. #gpio-cells = <2>;
  111. compatible = "gef,sbc610-gpio";
  112. reg = <0x7 0x14000 0x24>;
  113. gpio-controller;
  114. };
  115. };
  116. soc@fef00000 {
  117. #address-cells = <1>;
  118. #size-cells = <1>;
  119. #interrupt-cells = <2>;
  120. device_type = "soc";
  121. compatible = "simple-bus";
  122. ranges = <0x0 0xfef00000 0x00100000>;
  123. bus-frequency = <33333333>;
  124. mcm-law@0 {
  125. compatible = "fsl,mcm-law";
  126. reg = <0x0 0x1000>;
  127. fsl,num-laws = <10>;
  128. };
  129. mcm@1000 {
  130. compatible = "fsl,mpc8641-mcm", "fsl,mcm";
  131. reg = <0x1000 0x1000>;
  132. interrupts = <17 2>;
  133. interrupt-parent = <&mpic>;
  134. };
  135. i2c1: i2c@3000 {
  136. #address-cells = <1>;
  137. #size-cells = <0>;
  138. compatible = "fsl-i2c";
  139. reg = <0x3000 0x100>;
  140. interrupts = <0x2b 0x2>;
  141. interrupt-parent = <&mpic>;
  142. dfsrr;
  143. hwmon@48 {
  144. compatible = "national,lm92";
  145. reg = <0x48>;
  146. };
  147. hwmon@4c {
  148. compatible = "adi,adt7461";
  149. reg = <0x4c>;
  150. };
  151. rtc@51 {
  152. compatible = "epson,rx8581";
  153. reg = <0x00000051>;
  154. };
  155. eti@6b {
  156. compatible = "dallas,ds1682";
  157. reg = <0x6b>;
  158. };
  159. };
  160. i2c2: i2c@3100 {
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. compatible = "fsl-i2c";
  164. reg = <0x3100 0x100>;
  165. interrupts = <0x2b 0x2>;
  166. interrupt-parent = <&mpic>;
  167. dfsrr;
  168. };
  169. dma@21300 {
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
  173. reg = <0x21300 0x4>;
  174. ranges = <0x0 0x21100 0x200>;
  175. cell-index = <0>;
  176. dma-channel@0 {
  177. compatible = "fsl,mpc8641-dma-channel",
  178. "fsl,eloplus-dma-channel";
  179. reg = <0x0 0x80>;
  180. cell-index = <0>;
  181. interrupt-parent = <&mpic>;
  182. interrupts = <20 2>;
  183. };
  184. dma-channel@80 {
  185. compatible = "fsl,mpc8641-dma-channel",
  186. "fsl,eloplus-dma-channel";
  187. reg = <0x80 0x80>;
  188. cell-index = <1>;
  189. interrupt-parent = <&mpic>;
  190. interrupts = <21 2>;
  191. };
  192. dma-channel@100 {
  193. compatible = "fsl,mpc8641-dma-channel",
  194. "fsl,eloplus-dma-channel";
  195. reg = <0x100 0x80>;
  196. cell-index = <2>;
  197. interrupt-parent = <&mpic>;
  198. interrupts = <22 2>;
  199. };
  200. dma-channel@180 {
  201. compatible = "fsl,mpc8641-dma-channel",
  202. "fsl,eloplus-dma-channel";
  203. reg = <0x180 0x80>;
  204. cell-index = <3>;
  205. interrupt-parent = <&mpic>;
  206. interrupts = <23 2>;
  207. };
  208. };
  209. enet0: ethernet@24000 {
  210. #address-cells = <1>;
  211. #size-cells = <1>;
  212. device_type = "network";
  213. model = "eTSEC";
  214. compatible = "gianfar";
  215. reg = <0x24000 0x1000>;
  216. ranges = <0x0 0x24000 0x1000>;
  217. local-mac-address = [ 00 00 00 00 00 00 ];
  218. interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
  219. interrupt-parent = <&mpic>;
  220. phy-handle = <&phy0>;
  221. phy-connection-type = "gmii";
  222. mdio@520 {
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. compatible = "fsl,gianfar-mdio";
  226. reg = <0x520 0x20>;
  227. phy0: ethernet-phy@0 {
  228. interrupt-parent = <&gef_pic>;
  229. interrupts = <0x9 0x4>;
  230. reg = <1>;
  231. };
  232. phy2: ethernet-phy@2 {
  233. interrupt-parent = <&gef_pic>;
  234. interrupts = <0x8 0x4>;
  235. reg = <3>;
  236. };
  237. };
  238. };
  239. enet1: ethernet@26000 {
  240. device_type = "network";
  241. model = "eTSEC";
  242. compatible = "gianfar";
  243. reg = <0x26000 0x1000>;
  244. local-mac-address = [ 00 00 00 00 00 00 ];
  245. interrupts = <0x1f 0x2 0x20 0x2 0x21 0x2>;
  246. interrupt-parent = <&mpic>;
  247. phy-handle = <&phy2>;
  248. phy-connection-type = "gmii";
  249. };
  250. serial0: serial@4500 {
  251. cell-index = <0>;
  252. device_type = "serial";
  253. compatible = "ns16550";
  254. reg = <0x4500 0x100>;
  255. clock-frequency = <0>;
  256. interrupts = <0x2a 0x2>;
  257. interrupt-parent = <&mpic>;
  258. };
  259. serial1: serial@4600 {
  260. cell-index = <1>;
  261. device_type = "serial";
  262. compatible = "ns16550";
  263. reg = <0x4600 0x100>;
  264. clock-frequency = <0>;
  265. interrupts = <0x1c 0x2>;
  266. interrupt-parent = <&mpic>;
  267. };
  268. mpic: pic@40000 {
  269. clock-frequency = <0>;
  270. interrupt-controller;
  271. #address-cells = <0>;
  272. #interrupt-cells = <2>;
  273. reg = <0x40000 0x40000>;
  274. compatible = "chrp,open-pic";
  275. device_type = "open-pic";
  276. };
  277. global-utilities@e0000 {
  278. compatible = "fsl,mpc8641-guts";
  279. reg = <0xe0000 0x1000>;
  280. fsl,has-rstcr;
  281. };
  282. };
  283. pci0: pcie@fef08000 {
  284. compatible = "fsl,mpc8641-pcie";
  285. device_type = "pci";
  286. #interrupt-cells = <1>;
  287. #size-cells = <2>;
  288. #address-cells = <3>;
  289. reg = <0xfef08000 0x1000>;
  290. bus-range = <0x0 0xff>;
  291. ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x40000000
  292. 0x01000000 0x0 0x00000000 0xfe000000 0x0 0x00400000>;
  293. clock-frequency = <33333333>;
  294. interrupt-parent = <&mpic>;
  295. interrupts = <0x18 0x2>;
  296. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  297. interrupt-map = <
  298. 0x0000 0x0 0x0 0x1 &mpic 0x0 0x1
  299. 0x0000 0x0 0x0 0x2 &mpic 0x1 0x1
  300. 0x0000 0x0 0x0 0x3 &mpic 0x2 0x1
  301. 0x0000 0x0 0x0 0x4 &mpic 0x3 0x1
  302. >;
  303. pcie@0 {
  304. reg = <0 0 0 0 0>;
  305. #size-cells = <2>;
  306. #address-cells = <3>;
  307. device_type = "pci";
  308. ranges = <0x02000000 0x0 0x80000000
  309. 0x02000000 0x0 0x80000000
  310. 0x0 0x40000000
  311. 0x01000000 0x0 0x00000000
  312. 0x01000000 0x0 0x00000000
  313. 0x0 0x00400000>;
  314. };
  315. };
  316. };