450-02-dt-bindings-mtd-ubi-volume-allow-UBI-volumes-to-prov.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From e4dad3aa5c3ab9c553555dd23c0b85f725f2eb51 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  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. UBI volumes may be used to contain NVMEM bits, typically device MAC
  7. addresses or wireless radio calibration data.
  8. Signed-off-by: Daniel Golle <[email protected]>
  9. ---
  10. .../devicetree/bindings/mtd/partitions/linux,ubi.yaml | 10 ++++++++++
  11. .../devicetree/bindings/mtd/partitions/ubi-volume.yaml | 5 +++++
  12. 2 files changed, 15 insertions(+)
  13. --- a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
  14. +++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
  15. @@ -59,6 +59,16 @@ examples:
  16. ubi-volume-caldata {
  17. volid = <2>;
  18. volname = "rf";
  19. +
  20. + nvmem-layout {
  21. + compatible = "fixed-layout";
  22. + #address-cells = <1>;
  23. + #size-cells = <1>;
  24. +
  25. + eeprom@0 {
  26. + reg = <0x0 0x1000>;
  27. + };
  28. + };
  29. };
  30. };
  31. };
  32. --- a/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
  33. +++ b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
  34. @@ -24,6 +24,11 @@ properties:
  35. description:
  36. Match UBI volume ID
  37. + nvmem-layout:
  38. + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
  39. + description:
  40. + This container may reference an NVMEM layout parser.
  41. +
  42. anyOf:
  43. - required:
  44. - volid