arches.dts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. /*
  2. * Device Tree Source for AMCC Arches (dual 460GT board)
  3. *
  4. * (C) Copyright 2008 Applied Micro Circuits Corporation
  5. * Victor Gallardo <vgallardo@amcc.com>
  6. * Adam Graham <agraham@amcc.com>
  7. *
  8. * Based on the glacier.dts file
  9. * Stefan Roese <sr@denx.de>
  10. * Copyright 2008 DENX Software Engineering
  11. *
  12. * SPDX-License-Identifier: GPL-2.0+
  13. */
  14. /dts-v1/;
  15. / {
  16. #address-cells = <2>;
  17. #size-cells = <1>;
  18. model = "amcc,arches";
  19. compatible = "amcc,arches";
  20. dcr-parent = <&{/cpus/cpu@0}>;
  21. aliases {
  22. ethernet0 = &EMAC0;
  23. ethernet1 = &EMAC1;
  24. ethernet2 = &EMAC2;
  25. serial0 = &UART0;
  26. };
  27. cpus {
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. cpu@0 {
  31. device_type = "cpu";
  32. model = "PowerPC,460GT";
  33. reg = <0x00000000>;
  34. clock-frequency = <0>; /* Filled in by U-Boot */
  35. timebase-frequency = <0>; /* Filled in by U-Boot */
  36. i-cache-line-size = <32>;
  37. d-cache-line-size = <32>;
  38. i-cache-size = <32768>;
  39. d-cache-size = <32768>;
  40. dcr-controller;
  41. dcr-access-method = "native";
  42. next-level-cache = <&L2C0>;
  43. };
  44. };
  45. memory {
  46. device_type = "memory";
  47. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  48. };
  49. UIC0: interrupt-controller0 {
  50. compatible = "ibm,uic-460gt","ibm,uic";
  51. interrupt-controller;
  52. cell-index = <0>;
  53. dcr-reg = <0x0c0 0x009>;
  54. #address-cells = <0>;
  55. #size-cells = <0>;
  56. #interrupt-cells = <2>;
  57. };
  58. UIC1: interrupt-controller1 {
  59. compatible = "ibm,uic-460gt","ibm,uic";
  60. interrupt-controller;
  61. cell-index = <1>;
  62. dcr-reg = <0x0d0 0x009>;
  63. #address-cells = <0>;
  64. #size-cells = <0>;
  65. #interrupt-cells = <2>;
  66. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  67. interrupt-parent = <&UIC0>;
  68. };
  69. UIC2: interrupt-controller2 {
  70. compatible = "ibm,uic-460gt","ibm,uic";
  71. interrupt-controller;
  72. cell-index = <2>;
  73. dcr-reg = <0x0e0 0x009>;
  74. #address-cells = <0>;
  75. #size-cells = <0>;
  76. #interrupt-cells = <2>;
  77. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  78. interrupt-parent = <&UIC0>;
  79. };
  80. UIC3: interrupt-controller3 {
  81. compatible = "ibm,uic-460gt","ibm,uic";
  82. interrupt-controller;
  83. cell-index = <3>;
  84. dcr-reg = <0x0f0 0x009>;
  85. #address-cells = <0>;
  86. #size-cells = <0>;
  87. #interrupt-cells = <2>;
  88. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  89. interrupt-parent = <&UIC0>;
  90. };
  91. SDR0: sdr {
  92. compatible = "ibm,sdr-460gt";
  93. dcr-reg = <0x00e 0x002>;
  94. };
  95. CPR0: cpr {
  96. compatible = "ibm,cpr-460gt";
  97. dcr-reg = <0x00c 0x002>;
  98. };
  99. L2C0: l2c {
  100. compatible = "ibm,l2-cache-460gt", "ibm,l2-cache";
  101. dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
  102. 0x030 0x008>; /* L2 cache DCR's */
  103. cache-line-size = <32>; /* 32 bytes */
  104. cache-size = <262144>; /* L2, 256K */
  105. interrupt-parent = <&UIC1>;
  106. interrupts = <11 1>;
  107. };
  108. plb {
  109. compatible = "ibm,plb-460gt", "ibm,plb4";
  110. #address-cells = <2>;
  111. #size-cells = <1>;
  112. ranges;
  113. clock-frequency = <0>; /* Filled in by U-Boot */
  114. SDRAM0: sdram {
  115. compatible = "ibm,sdram-460gt", "ibm,sdram-405gp";
  116. dcr-reg = <0x010 0x002>;
  117. };
  118. CRYPTO: crypto@180000 {
  119. compatible = "amcc,ppc460gt-crypto", "amcc,ppc4xx-crypto";
  120. reg = <4 0x00180000 0x80400>;
  121. interrupt-parent = <&UIC0>;
  122. interrupts = <0x1d 0x4>;
  123. };
  124. MAL0: mcmal {
  125. compatible = "ibm,mcmal-460gt", "ibm,mcmal2";
  126. dcr-reg = <0x180 0x062>;
  127. num-tx-chans = <3>;
  128. num-rx-chans = <24>;
  129. #address-cells = <0>;
  130. #size-cells = <0>;
  131. interrupt-parent = <&UIC2>;
  132. interrupts = < /*TXEOB*/ 0x6 0x4
  133. /*RXEOB*/ 0x7 0x4
  134. /*SERR*/ 0x3 0x4
  135. /*TXDE*/ 0x4 0x4
  136. /*RXDE*/ 0x5 0x4>;
  137. desc-base-addr-high = <0x8>;
  138. };
  139. POB0: opb {
  140. compatible = "ibm,opb-460gt", "ibm,opb";
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  144. clock-frequency = <0>; /* Filled in by U-Boot */
  145. EBC0: ebc {
  146. compatible = "ibm,ebc-460gt", "ibm,ebc";
  147. dcr-reg = <0x012 0x002>;
  148. #address-cells = <2>;
  149. #size-cells = <1>;
  150. clock-frequency = <0>; /* Filled in by U-Boot */
  151. /* ranges property is supplied by U-Boot */
  152. interrupts = <0x6 0x4>;
  153. interrupt-parent = <&UIC1>;
  154. nor_flash@0,0 {
  155. compatible = "amd,s29gl256n", "cfi-flash";
  156. bank-width = <2>;
  157. reg = <0x00000000 0x00000000 0x02000000>;
  158. #address-cells = <1>;
  159. #size-cells = <1>;
  160. partition@0 {
  161. label = "kernel";
  162. reg = <0x00000000 0x001e0000>;
  163. };
  164. partition@1e0000 {
  165. label = "dtb";
  166. reg = <0x001e0000 0x00020000>;
  167. };
  168. partition@200000 {
  169. label = "root";
  170. reg = <0x00200000 0x00200000>;
  171. };
  172. partition@400000 {
  173. label = "user";
  174. reg = <0x00400000 0x01b60000>;
  175. };
  176. partition@1f60000 {
  177. label = "env";
  178. reg = <0x01f60000 0x00040000>;
  179. };
  180. partition@1fa0000 {
  181. label = "u-boot";
  182. reg = <0x01fa0000 0x00060000>;
  183. };
  184. };
  185. };
  186. UART0: serial@ef600300 {
  187. device_type = "serial";
  188. compatible = "ns16550";
  189. reg = <0xef600300 0x00000008>;
  190. virtual-reg = <0xef600300>;
  191. clock-frequency = <0>; /* Filled in by U-Boot */
  192. current-speed = <0>; /* Filled in by U-Boot */
  193. interrupt-parent = <&UIC1>;
  194. interrupts = <0x1 0x4>;
  195. };
  196. IIC0: i2c@ef600700 {
  197. compatible = "ibm,iic-460gt", "ibm,iic";
  198. reg = <0xef600700 0x00000014>;
  199. interrupt-parent = <&UIC0>;
  200. interrupts = <0x2 0x4>;
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. sttm@4a {
  204. compatible = "ad,ad7414";
  205. reg = <0x4a>;
  206. interrupt-parent = <&UIC1>;
  207. interrupts = <0x0 0x8>;
  208. };
  209. };
  210. IIC1: i2c@ef600800 {
  211. compatible = "ibm,iic-460gt", "ibm,iic";
  212. reg = <0xef600800 0x00000014>;
  213. interrupt-parent = <&UIC0>;
  214. interrupts = <0x3 0x4>;
  215. };
  216. TAH0: emac-tah@ef601350 {
  217. compatible = "ibm,tah-460gt", "ibm,tah";
  218. reg = <0xef601350 0x00000030>;
  219. };
  220. TAH1: emac-tah@ef601450 {
  221. compatible = "ibm,tah-460gt", "ibm,tah";
  222. reg = <0xef601450 0x00000030>;
  223. };
  224. EMAC0: ethernet@ef600e00 {
  225. device_type = "network";
  226. compatible = "ibm,emac-460gt", "ibm,emac4sync";
  227. interrupt-parent = <&EMAC0>;
  228. interrupts = <0x0 0x1>;
  229. #interrupt-cells = <1>;
  230. #address-cells = <0>;
  231. #size-cells = <0>;
  232. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  233. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  234. reg = <0xef600e00 0x000000c4>;
  235. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  236. mal-device = <&MAL0>;
  237. mal-tx-channel = <0>;
  238. mal-rx-channel = <0>;
  239. cell-index = <0>;
  240. max-frame-size = <9000>;
  241. rx-fifo-size = <4096>;
  242. tx-fifo-size = <2048>;
  243. rx-fifo-size-gige = <16384>;
  244. phy-mode = "sgmii";
  245. phy-map = <0xffffffff>;
  246. gpcs-address = <0x0000000a>;
  247. tah-device = <&TAH0>;
  248. tah-channel = <0>;
  249. has-inverted-stacr-oc;
  250. has-new-stacr-staopc;
  251. };
  252. EMAC1: ethernet@ef600f00 {
  253. device_type = "network";
  254. compatible = "ibm,emac-460gt", "ibm,emac4sync";
  255. interrupt-parent = <&EMAC1>;
  256. interrupts = <0x0 0x1>;
  257. #interrupt-cells = <1>;
  258. #address-cells = <0>;
  259. #size-cells = <0>;
  260. interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
  261. /*Wake*/ 0x1 &UIC2 0x15 0x4>;
  262. reg = <0xef600f00 0x000000c4>;
  263. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  264. mal-device = <&MAL0>;
  265. mal-tx-channel = <1>;
  266. mal-rx-channel = <8>;
  267. cell-index = <1>;
  268. max-frame-size = <9000>;
  269. rx-fifo-size = <4096>;
  270. tx-fifo-size = <2048>;
  271. rx-fifo-size-gige = <16384>;
  272. phy-mode = "sgmii";
  273. phy-map = <0x00000000>;
  274. gpcs-address = <0x0000000b>;
  275. tah-device = <&TAH1>;
  276. tah-channel = <1>;
  277. has-inverted-stacr-oc;
  278. has-new-stacr-staopc;
  279. mdio-device = <&EMAC0>;
  280. };
  281. EMAC2: ethernet@ef601100 {
  282. device_type = "network";
  283. compatible = "ibm,emac-460gt", "ibm,emac4sync";
  284. interrupt-parent = <&EMAC2>;
  285. interrupts = <0x0 0x1>;
  286. #interrupt-cells = <1>;
  287. #address-cells = <0>;
  288. #size-cells = <0>;
  289. interrupt-map = </*Status*/ 0x0 &UIC2 0x12 0x4
  290. /*Wake*/ 0x1 &UIC2 0x16 0x4>;
  291. reg = <0xef601100 0x000000c4>;
  292. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  293. mal-device = <&MAL0>;
  294. mal-tx-channel = <2>;
  295. mal-rx-channel = <16>;
  296. cell-index = <2>;
  297. max-frame-size = <9000>;
  298. rx-fifo-size = <4096>;
  299. tx-fifo-size = <2048>;
  300. rx-fifo-size-gige = <16384>;
  301. tx-fifo-size-gige = <16384>; /* emac2&3 only */
  302. phy-mode = "sgmii";
  303. phy-map = <0x00000001>;
  304. gpcs-address = <0x0000000C>;
  305. has-inverted-stacr-oc;
  306. has-new-stacr-staopc;
  307. mdio-device = <&EMAC0>;
  308. };
  309. };
  310. };
  311. };