mpc8377_rdb.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * MPC8377E RDB Device Tree Source
  4. *
  5. * Copyright 2007, 2008 Freescale Semiconductor Inc.
  6. */
  7. /dts-v1/;
  8. / {
  9. compatible = "fsl,mpc8377rdb";
  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,8377@0 {
  25. device_type = "cpu";
  26. reg = <0x0>;
  27. d-cache-line-size = <32>;
  28. i-cache-line-size = <32>;
  29. d-cache-size = <32768>;
  30. i-cache-size = <32768>;
  31. timebase-frequency = <0>;
  32. bus-frequency = <0>;
  33. clock-frequency = <0>;
  34. };
  35. };
  36. memory {
  37. device_type = "memory";
  38. reg = <0x00000000 0x10000000>; // 256MB at 0
  39. };
  40. localbus@e0005000 {
  41. #address-cells = <2>;
  42. #size-cells = <1>;
  43. compatible = "fsl,mpc8377-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 0x00008000
  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,mpc8377-fcm-nand",
  66. "fsl,elbc-fcm-nand";
  67. reg = <0x1 0x0 0x8000>;
  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 = "simple-bus";
  85. ranges = <0x0 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. gpio1: gpio-controller@c00 {
  94. #gpio-cells = <2>;
  95. compatible = "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
  96. reg = <0xc00 0x100>;
  97. interrupts = <74 0x8>;
  98. interrupt-parent = <&ipic>;
  99. gpio-controller;
  100. };
  101. gpio2: gpio-controller@d00 {
  102. #gpio-cells = <2>;
  103. compatible = "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
  104. reg = <0xd00 0x100>;
  105. interrupts = <75 0x8>;
  106. interrupt-parent = <&ipic>;
  107. gpio-controller;
  108. };
  109. sleep-nexus {
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. compatible = "simple-bus";
  113. sleep = <&pmc 0x0c000000>;
  114. ranges;
  115. i2c@3000 {
  116. #address-cells = <1>;
  117. #size-cells = <0>;
  118. cell-index = <0>;
  119. compatible = "fsl-i2c";
  120. reg = <0x3000 0x100>;
  121. interrupts = <14 0x8>;
  122. interrupt-parent = <&ipic>;
  123. dfsrr;
  124. dtt@48 {
  125. compatible = "national,lm75";
  126. reg = <0x48>;
  127. };
  128. at24@50 {
  129. compatible = "atmel,24c256";
  130. reg = <0x50>;
  131. };
  132. rtc@68 {
  133. compatible = "dallas,ds1339";
  134. reg = <0x68>;
  135. };
  136. mcu_pio: mcu@a {
  137. #gpio-cells = <2>;
  138. compatible = "fsl,mc9s08qg8-mpc8377erdb",
  139. "fsl,mcu-mpc8349emitx";
  140. reg = <0x0a>;
  141. gpio-controller;
  142. };
  143. };
  144. sdhci@2e000 {
  145. compatible = "fsl,mpc8377-esdhc", "fsl,esdhc";
  146. reg = <0x2e000 0x1000>;
  147. interrupts = <42 0x8>;
  148. interrupt-parent = <&ipic>;
  149. sdhci,wp-inverted;
  150. /* Filled in by U-Boot */
  151. clock-frequency = <111111111>;
  152. };
  153. };
  154. i2c@3100 {
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. cell-index = <1>;
  158. compatible = "fsl-i2c";
  159. reg = <0x3100 0x100>;
  160. interrupts = <15 0x8>;
  161. interrupt-parent = <&ipic>;
  162. dfsrr;
  163. };
  164. spi@7000 {
  165. cell-index = <0>;
  166. compatible = "fsl,spi";
  167. reg = <0x7000 0x1000>;
  168. interrupts = <16 0x8>;
  169. interrupt-parent = <&ipic>;
  170. mode = "cpu";
  171. };
  172. dma@82a8 {
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. compatible = "fsl,mpc8377-dma", "fsl,elo-dma";
  176. reg = <0x82a8 4>;
  177. ranges = <0 0x8100 0x1a8>;
  178. interrupt-parent = <&ipic>;
  179. interrupts = <71 8>;
  180. cell-index = <0>;
  181. dma-channel@0 {
  182. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  183. reg = <0 0x80>;
  184. cell-index = <0>;
  185. interrupt-parent = <&ipic>;
  186. interrupts = <71 8>;
  187. };
  188. dma-channel@80 {
  189. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  190. reg = <0x80 0x80>;
  191. cell-index = <1>;
  192. interrupt-parent = <&ipic>;
  193. interrupts = <71 8>;
  194. };
  195. dma-channel@100 {
  196. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  197. reg = <0x100 0x80>;
  198. cell-index = <2>;
  199. interrupt-parent = <&ipic>;
  200. interrupts = <71 8>;
  201. };
  202. dma-channel@180 {
  203. compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
  204. reg = <0x180 0x28>;
  205. cell-index = <3>;
  206. interrupt-parent = <&ipic>;
  207. interrupts = <71 8>;
  208. };
  209. };
  210. usb@23000 {
  211. compatible = "fsl-usb2-dr";
  212. reg = <0x23000 0x1000>;
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. interrupt-parent = <&ipic>;
  216. interrupts = <38 0x8>;
  217. phy_type = "ulpi";
  218. sleep = <&pmc 0x00c00000>;
  219. };
  220. enet0: ethernet@24000 {
  221. #address-cells = <1>;
  222. #size-cells = <1>;
  223. cell-index = <0>;
  224. device_type = "network";
  225. model = "eTSEC";
  226. compatible = "gianfar";
  227. reg = <0x24000 0x1000>;
  228. ranges = <0x0 0x24000 0x1000>;
  229. local-mac-address = [ 00 00 00 00 00 00 ];
  230. interrupts = <32 0x8 33 0x8 34 0x8>;
  231. phy-connection-type = "mii";
  232. interrupt-parent = <&ipic>;
  233. tbi-handle = <&tbi0>;
  234. phy-handle = <&phy2>;
  235. sleep = <&pmc 0xc0000000>;
  236. fsl,magic-packet;
  237. mdio@520 {
  238. #address-cells = <1>;
  239. #size-cells = <0>;
  240. compatible = "fsl,gianfar-mdio";
  241. reg = <0x520 0x20>;
  242. phy2: ethernet-phy@2 {
  243. interrupt-parent = <&ipic>;
  244. interrupts = <17 0x8>;
  245. reg = <0x2>;
  246. };
  247. tbi0: tbi-phy@11 {
  248. reg = <0x11>;
  249. device_type = "tbi-phy";
  250. };
  251. };
  252. };
  253. enet1: ethernet@25000 {
  254. #address-cells = <1>;
  255. #size-cells = <1>;
  256. cell-index = <1>;
  257. device_type = "network";
  258. model = "eTSEC";
  259. compatible = "gianfar";
  260. reg = <0x25000 0x1000>;
  261. ranges = <0x0 0x25000 0x1000>;
  262. local-mac-address = [ 00 00 00 00 00 00 ];
  263. interrupts = <35 0x8 36 0x8 37 0x8>;
  264. phy-connection-type = "mii";
  265. interrupt-parent = <&ipic>;
  266. fixed-link = <1 1 1000 0 0>;
  267. tbi-handle = <&tbi1>;
  268. sleep = <&pmc 0x30000000>;
  269. fsl,magic-packet;
  270. mdio@520 {
  271. #address-cells = <1>;
  272. #size-cells = <0>;
  273. compatible = "fsl,gianfar-tbi";
  274. reg = <0x520 0x20>;
  275. tbi1: tbi-phy@11 {
  276. reg = <0x11>;
  277. device_type = "tbi-phy";
  278. };
  279. };
  280. };
  281. serial0: serial@4500 {
  282. cell-index = <0>;
  283. device_type = "serial";
  284. compatible = "fsl,ns16550", "ns16550";
  285. reg = <0x4500 0x100>;
  286. clock-frequency = <0>;
  287. interrupts = <9 0x8>;
  288. interrupt-parent = <&ipic>;
  289. };
  290. serial1: serial@4600 {
  291. cell-index = <1>;
  292. device_type = "serial";
  293. compatible = "fsl,ns16550", "ns16550";
  294. reg = <0x4600 0x100>;
  295. clock-frequency = <0>;
  296. interrupts = <10 0x8>;
  297. interrupt-parent = <&ipic>;
  298. };
  299. crypto@30000 {
  300. compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
  301. "fsl,sec2.1", "fsl,sec2.0";
  302. reg = <0x30000 0x10000>;
  303. interrupts = <11 0x8>;
  304. interrupt-parent = <&ipic>;
  305. fsl,num-channels = <4>;
  306. fsl,channel-fifo-len = <24>;
  307. fsl,exec-units-mask = <0x9fe>;
  308. fsl,descriptor-types-mask = <0x3ab0ebf>;
  309. sleep = <&pmc 0x03000000>;
  310. };
  311. sata@18000 {
  312. compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
  313. reg = <0x18000 0x1000>;
  314. interrupts = <44 0x8>;
  315. interrupt-parent = <&ipic>;
  316. sleep = <&pmc 0x000000c0>;
  317. };
  318. sata@19000 {
  319. compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
  320. reg = <0x19000 0x1000>;
  321. interrupts = <45 0x8>;
  322. interrupt-parent = <&ipic>;
  323. sleep = <&pmc 0x00000030>;
  324. };
  325. /* IPIC
  326. * interrupts cell = <intr #, sense>
  327. * sense values match linux IORESOURCE_IRQ_* defines:
  328. * sense == 8: Level, low assertion
  329. * sense == 2: Edge, high-to-low change
  330. */
  331. ipic: interrupt-controller@700 {
  332. compatible = "fsl,ipic";
  333. interrupt-controller;
  334. #address-cells = <0>;
  335. #interrupt-cells = <2>;
  336. reg = <0x700 0x100>;
  337. };
  338. pmc: power@b00 {
  339. compatible = "fsl,mpc8377-pmc", "fsl,mpc8349-pmc";
  340. reg = <0xb00 0x100 0xa00 0x100>;
  341. interrupts = <80 0x8>;
  342. interrupt-parent = <&ipic>;
  343. };
  344. };
  345. pci0: pci@e0008500 {
  346. interrupt-map-mask = <0xf800 0 0 7>;
  347. interrupt-map = <
  348. /* IRQ5 = 21 = 0x15, IRQ6 = 0x16, IRQ7 = 23 = 0x17 */
  349. /* IDSEL AD14 IRQ6 inta */
  350. 0x7000 0x0 0x0 0x1 &ipic 22 0x8
  351. /* IDSEL AD15 IRQ5 inta, IRQ6 intb, IRQ7 intd */
  352. 0x7800 0x0 0x0 0x1 &ipic 21 0x8
  353. 0x7800 0x0 0x0 0x2 &ipic 22 0x8
  354. 0x7800 0x0 0x0 0x4 &ipic 23 0x8
  355. /* IDSEL AD28 IRQ7 inta, IRQ5 intb IRQ6 intc*/
  356. 0xE000 0x0 0x0 0x1 &ipic 23 0x8
  357. 0xE000 0x0 0x0 0x2 &ipic 21 0x8
  358. 0xE000 0x0 0x0 0x3 &ipic 22 0x8>;
  359. interrupt-parent = <&ipic>;
  360. interrupts = <66 0x8>;
  361. bus-range = <0 0>;
  362. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  363. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  364. 0x01000000 0x0 0x00000000 0xe0300000 0x0 0x00100000>;
  365. sleep = <&pmc 0x00010000>;
  366. clock-frequency = <66666666>;
  367. #interrupt-cells = <1>;
  368. #size-cells = <2>;
  369. #address-cells = <3>;
  370. reg = <0xe0008500 0x100 /* internal registers */
  371. 0xe0008300 0x8>; /* config space access registers */
  372. compatible = "fsl,mpc8349-pci";
  373. device_type = "pci";
  374. };
  375. pci1: pcie@e0009000 {
  376. #address-cells = <3>;
  377. #size-cells = <2>;
  378. #interrupt-cells = <1>;
  379. device_type = "pci";
  380. compatible = "fsl,mpc8377-pcie", "fsl,mpc8314-pcie";
  381. reg = <0xe0009000 0x00001000>;
  382. ranges = <0x02000000 0 0xa8000000 0xa8000000 0 0x10000000
  383. 0x01000000 0 0x00000000 0xb8000000 0 0x00800000>;
  384. bus-range = <0 255>;
  385. interrupt-map-mask = <0xf800 0 0 7>;
  386. interrupt-map = <0 0 0 1 &ipic 1 8
  387. 0 0 0 2 &ipic 1 8
  388. 0 0 0 3 &ipic 1 8
  389. 0 0 0 4 &ipic 1 8>;
  390. sleep = <&pmc 0x00300000>;
  391. clock-frequency = <0>;
  392. pcie@0 {
  393. #address-cells = <3>;
  394. #size-cells = <2>;
  395. device_type = "pci";
  396. reg = <0 0 0 0 0>;
  397. ranges = <0x02000000 0 0xa8000000
  398. 0x02000000 0 0xa8000000
  399. 0 0x10000000
  400. 0x01000000 0 0x00000000
  401. 0x01000000 0 0x00000000
  402. 0 0x00800000>;
  403. };
  404. };
  405. pci2: pcie@e000a000 {
  406. #address-cells = <3>;
  407. #size-cells = <2>;
  408. #interrupt-cells = <1>;
  409. device_type = "pci";
  410. compatible = "fsl,mpc8377-pcie", "fsl,mpc8314-pcie";
  411. reg = <0xe000a000 0x00001000>;
  412. ranges = <0x02000000 0 0xc8000000 0xc8000000 0 0x10000000
  413. 0x01000000 0 0x00000000 0xd8000000 0 0x00800000>;
  414. bus-range = <0 255>;
  415. interrupt-map-mask = <0xf800 0 0 7>;
  416. interrupt-map = <0 0 0 1 &ipic 2 8
  417. 0 0 0 2 &ipic 2 8
  418. 0 0 0 3 &ipic 2 8
  419. 0 0 0 4 &ipic 2 8>;
  420. sleep = <&pmc 0x000c0000>;
  421. clock-frequency = <0>;
  422. pcie@0 {
  423. #address-cells = <3>;
  424. #size-cells = <2>;
  425. device_type = "pci";
  426. reg = <0 0 0 0 0>;
  427. ranges = <0x02000000 0 0xc8000000
  428. 0x02000000 0 0xc8000000
  429. 0 0x10000000
  430. 0x01000000 0 0x00000000
  431. 0x01000000 0 0x00000000
  432. 0 0x00800000>;
  433. };
  434. };
  435. leds {
  436. compatible = "gpio-leds";
  437. pwr {
  438. gpios = <&mcu_pio 0 0>;
  439. default-state = "on";
  440. };
  441. hdd {
  442. gpios = <&mcu_pio 1 0>;
  443. linux,default-trigger = "disk-activity";
  444. };
  445. };
  446. };