mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
fc153aa8d9
Similar to supporting nvmem-layouts on MTD devices, also allow referencing UBI and MMC devices in DT. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From e4dad3aa5c3ab9c553555dd23c0b85f725f2eb51 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Mon, 7 Aug 2023 22:53:01 +0100
|
|
Subject: [PATCH 02/15] 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>
|
|
---
|
|
.../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
|