sram.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Generic on-chip SRAM
  2. Simple IO memory regions to be managed by the genalloc API.
  3. Required properties:
  4. - compatible : mmio-sram
  5. - reg : SRAM iomem address range
  6. Reserving sram areas:
  7. ---------------------
  8. Each child of the sram node specifies a region of reserved memory. Each
  9. child node should use a 'reg' property to specify a specific range of
  10. reserved memory.
  11. Following the generic-names recommended practice, node names should
  12. reflect the purpose of the node. Unit address (@<address>) should be
  13. appended to the name.
  14. Required properties in the sram node:
  15. - #address-cells, #size-cells : should use the same values as the root node
  16. - ranges : standard definition, should translate from local addresses
  17. within the sram to bus addresses
  18. Required properties in the area nodes:
  19. - reg : iomem address range, relative to the SRAM range
  20. Optional properties in the area nodes:
  21. - compatible : standard definition, should contain a vendor specific string
  22. in the form <vendor>,[<device>-]<usage>
  23. Example:
  24. sram: sram@5c000000 {
  25. compatible = "mmio-sram";
  26. reg = <0x5c000000 0x40000>; /* 256 KiB SRAM at address 0x5c000000 */
  27. #adress-cells = <1>;
  28. #size-cells = <1>;
  29. ranges = <0 0x5c000000 0x40000>;
  30. smp-sram@100 {
  31. compatible = "socvendor,smp-sram";
  32. reg = <0x100 0x50>;
  33. };
  34. };