fwu-mdata-mtd.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/firmware/u-boot,fwu-mdata-mtd.yaml#
  5. $schema: http://devicetree.org/meta-schemas/base.yaml#
  6. title: FWU metadata on MTD device without GPT
  7. maintainers:
  8. - Jassi Brar <jaswinder.singh@linaro.org>
  9. properties:
  10. compatible:
  11. items:
  12. - const: u-boot,fwu-mdata-mtd
  13. fwu-mdata-store:
  14. $ref: /schemas/types.yaml#/definitions/phandle
  15. description: Phandle of the MTD device which contains the FWU MetaData and Banks.
  16. mdata-parts:
  17. $ref: /schemas/types.yaml#/definitions/non-unique-string-array
  18. minItems: 2
  19. maxItems: 2
  20. description: labels of the primary and secondary FWU metadata partitions in the 'fixed-partitions' subnode of the 'jedec,spi-nor' flash device node.
  21. patternProperties:
  22. "fwu-bank[0-9]":
  23. type: object
  24. description: List of FWU mtd-backed banks. Typically two banks.
  25. properties:
  26. id:
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. description: Index of the bank.
  29. label:
  30. $ref: /schemas/types.yaml#/definitions/non-unique-string-array
  31. minItems: 1
  32. maxItems: 1
  33. description: label of the partition, in the 'fixed-partitions' subnode of the 'jedec,spi-nor' flash device node, that holds this bank.
  34. patternProperties:
  35. "fwu-image[0-9]":
  36. type: object
  37. description: List of images in the FWU mtd-backed bank.
  38. properties:
  39. id:
  40. $ref: /schemas/types.yaml#/definitions/uint32
  41. description: Index of the bank.
  42. offset:
  43. $ref: /schemas/types.yaml#/definitions/uint32
  44. description: Offset, from start of the bank, where the image is located.
  45. size:
  46. $ref: /schemas/types.yaml#/definitions/uint32
  47. description: Size reserved for the image.
  48. uuid:
  49. $ref: /schemas/types.yaml#/definitions/non-unique-string-array
  50. minItems: 1
  51. maxItems: 1
  52. description: UUID of the image.
  53. required:
  54. - id
  55. - offset
  56. - size
  57. - uuid
  58. additionalProperties: false
  59. required:
  60. - id
  61. - label
  62. - fwu-images
  63. additionalProperties: false
  64. required:
  65. - compatible
  66. - fwu-mdata-store
  67. - mdata-parts
  68. - fwu-banks
  69. additionalProperties: false
  70. examples:
  71. - |
  72. fwu-mdata {
  73. compatible = "u-boot,fwu-mdata-mtd";
  74. fwu-mdata-store = <&flash0>;
  75. mdata-parts = "MDATA-Pri", "MDATA-Sec";
  76. fwu-bank0 {
  77. id = <0>;
  78. label = "FIP-Bank0";
  79. fwu-image0 {
  80. id = <0>;
  81. offset = <0x0>;
  82. size = <0x400000>;
  83. uuid = "5a66a702-99fd-4fef-a392-c26e261a2828";
  84. };
  85. };
  86. fwu-bank1 {
  87. id = <1>;
  88. label = "FIP-Bank1";
  89. fwu-image0 {
  90. id = <0>;
  91. offset = <0x0>;
  92. size = <0x400000>;
  93. uuid = "a8f868a1-6e5c-4757-878d-ce63375ef2c0";
  94. };
  95. };
  96. };
  97. ...