1/*
2 * Compilation:
3 * mkimage -f fit_copro_kernel_dtb.its fit_copro_kernel_dtb.itb
4 *
5 * M4 firmware to load with remoteproc: rproc-m4-fw.elf
6 *
7 * Files in linux build dir:
8 * - arch/arm/boot/zImage
9 * - arch/arm/boot/dts/stm32mp157c-dk2.dtb
10 * - arch/arm/boot/dts/stm32mp157c-ev1.dtb
11 *
12 * load mmc 0:4 $kernel_addr_r fit_copro_kernel_dtb.itb
13 * bootm $kernel_addr_r
14 * bootm $kernel_addr_r#dk2
15 * bootm $kernel_addr_r#ev1
16 * bootm $kernel_addr_r#dk2-m4
17 * bootm $kernel_addr_r#ev1-m4
18 */
19
20/dts-v1/;
21/ {
22	description = "U-Boot fitImage for stm32mp157";
23	#address-cells = <1>;
24
25	images {
26
27		copro {
28			description = "M4 copro";
29			data = /incbin/("rproc-m4-fw.elf");
30			type = "copro";
31			arch = "arm";
32			compression = "none";
33			load = <0xC0800000>;
34			hash-1 {
35				algo = "sha1";
36			};
37		};
38
39		kernel {
40			description = "Linux kernel";
41			data = /incbin/("zImage");
42			type = "kernel";
43			arch = "arm";
44			os = "linux";
45			compression = "none";
46			load = <0xC4000000>;
47			entry = <0xC4000000>;
48			hash-1 {
49				algo = "sha1";
50			};
51		};
52
53		fdt-dk2 {
54			description = "FDT dk2";
55			data = /incbin/("stm32mp157c-dk2.dtb");
56			type = "flat_dt";
57			arch = "arm";
58			compression = "none";
59			hash-1 {
60				algo = "sha1";
61			};
62		};
63
64		fdt-ev1 {
65			description = "FDT ev1";
66			data = /incbin/("stm32mp157c-ev1.dtb");
67			type = "flat_dt";
68			arch = "arm";
69			compression = "none";
70			hash-1 {
71				algo = "sha1";
72			};
73		};
74	};
75
76	configurations {
77		default = "dk2-m4";
78
79		dk2-m4 {
80			description = "dk2-m4";
81			loadables = "copro";
82			kernel = "kernel";
83			fdt = "fdt-dk2";
84			hash-1 {
85				algo = "sha1";
86			};
87		};
88
89		dk2 {
90			description = "dk2";
91			kernel = "kernel";
92			fdt = "fdt-dk2";
93			hash-1 {
94				algo = "sha1";
95			};
96		};
97
98		ev1-m4 {
99			description = "ev1-m4";
100			loadables = "copro";
101			kernel = "kernel";
102			fdt = "fdt-ev1";
103			hash-1 {
104				algo = "sha1";
105			};
106		};
107
108		ev1 {
109			description = "ev1";
110			kernel = "kernel";
111			fdt = "fdt-ev1";
112			hash-1 {
113				algo = "sha1";
114			};
115		};
116	};
117};
118