mpc8315erdb.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * MPC8315E RDB Device Tree Source
  4. *
  5. * Copyright 2007 Freescale Semiconductor Inc.
  6. */
  7. /dts-v1/;
  8. / {
  9. compatible = "fsl,mpc8315erdb";
  10. #address-cells = <1>;
  11. #size-cells = <1>;
  12. aliases {
  13. ethernet0 = &enet0;
  14. ethernet1 = &enet1;
  15. serial0 = &serial0;
  16. serial1 = &serial1;
  17. pci0 = &pci0;
  18. pci1 = &pci1;
  19. pci2 = &pci2;
  20. };
  21. cpus {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. PowerPC,8315@0 {
  25. device_type = "cpu";
  26. reg = <0x0>;
  27. d-cache-line-size = <32>;
  28. i-cache-line-size = <32>;
  29. d-cache-size = <16384>;
  30. i-cache-size = <16384>;
  31. timebase-frequency = <0>; // from bootloader
  32. bus-frequency = <0>; // from bootloader
  33. clock-frequency = <0>; // from bootloader
  34. };
  35. };
  36. memory {
  37. device_type = "memory";
  38. reg = <0x00000000 0x08000000>; // 128MB at 0
  39. };
  40. localbus@e0005000 {
  41. #address-cells = <2>;
  42. #size-cells = <1>;
  43. compatible = "fsl,mpc8315-elbc", "fsl,elbc", "simple-bus";
  44. reg = <0xe0005000 0x1000>;
  45. interrupts = <77 0x8>;
  46. interrupt-parent = <&ipic>;
  47. // CS0 and CS1 are swapped when
  48. // booting from nand, but the
  49. // addresses are the same.
  50. ranges = <0x0 0x0 0xfe000000 0x00800000
  51. 0x1 0x0 0xe0600000 0x00002000
  52. 0x2 0x0 0xf0000000 0x00020000
  53. 0x3 0x0 0xfa000000 0x00008000>;
  54. flash@0,0 {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. compatible = "cfi-flash";
  58. reg = <0x0 0x0 0x800000>;
  59. bank-width = <2>;
  60. device-width = <1>;
  61. };
  62. nand@1,0 {
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. compatible = "fsl,mpc8315-fcm-nand",
  66. "fsl,elbc-fcm-nand";
  67. reg = <0x1 0x0 0x2000>;
  68. u-boot@0 {
  69. reg = <0x0 0x100000>;
  70. read-only;
  71. };
  72. kernel@100000 {
  73. reg = <0x100000 0x300000>;
  74. };
  75. fs@400000 {
  76. reg = <0x400000 0x1c00000>;
  77. };
  78. };
  79. };
  80. immr@e0000000 {
  81. #address-cells = <1>;
  82. #size-cells = <1>;
  83. device_type = "soc";
  84. compatible = "fsl,mpc8315-immr", "simple-bus";
  85. ranges = <0 0xe0000000 0x00100000>;
  86. reg = <0xe0000000 0x00000200>;
  87. bus-frequency = <0>;
  88. wdt@200 {
  89. device_type = "watchdog";
  90. compatible = "mpc83xx_wdt";
  91. reg = <0x200 0x100>;
  92. };
  93. i2c@3000 {
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. cell-index = <0>;
  97. compatible = "fsl-i2c";
  98. reg = <0x3000 0x100>;
  99. interrupts = <14 0x8>;
  100. interrupt-parent = <&ipic>;
  101. dfsrr;
  102. rtc@68 {
  103. compatible = "dallas,ds1339";
  104. reg = <0x68>;
  105. };
  106. mcu_pio: mcu@a {
  107. #gpio-cells = <2>;
  108. compatible = "fsl,mc9s08qg8-mpc8315erdb",
  109. "fsl,mcu-mpc8349emitx";
  110. reg = <0x0a>;
  111. gpio-controller;
  112. };
  113. };
  114. spi@7000 {
  115. cell-index = <0>;
  116. compatible = "fsl,spi";
  117. reg = <0x7000 0x1000>;
  118. interrupts = <16 0x8>;
  119. interrupt-parent = <&ipic>;
  120. mode = "cpu";
  121. };
  122. dma@82a8 {
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. compatible = "fsl,mpc8315-dma", "fsl,elo-dma";
  126. reg = <0x82a8 4>;
  127. ranges = <0 0x8100 0x1a8>;
  128. interrupt-parent = <&ipic>;
  129. interrupts = <71 8>;
  130. cell-index = <0>;
  131. dma-channel@0 {
  132. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  133. reg = <0 0x80>;
  134. cell-index = <0>;
  135. interrupt-parent = <&ipic>;
  136. interrupts = <71 8>;
  137. };
  138. dma-channel@80 {
  139. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  140. reg = <0x80 0x80>;
  141. cell-index = <1>;
  142. interrupt-parent = <&ipic>;
  143. interrupts = <71 8>;
  144. };
  145. dma-channel@100 {
  146. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  147. reg = <0x100 0x80>;
  148. cell-index = <2>;
  149. interrupt-parent = <&ipic>;
  150. interrupts = <71 8>;
  151. };
  152. dma-channel@180 {
  153. compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel";
  154. reg = <0x180 0x28>;
  155. cell-index = <3>;
  156. interrupt-parent = <&ipic>;
  157. interrupts = <71 8>;
  158. };
  159. };
  160. usb@23000 {
  161. compatible = "fsl-usb2-dr";
  162. reg = <0x23000 0x1000>;
  163. #address-cells = <1>;
  164. #size-cells = <0>;
  165. interrupt-parent = <&ipic>;
  166. interrupts = <38 0x8>;
  167. phy_type = "utmi";
  168. };
  169. enet0: ethernet@24000 {
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. cell-index = <0>;
  173. device_type = "network";
  174. model = "eTSEC";
  175. compatible = "gianfar";
  176. reg = <0x24000 0x1000>;
  177. ranges = <0x0 0x24000 0x1000>;
  178. local-mac-address = [ 00 00 00 00 00 00 ];
  179. interrupts = <32 0x8 33 0x8 34 0x8>;
  180. interrupt-parent = <&ipic>;
  181. tbi-handle = <&tbi0>;
  182. phy-handle = < &phy0 >;
  183. fsl,magic-packet;
  184. mdio@520 {
  185. #address-cells = <1>;
  186. #size-cells = <0>;
  187. compatible = "fsl,gianfar-mdio";
  188. reg = <0x520 0x20>;
  189. phy0: ethernet-phy@0 {
  190. interrupt-parent = <&ipic>;
  191. interrupts = <20 0x8>;
  192. reg = <0x0>;
  193. };
  194. phy1: ethernet-phy@1 {
  195. interrupt-parent = <&ipic>;
  196. interrupts = <19 0x8>;
  197. reg = <0x1>;
  198. };
  199. tbi0: tbi-phy@11 {
  200. reg = <0x11>;
  201. device_type = "tbi-phy";
  202. };
  203. };
  204. };
  205. enet1: ethernet@25000 {
  206. #address-cells = <1>;
  207. #size-cells = <1>;
  208. cell-index = <1>;
  209. device_type = "network";
  210. model = "eTSEC";
  211. compatible = "gianfar";
  212. reg = <0x25000 0x1000>;
  213. ranges = <0x0 0x25000 0x1000>;
  214. local-mac-address = [ 00 00 00 00 00 00 ];
  215. interrupts = <35 0x8 36 0x8 37 0x8>;
  216. interrupt-parent = <&ipic>;
  217. tbi-handle = <&tbi1>;
  218. phy-handle = < &phy1 >;
  219. fsl,magic-packet;
  220. mdio@520 {
  221. #address-cells = <1>;
  222. #size-cells = <0>;
  223. compatible = "fsl,gianfar-tbi";
  224. reg = <0x520 0x20>;
  225. tbi1: tbi-phy@11 {
  226. reg = <0x11>;
  227. device_type = "tbi-phy";
  228. };
  229. };
  230. };
  231. serial0: serial@4500 {
  232. cell-index = <0>;
  233. device_type = "serial";
  234. compatible = "fsl,ns16550", "ns16550";
  235. reg = <0x4500 0x100>;
  236. clock-frequency = <133333333>;
  237. interrupts = <9 0x8>;
  238. interrupt-parent = <&ipic>;
  239. };
  240. serial1: serial@4600 {
  241. cell-index = <1>;
  242. device_type = "serial";
  243. compatible = "fsl,ns16550", "ns16550";
  244. reg = <0x4600 0x100>;
  245. clock-frequency = <133333333>;
  246. interrupts = <10 0x8>;
  247. interrupt-parent = <&ipic>;
  248. };
  249. crypto@30000 {
  250. compatible = "fsl,sec3.3", "fsl,sec3.1", "fsl,sec3.0",
  251. "fsl,sec2.4", "fsl,sec2.2", "fsl,sec2.1",
  252. "fsl,sec2.0";
  253. reg = <0x30000 0x10000>;
  254. interrupts = <11 0x8>;
  255. interrupt-parent = <&ipic>;
  256. fsl,num-channels = <4>;
  257. fsl,channel-fifo-len = <24>;
  258. fsl,exec-units-mask = <0x97c>;
  259. fsl,descriptor-types-mask = <0x3a30abf>;
  260. };
  261. sata@18000 {
  262. compatible = "fsl,mpc8315-sata", "fsl,pq-sata";
  263. reg = <0x18000 0x1000>;
  264. cell-index = <1>;
  265. interrupts = <44 0x8>;
  266. interrupt-parent = <&ipic>;
  267. };
  268. sata@19000 {
  269. compatible = "fsl,mpc8315-sata", "fsl,pq-sata";
  270. reg = <0x19000 0x1000>;
  271. cell-index = <2>;
  272. interrupts = <45 0x8>;
  273. interrupt-parent = <&ipic>;
  274. };
  275. gtm1: timer@500 {
  276. compatible = "fsl,mpc8315-gtm", "fsl,gtm";
  277. reg = <0x500 0x100>;
  278. interrupts = <90 8 78 8 84 8 72 8>;
  279. interrupt-parent = <&ipic>;
  280. clock-frequency = <133333333>;
  281. };
  282. timer@600 {
  283. compatible = "fsl,mpc8315-gtm", "fsl,gtm";
  284. reg = <0x600 0x100>;
  285. interrupts = <91 8 79 8 85 8 73 8>;
  286. interrupt-parent = <&ipic>;
  287. clock-frequency = <133333333>;
  288. };
  289. /* IPIC
  290. * interrupts cell = <intr #, sense>
  291. * sense values match linux IORESOURCE_IRQ_* defines:
  292. * sense == 8: Level, low assertion
  293. * sense == 2: Edge, high-to-low change
  294. */
  295. ipic: interrupt-controller@700 {
  296. interrupt-controller;
  297. #address-cells = <0>;
  298. #interrupt-cells = <2>;
  299. reg = <0x700 0x100>;
  300. device_type = "ipic";
  301. };
  302. ipic-msi@7c0 {
  303. compatible = "fsl,ipic-msi";
  304. reg = <0x7c0 0x40>;
  305. msi-available-ranges = <0 0x100>;
  306. interrupts = <0x43 0x8
  307. 0x4 0x8
  308. 0x51 0x8
  309. 0x52 0x8
  310. 0x56 0x8
  311. 0x57 0x8
  312. 0x58 0x8
  313. 0x59 0x8>;
  314. interrupt-parent = < &ipic >;
  315. };
  316. pmc: power@b00 {
  317. compatible = "fsl,mpc8315-pmc", "fsl,mpc8313-pmc",
  318. "fsl,mpc8349-pmc";
  319. reg = <0xb00 0x100 0xa00 0x100>;
  320. interrupts = <80 8>;
  321. interrupt-parent = <&ipic>;
  322. fsl,mpc8313-wakeup-timer = <&gtm1>;
  323. };
  324. };
  325. pci0: pci@e0008500 {
  326. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  327. interrupt-map = <
  328. /* IDSEL 0x0E -mini PCI */
  329. 0x7000 0x0 0x0 0x1 &ipic 18 0x8
  330. 0x7000 0x0 0x0 0x2 &ipic 18 0x8
  331. 0x7000 0x0 0x0 0x3 &ipic 18 0x8
  332. 0x7000 0x0 0x0 0x4 &ipic 18 0x8
  333. /* IDSEL 0x0F -mini PCI */
  334. 0x7800 0x0 0x0 0x1 &ipic 17 0x8
  335. 0x7800 0x0 0x0 0x2 &ipic 17 0x8
  336. 0x7800 0x0 0x0 0x3 &ipic 17 0x8
  337. 0x7800 0x0 0x0 0x4 &ipic 17 0x8
  338. /* IDSEL 0x10 - PCI slot */
  339. 0x8000 0x0 0x0 0x1 &ipic 48 0x8
  340. 0x8000 0x0 0x0 0x2 &ipic 17 0x8
  341. 0x8000 0x0 0x0 0x3 &ipic 48 0x8
  342. 0x8000 0x0 0x0 0x4 &ipic 17 0x8>;
  343. interrupt-parent = <&ipic>;
  344. interrupts = <66 0x8>;
  345. bus-range = <0x0 0x0>;
  346. ranges = <0x02000000 0 0x90000000 0x90000000 0 0x10000000
  347. 0x42000000 0 0x80000000 0x80000000 0 0x10000000
  348. 0x01000000 0 0x00000000 0xe0300000 0 0x00100000>;
  349. clock-frequency = <66666666>;
  350. #interrupt-cells = <1>;
  351. #size-cells = <2>;
  352. #address-cells = <3>;
  353. reg = <0xe0008500 0x100 /* internal registers */
  354. 0xe0008300 0x8>; /* config space access registers */
  355. compatible = "fsl,mpc8349-pci";
  356. device_type = "pci";
  357. };
  358. pci1: pcie@e0009000 {
  359. #address-cells = <3>;
  360. #size-cells = <2>;
  361. #interrupt-cells = <1>;
  362. device_type = "pci";
  363. compatible = "fsl,mpc8315-pcie", "fsl,mpc8314-pcie";
  364. reg = <0xe0009000 0x00001000>;
  365. ranges = <0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
  366. 0x01000000 0 0x00000000 0xb1000000 0 0x00800000>;
  367. bus-range = <0 255>;
  368. interrupt-map-mask = <0xf800 0 0 7>;
  369. interrupt-map = <0 0 0 1 &ipic 1 8
  370. 0 0 0 2 &ipic 1 8
  371. 0 0 0 3 &ipic 1 8
  372. 0 0 0 4 &ipic 1 8>;
  373. clock-frequency = <0>;
  374. pcie@0 {
  375. #address-cells = <3>;
  376. #size-cells = <2>;
  377. device_type = "pci";
  378. reg = <0 0 0 0 0>;
  379. ranges = <0x02000000 0 0xa0000000
  380. 0x02000000 0 0xa0000000
  381. 0 0x10000000
  382. 0x01000000 0 0x00000000
  383. 0x01000000 0 0x00000000
  384. 0 0x00800000>;
  385. };
  386. };
  387. pci2: pcie@e000a000 {
  388. #address-cells = <3>;
  389. #size-cells = <2>;
  390. #interrupt-cells = <1>;
  391. device_type = "pci";
  392. compatible = "fsl,mpc8315-pcie", "fsl,mpc8314-pcie";
  393. reg = <0xe000a000 0x00001000>;
  394. ranges = <0x02000000 0 0xc0000000 0xc0000000 0 0x10000000
  395. 0x01000000 0 0x00000000 0xd1000000 0 0x00800000>;
  396. bus-range = <0 255>;
  397. interrupt-map-mask = <0xf800 0 0 7>;
  398. interrupt-map = <0 0 0 1 &ipic 2 8
  399. 0 0 0 2 &ipic 2 8
  400. 0 0 0 3 &ipic 2 8
  401. 0 0 0 4 &ipic 2 8>;
  402. clock-frequency = <0>;
  403. pcie@0 {
  404. #address-cells = <3>;
  405. #size-cells = <2>;
  406. device_type = "pci";
  407. reg = <0 0 0 0 0>;
  408. ranges = <0x02000000 0 0xc0000000
  409. 0x02000000 0 0xc0000000
  410. 0 0x10000000
  411. 0x01000000 0 0x00000000
  412. 0x01000000 0 0x00000000
  413. 0 0x00800000>;
  414. };
  415. };
  416. leds {
  417. compatible = "gpio-leds";
  418. pwr {
  419. gpios = <&mcu_pio 0 0>;
  420. default-state = "on";
  421. };
  422. hdd {
  423. gpios = <&mcu_pio 1 0>;
  424. linux,default-trigger = "disk-activity";
  425. };
  426. };
  427. };