kernel: bump 6.1 to 6.1.80
[openwrt/openwrt.git] / target / linux / generic / pending-6.1 / 450-02-dt-bindings-mtd-ubi-volume-allow-UBI-volumes-to-prov.patch
1 From e4dad3aa5c3ab9c553555dd23c0b85f725f2eb51 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Mon, 7 Aug 2023 22:53:01 +0100
4 Subject: [PATCH 02/15] 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 ---
12 .../devicetree/bindings/mtd/partitions/linux,ubi.yaml | 10 ++++++++++
13 .../devicetree/bindings/mtd/partitions/ubi-volume.yaml | 5 +++++
14 2 files changed, 15 insertions(+)
15
16 --- a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
17 +++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
18 @@ -59,6 +59,16 @@ examples:
19 ubi-volume-caldata {
20 volid = <2>;
21 volname = "rf";
22 +
23 + nvmem-layout {
24 + compatible = "fixed-layout";
25 + #address-cells = <1>;
26 + #size-cells = <1>;
27 +
28 + eeprom@0 {
29 + reg = <0x0 0x1000>;
30 + };
31 + };
32 };
33 };
34 };
35 --- a/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
36 +++ b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
37 @@ -24,6 +24,11 @@ properties:
38 description:
39 Match UBI volume ID
40
41 + nvmem-layout:
42 + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
43 + description:
44 + This container may reference an NVMEM layout parser.
45 +
46 anyOf:
47 - required:
48 - volid