Skip to content

Commit 125981f

Browse files
robherringmiquelraynal
authored andcommitted
dt-bindings: mtd: partitions: Combine simple partition bindings
Several partition node bindings are just a compatible plus properties defined in partition.yaml. Move all of these bindings to a single schema file. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent a1fa0f8 commit 125981f

6 files changed

Lines changed: 62 additions & 152 deletions

File tree

Documentation/devicetree/bindings/mtd/partitions/binman.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ properties:
2929

3030
patternProperties:
3131
"^partition@[0-9a-f]+$":
32-
$ref: partition.yaml#
33-
properties:
34-
compatible:
35-
const: brcm,bcm4908-firmware
36-
unevaluatedProperties: false
32+
$ref: partition.yaml#/$defs/partition-node
3733

3834
required:
3935
- "#address-cells"

Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

Documentation/devicetree/bindings/mtd/partitions/seama.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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/simple-partition.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Simple partition types
8+
9+
description:
10+
Simple partition types which only define a "compatible" value and no custom
11+
properties.
12+
13+
maintainers:
14+
- Rafał Miłecki <rafal@milecki.pl>
15+
- Simon Glass <sjg@chromium.org>
16+
17+
allOf:
18+
- $ref: partition.yaml#
19+
20+
properties:
21+
compatible:
22+
oneOf:
23+
- const: brcm,bcm4908-firmware
24+
description:
25+
Broadcom BCM4908 CFE bootloader firmware partition
26+
27+
- const: brcm,bcm963xx-imagetag
28+
description:
29+
The BCM963XX ImageTag is a simple firmware header describing the
30+
offsets and sizes of the rootfs and kernel parts contained in the
31+
firmware.
32+
33+
- const: seama
34+
description:
35+
The SEAttle iMAge (SEAMA) partition is a type of partition used for
36+
NAND flash devices. This type of flash image is found in some D-Link
37+
routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L
38+
and DCH-M225, as well as in WD and NEC routers on the ath79 (MIPS),
39+
Broadcom BCM53xx, and RAMIPS platforms. This partition type does not
40+
have children defined in the device tree, they need to be detected by
41+
software.
42+
43+
- const: u-boot
44+
description: >
45+
u-boot.bin from U-Boot project.
46+
47+
This corresponds to a binman 'entry'. It is a single partition which holds
48+
data of a defined type.
49+
50+
Binman uses the type to indicate what data file / type to place in the
51+
partition. There are quite a number of binman-specific entry types, such as
52+
section, fill and files, to be added later.
53+
54+
- const: tfa-bl31
55+
description: >
56+
bl31.bin or bl31.elf from TF-A project
57+
58+
This corresponds to a binman 'entry'. It is a single partition which holds
59+
data of a defined type.
60+
61+
unevaluatedProperties: false

MAINTAINERS

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4403,11 +4403,6 @@ F: Documentation/filesystems/bfs.rst
44034403
F: fs/bfs/
44044404
F: include/uapi/linux/bfs_fs.h
44054405

4406-
BINMAN
4407-
M: Simon Glass <sjg@chromium.org>
4408-
S: Supported
4409-
F: Documentation/devicetree/bindings/mtd/partitions/binman*
4410-
44114406
BITMAP API
44124407
M: Yury Norov <yury.norov@gmail.com>
44134408
R: Rasmus Villemoes <linux@rasmusvillemoes.dk>

0 commit comments

Comments
 (0)