summaryrefslogtreecommitdiff
path: root/tools/binman/test/101_sections_offset.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-04-25 21:58:39 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-05-08 12:44:07 +0800
commit9481c80f55260fa2b2c37445fb2a30811b136ed3 (patch)
tree7ac1d0265c52f660145b4d628ff887fbd374a157 /tools/binman/test/101_sections_offset.dts
parent0b96f6ecbe8f68232adeb4340883aaeee5d63bd5 (diff)
binman: Allow sections to have an offset
At present sections are always placed automatically. Even if an 'offset' property is provided it is ignored. Update the logic to support an offset for sections. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools/binman/test/101_sections_offset.dts')
-rw-r--r--tools/binman/test/101_sections_offset.dts35
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/binman/test/101_sections_offset.dts b/tools/binman/test/101_sections_offset.dts
new file mode 100644
index 0000000000..46708ff9b6
--- /dev/null
+++ b/tools/binman/test/101_sections_offset.dts
@@ -0,0 +1,35 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ pad-byte = <0x26>;
+ size = <0x38>;
+ section@0 {
+ read-only;
+ offset = <0x4>;
+ size = <0x10>;
+ pad-byte = <0x21>;
+
+ u-boot {
+ };
+ };
+ section@1 {
+ size = <0x10>;
+ pad-byte = <0x61>;
+ offset = <0x18>;
+
+ u-boot {
+ };
+ };
+ section@2 {
+ offset = <0x2c>;
+ u-boot {
+ };
+ };
+ };
+};