socfpga.dtsi 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /*
  2. * Copyright (C) 2012 Altera <www.altera.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /include/ "skeleton.dtsi"
  18. / {
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. aliases {
  22. ethernet0 = &gmac0;
  23. serial0 = &uart0;
  24. serial1 = &uart1;
  25. timer0 = &timer0;
  26. timer1 = &timer1;
  27. timer2 = &timer2;
  28. timer3 = &timer3;
  29. };
  30. cpus {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. cpu@0 {
  34. compatible = "arm,cortex-a9";
  35. device_type = "cpu";
  36. reg = <0>;
  37. next-level-cache = <&L2>;
  38. };
  39. cpu@1 {
  40. compatible = "arm,cortex-a9";
  41. device_type = "cpu";
  42. reg = <1>;
  43. next-level-cache = <&L2>;
  44. };
  45. };
  46. intc: intc@fffed000 {
  47. compatible = "arm,cortex-a9-gic";
  48. #interrupt-cells = <3>;
  49. interrupt-controller;
  50. reg = <0xfffed000 0x1000>,
  51. <0xfffec100 0x100>;
  52. };
  53. soc {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "simple-bus";
  57. device_type = "soc";
  58. interrupt-parent = <&intc>;
  59. ranges;
  60. amba {
  61. compatible = "arm,amba-bus";
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. ranges;
  65. pdma: pdma@ffe01000 {
  66. compatible = "arm,pl330", "arm,primecell";
  67. reg = <0xffe01000 0x1000>;
  68. interrupts = <0 180 4>;
  69. #dma-cells = <1>;
  70. #dma-channels = <8>;
  71. #dma-requests = <32>;
  72. };
  73. };
  74. clkmgr@ffd04000 {
  75. compatible = "altr,clk-mgr";
  76. reg = <0xffd04000 0x1000>;
  77. clocks {
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. osc: osc1 {
  81. #clock-cells = <0>;
  82. compatible = "fixed-clock";
  83. };
  84. main_pll: main_pll {
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. #clock-cells = <0>;
  88. compatible = "altr,socfpga-pll-clock";
  89. clocks = <&osc>;
  90. reg = <0x40>;
  91. mpuclk: mpuclk {
  92. #clock-cells = <0>;
  93. compatible = "altr,socfpga-perip-clk";
  94. clocks = <&main_pll>;
  95. fixed-divider = <2>;
  96. reg = <0x48>;
  97. };
  98. mainclk: mainclk {
  99. #clock-cells = <0>;
  100. compatible = "altr,socfpga-perip-clk";
  101. clocks = <&main_pll>;
  102. fixed-divider = <4>;
  103. reg = <0x4C>;
  104. };
  105. dbg_base_clk: dbg_base_clk {
  106. #clock-cells = <0>;
  107. compatible = "altr,socfpga-perip-clk";
  108. clocks = <&main_pll>;
  109. fixed-divider = <4>;
  110. reg = <0x50>;
  111. };
  112. main_qspi_clk: main_qspi_clk {
  113. #clock-cells = <0>;
  114. compatible = "altr,socfpga-perip-clk";
  115. clocks = <&main_pll>;
  116. reg = <0x54>;
  117. };
  118. main_nand_sdmmc_clk: main_nand_sdmmc_clk {
  119. #clock-cells = <0>;
  120. compatible = "altr,socfpga-perip-clk";
  121. clocks = <&main_pll>;
  122. reg = <0x58>;
  123. };
  124. cfg_s2f_usr0_clk: cfg_s2f_usr0_clk {
  125. #clock-cells = <0>;
  126. compatible = "altr,socfpga-perip-clk";
  127. clocks = <&main_pll>;
  128. reg = <0x5C>;
  129. };
  130. };
  131. periph_pll: periph_pll {
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. #clock-cells = <0>;
  135. compatible = "altr,socfpga-pll-clock";
  136. clocks = <&osc>;
  137. reg = <0x80>;
  138. emac0_clk: emac0_clk {
  139. #clock-cells = <0>;
  140. compatible = "altr,socfpga-perip-clk";
  141. clocks = <&periph_pll>;
  142. reg = <0x88>;
  143. };
  144. emac1_clk: emac1_clk {
  145. #clock-cells = <0>;
  146. compatible = "altr,socfpga-perip-clk";
  147. clocks = <&periph_pll>;
  148. reg = <0x8C>;
  149. };
  150. per_qspi_clk: per_qsi_clk {
  151. #clock-cells = <0>;
  152. compatible = "altr,socfpga-perip-clk";
  153. clocks = <&periph_pll>;
  154. reg = <0x90>;
  155. };
  156. per_nand_mmc_clk: per_nand_mmc_clk {
  157. #clock-cells = <0>;
  158. compatible = "altr,socfpga-perip-clk";
  159. clocks = <&periph_pll>;
  160. reg = <0x94>;
  161. };
  162. per_base_clk: per_base_clk {
  163. #clock-cells = <0>;
  164. compatible = "altr,socfpga-perip-clk";
  165. clocks = <&periph_pll>;
  166. reg = <0x98>;
  167. };
  168. s2f_usr1_clk: s2f_usr1_clk {
  169. #clock-cells = <0>;
  170. compatible = "altr,socfpga-perip-clk";
  171. clocks = <&periph_pll>;
  172. reg = <0x9C>;
  173. };
  174. };
  175. sdram_pll: sdram_pll {
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. #clock-cells = <0>;
  179. compatible = "altr,socfpga-pll-clock";
  180. clocks = <&osc>;
  181. reg = <0xC0>;
  182. ddr_dqs_clk: ddr_dqs_clk {
  183. #clock-cells = <0>;
  184. compatible = "altr,socfpga-perip-clk";
  185. clocks = <&sdram_pll>;
  186. reg = <0xC8>;
  187. };
  188. ddr_2x_dqs_clk: ddr_2x_dqs_clk {
  189. #clock-cells = <0>;
  190. compatible = "altr,socfpga-perip-clk";
  191. clocks = <&sdram_pll>;
  192. reg = <0xCC>;
  193. };
  194. ddr_dq_clk: ddr_dq_clk {
  195. #clock-cells = <0>;
  196. compatible = "altr,socfpga-perip-clk";
  197. clocks = <&sdram_pll>;
  198. reg = <0xD0>;
  199. };
  200. s2f_usr2_clk: s2f_usr2_clk {
  201. #clock-cells = <0>;
  202. compatible = "altr,socfpga-perip-clk";
  203. clocks = <&sdram_pll>;
  204. reg = <0xD4>;
  205. };
  206. };
  207. };
  208. };
  209. gmac0: stmmac@ff700000 {
  210. compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
  211. reg = <0xff700000 0x2000>;
  212. interrupts = <0 115 4>;
  213. interrupt-names = "macirq";
  214. mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
  215. phy-mode = "gmii";
  216. };
  217. L2: l2-cache@fffef000 {
  218. compatible = "arm,pl310-cache";
  219. reg = <0xfffef000 0x1000>;
  220. interrupts = <0 38 0x04>;
  221. cache-unified;
  222. cache-level = <2>;
  223. };
  224. /* Local timer */
  225. timer@fffec600 {
  226. compatible = "arm,cortex-a9-twd-timer";
  227. reg = <0xfffec600 0x100>;
  228. interrupts = <1 13 0xf04>;
  229. };
  230. timer0: timer0@ffc08000 {
  231. compatible = "snps,dw-apb-timer-sp";
  232. interrupts = <0 167 4>;
  233. reg = <0xffc08000 0x1000>;
  234. };
  235. timer1: timer1@ffc09000 {
  236. compatible = "snps,dw-apb-timer-sp";
  237. interrupts = <0 168 4>;
  238. reg = <0xffc09000 0x1000>;
  239. };
  240. timer2: timer2@ffd00000 {
  241. compatible = "snps,dw-apb-timer-osc";
  242. interrupts = <0 169 4>;
  243. reg = <0xffd00000 0x1000>;
  244. };
  245. timer3: timer3@ffd01000 {
  246. compatible = "snps,dw-apb-timer-osc";
  247. interrupts = <0 170 4>;
  248. reg = <0xffd01000 0x1000>;
  249. };
  250. uart0: serial0@ffc02000 {
  251. compatible = "snps,dw-apb-uart";
  252. reg = <0xffc02000 0x1000>;
  253. interrupts = <0 162 4>;
  254. reg-shift = <2>;
  255. reg-io-width = <4>;
  256. };
  257. uart1: serial1@ffc03000 {
  258. compatible = "snps,dw-apb-uart";
  259. reg = <0xffc03000 0x1000>;
  260. interrupts = <0 163 4>;
  261. reg-shift = <2>;
  262. reg-io-width = <4>;
  263. };
  264. rstmgr@ffd05000 {
  265. compatible = "altr,rst-mgr";
  266. reg = <0xffd05000 0x1000>;
  267. };
  268. sysmgr@ffd08000 {
  269. compatible = "altr,sys-mgr";
  270. reg = <0xffd08000 0x4000>;
  271. };
  272. };
  273. };