gef_sbc310.dts 9.5 KB

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