dt-bindings: mtd: ubi-volume: allow UBI volumes to provide NVMEM
authorDaniel Golle <daniel@makrotopia.org>
Tue, 19 Dec 2023 02:32:11 +0000 (02:32 +0000)
committerRichard Weinberger <richard@nod.at>
Sun, 25 Feb 2024 21:41:32 +0000 (22:41 +0100)
UBI volumes may be used to contain NVMEM bits, typically device MAC
addresses or wireless radio calibration data.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml

index 7084a1945b3108db421176b79c3285fd83e151f7..27e1ac1f252e47342746ee8de51a7a1f95e29840 100644 (file)
@@ -59,6 +59,16 @@ examples:
                 ubi-volume-caldata {
                     volid = <2>;
                     volname = "rf";
+
+                    nvmem-layout {
+                        compatible = "fixed-layout";
+                        #address-cells = <1>;
+                        #size-cells = <1>;
+
+                        eeprom@0 {
+                            reg = <0x0 0x1000>;
+                        };
+                    };
                 };
             };
         };
index 1e3f04dedc01db193ec4b4db24a8ad4def77ede2..19736b26056b25a3ecec2de0ea9b0dbf2f93ac5f 100644 (file)
@@ -24,6 +24,11 @@ properties:
     description:
       Match UBI volume ID
 
+  nvmem-layout:
+    $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
+    description:
+      This container may reference an NVMEM layout parser.
+
 anyOf:
   - required:
       - volid