ep405.dts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /*
  2. * Device Tree Source for EP405
  3. *
  4. * Copyright 2007 IBM Corp.
  5. * Benjamin Herrenschmidt <benh@kernel.crashing.org>
  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 = <1>;
  14. #size-cells = <1>;
  15. model = "ep405";
  16. compatible = "ep405";
  17. dcr-parent = <&{/cpus/cpu@0}>;
  18. aliases {
  19. ethernet0 = &EMAC;
  20. serial0 = &UART0;
  21. serial1 = &UART1;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. cpu@0 {
  27. device_type = "cpu";
  28. model = "PowerPC,405GP";
  29. reg = <0x00000000>;
  30. clock-frequency = <200000000>; /* Filled in by zImage */
  31. timebase-frequency = <0>; /* Filled in by zImage */
  32. i-cache-line-size = <32>;
  33. d-cache-line-size = <32>;
  34. i-cache-size = <16384>;
  35. d-cache-size = <16384>;
  36. dcr-controller;
  37. dcr-access-method = "native";
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. reg = <0x00000000 0x00000000>; /* Filled in by zImage */
  43. };
  44. UIC0: interrupt-controller {
  45. compatible = "ibm,uic";
  46. interrupt-controller;
  47. cell-index = <0>;
  48. dcr-reg = <0x0c0 0x009>;
  49. #address-cells = <0>;
  50. #size-cells = <0>;
  51. #interrupt-cells = <2>;
  52. };
  53. plb {
  54. compatible = "ibm,plb3";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. ranges;
  58. clock-frequency = <0>; /* Filled in by zImage */
  59. SDRAM0: memory-controller {
  60. compatible = "ibm,sdram-405gp";
  61. dcr-reg = <0x010 0x002>;
  62. };
  63. MAL: mcmal {
  64. compatible = "ibm,mcmal-405gp", "ibm,mcmal";
  65. dcr-reg = <0x180 0x062>;
  66. num-tx-chans = <1>;
  67. num-rx-chans = <1>;
  68. interrupt-parent = <&UIC0>;
  69. interrupts = <
  70. 0xb 0x4 /* TXEOB */
  71. 0xc 0x4 /* RXEOB */
  72. 0xa 0x4 /* SERR */
  73. 0xd 0x4 /* TXDE */
  74. 0xe 0x4 /* RXDE */>;
  75. };
  76. POB0: opb {
  77. compatible = "ibm,opb-405gp", "ibm,opb";
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. ranges = <0xef600000 0xef600000 0x00a00000>;
  81. dcr-reg = <0x0a0 0x005>;
  82. clock-frequency = <0>; /* Filled in by zImage */
  83. UART0: serial@ef600300 {
  84. device_type = "serial";
  85. compatible = "ns16550";
  86. reg = <0xef600300 0x00000008>;
  87. virtual-reg = <0xef600300>;
  88. clock-frequency = <0>; /* Filled in by zImage */
  89. current-speed = <9600>;
  90. interrupt-parent = <&UIC0>;
  91. interrupts = <0x0 0x4>;
  92. };
  93. UART1: serial@ef600400 {
  94. device_type = "serial";
  95. compatible = "ns16550";
  96. reg = <0xef600400 0x00000008>;
  97. virtual-reg = <0xef600400>;
  98. clock-frequency = <0>; /* Filled in by zImage */
  99. current-speed = <9600>;
  100. interrupt-parent = <&UIC0>;
  101. interrupts = <0x1 0x4>;
  102. };
  103. IIC: i2c@ef600500 {
  104. compatible = "ibm,iic-405gp", "ibm,iic";
  105. reg = <0xef600500 0x00000011>;
  106. interrupt-parent = <&UIC0>;
  107. interrupts = <0x2 0x4>;
  108. };
  109. GPIO: gpio@ef600700 {
  110. compatible = "ibm,gpio-405gp";
  111. reg = <0xef600700 0x00000020>;
  112. };
  113. EMAC: ethernet@ef600800 {
  114. linux,network-index = <0x0>;
  115. device_type = "network";
  116. compatible = "ibm,emac-405gp", "ibm,emac";
  117. interrupt-parent = <&UIC0>;
  118. interrupts = <
  119. 0xf 0x4 /* Ethernet */
  120. 0x9 0x4 /* Ethernet Wake Up */>;
  121. local-mac-address = [000000000000]; /* Filled in by zImage */
  122. reg = <0xef600800 0x00000070>;
  123. mal-device = <&MAL>;
  124. mal-tx-channel = <0>;
  125. mal-rx-channel = <0>;
  126. cell-index = <0>;
  127. max-frame-size = <1500>;
  128. rx-fifo-size = <4096>;
  129. tx-fifo-size = <2048>;
  130. phy-mode = "rmii";
  131. phy-map = <0x00000000>;
  132. };
  133. };
  134. EBC0: ebc {
  135. compatible = "ibm,ebc-405gp", "ibm,ebc";
  136. dcr-reg = <0x012 0x002>;
  137. #address-cells = <2>;
  138. #size-cells = <1>;
  139. /* The ranges property is supplied by the bootwrapper
  140. * and is based on the firmware's configuration of the
  141. * EBC bridge
  142. */
  143. clock-frequency = <0>; /* Filled in by zImage */
  144. /* NVRAM and RTC */
  145. nvrtc@4,200000 {
  146. compatible = "ds1742";
  147. reg = <0x00000004 0x00200000 0x00000000>; /* size fixed up by zImage */
  148. };
  149. /* "BCSR" CPLD contains a PCI irq controller */
  150. bcsr@4,0 {
  151. compatible = "ep405-bcsr";
  152. reg = <0x00000004 0x00000000 0x00000010>;
  153. interrupt-controller;
  154. /* Routing table */
  155. irq-routing = [ 00 /* SYSERR */
  156. 01 /* STTM */
  157. 01 /* RTC */
  158. 01 /* FENET */
  159. 02 /* NB PCIIRQ mux ? */
  160. 03 /* SB Winbond 8259 ? */
  161. 04 /* Serial Ring */
  162. 05 /* USB (ep405pc) */
  163. 06 /* XIRQ 0 */
  164. 06 /* XIRQ 1 */
  165. 06 /* XIRQ 2 */
  166. 06 /* XIRQ 3 */
  167. 06 /* XIRQ 4 */
  168. 06 /* XIRQ 5 */
  169. 06 /* XIRQ 6 */
  170. 07]; /* Reserved */
  171. };
  172. };
  173. PCI0: pci@ec000000 {
  174. device_type = "pci";
  175. #interrupt-cells = <1>;
  176. #size-cells = <2>;
  177. #address-cells = <3>;
  178. compatible = "ibm,plb405gp-pci", "ibm,plb-pci";
  179. primary;
  180. reg = <0xeec00000 0x00000008 /* Config space access */
  181. 0xeed80000 0x00000004 /* IACK */
  182. 0xeed80000 0x00000004 /* Special cycle */
  183. 0xef480000 0x00000040>; /* Internal registers */
  184. /* Outbound ranges, one memory and one IO,
  185. * later cannot be changed. Chip supports a second
  186. * IO range but we don't use it for now
  187. */
  188. ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000
  189. 0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
  190. /* Inbound 2GB range starting at 0 */
  191. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  192. /* That's all I know about IRQs on that thing ... */
  193. interrupt-map-mask = <0xf800 0x0 0x0 0x0>;
  194. interrupt-map = <
  195. /* USB */
  196. 0x7000 0x0 0x0 0x0 &UIC0 0x1e 0x8 /* IRQ5 */
  197. >;
  198. };
  199. };
  200. chosen {
  201. linux,stdout-path = "/plb/opb/serial@ef600300";
  202. };
  203. };