sunxi-u-boot.dtsi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #include <config.h>
  2. #ifdef CONFIG_MACH_SUN50I_H6
  3. #define BL31_ADDR 0x104000
  4. #define SCP_ADDR 0x114000
  5. #else
  6. #define BL31_ADDR 0x44000
  7. #define SCP_ADDR 0x50000
  8. #endif
  9. / {
  10. aliases {
  11. mmc1 = &mmc2;
  12. };
  13. binman: binman {
  14. multiple-images;
  15. };
  16. };
  17. &binman {
  18. u-boot-sunxi-with-spl {
  19. filename = "u-boot-sunxi-with-spl.bin";
  20. pad-byte = <0xff>;
  21. blob {
  22. filename = "spl/sunxi-spl.bin";
  23. };
  24. #ifdef CONFIG_ARM64
  25. fit {
  26. description = "Configuration to load ATF before U-Boot";
  27. #address-cells = <1>;
  28. fit,fdt-list = "of-list";
  29. images {
  30. uboot {
  31. description = "U-Boot (64-bit)";
  32. type = "standalone";
  33. os = "u-boot";
  34. arch = "arm64";
  35. compression = "none";
  36. load = <0x4a000000>;
  37. u-boot-nodtb {
  38. };
  39. };
  40. atf {
  41. description = "ARM Trusted Firmware";
  42. type = "firmware";
  43. os = "arm-trusted-firmware";
  44. arch = "arm64";
  45. compression = "none";
  46. load = <BL31_ADDR>;
  47. entry = <BL31_ADDR>;
  48. atf-bl31 {
  49. filename = "bl31.bin";
  50. missing-msg = "atf-bl31-sunxi";
  51. };
  52. };
  53. scp {
  54. description = "SCP firmware";
  55. type = "firmware";
  56. arch = "or1k";
  57. compression = "none";
  58. load = <SCP_ADDR>;
  59. scp {
  60. filename = "scp.bin";
  61. missing-msg = "scp-sunxi";
  62. };
  63. };
  64. @fdt-SEQ {
  65. description = "NAME";
  66. type = "flat_dt";
  67. compression = "none";
  68. };
  69. };
  70. configurations {
  71. default = "config-1";
  72. @config-SEQ {
  73. description = "NAME";
  74. firmware = "atf";
  75. loadables = "scp", "uboot";
  76. fdt = "fdt-SEQ";
  77. };
  78. };
  79. };
  80. #else
  81. u-boot-img {
  82. offset = <CONFIG_SPL_PAD_TO>;
  83. };
  84. #endif
  85. };
  86. };