Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mtd: partitions: add binding for U-Boot bootloader

Right now there is no (known) real reason for a custom binding for
standard U-Boot partitions. Broadcom's U-Boot however requires extra
handling - looking for environment variables subblocks. This commit adds
Broadcom specific binding.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220711153041.6036-1-zajec5@gmail.com

authored by

Rafał Miłecki and committed by
Miquel Raynal
27bfb201 568035b0

+49
+49
Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mtd/partitions/u-boot.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: U-Boot bootloader partition 8 + 9 + description: | 10 + U-Boot is a bootlodaer commonly used in embedded devices. It's almost always 11 + located on some kind of flash device. 12 + 13 + Device configuration is stored as a set of environment variables that are 14 + located in a (usually standalone) block of data. 15 + 16 + maintainers: 17 + - Rafał Miłecki <rafal@milecki.pl> 18 + 19 + allOf: 20 + - $ref: partition.yaml# 21 + 22 + properties: 23 + compatible: 24 + oneOf: 25 + - const: brcm,u-boot 26 + description: | 27 + Broadcom stores environment variables inside a U-Boot partition. They 28 + can be identified by a custom header with magic value. 29 + 30 + unevaluatedProperties: false 31 + 32 + examples: 33 + - | 34 + partitions { 35 + compatible = "fixed-partitions"; 36 + #address-cells = <1>; 37 + #size-cells = <1>; 38 + 39 + partition@0 { 40 + compatible = "brcm,u-boot"; 41 + reg = <0x0 0x100000>; 42 + label = "u-boot"; 43 + }; 44 + 45 + partition@100000 { 46 + reg = <0x100000 0x1ff00000>; 47 + label = "firmware"; 48 + }; 49 + };