u-boot.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/u-boot.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: U-Boot bootloader partition
  7. description: |
  8. U-Boot is a bootloader commonly used in embedded devices. It's almost always
  9. located on some kind of flash device.
  10. Device configuration is stored as a set of environment variables that are
  11. located in a (usually standalone) block of data.
  12. maintainers:
  13. - Rafał Miłecki <rafal@milecki.pl>
  14. allOf:
  15. - $ref: partition.yaml#
  16. properties:
  17. compatible:
  18. oneOf:
  19. - const: brcm,u-boot
  20. description: |
  21. Broadcom stores environment variables inside a U-Boot partition. They
  22. can be identified by a custom header with magic value.
  23. patternProperties:
  24. "^partition-.*$":
  25. $ref: partition.yaml#/$defs/partition-node
  26. unevaluatedProperties: false
  27. examples:
  28. - |
  29. partitions {
  30. compatible = "fixed-partitions";
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. partition@0 {
  34. compatible = "brcm,u-boot";
  35. reg = <0x0 0x100000>;
  36. label = "u-boot";
  37. partition-u-boot-env {
  38. };
  39. };
  40. partition@100000 {
  41. reg = <0x100000 0x1ff00000>;
  42. label = "firmware";
  43. };
  44. };