1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/mtd/partitions/openwrt,uimage.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: OpenWrt variations of U-Boot Image partitions
10 - Bjørn Mork <bjorn@mork.no>
13 The image format defined by the boot loader "Das U-Boot" is often
14 modified or extended by device vendors. This defines a few optional
15 properties which can be used to describe such modifications.
17 # partition.txt defines common properties, but has not yet been
20 # - $ref: ../partition.yaml#
30 description: Number of padding bytes between header and data
31 $ref: /schemas/types.yaml#/definitions/uint32
35 description: U-Boot Image Header magic number.
36 $ref: /schemas/types.yaml#/definitions/uint32
37 default: 0x27051956 # IH_MAGIC
40 description: U-Boot Image type
41 $ref: /schemas/types.yaml#/definitions/uint32
42 default: 2 # IH_TYPE_KERNEL
46 Offset between partition start and U-Boot Image in bytes
47 $ref: /schemas/types.yaml#/definitions/uint32
50 openwrt,partition-magic:
52 Magic number found at the start of the partition. Will only be
53 validated if both this property and openwrt,offset is non-zero
54 $ref: /schemas/types.yaml#/definitions/uint32
61 #unevaluatedProperties: false
62 additionalProperties: false
66 // device with non-default magic
68 compatible = "openwrt,uimage", "denx,uimage";
69 reg = <0x00300000 0xe80000>;
71 openwrt,ih-magic = <0x4e474520>;
74 // device with U-Boot Image at an offset, with a partition magic value
76 compatible = "openwrt,uimage", "denx,uimage";
77 reg = <0x00070000 0x00790000>;
79 openwrt,offset = <20>;
80 openwrt,partition-magic = <0x43535953>;
83 // device using a non-default image type
84 #include "dt-bindings/mtd/partitions/uimage.h"
86 compatible = "openwrt,uimage", "denx,uimage";
87 reg = <0x6c0000 0x1900000>;
89 openwrt,ih-magic = <0x33373033>;
90 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;