Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com> |
| 4 | */ |
| 5 | |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame^] | 6 | / { |
| 7 | binman: binman { |
| 8 | multiple-images; |
| 9 | }; |
| 10 | }; |
| 11 | |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 12 | &{/soc@0} { |
| 13 | u-boot,dm-pre-reloc; |
| 14 | u-boot,dm-spl; |
| 15 | }; |
| 16 | |
| 17 | &aips1 { |
| 18 | u-boot,dm-spl; |
| 19 | u-boot,dm-pre-reloc; |
| 20 | }; |
| 21 | |
| 22 | &aips2 { |
| 23 | u-boot,dm-spl; |
| 24 | }; |
| 25 | |
| 26 | &aips3 { |
| 27 | u-boot,dm-spl; |
| 28 | }; |
| 29 | |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame^] | 30 | &binman { |
| 31 | u-boot-spl-ddr { |
| 32 | filename = "u-boot-spl-ddr.bin"; |
| 33 | pad-byte = <0xff>; |
| 34 | align-size = <4>; |
| 35 | align = <4>; |
| 36 | |
| 37 | u-boot-spl { |
| 38 | align-end = <4>; |
| 39 | }; |
| 40 | |
| 41 | blob_1: blob-ext@1 { |
| 42 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
| 43 | size = <0x8000>; |
| 44 | }; |
| 45 | |
| 46 | blob_2: blob-ext@2 { |
| 47 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
| 48 | size = <0x4000>; |
| 49 | }; |
| 50 | |
| 51 | blob_3: blob-ext@3 { |
| 52 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
| 53 | size = <0x8000>; |
| 54 | }; |
| 55 | |
| 56 | blob_4: blob-ext@4 { |
| 57 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
| 58 | size = <0x4000>; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | spl { |
| 63 | filename = "spl.bin"; |
| 64 | |
| 65 | mkimage { |
| 66 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; |
| 67 | |
| 68 | blob { |
| 69 | filename = "u-boot-spl-ddr.bin"; |
| 70 | }; |
| 71 | }; |
| 72 | }; |
| 73 | |
| 74 | itb { |
| 75 | filename = "u-boot.itb"; |
| 76 | |
| 77 | fit { |
| 78 | description = "Configuration to load ATF before U-Boot"; |
| 79 | #address-cells = <1>; |
| 80 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 81 | fit,fdt-list = "of-list"; |
| 82 | |
| 83 | images { |
| 84 | uboot { |
| 85 | description = "U-Boot (64-bit)"; |
| 86 | type = "standalone"; |
| 87 | arch = "arm64"; |
| 88 | compression = "none"; |
| 89 | load = <CONFIG_SYS_TEXT_BASE>; |
| 90 | |
| 91 | uboot_blob: blob-ext { |
| 92 | filename = "u-boot-nodtb.bin"; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | atf { |
| 97 | description = "ARM Trusted Firmware"; |
| 98 | type = "firmware"; |
| 99 | arch = "arm64"; |
| 100 | compression = "none"; |
| 101 | load = <0x920000>; |
| 102 | entry = <0x920000>; |
| 103 | |
| 104 | atf_blob: blob-ext { |
| 105 | filename = "bl31.bin"; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | binman_fip: fip { |
| 110 | description = "Trusted Firmware FIP"; |
| 111 | type = "firmware"; |
| 112 | arch = "arm64"; |
| 113 | compression = "none"; |
| 114 | load = <0x40310000>; |
| 115 | }; |
| 116 | |
| 117 | @fdt-SEQ { |
| 118 | description = "NAME"; |
| 119 | type = "flat_dt"; |
| 120 | compression = "none"; |
| 121 | |
| 122 | uboot_fdt_blob: blob-ext { |
| 123 | filename = "u-boot.dtb"; |
| 124 | }; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | configurations { |
| 129 | default = "@config-DEFAULT-SEQ"; |
| 130 | |
| 131 | binman_configuration: @config-SEQ { |
| 132 | description = "NAME"; |
| 133 | firmware = "uboot"; |
| 134 | loadables = "atf"; |
| 135 | fdt = "fdt-SEQ"; |
| 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | imx-boot { |
| 142 | filename = "flash.bin"; |
| 143 | pad-byte = <0x00>; |
| 144 | |
| 145 | spl: blob-ext@1 { |
| 146 | offset = <0x0>; |
| 147 | filename = "spl.bin"; |
| 148 | }; |
| 149 | |
| 150 | binman_uboot: blob-ext@2 { |
| 151 | offset = <0x57c00>; |
| 152 | filename = "u-boot.itb"; |
| 153 | }; |
| 154 | }; |
| 155 | }; |
| 156 | |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 157 | &clk { |
| 158 | u-boot,dm-spl; |
| 159 | u-boot,dm-pre-reloc; |
| 160 | /delete-property/ assigned-clocks; |
| 161 | /delete-property/ assigned-clock-parents; |
| 162 | /delete-property/ assigned-clock-rates; |
| 163 | }; |
| 164 | |
| 165 | &iomuxc { |
| 166 | u-boot,dm-spl; |
| 167 | }; |
| 168 | |
| 169 | &osc_24m { |
| 170 | u-boot,dm-spl; |
| 171 | u-boot,dm-pre-reloc; |
| 172 | }; |