mpc5121ads.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * MPC5121E ADS Device Tree Source
  4. *
  5. * Copyright 2007-2008 Freescale Semiconductor Inc.
  6. */
  7. #include "mpc5121.dtsi"
  8. / {
  9. model = "mpc5121ads";
  10. compatible = "fsl,mpc5121ads", "fsl,mpc5121";
  11. nfc@40000000 {
  12. /*
  13. * ADS has two Hynix 512MB Nand flash chips in a single
  14. * stacked package.
  15. */
  16. chips = <2>;
  17. nand@0 {
  18. label = "nand";
  19. reg = <0x00000000 0x40000000>; /* 512MB + 512MB */
  20. };
  21. };
  22. localbus@80000020 {
  23. ranges = <0x0 0x0 0xfc000000 0x04000000
  24. 0x2 0x0 0x82000000 0x00008000>;
  25. flash@0,0 {
  26. compatible = "cfi-flash";
  27. reg = <0 0x0 0x4000000>;
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. bank-width = <4>;
  31. device-width = <2>;
  32. protected@0 {
  33. label = "protected";
  34. reg = <0x00000000 0x00040000>; // first sector is protected
  35. read-only;
  36. };
  37. filesystem@40000 {
  38. label = "filesystem";
  39. reg = <0x00040000 0x03c00000>; // 60M for filesystem
  40. };
  41. kernel@3c40000 {
  42. label = "kernel";
  43. reg = <0x03c40000 0x00280000>; // 2.5M for kernel
  44. };
  45. device-tree@3ec0000 {
  46. label = "device-tree";
  47. reg = <0x03ec0000 0x00040000>; // one sector for device tree
  48. };
  49. u-boot@3f00000 {
  50. label = "u-boot";
  51. reg = <0x03f00000 0x00100000>; // 1M for u-boot
  52. read-only;
  53. };
  54. };
  55. board-control@2,0 {
  56. compatible = "fsl,mpc5121ads-cpld";
  57. reg = <0x2 0x0 0x8000>;
  58. };
  59. cpld_pic: pic@2,a {
  60. compatible = "fsl,mpc5121ads-cpld-pic";
  61. interrupt-controller;
  62. #interrupt-cells = <2>;
  63. reg = <0x2 0xa 0x5>;
  64. /* irq routing:
  65. * all irqs but touch screen are routed to irq0 (ipic 48)
  66. * touch screen is statically routed to irq1 (ipic 17)
  67. * so don't use it here
  68. */
  69. interrupts = <48 0x8>;
  70. };
  71. };
  72. soc@80000000 {
  73. i2c@1700 {
  74. fsl,preserve-clocking;
  75. hwmon@4a {
  76. compatible = "adi,ad7414";
  77. reg = <0x4a>;
  78. };
  79. eeprom@50 {
  80. compatible = "atmel,24c32";
  81. reg = <0x50>;
  82. };
  83. rtc@68 {
  84. compatible = "st,m41t62";
  85. reg = <0x68>;
  86. };
  87. };
  88. eth0: ethernet@2800 {
  89. phy-handle = <&phy0>;
  90. };
  91. can@2300 {
  92. status = "disabled";
  93. };
  94. can@2380 {
  95. status = "disabled";
  96. };
  97. viu@2400 {
  98. status = "disabled";
  99. };
  100. mdio@2800 {
  101. phy0: ethernet-phy@0 {
  102. reg = <1>;
  103. };
  104. };
  105. /* mpc5121ads only uses USB0 */
  106. usb@3000 {
  107. status = "disabled";
  108. };
  109. /* USB0 using internal UTMI PHY */
  110. usb@4000 {
  111. dr_mode = "host";
  112. fsl,invert-drvvbus;
  113. fsl,invert-pwr-fault;
  114. };
  115. /* PSC3 serial port A aka ttyPSC0 */
  116. psc@11300 {
  117. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  118. };
  119. /* PSC4 serial port B aka ttyPSC1 */
  120. psc@11400 {
  121. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  122. };
  123. /* PSC5 in ac97 mode */
  124. ac97: psc@11500 {
  125. compatible = "fsl,mpc5121-psc-ac97", "fsl,mpc5121-psc";
  126. fsl,mode = "ac97-slave";
  127. fsl,rx-fifo-size = <384>;
  128. fsl,tx-fifo-size = <384>;
  129. };
  130. };
  131. pci: pci@80008500 {
  132. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  133. interrupt-map = <
  134. /* IDSEL 0x15 - Slot 1 PCI */
  135. 0xa800 0x0 0x0 0x1 &cpld_pic 0x0 0x8
  136. 0xa800 0x0 0x0 0x2 &cpld_pic 0x1 0x8
  137. 0xa800 0x0 0x0 0x3 &cpld_pic 0x2 0x8
  138. 0xa800 0x0 0x0 0x4 &cpld_pic 0x3 0x8
  139. /* IDSEL 0x16 - Slot 2 MiniPCI */
  140. 0xb000 0x0 0x0 0x1 &cpld_pic 0x4 0x8
  141. 0xb000 0x0 0x0 0x2 &cpld_pic 0x5 0x8
  142. /* IDSEL 0x17 - Slot 3 MiniPCI */
  143. 0xb800 0x0 0x0 0x1 &cpld_pic 0x6 0x8
  144. 0xb800 0x0 0x0 0x2 &cpld_pic 0x7 0x8
  145. >;
  146. };
  147. };