linux,ubi.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Unsorted Block Images
  7. description: |
  8. UBI ("Unsorted Block Images") is a volume management system for raw
  9. flash devices which manages multiple logical volumes on a single
  10. physical flash device and spreads the I/O load (i.e wear-leveling)
  11. across the whole flash chip.
  12. maintainers:
  13. - Daniel Golle <daniel@makrotopia.org>
  14. allOf:
  15. - $ref: partition.yaml#
  16. properties:
  17. compatible:
  18. const: linux,ubi
  19. volumes:
  20. type: object
  21. description: UBI Volumes
  22. patternProperties:
  23. "^ubi-volume-.*$":
  24. $ref: /schemas/mtd/partitions/ubi-volume.yaml#
  25. unevaluatedProperties: false
  26. required:
  27. - compatible
  28. unevaluatedProperties: false
  29. examples:
  30. - |
  31. partitions {
  32. compatible = "fixed-partitions";
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. partition@0 {
  36. reg = <0x0 0x100000>;
  37. label = "bootloader";
  38. read-only;
  39. };
  40. partition@100000 {
  41. reg = <0x100000 0x1ff00000>;
  42. label = "ubi";
  43. compatible = "linux,ubi";
  44. volumes {
  45. ubi-volume-caldata {
  46. volid = <2>;
  47. volname = "rf";
  48. nvmem-layout {
  49. compatible = "fixed-layout";
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. eeprom@0 {
  53. reg = <0x0 0x1000>;
  54. };
  55. };
  56. };
  57. };
  58. };
  59. };