socfpga.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. ethernet1 = &gmac1;
  24. serial0 = &uart0;
  25. serial1 = &uart1;
  26. timer0 = &timer0;
  27. timer1 = &timer1;
  28. timer2 = &timer2;
  29. timer3 = &timer3;
  30. };
  31. cpus {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. cpu@0 {
  35. compatible = "arm,cortex-a9";
  36. device_type = "cpu";
  37. reg = <0>;
  38. next-level-cache = <&L2>;
  39. };
  40. cpu@1 {
  41. compatible = "arm,cortex-a9";
  42. device_type = "cpu";
  43. reg = <1>;
  44. next-level-cache = <&L2>;
  45. };
  46. };
  47. intc: intc@fffed000 {
  48. compatible = "arm,cortex-a9-gic";
  49. #interrupt-cells = <3>;
  50. interrupt-controller;
  51. reg = <0xfffed000 0x1000>,
  52. <0xfffec100 0x100>;
  53. };
  54. soc {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. compatible = "simple-bus";
  58. device_type = "soc";
  59. interrupt-parent = <&intc>;
  60. ranges;
  61. amba {
  62. compatible = "arm,amba-bus";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. ranges;
  66. pdma: pdma@ffe01000 {
  67. compatible = "arm,pl330", "arm,primecell";
  68. reg = <0xffe01000 0x1000>;
  69. interrupts = <0 180 4>;
  70. #dma-cells = <1>;
  71. #dma-channels = <8>;
  72. #dma-requests = <32>;
  73. };
  74. };
  75. clkmgr@ffd04000 {
  76. compatible = "altr,clk-mgr";
  77. reg = <0xffd04000 0x1000>;
  78. clocks {
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. osc: osc1 {
  82. #clock-cells = <0>;
  83. compatible = "fixed-clock";
  84. };
  85. main_pll: main_pll {
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. #clock-cells = <0>;
  89. compatible = "altr,socfpga-pll-clock";
  90. clocks = <&osc>;
  91. reg = <0x40>;
  92. mpuclk: mpuclk {
  93. #clock-cells = <0>;
  94. compatible = "altr,socfpga-perip-clk";
  95. clocks = <&main_pll>;
  96. fixed-divider = <2>;
  97. reg = <0x48>;
  98. };
  99. mainclk: mainclk {
  100. #clock-cells = <0>;
  101. compatible = "altr,socfpga-perip-clk";
  102. clocks = <&main_pll>;
  103. fixed-divider = <4>;
  104. reg = <0x4C>;
  105. };
  106. dbg_base_clk: dbg_base_clk {
  107. #clock-cells = <0>;
  108. compatible = "altr,socfpga-perip-clk";
  109. clocks = <&main_pll>;
  110. fixed-divider = <4>;
  111. reg = <0x50>;
  112. };
  113. main_qspi_clk: main_qspi_clk {
  114. #clock-cells = <0>;
  115. compatible = "altr,socfpga-perip-clk";
  116. clocks = <&main_pll>;
  117. reg = <0x54>;
  118. };
  119. main_nand_sdmmc_clk: main_nand_sdmmc_clk {
  120. #clock-cells = <0>;
  121. compatible = "altr,socfpga-perip-clk";
  122. clocks = <&main_pll>;
  123. reg = <0x58>;
  124. };
  125. cfg_s2f_usr0_clk: cfg_s2f_usr0_clk {
  126. #clock-cells = <0>;
  127. compatible = "altr,socfpga-perip-clk";
  128. clocks = <&main_pll>;
  129. reg = <0x5C>;
  130. };
  131. };
  132. periph_pll: periph_pll {
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. #clock-cells = <0>;
  136. compatible = "altr,socfpga-pll-clock";
  137. clocks = <&osc>;
  138. reg = <0x80>;
  139. emac0_clk: emac0_clk {
  140. #clock-cells = <0>;
  141. compatible = "altr,socfpga-perip-clk";
  142. clocks = <&periph_pll>;
  143. reg = <0x88>;
  144. };
  145. emac1_clk: emac1_clk {
  146. #clock-cells = <0>;
  147. compatible = "altr,socfpga-perip-clk";
  148. clocks = <&periph_pll>;
  149. reg = <0x8C>;
  150. };
  151. per_qspi_clk: per_qsi_clk {
  152. #clock-cells = <0>;
  153. compatible = "altr,socfpga-perip-clk";
  154. clocks = <&periph_pll>;
  155. reg = <0x90>;
  156. };
  157. per_nand_mmc_clk: per_nand_mmc_clk {
  158. #clock-cells = <0>;
  159. compatible = "altr,socfpga-perip-clk";
  160. clocks = <&periph_pll>;
  161. reg = <0x94>;
  162. };
  163. per_base_clk: per_base_clk {
  164. #clock-cells = <0>;
  165. compatible = "altr,socfpga-perip-clk";
  166. clocks = <&periph_pll>;
  167. reg = <0x98>;
  168. };
  169. s2f_usr1_clk: s2f_usr1_clk {
  170. #clock-cells = <0>;
  171. compatible = "altr,socfpga-perip-clk";
  172. clocks = <&periph_pll>;
  173. reg = <0x9C>;
  174. };
  175. };
  176. sdram_pll: sdram_pll {
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. #clock-cells = <0>;
  180. compatible = "altr,socfpga-pll-clock";
  181. clocks = <&osc>;
  182. reg = <0xC0>;
  183. ddr_dqs_clk: ddr_dqs_clk {
  184. #clock-cells = <0>;
  185. compatible = "altr,socfpga-perip-clk";
  186. clocks = <&sdram_pll>;
  187. reg = <0xC8>;
  188. };
  189. ddr_2x_dqs_clk: ddr_2x_dqs_clk {
  190. #clock-cells = <0>;
  191. compatible = "altr,socfpga-perip-clk";
  192. clocks = <&sdram_pll>;
  193. reg = <0xCC>;
  194. };
  195. ddr_dq_clk: ddr_dq_clk {
  196. #clock-cells = <0>;
  197. compatible = "altr,socfpga-perip-clk";
  198. clocks = <&sdram_pll>;
  199. reg = <0xD0>;
  200. };
  201. s2f_usr2_clk: s2f_usr2_clk {
  202. #clock-cells = <0>;
  203. compatible = "altr,socfpga-perip-clk";
  204. clocks = <&sdram_pll>;
  205. reg = <0xD4>;
  206. };
  207. };
  208. };
  209. };
  210. gmac0: ethernet@ff700000 {
  211. compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
  212. reg = <0xff700000 0x2000>;
  213. interrupts = <0 115 4>;
  214. interrupt-names = "macirq";
  215. mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
  216. clocks = <&emac0_clk>;
  217. clock-names = "stmmaceth";
  218. status = "disabled";
  219. };
  220. gmac1: ethernet@ff702000 {
  221. compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
  222. reg = <0xff702000 0x2000>;
  223. interrupts = <0 120 4>;
  224. interrupt-names = "macirq";
  225. mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
  226. clocks = <&emac1_clk>;
  227. clock-names = "stmmaceth";
  228. status = "disabled";
  229. };
  230. L2: l2-cache@fffef000 {
  231. compatible = "arm,pl310-cache";
  232. reg = <0xfffef000 0x1000>;
  233. interrupts = <0 38 0x04>;
  234. cache-unified;
  235. cache-level = <2>;
  236. };
  237. /* Local timer */
  238. timer@fffec600 {
  239. compatible = "arm,cortex-a9-twd-timer";
  240. reg = <0xfffec600 0x100>;
  241. interrupts = <1 13 0xf04>;
  242. };
  243. timer0: timer0@ffc08000 {
  244. compatible = "snps,dw-apb-timer-sp";
  245. interrupts = <0 167 4>;
  246. reg = <0xffc08000 0x1000>;
  247. };
  248. timer1: timer1@ffc09000 {
  249. compatible = "snps,dw-apb-timer-sp";
  250. interrupts = <0 168 4>;
  251. reg = <0xffc09000 0x1000>;
  252. };
  253. timer2: timer2@ffd00000 {
  254. compatible = "snps,dw-apb-timer-osc";
  255. interrupts = <0 169 4>;
  256. reg = <0xffd00000 0x1000>;
  257. };
  258. timer3: timer3@ffd01000 {
  259. compatible = "snps,dw-apb-timer-osc";
  260. interrupts = <0 170 4>;
  261. reg = <0xffd01000 0x1000>;
  262. };
  263. uart0: serial0@ffc02000 {
  264. compatible = "snps,dw-apb-uart";
  265. reg = <0xffc02000 0x1000>;
  266. interrupts = <0 162 4>;
  267. reg-shift = <2>;
  268. reg-io-width = <4>;
  269. };
  270. uart1: serial1@ffc03000 {
  271. compatible = "snps,dw-apb-uart";
  272. reg = <0xffc03000 0x1000>;
  273. interrupts = <0 163 4>;
  274. reg-shift = <2>;
  275. reg-io-width = <4>;
  276. };
  277. rstmgr@ffd05000 {
  278. compatible = "altr,rst-mgr";
  279. reg = <0xffd05000 0x1000>;
  280. };
  281. sysmgr@ffd08000 {
  282. compatible = "altr,sys-mgr";
  283. reg = <0xffd08000 0x4000>;
  284. };
  285. };
  286. };