summaryrefslogtreecommitdiff
path: root/arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi
blob: 15306db6002d1315c24184dae8e8b284e9d0fe25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// SPDX-License-Identifier: GPL-2.0+
/*
 * U-Boot additions
 *
 * Copyright (C) 2020-2024 Intel Corporation <www.intel.com>
 */

#if defined(CONFIG_FIT)

/ {
	binman: binman {
		multiple-images;
	};
};

&binman {
	u-boot {
		filename = "u-boot.itb";
		fit {
			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
			description = "FIT with firmware and bootloader";
			#address-cells = <1>;

			images: images {
				uboot {
					description = "U-Boot SoC64";
					type = "standalone";
					os = "U-Boot";
					arch = "arm64";
					compression = "none";
				#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
					load = <0x80200000>;
				#else
					load = <0x00200000>;
				#endif
					uboot_blob: blob-ext {
						filename = "u-boot-nodtb.bin";
					};
					hash {
						algo = "crc32";
					};
				};

				atf {
					description = "ARM Trusted Firmware";
					type = "firmware";
					os = "arm-trusted-firmware";
					arch = "arm64";
					compression = "none";
				#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
					load = <0x80000000>;
					entry = <0x80000000>;
				#else
					load = <0x00001000>;
					entry = <0x00001000>;
				#endif
					atf_blob: blob-ext {
						filename = "bl31.bin";
					};
					hash {
						algo = "crc32";
					};
				};

				fdt-0 {
					description = "socfpga_socdk";
					type = "flat_dt";
					compression = "none";
					fdt_0_blob: blob-ext {
						filename = "u-boot.dtb";
					};
					hash {
						algo = "crc32";
					};
				};
			};

			board_config: configurations {
				default = "board-0";

				board-0 {
					description = "board_0";
					firmware = "atf";
					loadables = "uboot";
					fdt = "fdt-0";
					signature {
						algo = "crc32";
						key-name-hint = "dev";
						sign-images = "atf", "uboot", "fdt-0";
					};
				};
			};
		};
	};

	kernel {
		filename = "kernel.itb";
		fit {
			description = "FIT with Linux kernel image and FDT blob";
			#address-cells = <1>;

			images {
				kernel {
					description = "Linux Kernel";
					type = "kernel";
					arch = "arm64";
					os = "linux";
					compression = "none";
					load = <0x6000000>;
					entry = <0x6000000>;
					kernel_blob: blob-ext {
						filename = "Image";
					};
					hash {
						algo = "crc32";
					};
				};

				fdt {
					description = "Linux DTB";
					type = "flat_dt";
					arch = "arm64";
					compression = "none";
					kernel_fdt_blob: blob-ext {
						filename = "linux.dtb";
					};
					hash {
						algo = "crc32";
					};
				};
			};

			configurations {
				default = "conf";
				conf {
					description = "Intel SoC64 FPGA";
					kernel = "kernel";
					fdt = "fdt";
					signature {
						algo = "crc32";
						key-name-hint = "dev";
						sign-images = "fdt", "kernel";
					};
				};
			};
		};
	};
};

#if defined(CONFIG_SOCFPGA_SECURE_VAB_AUTH)
&uboot_blob {
	filename = "signed-u-boot-nodtb.bin";
};

&atf_blob {
	filename = "signed-bl31.bin";
};

&fdt_0_blob {
	filename = "signed-u-boot.dtb";
};

&kernel_blob {
	filename = "signed-Image";
};

&kernel_fdt_blob {
	filename = "signed-linux.dtb";
};
#endif

#endif