fixed-layout.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/nvmem/layouts/fixed-layout.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NVMEM layout for fixed NVMEM cells
  7. description:
  8. Many NVMEM devices have hardcoded cells layout (offset and size of defined
  9. NVMEM content doesn't change).
  10. This binding allows defining such NVMEM layout with its cells. It can be used
  11. on top of any NVMEM device.
  12. maintainers:
  13. - Rafał Miłecki <rafal@milecki.pl>
  14. properties:
  15. compatible:
  16. const: fixed-layout
  17. "#address-cells":
  18. const: 1
  19. "#size-cells":
  20. const: 1
  21. patternProperties:
  22. "@[a-f0-9]+$":
  23. type: object
  24. $ref: fixed-cell.yaml
  25. unevaluatedProperties: false
  26. required:
  27. - compatible
  28. additionalProperties: false
  29. examples:
  30. - |
  31. nvmem-layout {
  32. compatible = "fixed-layout";
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. mac@100 {
  36. compatible = "mac-base";
  37. reg = <0x100 0x6>;
  38. #nvmem-cell-cells = <1>;
  39. };
  40. mac@110 {
  41. compatible = "mac-base";
  42. reg = <0x110 0x11>;
  43. #nvmem-cell-cells = <1>;
  44. };
  45. calibration@4000 {
  46. reg = <0x4000 0x100>;
  47. };
  48. };