dubhe_fpga.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /* Copyright (c) 2021 StarFive Technology Co., Ltd. */
  3. #include "dubhe.dtsi"
  4. #include "binman.dtsi"
  5. #include "dubhe-fpga-u-boot.dtsi"
  6. / {
  7. model = "StarFive Dubhe FPGA";
  8. aliases {
  9. serial0 = &uart0;
  10. };
  11. chosen {
  12. bootargs = "console=ttySIF0,115200 earlycon=sbi root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
  13. };
  14. cpus {
  15. timebase-frequency = <25000000>;
  16. };
  17. memory@80000000 {
  18. device_type = "memory";
  19. reg = <0x0 0x80000000 0x2 0x0>;
  20. };
  21. soc {
  22. };
  23. };
  24. &spi0 {
  25. status = "okay";
  26. mmc@0 {
  27. compatible = "mmc-spi-slot";
  28. reg = <0>;
  29. spi-max-frequency = <20000000>;
  30. voltage-ranges = <3300 3300>;
  31. disable-wp;
  32. };
  33. };
  34. &qspi1 {
  35. status = "okay";
  36. flash@0 {
  37. compatible = "jedec,spi-nor";
  38. reg = <0>;
  39. spi-max-frequency = <20000000>;
  40. m25p,fast-read;
  41. spi-tx-bus-width = <1>;
  42. spi-rx-bus-width = <1>;
  43. partitions {
  44. compatible = "fixed-partitions";
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. partition@0 {
  48. reg = <0x000000 0x1000>;
  49. label = "boot copier";
  50. /*read-only;*/
  51. };
  52. partition@1000 {
  53. reg = <0x1000 0x1000>;
  54. label = "boot jump";
  55. /*read-only;*/
  56. };
  57. partition@2000 {
  58. reg = <0x2000 0x2000>;
  59. label = "DTB";
  60. };
  61. partition@4000 {
  62. reg = <0x4000 0x7ffc000>;
  63. label = "FW_payload (OpenSBI and Linux)";
  64. };
  65. };
  66. };
  67. };
  68. &uart0 {
  69. status = "okay";
  70. };
  71. &binman {
  72. kernel_fit {
  73. filename = "kernel.itb";
  74. fit {
  75. description = "FIT with Linux kernel image and FDT";
  76. #address-cells = <1>;
  77. images {
  78. kernel {
  79. description = "Linux kernel";
  80. type = "kernel";
  81. arch = "riscv";
  82. os = "linux";
  83. compression = "none";
  84. load = <0x80200000>;
  85. entry = <0x80200000>;
  86. kernel_blob: blob-ext {
  87. filename = "Image";
  88. };
  89. };
  90. fdt_kernel {
  91. description = "Linux kernel device tree binary";
  92. type = "flat_dt";
  93. arch = "riscv";
  94. compression = "none";
  95. load = <0x88000000>;
  96. fdt_kernel_blob: blob-ext {
  97. filename = "dubhe_fpga_linux.dtb";
  98. };
  99. };
  100. };
  101. configurations {
  102. default = "conf";
  103. conf {
  104. description = "Starfive Dubhe FPGA";
  105. kernel = "kernel";
  106. fdt = "fdt_kernel";
  107. };
  108. };
  109. };
  110. };
  111. QSPI_Image_binary {
  112. filename = "QSPI-Image.bin";
  113. pad-byte = <0xff>;
  114. bootcopier_blob: blob-ext@0 {
  115. filename = "dubhe_fpga_bootcode.bin";
  116. offset = <0x0>;
  117. };
  118. bootjump_blob: blob-ext@1 {
  119. filename = "dubhe_fpga_bootjump.bin";
  120. offset = <0x1000>;
  121. };
  122. u-boot-spl {
  123. offset = <0x2000>;
  124. };
  125. qspi_ubootproper_opensbi_blob: blob-ext@2 {
  126. filename = "u-boot.itb";
  127. offset = <0x22000>;
  128. };
  129. qspi_kernel_blob: blob-ext@3 {
  130. filename = "kernel.itb";
  131. offset = <0x400000>;
  132. };
  133. };
  134. };