phram.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/reserved-memory/phram.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MTD/block device in RAM
  7. description: |
  8. Specifies that the reserved memory region can be used as an MTD or block
  9. device.
  10. The "phram" node is named after the "MTD in PHysical RAM" driver which
  11. provides an implementation of this functionality in Linux.
  12. maintainers:
  13. - Vincent Whitchurch <vincent.whitchurch@axis.com>
  14. allOf:
  15. - $ref: reserved-memory.yaml
  16. - $ref: /schemas/mtd/mtd.yaml
  17. properties:
  18. compatible:
  19. const: phram
  20. reg:
  21. description: region of memory that can be used as an MTD/block device
  22. required:
  23. - compatible
  24. - reg
  25. unevaluatedProperties: false
  26. examples:
  27. - |
  28. reserved-memory {
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. phram: flash@12340000 {
  32. compatible = "phram";
  33. label = "rootfs";
  34. reg = <0x12340000 0x00800000>;
  35. };
  36. };