binman.dtsi 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
  4. */
  5. #include <config.h>
  6. / {
  7. binman: binman {
  8. multiple-images;
  9. };
  10. };
  11. &binman {
  12. itb {
  13. filename = "u-boot.itb";
  14. fit {
  15. description = "Configuration to load OpenSBI before U-Boot";
  16. #address-cells = <1>;
  17. fit,fdt-list = "of-list";
  18. images {
  19. uboot {
  20. description = "U-Boot";
  21. type = "standalone";
  22. os = "U-Boot";
  23. arch = "riscv";
  24. compression = "none";
  25. load = <CONFIG_SYS_TEXT_BASE>;
  26. uboot_blob: blob-ext {
  27. filename = "u-boot-nodtb.bin";
  28. };
  29. };
  30. opensbi {
  31. description = "OpenSBI fw_dynamic Firmware";
  32. type = "firmware";
  33. os = "opensbi";
  34. arch = "riscv";
  35. compression = "none";
  36. load = <CONFIG_SPL_OPENSBI_LOAD_ADDR>;
  37. entry = <CONFIG_SPL_OPENSBI_LOAD_ADDR>;
  38. opensbi_blob: opensbi {
  39. filename = "fw_dynamic.bin";
  40. };
  41. };
  42. #ifndef CONFIG_OF_PRIOR_STAGE
  43. @fdt-SEQ {
  44. description = "NAME";
  45. type = "flat_dt";
  46. compression = "none";
  47. };
  48. #endif
  49. };
  50. configurations {
  51. default = "conf-1";
  52. #ifndef CONFIG_OF_PRIOR_STAGE
  53. @conf-SEQ {
  54. #else
  55. conf-1 {
  56. #endif
  57. description = "NAME";
  58. firmware = "opensbi";
  59. loadables = "uboot";
  60. #ifndef CONFIG_OF_PRIOR_STAGE
  61. fdt = "fdt-SEQ";
  62. #endif
  63. };
  64. };
  65. };
  66. };
  67. };