8576c7d78d223a771b6f55251de25e5bb4d81d50
[openwrt/staging/xback.git] /
1 From 6e9dff6fe3fbc452f16566e4a7e293b0decefdba Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Thu, 11 Feb 2021 23:04:26 +0100
4 Subject: [PATCH] dt-bindings: mtd: add binding for BCM4908 partitions
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 BCM4908 uses fixed partitions layout but function of some partitions may
10 vary. Some devices use multiple firmware partitions and those partitions
11 should be marked to let system discover their purpose.
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Richard Weinberger <richard@nod.at>
15 ---
16 .../partitions/brcm,bcm4908-partitions.yaml | 70 +++++++++++++++++++
17 1 file changed, 70 insertions(+)
18 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
19
20 --- /dev/null
21 +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
22 @@ -0,0 +1,70 @@
23 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
24 +%YAML 1.2
25 +---
26 +$id: http://devicetree.org/schemas/mtd/partitions/brcm,bcm4908-partitions.yaml#
27 +$schema: http://devicetree.org/meta-schemas/core.yaml#
28 +
29 +title: Broadcom BCM4908 partitioning
30 +
31 +description: |
32 + Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used
33 + for regular booting, the other is treated as fallback.
34 +
35 + This binding allows defining all fixed partitions and marking those containing
36 + firmware. System can use that information e.g. for booting or flashing
37 + purposes.
38 +
39 +maintainers:
40 + - Rafał Miłecki <rafal@milecki.pl>
41 +
42 +properties:
43 + compatible:
44 + const: brcm,bcm4908-partitions
45 +
46 + "#address-cells":
47 + enum: [ 1, 2 ]
48 +
49 + "#size-cells":
50 + enum: [ 1, 2 ]
51 +
52 +patternProperties:
53 + "^partition@[0-9a-f]+$":
54 + $ref: "partition.yaml#"
55 + properties:
56 + compatible:
57 + const: brcm,bcm4908-firmware
58 + unevaluatedProperties: false
59 +
60 +required:
61 + - "#address-cells"
62 + - "#size-cells"
63 +
64 +additionalProperties: false
65 +
66 +examples:
67 + - |
68 + partitions {
69 + compatible = "brcm,bcm4908-partitions";
70 + #address-cells = <1>;
71 + #size-cells = <1>;
72 +
73 + partition@0 {
74 + label = "cferom";
75 + reg = <0x0 0x100000>;
76 + };
77 +
78 + partition@100000 {
79 + compatible = "brcm,bcm4908-firmware";
80 + reg = <0x100000 0xf00000>;
81 + };
82 +
83 + partition@1000000 {
84 + compatible = "brcm,bcm4908-firmware";
85 + reg = <0x1000000 0xf00000>;
86 + };
87 +
88 + partition@1f00000 {
89 + label = "calibration";
90 + reg = <0x1f00000 0x100000>;
91 + };
92 + };