mt7621-u-boot.dtsi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2022 MediaTek Inc. All rights reserved.
  4. *
  5. * Author: Weijie Gao <weijie.gao@mediatek.com>
  6. */
  7. #include <linux/stringify.h>
  8. / {
  9. binman: binman {
  10. multiple-images;
  11. };
  12. };
  13. &sysc {
  14. bootph-all;
  15. };
  16. &reboot {
  17. bootph-all;
  18. };
  19. &clkctrl {
  20. bootph-all;
  21. };
  22. &rstctrl {
  23. bootph-all;
  24. };
  25. &pinctrl {
  26. bootph-all;
  27. };
  28. &uart0 {
  29. bootph-all;
  30. };
  31. &uart1 {
  32. bootph-all;
  33. };
  34. &uart2 {
  35. bootph-all;
  36. };
  37. &binman {
  38. u-boot-spl-ddr {
  39. align = <4>;
  40. align-size = <4>;
  41. filename = "u-boot-spl-ddr.bin";
  42. pad-byte = <0xff>;
  43. u-boot-spl {
  44. align-end = <4>;
  45. filename = "u-boot-spl.bin";
  46. };
  47. stage_bin {
  48. filename = "mt7621_stage_sram.bin";
  49. type = "blob-ext";
  50. };
  51. };
  52. spl-img {
  53. filename = "u-boot-spl-ddr.img";
  54. mkimage {
  55. #ifdef CONFIG_MT7621_BOOT_FROM_NAND
  56. args = "-T", "mtk_image", "-n", "mt7621=1",
  57. "-a", __stringify(CONFIG_SPL_TEXT_BASE),
  58. "-e", __stringify(CONFIG_SPL_TEXT_BASE);
  59. #else
  60. args = "-A", "mips", "-T", "standalone", "-O", "u-boot",
  61. "-C", "none", "-n", "MT7621 U-Boot SPL",
  62. "-a", __stringify(CONFIG_SPL_TEXT_BASE),
  63. "-e", __stringify(CONFIG_SPL_TEXT_BASE);
  64. #endif
  65. blob {
  66. filename = "u-boot-spl-ddr.bin";
  67. };
  68. };
  69. };
  70. mt7621-uboot {
  71. filename = "u-boot-mt7621.bin";
  72. pad-byte = <0xff>;
  73. #ifndef CONFIG_MT7621_BOOT_FROM_NAND
  74. u-boot-tpl {
  75. align-end = <4>;
  76. filename = "u-boot-tpl.bin";
  77. };
  78. #endif
  79. spl {
  80. #ifdef CONFIG_MT7621_BOOT_FROM_NAND
  81. align-end = <0x1000>;
  82. #endif
  83. filename = "u-boot-spl-ddr.img";
  84. type = "blob";
  85. };
  86. u-boot {
  87. filename = "u-boot-lzma.img";
  88. type = "blob";
  89. };
  90. };
  91. };