mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-27 23:34:30 +00:00
4fd4be6bbe
The series was merged for Linux v6.9, so move it to backports. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
From 95b113222b5164ac0887eb5c514ff3970a0136f0 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Tue, 19 Dec 2023 02:32:11 +0000
|
|
Subject: [PATCH 2/8] dt-bindings: mtd: ubi-volume: allow UBI volumes to
|
|
provide NVMEM
|
|
|
|
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>
|
|
---
|
|
.../devicetree/bindings/mtd/partitions/linux,ubi.yaml | 10 ++++++++++
|
|
.../devicetree/bindings/mtd/partitions/ubi-volume.yaml | 5 +++++
|
|
2 files changed, 15 insertions(+)
|
|
|
|
--- a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
|
|
+++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
|
|
@@ -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>;
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
};
|
|
--- a/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
|
|
+++ b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
|
|
@@ -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
|