walnut.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /*
  2. * Device Tree Source for IBM Walnut
  3. *
  4. * Copyright 2007 IBM Corp.
  5. * Josh Boyer <jwboyer@linux.vnet.ibm.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 = <1>;
  14. #size-cells = <1>;
  15. model = "ibm,walnut";
  16. compatible = "ibm,walnut";
  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. device_type = "network";
  115. compatible = "ibm,emac-405gp", "ibm,emac";
  116. interrupt-parent = <&UIC0>;
  117. interrupts = <
  118. 0xf 0x4 /* Ethernet */
  119. 0x9 0x4 /* Ethernet Wake Up */>;
  120. local-mac-address = [000000000000]; /* Filled in by zImage */
  121. reg = <0xef600800 0x00000070>;
  122. mal-device = <&MAL>;
  123. mal-tx-channel = <0>;
  124. mal-rx-channel = <0>;
  125. cell-index = <0>;
  126. max-frame-size = <1500>;
  127. rx-fifo-size = <4096>;
  128. tx-fifo-size = <2048>;
  129. phy-mode = "rmii";
  130. phy-map = <0x00000001>;
  131. };
  132. };
  133. EBC0: ebc {
  134. compatible = "ibm,ebc-405gp", "ibm,ebc";
  135. dcr-reg = <0x012 0x002>;
  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. sram@0,0 {
  144. reg = <0x00000000 0x00000000 0x00080000>;
  145. };
  146. flash@0,80000 {
  147. compatible = "jedec-flash";
  148. bank-width = <1>;
  149. reg = <0x00000000 0x00080000 0x00080000>;
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. partition@0 {
  153. label = "OpenBIOS";
  154. reg = <0x00000000 0x00080000>;
  155. read-only;
  156. };
  157. };
  158. nvram@1,0 {
  159. /* NVRAM and RTC */
  160. compatible = "ds1743-nvram";
  161. #bytes = <0x2000>;
  162. reg = <0x00000001 0x00000000 0x00002000>;
  163. };
  164. keyboard@2,0 {
  165. compatible = "intel,82C42PC";
  166. reg = <0x00000002 0x00000000 0x00000002>;
  167. };
  168. ir@3,0 {
  169. compatible = "ti,TIR2000PAG";
  170. reg = <0x00000003 0x00000000 0x00000010>;
  171. };
  172. fpga@7,0 {
  173. compatible = "Walnut-FPGA";
  174. reg = <0x00000007 0x00000000 0x00000010>;
  175. virtual-reg = <0xf0300005>;
  176. };
  177. };
  178. PCI0: pci@ec000000 {
  179. device_type = "pci";
  180. #interrupt-cells = <1>;
  181. #size-cells = <2>;
  182. #address-cells = <3>;
  183. compatible = "ibm,plb405gp-pci", "ibm,plb-pci";
  184. primary;
  185. reg = <0xeec00000 0x00000008 /* Config space access */
  186. 0xeed80000 0x00000004 /* IACK */
  187. 0xeed80000 0x00000004 /* Special cycle */
  188. 0xef480000 0x00000040>; /* Internal registers */
  189. /* Outbound ranges, one memory and one IO,
  190. * later cannot be changed. Chip supports a second
  191. * IO range but we don't use it for now
  192. */
  193. ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000
  194. 0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
  195. /* Inbound 2GB range starting at 0 */
  196. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  197. /* Walnut has all 4 IRQ pins tied together per slot */
  198. interrupt-map-mask = <0xf800 0x0 0x0 0x0>;
  199. interrupt-map = <
  200. /* IDSEL 1 */
  201. 0x800 0x0 0x0 0x0 &UIC0 0x1c 0x8
  202. /* IDSEL 2 */
  203. 0x1000 0x0 0x0 0x0 &UIC0 0x1d 0x8
  204. /* IDSEL 3 */
  205. 0x1800 0x0 0x0 0x0 &UIC0 0x1e 0x8
  206. /* IDSEL 4 */
  207. 0x2000 0x0 0x0 0x0 &UIC0 0x1f 0x8
  208. >;
  209. };
  210. };
  211. chosen {
  212. linux,stdout-path = "/plb/opb/serial@ef600300";
  213. };
  214. };