socfpga.dtsi 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. cpu@0 {
  30. compatible = "arm,cortex-a9";
  31. device_type = "cpu";
  32. reg = <0>;
  33. next-level-cache = <&L2>;
  34. };
  35. cpu@1 {
  36. compatible = "arm,cortex-a9";
  37. device_type = "cpu";
  38. reg = <1>;
  39. next-level-cache = <&L2>;
  40. };
  41. };
  42. intc: intc@fffed000 {
  43. compatible = "arm,cortex-a9-gic";
  44. #interrupt-cells = <3>;
  45. interrupt-controller;
  46. reg = <0xfffed000 0x1000>,
  47. <0xfffec100 0x100>;
  48. };
  49. soc {
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. compatible = "simple-bus";
  53. device_type = "soc";
  54. interrupt-parent = <&intc>;
  55. ranges;
  56. amba {
  57. compatible = "arm,amba-bus";
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. ranges;
  61. pdma: pdma@ffe01000 {
  62. compatible = "arm,pl330", "arm,primecell";
  63. reg = <0xffe01000 0x1000>;
  64. interrupts = <0 180 4>;
  65. };
  66. };
  67. gmac0: stmmac@ff700000 {
  68. compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
  69. reg = <0xff700000 0x2000>;
  70. interrupts = <0 115 4>;
  71. interrupt-names = "macirq";
  72. mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
  73. phy-mode = "gmii";
  74. };
  75. L2: l2-cache@fffef000 {
  76. compatible = "arm,pl310-cache";
  77. reg = <0xfffef000 0x1000>;
  78. interrupts = <0 38 0x04>;
  79. cache-unified;
  80. cache-level = <2>;
  81. };
  82. /* Local timer */
  83. timer@fffec600 {
  84. compatible = "arm,cortex-a9-twd-timer";
  85. reg = <0xfffec600 0x100>;
  86. interrupts = <1 13 0xf04>;
  87. };
  88. timer0: timer@ffc08000 {
  89. compatible = "snps,dw-apb-timer-sp";
  90. interrupts = <0 167 4>;
  91. clock-frequency = <200000000>;
  92. reg = <0xffc08000 0x1000>;
  93. };
  94. timer1: timer@ffc09000 {
  95. compatible = "snps,dw-apb-timer-sp";
  96. interrupts = <0 168 4>;
  97. clock-frequency = <200000000>;
  98. reg = <0xffc09000 0x1000>;
  99. };
  100. timer2: timer@ffd00000 {
  101. compatible = "snps,dw-apb-timer-osc";
  102. interrupts = <0 169 4>;
  103. clock-frequency = <200000000>;
  104. reg = <0xffd00000 0x1000>;
  105. };
  106. timer3: timer@ffd01000 {
  107. compatible = "snps,dw-apb-timer-osc";
  108. interrupts = <0 170 4>;
  109. clock-frequency = <200000000>;
  110. reg = <0xffd01000 0x1000>;
  111. };
  112. uart0: uart@ffc02000 {
  113. compatible = "snps,dw-apb-uart";
  114. reg = <0xffc02000 0x1000>;
  115. clock-frequency = <7372800>;
  116. interrupts = <0 162 4>;
  117. reg-shift = <2>;
  118. reg-io-width = <4>;
  119. };
  120. uart1: uart@ffc03000 {
  121. compatible = "snps,dw-apb-uart";
  122. reg = <0xffc03000 0x1000>;
  123. clock-frequency = <7372800>;
  124. interrupts = <0 163 4>;
  125. reg-shift = <2>;
  126. reg-io-width = <4>;
  127. };
  128. };
  129. };