tqm5200.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /*
  2. * TQM5200 board Device Tree Source
  3. *
  4. * Copyright (C) 2007 Semihalf
  5. * Marian Balakowicz <m8@semihalf.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. /dts-v1/;
  13. / {
  14. model = "tqc,tqm5200";
  15. compatible = "tqc,tqm5200";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. cpus {
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. PowerPC,5200@0 {
  22. device_type = "cpu";
  23. reg = <0>;
  24. d-cache-line-size = <32>;
  25. i-cache-line-size = <32>;
  26. d-cache-size = <0x4000>; // L1, 16K
  27. i-cache-size = <0x4000>; // L1, 16K
  28. timebase-frequency = <0>; // from bootloader
  29. bus-frequency = <0>; // from bootloader
  30. clock-frequency = <0>; // from bootloader
  31. };
  32. };
  33. memory {
  34. device_type = "memory";
  35. reg = <0x00000000 0x04000000>; // 64MB
  36. };
  37. soc5200@f0000000 {
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. compatible = "fsl,mpc5200-immr";
  41. ranges = <0 0xf0000000 0x0000c000>;
  42. reg = <0xf0000000 0x00000100>;
  43. bus-frequency = <0>; // from bootloader
  44. system-frequency = <0>; // from bootloader
  45. cdm@200 {
  46. compatible = "fsl,mpc5200-cdm";
  47. reg = <0x200 0x38>;
  48. };
  49. mpc5200_pic: interrupt-controller@500 {
  50. // 5200 interrupts are encoded into two levels;
  51. interrupt-controller;
  52. #interrupt-cells = <3>;
  53. compatible = "fsl,mpc5200-pic";
  54. reg = <0x500 0x80>;
  55. };
  56. timer@600 { // General Purpose Timer
  57. compatible = "fsl,mpc5200-gpt";
  58. reg = <0x600 0x10>;
  59. interrupts = <1 9 0>;
  60. interrupt-parent = <&mpc5200_pic>;
  61. fsl,has-wdt;
  62. };
  63. can@900 {
  64. compatible = "fsl,mpc5200-mscan";
  65. interrupts = <2 17 0>;
  66. interrupt-parent = <&mpc5200_pic>;
  67. reg = <0x900 0x80>;
  68. };
  69. can@980 {
  70. compatible = "fsl,mpc5200-mscan";
  71. interrupts = <2 18 0>;
  72. interrupt-parent = <&mpc5200_pic>;
  73. reg = <0x980 0x80>;
  74. };
  75. gpio@b00 {
  76. compatible = "fsl,mpc5200-gpio";
  77. reg = <0xb00 0x40>;
  78. interrupts = <1 7 0>;
  79. interrupt-parent = <&mpc5200_pic>;
  80. };
  81. usb@1000 {
  82. compatible = "fsl,mpc5200-ohci","ohci-be";
  83. reg = <0x1000 0xff>;
  84. interrupts = <2 6 0>;
  85. interrupt-parent = <&mpc5200_pic>;
  86. };
  87. dma-controller@1200 {
  88. compatible = "fsl,mpc5200-bestcomm";
  89. reg = <0x1200 0x80>;
  90. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  91. 3 4 0 3 5 0 3 6 0 3 7 0
  92. 3 8 0 3 9 0 3 10 0 3 11 0
  93. 3 12 0 3 13 0 3 14 0 3 15 0>;
  94. interrupt-parent = <&mpc5200_pic>;
  95. };
  96. xlb@1f00 {
  97. compatible = "fsl,mpc5200-xlb";
  98. reg = <0x1f00 0x100>;
  99. };
  100. serial@2000 { // PSC1
  101. device_type = "serial";
  102. compatible = "fsl,mpc5200-psc-uart";
  103. port-number = <0>; // Logical port assignment
  104. reg = <0x2000 0x100>;
  105. interrupts = <2 1 0>;
  106. interrupt-parent = <&mpc5200_pic>;
  107. };
  108. serial@2200 { // PSC2
  109. device_type = "serial";
  110. compatible = "fsl,mpc5200-psc-uart";
  111. port-number = <1>; // Logical port assignment
  112. reg = <0x2200 0x100>;
  113. interrupts = <2 2 0>;
  114. interrupt-parent = <&mpc5200_pic>;
  115. };
  116. serial@2400 { // PSC3
  117. device_type = "serial";
  118. compatible = "fsl,mpc5200-psc-uart";
  119. port-number = <2>; // Logical port assignment
  120. reg = <0x2400 0x100>;
  121. interrupts = <2 3 0>;
  122. interrupt-parent = <&mpc5200_pic>;
  123. };
  124. ethernet@3000 {
  125. device_type = "network";
  126. compatible = "fsl,mpc5200-fec";
  127. reg = <0x3000 0x400>;
  128. local-mac-address = [ 00 00 00 00 00 00 ];
  129. interrupts = <2 5 0>;
  130. interrupt-parent = <&mpc5200_pic>;
  131. phy-handle = <&phy0>;
  132. };
  133. mdio@3000 {
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. compatible = "fsl,mpc5200-mdio";
  137. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  138. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  139. interrupt-parent = <&mpc5200_pic>;
  140. phy0: ethernet-phy@0 {
  141. device_type = "ethernet-phy";
  142. reg = <0>;
  143. };
  144. };
  145. ata@3a00 {
  146. compatible = "fsl,mpc5200-ata";
  147. reg = <0x3a00 0x100>;
  148. interrupts = <2 7 0>;
  149. interrupt-parent = <&mpc5200_pic>;
  150. };
  151. i2c@3d40 {
  152. #address-cells = <1>;
  153. #size-cells = <0>;
  154. compatible = "fsl,mpc5200-i2c","fsl-i2c";
  155. reg = <0x3d40 0x40>;
  156. interrupts = <2 16 0>;
  157. interrupt-parent = <&mpc5200_pic>;
  158. fsl5200-clocking;
  159. rtc@68 {
  160. device_type = "rtc";
  161. compatible = "dallas,ds1307";
  162. reg = <0x68>;
  163. };
  164. };
  165. sram@8000 {
  166. compatible = "fsl,mpc5200-sram";
  167. reg = <0x8000 0x4000>;
  168. };
  169. };
  170. lpb {
  171. model = "fsl,lpb";
  172. compatible = "fsl,lpb";
  173. #address-cells = <2>;
  174. #size-cells = <1>;
  175. ranges = <0 0 0xfc000000 0x02000000>;
  176. flash@0,0 {
  177. compatible = "cfi-flash";
  178. reg = <0 0 0x02000000>;
  179. bank-width = <4>;
  180. device-width = <2>;
  181. #size-cells = <1>;
  182. #address-cells = <1>;
  183. };
  184. };
  185. pci@f0000d00 {
  186. #interrupt-cells = <1>;
  187. #size-cells = <2>;
  188. #address-cells = <3>;
  189. device_type = "pci";
  190. compatible = "fsl,mpc5200-pci";
  191. reg = <0xf0000d00 0x100>;
  192. interrupt-map-mask = <0xf800 0 0 7>;
  193. interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3
  194. 0xc000 0 0 2 &mpc5200_pic 0 0 3
  195. 0xc000 0 0 3 &mpc5200_pic 0 0 3
  196. 0xc000 0 0 4 &mpc5200_pic 0 0 3>;
  197. clock-frequency = <0>; // From boot loader
  198. interrupts = <2 8 0 2 9 0 2 10 0>;
  199. interrupt-parent = <&mpc5200_pic>;
  200. bus-range = <0 0>;
  201. ranges = <0x42000000 0 0x80000000 0x80000000 0 0x10000000
  202. 0x02000000 0 0x90000000 0x90000000 0 0x10000000
  203. 0x01000000 0 0x00000000 0xa0000000 0 0x01000000>;
  204. };
  205. };