qemu-rv32-virt.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /dts-v1/;
  2. / {
  3. #address-cells = < 0x02 >;
  4. #size-cells = < 0x02 >;
  5. compatible = "riscv-virtio";
  6. model = "riscv-virtio,qemu";
  7. fw-cfg@10100000 {
  8. dma-coherent;
  9. reg = < 0x00 0x10100000 0x00 0x18 >;
  10. compatible = "qemu,fw-cfg-mmio";
  11. };
  12. chosen {
  13. bootargs = [ 00 ];
  14. stdout-path = "/soc/uart@10000000";
  15. };
  16. memory@80000000 {
  17. device_type = "memory";
  18. reg = < 0x00 0x80000000 0x00 0x8000000 >;
  19. };
  20. cpus {
  21. #address-cells = < 0x01 >;
  22. #size-cells = < 0x00 >;
  23. timebase-frequency = < 0x989680 >;
  24. cpu@0 {
  25. phandle = < 0x01 >;
  26. device_type = "cpu";
  27. reg = < 0x00 >;
  28. status = "okay";
  29. compatible = "riscv";
  30. riscv,isa = "rv32imafdcsu";
  31. mmu-type = "riscv,sv32";
  32. interrupt-controller {
  33. #interrupt-cells = < 0x01 >;
  34. interrupt-controller;
  35. compatible = "riscv,cpu-intc";
  36. phandle = < 0x02 >;
  37. };
  38. };
  39. cpu-map {
  40. cluster0 {
  41. core0 {
  42. cpu = < 0x01 >;
  43. };
  44. };
  45. };
  46. };
  47. soc {
  48. #address-cells = < 0x02 >;
  49. #size-cells = < 0x02 >;
  50. compatible = "simple-bus";
  51. ranges;
  52. flash@20000000 {
  53. bank-width = < 0x04 >;
  54. reg = < 0x00 0x20000000 0x00 0x2000000 0x00 0x22000000 0x00 0x2000000 >;
  55. compatible = "cfi-flash";
  56. };
  57. rtc@101000 {
  58. interrupts = < 0x0b >;
  59. interrupt-parent = < 0x03 >;
  60. reg = < 0x00 0x101000 0x00 0x1000 >;
  61. compatible = "google,goldfish-rtc";
  62. };
  63. uart@10000000 {
  64. interrupts = < 0x0a >;
  65. interrupt-parent = < 0x03 >;
  66. clock-frequency = < 0x384000 >;
  67. reg = < 0x00 0x10000000 0x00 0x100 >;
  68. compatible = "ns16550a";
  69. };
  70. poweroff {
  71. value = < 0x5555 >;
  72. offset = < 0x00 >;
  73. regmap = < 0x04 >;
  74. compatible = "syscon-poweroff";
  75. };
  76. reboot {
  77. value = < 0x7777 >;
  78. offset = < 0x00 >;
  79. regmap = < 0x04 >;
  80. compatible = "syscon-reboot";
  81. };
  82. test@100000 {
  83. phandle = < 0x04 >;
  84. reg = < 0x00 0x100000 0x00 0x1000 >;
  85. compatible = "sifive,test1\0sifive,test0\0syscon";
  86. };
  87. pci@30000000 {
  88. interrupt-map-mask = < 0x1800 0x00 0x00 0x07 >;
  89. interrupt-map = < 0x00 0x00 0x00 0x01 0x03 0x20 0x00 0x00 0x00 0x02 0x03 0x21 0x00 0x00 0x00 0x03 0x03 0x22 0x00 0x00 0x00 0x04 0x03 0x23 0x800 0x00 0x00 0x01 0x03 0x21 0x800 0x00 0x00 0x02 0x03 0x22 0x800 0x00 0x00 0x03 0x03 0x23 0x800 0x00 0x00 0x04 0x03 0x20 0x1000 0x00 0x00 0x01 0x03 0x22 0x1000 0x00 0x00 0x02 0x03 0x23 0x1000 0x00 0x00 0x03 0x03 0x20 0x1000 0x00 0x00 0x04 0x03 0x21 0x1800 0x00 0x00 0x01 0x03 0x23 0x1800 0x00 0x00 0x02 0x03 0x20 0x1800 0x00 0x00 0x03 0x03 0x21 0x1800 0x00 0x00 0x04 0x03 0x22 >;
  90. ranges = < 0x1000000 0x00 0x00 0x00 0x3000000 0x00 0x10000 0x2000000 0x00 0x40000000 0x00 0x40000000 0x00 0x40000000 0x3000000 0x03 0x00 0x03 0x00 0x01 0x00 >;
  91. reg = < 0x00 0x30000000 0x00 0x10000000 >;
  92. dma-coherent;
  93. bus-range = < 0x00 0xff >;
  94. linux,pci-domain = < 0x00 >;
  95. device_type = "pci";
  96. compatible = "pci-host-ecam-generic";
  97. #size-cells = < 0x02 >;
  98. #interrupt-cells = < 0x01 >;
  99. #address-cells = < 0x03 >;
  100. };
  101. virtio_mmio@10008000 {
  102. interrupts = < 0x08 >;
  103. interrupt-parent = < 0x03 >;
  104. reg = < 0x00 0x10008000 0x00 0x1000 >;
  105. compatible = "virtio,mmio";
  106. };
  107. virtio_mmio@10007000 {
  108. interrupts = < 0x07 >;
  109. interrupt-parent = < 0x03 >;
  110. reg = < 0x00 0x10007000 0x00 0x1000 >;
  111. compatible = "virtio,mmio";
  112. };
  113. virtio_mmio@10006000 {
  114. interrupts = < 0x06 >;
  115. interrupt-parent = < 0x03 >;
  116. reg = < 0x00 0x10006000 0x00 0x1000 >;
  117. compatible = "virtio,mmio";
  118. };
  119. virtio_mmio@10005000 {
  120. interrupts = < 0x05 >;
  121. interrupt-parent = < 0x03 >;
  122. reg = < 0x00 0x10005000 0x00 0x1000 >;
  123. compatible = "virtio,mmio";
  124. };
  125. virtio_mmio@10004000 {
  126. interrupts = < 0x04 >;
  127. interrupt-parent = < 0x03 >;
  128. reg = < 0x00 0x10004000 0x00 0x1000 >;
  129. compatible = "virtio,mmio";
  130. };
  131. virtio_mmio@10003000 {
  132. interrupts = < 0x03 >;
  133. interrupt-parent = < 0x03 >;
  134. reg = < 0x00 0x10003000 0x00 0x1000 >;
  135. compatible = "virtio,mmio";
  136. };
  137. virtio_mmio@10002000 {
  138. interrupts = < 0x02 >;
  139. interrupt-parent = < 0x03 >;
  140. reg = < 0x00 0x10002000 0x00 0x1000 >;
  141. compatible = "virtio,mmio";
  142. };
  143. virtio_mmio@10001000 {
  144. interrupts = < 0x01 >;
  145. interrupt-parent = < 0x03 >;
  146. reg = < 0x00 0x10001000 0x00 0x1000 >;
  147. compatible = "virtio,mmio";
  148. };
  149. plic@c000000 {
  150. phandle = < 0x03 >;
  151. riscv,ndev = < 0x35 >;
  152. reg = < 0x00 0xc000000 0x00 0x210000 >;
  153. interrupts-extended = < 0x02 0x0b 0x02 0x09 >;
  154. interrupt-controller;
  155. compatible = "sifive,plic-1.0.0\0riscv,plic0";
  156. #interrupt-cells = < 0x01 >;
  157. #address-cells = < 0x00 >;
  158. };
  159. clint@2000000 {
  160. interrupts-extended = < 0x02 0x03 0x02 0x07 >;
  161. reg = < 0x00 0x2000000 0x00 0x10000 >;
  162. compatible = "sifive,clint0\0riscv,clint0";
  163. };
  164. };
  165. };