gef_sbc310.dts 8.4 KB

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