pdm360ng.dts 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. /*
  2. * Device Tree Source for IFM PDM360NG.
  3. *
  4. * Copyright 2009 - 2010 DENX Software Engineering.
  5. * Anatolij Gustschin <agust@denx.de>
  6. *
  7. * Based on MPC5121E ADS dts.
  8. * Copyright 2008 Freescale Semiconductor Inc.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. */
  15. /dts-v1/;
  16. / {
  17. model = "pdm360ng";
  18. compatible = "ifm,pdm360ng";
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. interrupt-parent = <&ipic>;
  22. aliases {
  23. ethernet0 = &eth0;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. PowerPC,5121@0 {
  29. device_type = "cpu";
  30. reg = <0>;
  31. d-cache-line-size = <0x20>; // 32 bytes
  32. i-cache-line-size = <0x20>; // 32 bytes
  33. d-cache-size = <0x8000>; // L1, 32K
  34. i-cache-size = <0x8000>; // L1, 32K
  35. timebase-frequency = <49500000>;// 49.5 MHz (csb/4)
  36. bus-frequency = <198000000>; // 198 MHz csb bus
  37. clock-frequency = <396000000>; // 396 MHz ppc core
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. reg = <0x00000000 0x20000000>; // 512MB at 0
  43. };
  44. nfc@40000000 {
  45. compatible = "fsl,mpc5121-nfc";
  46. reg = <0x40000000 0x100000>;
  47. interrupts = <0x6 0x8>;
  48. #address-cells = <0x1>;
  49. #size-cells = <0x1>;
  50. bank-width = <0x1>;
  51. chips = <0x1>;
  52. partition@0 {
  53. label = "nand0";
  54. reg = <0x0 0x40000000>;
  55. };
  56. };
  57. sram@50000000 {
  58. compatible = "fsl,mpc5121-sram";
  59. reg = <0x50000000 0x20000>; // 128K at 0x50000000
  60. };
  61. localbus@80000020 {
  62. compatible = "fsl,mpc5121-localbus";
  63. #address-cells = <2>;
  64. #size-cells = <1>;
  65. reg = <0x80000020 0x40>;
  66. ranges = <0x0 0x0 0xf0000000 0x10000000 /* Flash */
  67. 0x2 0x0 0x50040000 0x00020000>; /* CS2: MRAM */
  68. flash@0,0 {
  69. compatible = "amd,s29gl01gp", "cfi-flash";
  70. reg = <0 0x00000000 0x08000000
  71. 0 0x08000000 0x08000000>;
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. bank-width = <4>;
  75. device-width = <2>;
  76. partition@0 {
  77. label = "u-boot";
  78. reg = <0x00000000 0x00080000>;
  79. read-only;
  80. };
  81. partition@80000 {
  82. label = "environment";
  83. reg = <0x00080000 0x00080000>;
  84. read-only;
  85. };
  86. partition@100000 {
  87. label = "splash-image";
  88. reg = <0x00100000 0x00080000>;
  89. read-only;
  90. };
  91. partition@180000 {
  92. label = "device-tree";
  93. reg = <0x00180000 0x00040000>;
  94. };
  95. partition@1c0000 {
  96. label = "kernel";
  97. reg = <0x001c0000 0x00500000>;
  98. };
  99. partition@6c0000 {
  100. label = "filesystem";
  101. reg = <0x006c0000 0x07940000>;
  102. };
  103. };
  104. mram0@2,0 {
  105. compatible = "mtd-ram";
  106. reg = <2 0x00000 0x10000>;
  107. bank-width = <2>;
  108. };
  109. mram1@2,10000 {
  110. compatible = "mtd-ram";
  111. reg = <2 0x010000 0x10000>;
  112. bank-width = <2>;
  113. };
  114. };
  115. soc@80000000 {
  116. compatible = "fsl,mpc5121-immr";
  117. #address-cells = <1>;
  118. #size-cells = <1>;
  119. #interrupt-cells = <2>;
  120. ranges = <0x0 0x80000000 0x400000>;
  121. reg = <0x80000000 0x400000>;
  122. bus-frequency = <66000000>; // 66 MHz ips bus
  123. // IPIC
  124. // interrupts cell = <intr #, sense>
  125. // sense values match linux IORESOURCE_IRQ_* defines:
  126. // sense == 8: Level, low assertion
  127. // sense == 2: Edge, high-to-low change
  128. //
  129. ipic: interrupt-controller@c00 {
  130. compatible = "fsl,mpc5121-ipic", "fsl,ipic";
  131. interrupt-controller;
  132. #address-cells = <0>;
  133. #interrupt-cells = <2>;
  134. reg = <0xc00 0x100>;
  135. };
  136. rtc@a00 { // Real time clock
  137. compatible = "fsl,mpc5121-rtc";
  138. reg = <0xa00 0x100>;
  139. interrupts = <79 0x8 80 0x8>;
  140. };
  141. reset@e00 { // Reset module
  142. compatible = "fsl,mpc5121-reset";
  143. reg = <0xe00 0x100>;
  144. };
  145. clock@f00 { // Clock control
  146. compatible = "fsl,mpc5121-clock";
  147. reg = <0xf00 0x100>;
  148. };
  149. pmc@1000{ //Power Management Controller
  150. compatible = "fsl,mpc5121-pmc";
  151. reg = <0x1000 0x100>;
  152. interrupts = <83 0x2>;
  153. };
  154. gpio@1100 {
  155. compatible = "fsl,mpc5121-gpio";
  156. reg = <0x1100 0x100>;
  157. interrupts = <78 0x8>;
  158. };
  159. can@1300 {
  160. compatible = "fsl,mpc5121-mscan";
  161. interrupts = <12 0x8>;
  162. reg = <0x1300 0x80>;
  163. };
  164. can@1380 {
  165. compatible = "fsl,mpc5121-mscan";
  166. interrupts = <13 0x8>;
  167. reg = <0x1380 0x80>;
  168. };
  169. i2c@1700 {
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. compatible = "fsl,mpc5121-i2c";
  173. reg = <0x1700 0x20>;
  174. interrupts = <0x9 0x8>;
  175. fsl,preserve-clocking;
  176. eeprom@50 {
  177. compatible = "at,24c01";
  178. reg = <0x50>;
  179. };
  180. rtc@68 {
  181. compatible = "stm,m41t00";
  182. reg = <0x68>;
  183. };
  184. };
  185. i2c@1740 {
  186. #address-cells = <1>;
  187. #size-cells = <0>;
  188. compatible = "fsl,mpc5121-i2c";
  189. reg = <0x1740 0x20>;
  190. interrupts = <0xb 0x8>;
  191. fsl,preserve-clocking;
  192. };
  193. i2ccontrol@1760 {
  194. compatible = "fsl,mpc5121-i2c-ctrl";
  195. reg = <0x1760 0x8>;
  196. };
  197. axe@2000 {
  198. compatible = "fsl,mpc5121-axe";
  199. reg = <0x2000 0x100>;
  200. interrupts = <42 0x8>;
  201. };
  202. display@2100 {
  203. compatible = "fsl,mpc5121-diu";
  204. reg = <0x2100 0x100>;
  205. interrupts = <64 0x8>;
  206. };
  207. can@2300 {
  208. compatible = "fsl,mpc5121-mscan";
  209. interrupts = <90 0x8>;
  210. reg = <0x2300 0x80>;
  211. };
  212. can@2380 {
  213. compatible = "fsl,mpc5121-mscan";
  214. interrupts = <91 0x8>;
  215. reg = <0x2380 0x80>;
  216. };
  217. viu@2400 {
  218. compatible = "fsl,mpc5121-viu";
  219. reg = <0x2400 0x400>;
  220. interrupts = <67 0x8>;
  221. };
  222. mdio@2800 {
  223. compatible = "fsl,mpc5121-fec-mdio";
  224. reg = <0x2800 0x200>;
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. phy: ethernet-phy@0 {
  228. compatible = "smsc,lan8700";
  229. reg = <0x1f>;
  230. };
  231. };
  232. eth0: ethernet@2800 {
  233. compatible = "fsl,mpc5121-fec";
  234. reg = <0x2800 0x200>;
  235. local-mac-address = [ 00 00 00 00 00 00 ];
  236. interrupts = <4 0x8>;
  237. phy-handle = < &phy >;
  238. };
  239. // USB1 using external ULPI PHY
  240. usb@3000 {
  241. compatible = "fsl,mpc5121-usb2-dr";
  242. reg = <0x3000 0x600>;
  243. #address-cells = <1>;
  244. #size-cells = <0>;
  245. interrupts = <43 0x8>;
  246. dr_mode = "host";
  247. phy_type = "ulpi";
  248. };
  249. // USB0 using internal UTMI PHY
  250. usb@4000 {
  251. compatible = "fsl,mpc5121-usb2-dr";
  252. reg = <0x4000 0x600>;
  253. #address-cells = <1>;
  254. #size-cells = <0>;
  255. interrupts = <44 0x8>;
  256. dr_mode = "otg";
  257. phy_type = "utmi_wide";
  258. fsl,invert-pwr-fault;
  259. };
  260. // IO control
  261. ioctl@a000 {
  262. compatible = "fsl,mpc5121-ioctl";
  263. reg = <0xA000 0x1000>;
  264. };
  265. // 512x PSCs are not 52xx PSCs compatible
  266. serial@11000 {
  267. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  268. cell-index = <0>;
  269. reg = <0x11000 0x100>;
  270. interrupts = <40 0x8>;
  271. fsl,rx-fifo-size = <16>;
  272. fsl,tx-fifo-size = <16>;
  273. };
  274. serial@11100 {
  275. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  276. cell-index = <1>;
  277. reg = <0x11100 0x100>;
  278. interrupts = <40 0x8>;
  279. fsl,rx-fifo-size = <16>;
  280. fsl,tx-fifo-size = <16>;
  281. };
  282. serial@11200 {
  283. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  284. cell-index = <2>;
  285. reg = <0x11200 0x100>;
  286. interrupts = <40 0x8>;
  287. fsl,rx-fifo-size = <16>;
  288. fsl,tx-fifo-size = <16>;
  289. };
  290. serial@11300 {
  291. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  292. cell-index = <3>;
  293. reg = <0x11300 0x100>;
  294. interrupts = <40 0x8>;
  295. fsl,rx-fifo-size = <16>;
  296. fsl,tx-fifo-size = <16>;
  297. };
  298. serial@11400 {
  299. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  300. cell-index = <4>;
  301. reg = <0x11400 0x100>;
  302. interrupts = <40 0x8>;
  303. fsl,rx-fifo-size = <16>;
  304. fsl,tx-fifo-size = <16>;
  305. };
  306. serial@11600 {
  307. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  308. cell-index = <6>;
  309. reg = <0x11600 0x100>;
  310. interrupts = <40 0x8>;
  311. fsl,rx-fifo-size = <16>;
  312. fsl,tx-fifo-size = <16>;
  313. };
  314. serial@11800 {
  315. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  316. cell-index = <8>;
  317. reg = <0x11800 0x100>;
  318. interrupts = <40 0x8>;
  319. fsl,rx-fifo-size = <16>;
  320. fsl,tx-fifo-size = <16>;
  321. };
  322. serial@11B00 {
  323. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  324. cell-index = <11>;
  325. reg = <0x11B00 0x100>;
  326. interrupts = <40 0x8>;
  327. fsl,rx-fifo-size = <16>;
  328. fsl,tx-fifo-size = <16>;
  329. };
  330. pscfifo@11f00 {
  331. compatible = "fsl,mpc5121-psc-fifo";
  332. reg = <0x11f00 0x100>;
  333. interrupts = <40 0x8>;
  334. };
  335. spi@11900 {
  336. compatible = "fsl,mpc5121-psc-spi", "fsl,mpc5121-psc";
  337. cell-index = <9>;
  338. #address-cells = <1>;
  339. #size-cells = <0>;
  340. reg = <0x11900 0x100>;
  341. interrupts = <40 0x8>;
  342. fsl,rx-fifo-size = <16>;
  343. fsl,tx-fifo-size = <16>;
  344. // 7845 touch screen controller
  345. ts@0 {
  346. compatible = "ti,ads7846";
  347. reg = <0x0>;
  348. spi-max-frequency = <3000000>;
  349. // pen irq is GPIO25
  350. interrupts = <78 0x8>;
  351. };
  352. };
  353. dma@14000 {
  354. compatible = "fsl,mpc5121-dma";
  355. reg = <0x14000 0x1800>;
  356. interrupts = <65 0x8>;
  357. };
  358. };
  359. };