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 { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 18 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 19 | u-boot,dm-spl; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 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 { |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 32 | align = <4>; |
| 33 | align-size = <4>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 34 | filename = "u-boot-spl-ddr.bin"; |
| 35 | pad-byte = <0xff>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 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"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 79 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 80 | fit,fdt-list = "of-list"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 81 | #address-cells = <1>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 82 | |
| 83 | images { |
| 84 | uboot { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 85 | arch = "arm64"; |
| 86 | compression = "none"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 87 | description = "U-Boot (64-bit)"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 88 | load = <CONFIG_SYS_TEXT_BASE>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 89 | type = "standalone"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 90 | |
| 91 | uboot_blob: blob-ext { |
| 92 | filename = "u-boot-nodtb.bin"; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | atf { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 97 | arch = "arm64"; |
| 98 | compression = "none"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 99 | description = "ARM Trusted Firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 100 | entry = <0x920000>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 101 | load = <0x920000>; |
| 102 | type = "firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 103 | |
| 104 | atf_blob: blob-ext { |
| 105 | filename = "bl31.bin"; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | binman_fip: fip { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 110 | arch = "arm64"; |
| 111 | compression = "none"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 112 | description = "Trusted Firmware FIP"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 113 | load = <0x40310000>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 114 | type = "firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | @fdt-SEQ { |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 118 | compression = "none"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 119 | description = "NAME"; |
| 120 | type = "flat_dt"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 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"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 133 | fdt = "fdt-SEQ"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 134 | firmware = "uboot"; |
| 135 | loadables = "atf"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | imx-boot { |
| 142 | filename = "flash.bin"; |
| 143 | pad-byte = <0x00>; |
| 144 | |
| 145 | spl: blob-ext@1 { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 146 | filename = "spl.bin"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 147 | offset = <0x0>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 148 | }; |
| 149 | |
| 150 | binman_uboot: blob-ext@2 { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 151 | filename = "u-boot.itb"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 152 | offset = <0x57c00>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 153 | }; |
| 154 | }; |
| 155 | }; |
| 156 | |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 157 | &clk { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 158 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 159 | u-boot,dm-spl; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 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 { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 170 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame^] | 171 | u-boot,dm-spl; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 172 | }; |