socfpga.dtsi 3.4 KB

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