socfpga.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. };
  70. };
  71. gmac0: stmmac@ff700000 {
  72. compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
  73. reg = <0xff700000 0x2000>;
  74. interrupts = <0 115 4>;
  75. interrupt-names = "macirq";
  76. mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
  77. phy-mode = "gmii";
  78. };
  79. L2: l2-cache@fffef000 {
  80. compatible = "arm,pl310-cache";
  81. reg = <0xfffef000 0x1000>;
  82. interrupts = <0 38 0x04>;
  83. cache-unified;
  84. cache-level = <2>;
  85. };
  86. /* Local timer */
  87. timer@fffec600 {
  88. compatible = "arm,cortex-a9-twd-timer";
  89. reg = <0xfffec600 0x100>;
  90. interrupts = <1 13 0xf04>;
  91. };
  92. timer0: timer0@ffc08000 {
  93. compatible = "snps,dw-apb-timer-sp";
  94. interrupts = <0 167 4>;
  95. reg = <0xffc08000 0x1000>;
  96. };
  97. timer1: timer1@ffc09000 {
  98. compatible = "snps,dw-apb-timer-sp";
  99. interrupts = <0 168 4>;
  100. reg = <0xffc09000 0x1000>;
  101. };
  102. timer2: timer2@ffd00000 {
  103. compatible = "snps,dw-apb-timer-osc";
  104. interrupts = <0 169 4>;
  105. reg = <0xffd00000 0x1000>;
  106. };
  107. timer3: timer3@ffd01000 {
  108. compatible = "snps,dw-apb-timer-osc";
  109. interrupts = <0 170 4>;
  110. reg = <0xffd01000 0x1000>;
  111. };
  112. uart0: serial0@ffc02000 {
  113. compatible = "snps,dw-apb-uart";
  114. reg = <0xffc02000 0x1000>;
  115. interrupts = <0 162 4>;
  116. reg-shift = <2>;
  117. reg-io-width = <4>;
  118. };
  119. uart1: serial1@ffc03000 {
  120. compatible = "snps,dw-apb-uart";
  121. reg = <0xffc03000 0x1000>;
  122. interrupts = <0 163 4>;
  123. reg-shift = <2>;
  124. reg-io-width = <4>;
  125. };
  126. rstmgr@ffd05000 {
  127. compatible = "altr,rst-mgr";
  128. reg = <0xffd05000 0x1000>;
  129. };
  130. sysmgr@ffd08000 {
  131. compatible = "altr,sys-mgr";
  132. reg = <0xffd08000 0x4000>;
  133. };
  134. };
  135. };