a3943387fb22c42e25fa97f4cb10011cedd18107
[openwrt/staging/wigyori.git] /
1 From 95b113222b5164ac0887eb5c514ff3970a0136f0 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Tue, 19 Dec 2023 02:32:11 +0000
4 Subject: [PATCH 2/8] dt-bindings: mtd: ubi-volume: allow UBI volumes to
5 provide NVMEM
6
7 UBI volumes may be used to contain NVMEM bits, typically device MAC
8 addresses or wireless radio calibration data.
9
10 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
11 Reviewed-by: Rob Herring <robh@kernel.org>
12 Signed-off-by: Richard Weinberger <richard@nod.at>
13 ---
14 .../devicetree/bindings/mtd/partitions/linux,ubi.yaml | 10 ++++++++++
15 .../devicetree/bindings/mtd/partitions/ubi-volume.yaml | 5 +++++
16 2 files changed, 15 insertions(+)
17
18 --- a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
19 +++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
20 @@ -59,6 +59,16 @@ examples:
21 ubi-volume-caldata {
22 volid = <2>;
23 volname = "rf";
24 +
25 + nvmem-layout {
26 + compatible = "fixed-layout";
27 + #address-cells = <1>;
28 + #size-cells = <1>;
29 +
30 + eeprom@0 {
31 + reg = <0x0 0x1000>;
32 + };
33 + };
34 };
35 };
36 };
37 --- a/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
38 +++ b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
39 @@ -24,6 +24,11 @@ properties:
40 description:
41 Match UBI volume ID
42
43 + nvmem-layout:
44 + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
45 + description:
46 + This container may reference an NVMEM layout parser.
47 +
48 anyOf:
49 - required:
50 - volid