mpc8313erdb.dts 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * MPC8313E RDB Device Tree Source
  4. *
  5. * Copyright 2005, 2006, 2007 Freescale Semiconductor Inc.
  6. */
  7. /dts-v1/;
  8. / {
  9. model = "MPC8313ERDB";
  10. compatible = "MPC8313ERDB", "MPC831xRDB", "MPC83xxRDB";
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. aliases {
  14. ethernet0 = &enet0;
  15. ethernet1 = &enet1;
  16. serial0 = &serial0;
  17. serial1 = &serial1;
  18. pci0 = &pci0;
  19. };
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. PowerPC,8313@0 {
  24. device_type = "cpu";
  25. reg = <0x0>;
  26. d-cache-line-size = <32>;
  27. i-cache-line-size = <32>;
  28. d-cache-size = <16384>;
  29. i-cache-size = <16384>;
  30. timebase-frequency = <0>; // from bootloader
  31. bus-frequency = <0>; // from bootloader
  32. clock-frequency = <0>; // from bootloader
  33. };
  34. };
  35. memory {
  36. device_type = "memory";
  37. reg = <0x00000000 0x08000000>; // 128MB at 0
  38. };
  39. localbus@e0005000 {
  40. #address-cells = <2>;
  41. #size-cells = <1>;
  42. compatible = "fsl,mpc8313-elbc", "fsl,elbc", "simple-bus";
  43. reg = <0xe0005000 0x1000>;
  44. interrupts = <77 0x8>;
  45. interrupt-parent = <&ipic>;
  46. // CS0 and CS1 are swapped when
  47. // booting from nand, but the
  48. // addresses are the same.
  49. ranges = <0x0 0x0 0xfe000000 0x00800000
  50. 0x1 0x0 0xe2800000 0x00008000
  51. 0x2 0x0 0xf0000000 0x00020000
  52. 0x3 0x0 0xfa000000 0x00008000>;
  53. flash@0,0 {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "cfi-flash";
  57. reg = <0x0 0x0 0x800000>;
  58. bank-width = <2>;
  59. device-width = <1>;
  60. };
  61. nand@1,0 {
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. compatible = "fsl,mpc8313-fcm-nand",
  65. "fsl,elbc-fcm-nand";
  66. reg = <0x1 0x0 0x2000>;
  67. u-boot@0 {
  68. reg = <0x0 0x100000>;
  69. read-only;
  70. };
  71. kernel@100000 {
  72. reg = <0x100000 0x300000>;
  73. };
  74. fs@400000 {
  75. reg = <0x400000 0x1c00000>;
  76. };
  77. };
  78. };
  79. soc8313@e0000000 {
  80. #address-cells = <1>;
  81. #size-cells = <1>;
  82. device_type = "soc";
  83. compatible = "simple-bus";
  84. ranges = <0x0 0xe0000000 0x00100000>;
  85. reg = <0xe0000000 0x00000200>;
  86. bus-frequency = <0>;
  87. wdt@200 {
  88. device_type = "watchdog";
  89. compatible = "mpc83xx_wdt";
  90. reg = <0x200 0x100>;
  91. };
  92. sleep-nexus {
  93. #address-cells = <1>;
  94. #size-cells = <1>;
  95. compatible = "simple-bus";
  96. sleep = <&pmc 0x03000000>;
  97. ranges;
  98. i2c@3000 {
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. cell-index = <0>;
  102. compatible = "fsl-i2c";
  103. reg = <0x3000 0x100>;
  104. interrupts = <14 0x8>;
  105. interrupt-parent = <&ipic>;
  106. dfsrr;
  107. rtc@68 {
  108. compatible = "dallas,ds1339";
  109. reg = <0x68>;
  110. };
  111. };
  112. crypto@30000 {
  113. compatible = "fsl,sec2.2", "fsl,sec2.1",
  114. "fsl,sec2.0";
  115. reg = <0x30000 0x10000>;
  116. interrupts = <11 0x8>;
  117. interrupt-parent = <&ipic>;
  118. fsl,num-channels = <1>;
  119. fsl,channel-fifo-len = <24>;
  120. fsl,exec-units-mask = <0x4c>;
  121. fsl,descriptor-types-mask = <0x0122003f>;
  122. };
  123. };
  124. i2c@3100 {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. cell-index = <1>;
  128. compatible = "fsl-i2c";
  129. reg = <0x3100 0x100>;
  130. interrupts = <15 0x8>;
  131. interrupt-parent = <&ipic>;
  132. dfsrr;
  133. };
  134. spi@7000 {
  135. cell-index = <0>;
  136. compatible = "fsl,spi";
  137. reg = <0x7000 0x1000>;
  138. interrupts = <16 0x8>;
  139. interrupt-parent = <&ipic>;
  140. mode = "cpu";
  141. };
  142. /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
  143. usb@23000 {
  144. compatible = "fsl-usb2-dr";
  145. reg = <0x23000 0x1000>;
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. interrupt-parent = <&ipic>;
  149. interrupts = <38 0x8>;
  150. phy_type = "utmi_wide";
  151. sleep = <&pmc 0x00300000>;
  152. };
  153. ptp_clock@24E00 {
  154. compatible = "fsl,etsec-ptp";
  155. reg = <0x24E00 0xB0>;
  156. interrupts = <12 0x8 13 0x8>;
  157. interrupt-parent = < &ipic >;
  158. fsl,tclk-period = <10>;
  159. fsl,tmr-prsc = <100>;
  160. fsl,tmr-add = <0x999999A4>;
  161. fsl,tmr-fiper1 = <0x3B9AC9F6>;
  162. fsl,tmr-fiper2 = <0x00018696>;
  163. fsl,max-adj = <659999998>;
  164. };
  165. enet0: ethernet@24000 {
  166. #address-cells = <1>;
  167. #size-cells = <1>;
  168. sleep = <&pmc 0x20000000>;
  169. ranges = <0x0 0x24000 0x1000>;
  170. cell-index = <0>;
  171. device_type = "network";
  172. model = "eTSEC";
  173. compatible = "gianfar";
  174. reg = <0x24000 0x1000>;
  175. local-mac-address = [ 00 00 00 00 00 00 ];
  176. interrupts = <37 0x8 36 0x8 35 0x8>;
  177. interrupt-parent = <&ipic>;
  178. tbi-handle = < &tbi0 >;
  179. /* Vitesse 7385 isn't on the MDIO bus */
  180. fixed-link = <1 1 1000 0 0>;
  181. fsl,magic-packet;
  182. mdio@520 {
  183. #address-cells = <1>;
  184. #size-cells = <0>;
  185. compatible = "fsl,gianfar-mdio";
  186. reg = <0x520 0x20>;
  187. phy4: ethernet-phy@4 {
  188. interrupt-parent = <&ipic>;
  189. interrupts = <20 0x8>;
  190. reg = <0x4>;
  191. };
  192. tbi0: tbi-phy@11 {
  193. reg = <0x11>;
  194. device_type = "tbi-phy";
  195. };
  196. };
  197. };
  198. enet1: ethernet@25000 {
  199. #address-cells = <1>;
  200. #size-cells = <1>;
  201. cell-index = <1>;
  202. device_type = "network";
  203. model = "eTSEC";
  204. compatible = "gianfar";
  205. reg = <0x25000 0x1000>;
  206. ranges = <0x0 0x25000 0x1000>;
  207. local-mac-address = [ 00 00 00 00 00 00 ];
  208. interrupts = <34 0x8 33 0x8 32 0x8>;
  209. interrupt-parent = <&ipic>;
  210. tbi-handle = < &tbi1 >;
  211. phy-handle = < &phy4 >;
  212. sleep = <&pmc 0x10000000>;
  213. fsl,magic-packet;
  214. mdio@520 {
  215. #address-cells = <1>;
  216. #size-cells = <0>;
  217. compatible = "fsl,gianfar-tbi";
  218. reg = <0x520 0x20>;
  219. tbi1: tbi-phy@11 {
  220. reg = <0x11>;
  221. device_type = "tbi-phy";
  222. };
  223. };
  224. };
  225. serial0: serial@4500 {
  226. cell-index = <0>;
  227. device_type = "serial";
  228. compatible = "fsl,ns16550", "ns16550";
  229. reg = <0x4500 0x100>;
  230. clock-frequency = <0>;
  231. interrupts = <9 0x8>;
  232. interrupt-parent = <&ipic>;
  233. };
  234. serial1: serial@4600 {
  235. cell-index = <1>;
  236. device_type = "serial";
  237. compatible = "fsl,ns16550", "ns16550";
  238. reg = <0x4600 0x100>;
  239. clock-frequency = <0>;
  240. interrupts = <10 0x8>;
  241. interrupt-parent = <&ipic>;
  242. };
  243. /* IPIC
  244. * interrupts cell = <intr #, sense>
  245. * sense values match linux IORESOURCE_IRQ_* defines:
  246. * sense == 8: Level, low assertion
  247. * sense == 2: Edge, high-to-low change
  248. */
  249. ipic: pic@700 {
  250. interrupt-controller;
  251. #address-cells = <0>;
  252. #interrupt-cells = <2>;
  253. reg = <0x700 0x100>;
  254. device_type = "ipic";
  255. };
  256. pmc: power@b00 {
  257. compatible = "fsl,mpc8313-pmc", "fsl,mpc8349-pmc";
  258. reg = <0xb00 0x100 0xa00 0x100>;
  259. interrupts = <80 8>;
  260. interrupt-parent = <&ipic>;
  261. fsl,mpc8313-wakeup-timer = <&gtm1>;
  262. /* Remove this (or change to "okay") if you have
  263. * a REVA3 or later board, if you apply one of the
  264. * workarounds listed in section 8.5 of the board
  265. * manual, or if you are adapting this device tree
  266. * to a different board.
  267. */
  268. status = "fail";
  269. };
  270. gtm1: timer@500 {
  271. compatible = "fsl,mpc8313-gtm", "fsl,gtm";
  272. reg = <0x500 0x100>;
  273. interrupts = <90 8 78 8 84 8 72 8>;
  274. interrupt-parent = <&ipic>;
  275. };
  276. timer@600 {
  277. compatible = "fsl,mpc8313-gtm", "fsl,gtm";
  278. reg = <0x600 0x100>;
  279. interrupts = <91 8 79 8 85 8 73 8>;
  280. interrupt-parent = <&ipic>;
  281. };
  282. };
  283. sleep-nexus {
  284. #address-cells = <1>;
  285. #size-cells = <1>;
  286. compatible = "simple-bus";
  287. sleep = <&pmc 0x00010000>;
  288. ranges;
  289. pci0: pci@e0008500 {
  290. cell-index = <1>;
  291. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  292. interrupt-map = <
  293. /* IDSEL 0x0E -mini PCI */
  294. 0x7000 0x0 0x0 0x1 &ipic 18 0x8
  295. 0x7000 0x0 0x0 0x2 &ipic 18 0x8
  296. 0x7000 0x0 0x0 0x3 &ipic 18 0x8
  297. 0x7000 0x0 0x0 0x4 &ipic 18 0x8
  298. /* IDSEL 0x0F - PCI slot */
  299. 0x7800 0x0 0x0 0x1 &ipic 17 0x8
  300. 0x7800 0x0 0x0 0x2 &ipic 18 0x8
  301. 0x7800 0x0 0x0 0x3 &ipic 17 0x8
  302. 0x7800 0x0 0x0 0x4 &ipic 18 0x8>;
  303. interrupt-parent = <&ipic>;
  304. interrupts = <66 0x8>;
  305. bus-range = <0x0 0x0>;
  306. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  307. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  308. 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
  309. clock-frequency = <66666666>;
  310. #interrupt-cells = <1>;
  311. #size-cells = <2>;
  312. #address-cells = <3>;
  313. reg = <0xe0008500 0x100 /* internal registers */
  314. 0xe0008300 0x8>; /* config space access registers */
  315. compatible = "fsl,mpc8349-pci";
  316. device_type = "pci";
  317. };
  318. dma@82a8 {
  319. #address-cells = <1>;
  320. #size-cells = <1>;
  321. compatible = "fsl,mpc8313-dma", "fsl,elo-dma";
  322. reg = <0xe00082a8 4>;
  323. ranges = <0 0xe0008100 0x1a8>;
  324. interrupt-parent = <&ipic>;
  325. interrupts = <71 8>;
  326. dma-channel@0 {
  327. compatible = "fsl,mpc8313-dma-channel",
  328. "fsl,elo-dma-channel";
  329. reg = <0 0x28>;
  330. interrupt-parent = <&ipic>;
  331. interrupts = <71 8>;
  332. cell-index = <0>;
  333. };
  334. dma-channel@80 {
  335. compatible = "fsl,mpc8313-dma-channel",
  336. "fsl,elo-dma-channel";
  337. reg = <0x80 0x28>;
  338. interrupt-parent = <&ipic>;
  339. interrupts = <71 8>;
  340. cell-index = <1>;
  341. };
  342. dma-channel@100 {
  343. compatible = "fsl,mpc8313-dma-channel",
  344. "fsl,elo-dma-channel";
  345. reg = <0x100 0x28>;
  346. interrupt-parent = <&ipic>;
  347. interrupts = <71 8>;
  348. cell-index = <2>;
  349. };
  350. dma-channel@180 {
  351. compatible = "fsl,mpc8313-dma-channel",
  352. "fsl,elo-dma-channel";
  353. reg = <0x180 0x28>;
  354. interrupt-parent = <&ipic>;
  355. interrupts = <71 8>;
  356. cell-index = <3>;
  357. };
  358. };
  359. };
  360. };