ep405.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. model = "ep405";
  15. compatible = "ep405";
  16. dcr-parent = <&/cpus/cpu@0>;
  17. aliases {
  18. ethernet0 = &EMAC;
  19. serial0 = &UART0;
  20. serial1 = &UART1;
  21. };
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. cpu@0 {
  26. device_type = "cpu";
  27. model = "PowerPC,405GP";
  28. reg = <0>;
  29. clock-frequency = <bebc200>; /* Filled in by zImage */
  30. timebase-frequency = <0>; /* Filled in by zImage */
  31. i-cache-line-size = <20>;
  32. d-cache-line-size = <20>;
  33. i-cache-size = <4000>;
  34. d-cache-size = <4000>;
  35. dcr-controller;
  36. dcr-access-method = "native";
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0 0>; /* Filled in by zImage */
  42. };
  43. UIC0: interrupt-controller {
  44. compatible = "ibm,uic";
  45. interrupt-controller;
  46. cell-index = <0>;
  47. dcr-reg = <0c0 9>;
  48. #address-cells = <0>;
  49. #size-cells = <0>;
  50. #interrupt-cells = <2>;
  51. };
  52. plb {
  53. compatible = "ibm,plb3";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. ranges;
  57. clock-frequency = <0>; /* Filled in by zImage */
  58. SDRAM0: memory-controller {
  59. compatible = "ibm,sdram-405gp";
  60. dcr-reg = <010 2>;
  61. };
  62. MAL: mcmal {
  63. compatible = "ibm,mcmal-405gp", "ibm,mcmal";
  64. dcr-reg = <180 62>;
  65. num-tx-chans = <1>;
  66. num-rx-chans = <1>;
  67. interrupt-parent = <&UIC0>;
  68. interrupts = <
  69. b 4 /* TXEOB */
  70. c 4 /* RXEOB */
  71. a 4 /* SERR */
  72. d 4 /* TXDE */
  73. e 4 /* RXDE */>;
  74. };
  75. POB0: opb {
  76. compatible = "ibm,opb-405gp", "ibm,opb";
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. ranges = <ef600000 ef600000 a00000>;
  80. dcr-reg = <0a0 5>;
  81. clock-frequency = <0>; /* Filled in by zImage */
  82. UART0: serial@ef600300 {
  83. device_type = "serial";
  84. compatible = "ns16550";
  85. reg = <ef600300 8>;
  86. virtual-reg = <ef600300>;
  87. clock-frequency = <0>; /* Filled in by zImage */
  88. current-speed = <2580>;
  89. interrupt-parent = <&UIC0>;
  90. interrupts = <0 4>;
  91. };
  92. UART1: serial@ef600400 {
  93. device_type = "serial";
  94. compatible = "ns16550";
  95. reg = <ef600400 8>;
  96. virtual-reg = <ef600400>;
  97. clock-frequency = <0>; /* Filled in by zImage */
  98. current-speed = <2580>;
  99. interrupt-parent = <&UIC0>;
  100. interrupts = <1 4>;
  101. };
  102. IIC: i2c@ef600500 {
  103. compatible = "ibm,iic-405gp", "ibm,iic";
  104. reg = <ef600500 11>;
  105. interrupt-parent = <&UIC0>;
  106. interrupts = <2 4>;
  107. };
  108. GPIO: gpio@ef600700 {
  109. compatible = "ibm,gpio-405gp";
  110. reg = <ef600700 20>;
  111. };
  112. EMAC: ethernet@ef600800 {
  113. linux,network-index = <0>;
  114. device_type = "network";
  115. compatible = "ibm,emac-405gp", "ibm,emac";
  116. interrupt-parent = <&UIC0>;
  117. interrupts = <
  118. f 4 /* Ethernet */
  119. 9 4 /* Ethernet Wake Up */>;
  120. local-mac-address = [000000000000]; /* Filled in by zImage */
  121. reg = <ef600800 70>;
  122. mal-device = <&MAL>;
  123. mal-tx-channel = <0>;
  124. mal-rx-channel = <0>;
  125. cell-index = <0>;
  126. max-frame-size = <5dc>;
  127. rx-fifo-size = <1000>;
  128. tx-fifo-size = <800>;
  129. phy-mode = "rmii";
  130. phy-map = <00000000>;
  131. };
  132. };
  133. EBC0: ebc {
  134. compatible = "ibm,ebc-405gp", "ibm,ebc";
  135. dcr-reg = <012 2>;
  136. #address-cells = <2>;
  137. #size-cells = <1>;
  138. /* The ranges property is supplied by the bootwrapper
  139. * and is based on the firmware's configuration of the
  140. * EBC bridge
  141. */
  142. clock-frequency = <0>; /* Filled in by zImage */
  143. /* NVRAM and RTC */
  144. nvrtc@4,200000 {
  145. compatible = "ds1742";
  146. reg = <4 200000 0>; /* size fixed up by zImage */
  147. };
  148. /* "BCSR" CPLD contains a PCI irq controller */
  149. bcsr@4,0 {
  150. compatible = "ep405-bcsr";
  151. reg = <4 0 10>;
  152. interrupt-controller;
  153. /* Routing table */
  154. irq-routing = [ 00 /* SYSERR */
  155. 01 /* STTM */
  156. 01 /* RTC */
  157. 01 /* FENET */
  158. 02 /* NB PCIIRQ mux ? */
  159. 03 /* SB Winbond 8259 ? */
  160. 04 /* Serial Ring */
  161. 05 /* USB (ep405pc) */
  162. 06 /* XIRQ 0 */
  163. 06 /* XIRQ 1 */
  164. 06 /* XIRQ 2 */
  165. 06 /* XIRQ 3 */
  166. 06 /* XIRQ 4 */
  167. 06 /* XIRQ 5 */
  168. 06 /* XIRQ 6 */
  169. 07]; /* Reserved */
  170. };
  171. };
  172. PCI0: pci@ec000000 {
  173. device_type = "pci";
  174. #interrupt-cells = <1>;
  175. #size-cells = <2>;
  176. #address-cells = <3>;
  177. compatible = "ibm,plb405gp-pci", "ibm,plb-pci";
  178. primary;
  179. reg = <eec00000 8 /* Config space access */
  180. eed80000 4 /* IACK */
  181. eed80000 4 /* Special cycle */
  182. ef480000 40>; /* Internal registers */
  183. /* Outbound ranges, one memory and one IO,
  184. * later cannot be changed. Chip supports a second
  185. * IO range but we don't use it for now
  186. */
  187. ranges = <02000000 0 80000000 80000000 0 20000000
  188. 01000000 0 00000000 e8000000 0 00010000>;
  189. /* Inbound 2GB range starting at 0 */
  190. dma-ranges = <42000000 0 0 0 0 80000000>;
  191. /* That's all I know about IRQs on that thing ... */
  192. interrupt-map-mask = <f800 0 0 0>;
  193. interrupt-map = <
  194. /* USB */
  195. 7000 0 0 0 &UIC0 1e 8 /* IRQ5 */
  196. >;
  197. };
  198. };
  199. chosen {
  200. linux,stdout-path = "/plb/opb/serial@ef600300";
  201. };
  202. };