cache-uniphier.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. UniPhier outer cache controller
  2. UniPhier SoCs are integrated with a full-custom outer cache controller system.
  3. All of them have a level 2 cache controller, and some have a level 3 cache
  4. controller as well.
  5. Required properties:
  6. - compatible: should be "socionext,uniphier-system-cache"
  7. - reg: offsets and lengths of the register sets for the device. It should
  8. contain 3 regions: control register, revision register, operation register,
  9. in this order.
  10. - cache-unified: specifies the cache is a unified cache.
  11. - cache-size: specifies the size in bytes of the cache
  12. - cache-sets: specifies the number of associativity sets of the cache
  13. - cache-line-size: specifies the line size in bytes
  14. - cache-level: specifies the level in the cache hierarchy. The value should
  15. be 2 for L2 cache, 3 for L3 cache, etc.
  16. Optional properties:
  17. - next-level-cache: phandle to the next level cache if present. The next level
  18. cache should be also compatible with "socionext,uniphier-system-cache".
  19. The L2 cache must exist to use the L3 cache; the cache hierarchy must be
  20. indicated correctly with "next-level-cache" properties.
  21. Example 1 (system with L2):
  22. l2: l2-cache@500c0000 {
  23. compatible = "socionext,uniphier-system-cache";
  24. reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
  25. <0x506c0000 0x400>;
  26. cache-unified;
  27. cache-size = <0x80000>;
  28. cache-sets = <256>;
  29. cache-line-size = <128>;
  30. cache-level = <2>;
  31. };
  32. Example 2 (system with L2 and L3):
  33. l2: l2-cache@500c0000 {
  34. compatible = "socionext,uniphier-system-cache";
  35. reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
  36. <0x506c0000 0x400>;
  37. cache-unified;
  38. cache-size = <0x200000>;
  39. cache-sets = <512>;
  40. cache-line-size = <128>;
  41. cache-level = <2>;
  42. next-level-cache = <&l3>;
  43. };
  44. l3: l3-cache@500c8000 {
  45. compatible = "socionext,uniphier-system-cache";
  46. reg = <0x500c8000 0x2000>, <0x503c8100 0x8>,
  47. <0x506c8000 0x400>;
  48. cache-unified;
  49. cache-size = <0x400000>;
  50. cache-sets = <512>;
  51. cache-line-size = <256>;
  52. cache-level = <3>;
  53. };