summaryrefslogtreecommitdiff
path: root/zephyr/include/cros/binman.dtsi
blob: 7fc0ebaf9a4dd68717c425251c8ec04f7526a95b (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
/* Copyright 2021 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	binman: binman {
		filename = "ec.bin";
		pad-byte = <0x1d>;
		wp-ro {
			compatible = "cros-ec,flash-layout";
			type = "section";
			offset = <0x0>;
			size = <0x40000>;
			read-only;
			ec-ro {
				type = "section";
				ro-fw {
					type = "blob";
					filename = "zephyr_ro.bin";
				};
				fmap {
				};
				ro-frid {
					type = "text";
					size = <32>;
					text-label = "version";
				};
			};
		};
		ec-rw {
			compatible = "cros-ec,flash-layout";
			type = "section";
			offset = <0x40000>;
			size = <0x40000>;
			rw-fw {
				type = "section";
				zephyr-rw {
					type = "blob";
					filename = "zephyr_rw.bin";
				};
				rw-fwid {
					/* Fix the lcoation of the FWID to the
					 * last 32 bytes of the flash. This
					 * ensures the RW entries in the FMAP
					 * stored in the RO section of flash
					 * are always correct.
					 */
					offset = <(0x40000 - 32)>;
					type = "text";
					size = <32>;
					text-label = "version";
				};
			};
		};
	};
};