warp.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. /*
  2. * Device Tree Source for PIKA Warp
  3. *
  4. * Copyright (c) 2008 PIKA Technologies
  5. * Sean MacLennan <smaclennan@pikatech.com>
  6. *
  7. * This file is licensed under the terms of the GNU General Public
  8. * License version 2. This program is licensed "as is" without
  9. * any warranty of any kind, whether express or implied.
  10. */
  11. /dts-v1/;
  12. / {
  13. #address-cells = <2>;
  14. #size-cells = <1>;
  15. model = "pika,warp";
  16. compatible = "pika,warp";
  17. dcr-parent = <&{/cpus/cpu@0}>;
  18. aliases {
  19. ethernet0 = &EMAC0;
  20. serial0 = &UART0;
  21. };
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. cpu@0 {
  26. device_type = "cpu";
  27. model = "PowerPC,440EP";
  28. reg = <0x00000000>;
  29. clock-frequency = <0>; /* Filled in by zImage */
  30. timebase-frequency = <0>; /* Filled in by zImage */
  31. i-cache-line-size = <32>;
  32. d-cache-line-size = <32>;
  33. i-cache-size = <32768>;
  34. d-cache-size = <32768>;
  35. dcr-controller;
  36. dcr-access-method = "native";
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
  42. };
  43. UIC0: interrupt-controller0 {
  44. compatible = "ibm,uic-440ep","ibm,uic";
  45. interrupt-controller;
  46. cell-index = <0>;
  47. dcr-reg = <0x0c0 0x009>;
  48. #address-cells = <0>;
  49. #size-cells = <0>;
  50. #interrupt-cells = <2>;
  51. };
  52. UIC1: interrupt-controller1 {
  53. compatible = "ibm,uic-440ep","ibm,uic";
  54. interrupt-controller;
  55. cell-index = <1>;
  56. dcr-reg = <0x0d0 0x009>;
  57. #address-cells = <0>;
  58. #size-cells = <0>;
  59. #interrupt-cells = <2>;
  60. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  61. interrupt-parent = <&UIC0>;
  62. };
  63. SDR0: sdr {
  64. compatible = "ibm,sdr-440ep";
  65. dcr-reg = <0x00e 0x002>;
  66. };
  67. CPR0: cpr {
  68. compatible = "ibm,cpr-440ep";
  69. dcr-reg = <0x00c 0x002>;
  70. };
  71. plb {
  72. compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
  73. #address-cells = <2>;
  74. #size-cells = <1>;
  75. ranges;
  76. clock-frequency = <0>; /* Filled in by zImage */
  77. SDRAM0: sdram {
  78. compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
  79. dcr-reg = <0x010 0x002>;
  80. };
  81. DMA0: dma {
  82. compatible = "ibm,dma-440ep", "ibm,dma-440gp";
  83. dcr-reg = <0x100 0x027>;
  84. };
  85. MAL0: mcmal {
  86. compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
  87. dcr-reg = <0x180 0x062>;
  88. num-tx-chans = <4>;
  89. num-rx-chans = <2>;
  90. interrupt-parent = <&MAL0>;
  91. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  92. #interrupt-cells = <1>;
  93. #address-cells = <0>;
  94. #size-cells = <0>;
  95. interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
  96. /*RXEOB*/ 0x1 &UIC0 0xb 0x4
  97. /*SERR*/ 0x2 &UIC1 0x0 0x4
  98. /*TXDE*/ 0x3 &UIC1 0x1 0x4
  99. /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
  100. };
  101. POB0: opb {
  102. compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. ranges = <0x00000000 0x00000000 0x00000000 0x80000000
  106. 0x80000000 0x00000000 0x80000000 0x80000000>;
  107. interrupt-parent = <&UIC1>;
  108. interrupts = <0x7 0x4>;
  109. clock-frequency = <0>; /* Filled in by zImage */
  110. EBC0: ebc {
  111. compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
  112. dcr-reg = <0x012 0x002>;
  113. #address-cells = <2>;
  114. #size-cells = <1>;
  115. clock-frequency = <0>; /* Filled in by zImage */
  116. interrupts = <0x5 0x1>;
  117. interrupt-parent = <&UIC1>;
  118. fpga@2,0 {
  119. compatible = "pika,fpga";
  120. reg = <0x00000002 0x00000000 0x00002200>;
  121. interrupts = <0x18 0x8>;
  122. interrupt-parent = <&UIC0>;
  123. };
  124. nor_flash@0,0 {
  125. compatible = "amd,s29gl512n", "cfi-flash";
  126. bank-width = <2>;
  127. reg = <0x00000000 0x00000000 0x04000000>;
  128. #address-cells = <1>;
  129. #size-cells = <1>;
  130. partition@0 {
  131. label = "kernel";
  132. reg = <0x00000000 0x00180000>;
  133. };
  134. partition@180000 {
  135. label = "root";
  136. reg = <0x00180000 0x03480000>;
  137. };
  138. partition@3600000 {
  139. label = "user";
  140. reg = <0x03600000 0x00900000>;
  141. };
  142. partition@3f00000 {
  143. label = "fpga";
  144. reg = <0x03f00000 0x00040000>;
  145. };
  146. partition@3f40000 {
  147. label = "env";
  148. reg = <0x03f40000 0x00040000>;
  149. };
  150. partition@3f80000 {
  151. label = "u-boot";
  152. reg = <0x03f80000 0x00080000>;
  153. };
  154. };
  155. };
  156. UART0: serial@ef600300 {
  157. device_type = "serial";
  158. compatible = "ns16550";
  159. reg = <0xef600300 0x00000008>;
  160. virtual-reg = <0xef600300>;
  161. clock-frequency = <0>; /* Filled in by zImage */
  162. current-speed = <115200>;
  163. interrupt-parent = <&UIC0>;
  164. interrupts = <0x0 0x4>;
  165. };
  166. IIC0: i2c@ef600700 {
  167. compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
  168. reg = <0xef600700 0x00000014>;
  169. interrupt-parent = <&UIC0>;
  170. interrupts = <0x2 0x4>;
  171. };
  172. GPIO0: gpio@ef600b00 {
  173. compatible = "ibm,gpio-440ep";
  174. reg = <0xef600b00 0x00000048>;
  175. };
  176. GPIO1: gpio@ef600c00 {
  177. compatible = "ibm,gpio-440ep";
  178. reg = <0xef600c00 0x00000048>;
  179. };
  180. ZMII0: emac-zmii@ef600d00 {
  181. compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
  182. reg = <0xef600d00 0x0000000c>;
  183. };
  184. EMAC0: ethernet@ef600e00 {
  185. device_type = "network";
  186. compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
  187. interrupt-parent = <&UIC1>;
  188. interrupts = <0x1c 0x4 0x1d 0x4>;
  189. reg = <0xef600e00 0x00000070>;
  190. local-mac-address = [000000000000];
  191. mal-device = <&MAL0>;
  192. mal-tx-channel = <0 1>;
  193. mal-rx-channel = <0>;
  194. cell-index = <0>;
  195. max-frame-size = <1500>;
  196. rx-fifo-size = <4096>;
  197. tx-fifo-size = <2048>;
  198. phy-mode = "rmii";
  199. phy-map = <0x00000000>;
  200. zmii-device = <&ZMII0>;
  201. zmii-channel = <0>;
  202. };
  203. usb@ef601000 {
  204. compatible = "ohci-be";
  205. reg = <0xef601000 0x00000080>;
  206. interrupts = <0x8 0x1 0x9 0x1>;
  207. interrupt-parent = < &UIC1 >;
  208. };
  209. };
  210. };
  211. chosen {
  212. linux,stdout-path = "/plb/opb/serial@ef600300";
  213. };
  214. };