andestech,ax45mp-cache.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. # Copyright (C) 2023 Renesas Electronics Corp.
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/cache/andestech,ax45mp-cache.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Andestech AX45MP L2 Cache Controller
  8. maintainers:
  9. - Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
  10. description:
  11. A level-2 cache (L2C) is used to improve the system performance by providing
  12. a large amount of cache line entries and reasonable access delays. The L2C
  13. is shared between cores, and a non-inclusive non-exclusive policy is used.
  14. select:
  15. properties:
  16. compatible:
  17. contains:
  18. enum:
  19. - andestech,ax45mp-cache
  20. required:
  21. - compatible
  22. properties:
  23. compatible:
  24. items:
  25. - const: andestech,ax45mp-cache
  26. - const: cache
  27. reg:
  28. maxItems: 1
  29. interrupts:
  30. maxItems: 1
  31. cache-line-size:
  32. const: 64
  33. cache-level:
  34. const: 2
  35. cache-sets:
  36. const: 1024
  37. cache-size:
  38. enum: [131072, 262144, 524288, 1048576, 2097152]
  39. cache-unified: true
  40. next-level-cache: true
  41. additionalProperties: false
  42. required:
  43. - compatible
  44. - reg
  45. - interrupts
  46. - cache-line-size
  47. - cache-level
  48. - cache-sets
  49. - cache-size
  50. - cache-unified
  51. examples:
  52. - |
  53. #include <dt-bindings/interrupt-controller/irq.h>
  54. cache-controller@13400000 {
  55. compatible = "andestech,ax45mp-cache", "cache";
  56. reg = <0x13400000 0x100000>;
  57. interrupts = <508 IRQ_TYPE_LEVEL_HIGH>;
  58. cache-line-size = <64>;
  59. cache-level = <2>;
  60. cache-sets = <1024>;
  61. cache-size = <262144>;
  62. cache-unified;
  63. };