binman.dtsi 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_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. missing-msg = "opensbi";
  41. };
  42. };
  43. #ifndef CONFIG_OF_BOARD
  44. @fdt-SEQ {
  45. description = "NAME";
  46. type = "flat_dt";
  47. compression = "none";
  48. };
  49. #endif
  50. };
  51. configurations {
  52. default = "conf-1";
  53. #ifndef CONFIG_OF_BOARD
  54. @conf-SEQ {
  55. #else
  56. conf-1 {
  57. #endif
  58. description = "NAME";
  59. firmware = "opensbi";
  60. loadables = "uboot";
  61. #ifndef CONFIG_OF_BOARD
  62. fdt = "fdt-SEQ";
  63. #endif
  64. };
  65. };
  66. };
  67. };
  68. };