socfpga_cyclone5_sockit_beri_sdmmc.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*-
  2. * Copyright (c) 2017 Ruslan Bukin <br@bsdpad.com>
  3. * All rights reserved.
  4. *
  5. * This software was developed by SRI International and the University of
  6. * Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
  7. * ("CTSRD"), as part of the DARPA CRASH research programme.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  19. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  20. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  21. * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  22. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  23. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  24. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  25. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  26. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  27. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  28. * SUCH DAMAGE.
  29. *
  30. * $FreeBSD$
  31. */
  32. /* /dts-v1/; */
  33. #include "socfpga_cyclone5_sockit.dts"
  34. / {
  35. model = "Terasic SoCkit";
  36. compatible = "altr,socfpga-cyclone5", "altr,socfpga";
  37. memreserve = < 0x00000000 0x1000 >, /* SMP trampoline */
  38. < 0x00001000 0x1000 >, /* virtio block */
  39. < 0x00002000 0x1000 >; /* virtio net */
  40. soc {
  41. /* Local timer */
  42. timer@fffec600 {
  43. clock-frequency = <200000000>;
  44. };
  45. /* Global timer */
  46. global_timer: timer@fffec200 {
  47. compatible = "arm,cortex-a9-global-timer";
  48. reg = <0xfffec200 0x20>;
  49. interrupts = <1 11 0xf04>;
  50. clock-frequency = <200000000>;
  51. };
  52. beri_mem0: mem@d0000000 {
  53. compatible = "sri-cambridge,beri-mem";
  54. reg = <0xd0000000 0x10000000>; /* 256mb */
  55. status = "okay";
  56. };
  57. pio0: pio@c0020000 {
  58. compatible = "altr,pio";
  59. reg = <0xc0020000 0x1000>; /* recv */
  60. interrupts = < 76 >;
  61. status = "okay";
  62. };
  63. pio1: pio@c0021000 {
  64. compatible = "altr,pio";
  65. reg = <0xc0021000 0x1000>; /* send */
  66. interrupts = < 82 >; /* not in use on arm side */
  67. status = "okay";
  68. };
  69. pio2: pio@c0022000 {
  70. compatible = "altr,pio";
  71. reg = <0xc0022000 0x1000>; /* recv */
  72. interrupts = < 77 >;
  73. status = "okay";
  74. };
  75. pio3: pio@c0023000 {
  76. compatible = "altr,pio";
  77. reg = <0xc0023000 0x1000>; /* send */
  78. interrupts = < 83 >; /* not in use on arm side */
  79. status = "okay";
  80. };
  81. beri_vtblk: vtblk@00001000 {
  82. compatible = "sri-cambridge,beri-vtblk";
  83. reg = <0x00001000 0x1000>;
  84. pio-recv = <&pio0>;
  85. pio-send = <&pio1>;
  86. beri-mem = <&beri_mem0>;
  87. status = "okay";
  88. };
  89. beri_vtnet: vtnet@00002000 {
  90. compatible = "sri-cambridge,beri-vtnet";
  91. reg = <0x00002000 0x1000>;
  92. pio-recv = <&pio2>;
  93. pio-send = <&pio3>;
  94. beri-mem = <&beri_mem0>;
  95. status = "okay";
  96. };
  97. beri_debug: ring@c0000000 {
  98. compatible = "sri-cambridge,beri-ring";
  99. reg = <0xc0000000 0x3000>;
  100. interrupts = < 72 73 >;
  101. device_name = "beri_debug";
  102. data_size = <0x1000>;
  103. data_read = <0x0>;
  104. data_write = <0x1000>;
  105. control_read = <0x2000>;
  106. control_write = <0x2010>;
  107. status = "okay";
  108. };
  109. beri_console: ring@c0004000 {
  110. compatible = "sri-cambridge,beri-ring";
  111. reg = <0xc0004000 0x3000>;
  112. interrupts = < 74 75 >;
  113. device_name = "beri_console";
  114. data_size = <0x1000>;
  115. data_read = <0x0>;
  116. data_write = <0x1000>;
  117. control_read = <0x2000>;
  118. control_write = <0x2010>;
  119. status = "okay";
  120. };
  121. };
  122. chosen {
  123. stdin = "serial0";
  124. stdout = "serial0";
  125. };
  126. };
  127. &mmc0 {
  128. bus-frequency = <25000000>;
  129. };
  130. &uart0 {
  131. clock-frequency = <100000000>;
  132. };
  133. &uart1 {
  134. status = "disabled";
  135. };