[v4,2/8] dt-bindings: mtd: nvmem-cells: add support for UBI volumes
Commit Message
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 | 3 ++-
.../devicetree/bindings/mtd/partitions/nvmem-cells.yaml | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
@@ -56,9 +56,10 @@ examples:
compatible = "linux,ubi";
volumes {
- ubi-volume-caldata {
+ wifi_caldata: ubi-volume-caldata {
volume-id = <2>;
volume-name = "rf";
+ compatible = "nvmem-cells";
};
};
};
@@ -17,9 +17,12 @@ maintainers:
- Ansuel Smith <ansuelsmth@gmail.com>
allOf:
- - $ref: /schemas/mtd/partitions/partition.yaml#
- $ref: /schemas/nvmem/nvmem.yaml#
+oneOf:
+ - $ref: /schemas/mtd/partitions/partition.yaml#
+ - $ref: /schemas/mtd/partitions/ubi-volume.yaml#
+
properties:
compatible:
const: nvmem-cells