xref: /linux/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
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/brcm,bcm4908-partitions.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM4908 partitioning
8
9description: |
10  Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used
11  for regular booting, the other is treated as fallback.
12
13  This binding allows defining all fixed partitions and marking those containing
14  firmware. System can use that information e.g. for booting or flashing
15  purposes.
16
17maintainers:
18  - Rafał Miłecki <rafal@milecki.pl>
19
20select: false
21
22properties:
23  compatible:
24    const: brcm,bcm4908-partitions
25
26  "#address-cells":
27    enum: [ 1, 2 ]
28
29  "#size-cells":
30    enum: [ 1, 2 ]
31
32patternProperties:
33  "^partition@[0-9a-f]+$":
34    $ref: partition.yaml#
35    properties:
36      compatible:
37        const: brcm,bcm4908-firmware
38    unevaluatedProperties: false
39
40required:
41  - "#address-cells"
42  - "#size-cells"
43
44additionalProperties: false
45
46examples:
47  - |
48    partitions {
49        compatible = "brcm,bcm4908-partitions";
50        #address-cells = <1>;
51        #size-cells = <1>;
52
53        partition@0 {
54            label = "cferom";
55            reg = <0x0 0x100000>;
56        };
57
58        partition@100000 {
59            compatible = "brcm,bcm4908-firmware";
60            reg = <0x100000 0xf00000>;
61        };
62
63        partition@1000000 {
64            compatible = "brcm,bcm4908-firmware";
65            reg = <0x1000000 0xf00000>;
66        };
67
68        partition@1f00000 {
69            label = "calibration";
70            reg = <0x1f00000 0x100000>;
71        };
72    };
73