gef_sbc310.dts 10 KB

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