canaan,k210-sram.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Canaan K210 SRAM memory controller
  7. description:
  8. The Canaan K210 SRAM memory controller is responsible for the system's 8 MiB
  9. of SRAM. The controller is initialised by the bootloader, which configures
  10. its clocks, before OS bringup.
  11. maintainers:
  12. - Conor Dooley <conor@kernel.org>
  13. properties:
  14. compatible:
  15. enum:
  16. - canaan,k210-sram
  17. clocks:
  18. minItems: 1
  19. items:
  20. - description: sram0 clock
  21. - description: sram1 clock
  22. - description: aisram clock
  23. clock-names:
  24. minItems: 1
  25. items:
  26. - const: sram0
  27. - const: sram1
  28. - const: aisram
  29. required:
  30. - compatible
  31. - clocks
  32. - clock-names
  33. additionalProperties: false
  34. examples:
  35. - |
  36. #include <dt-bindings/clock/k210-clk.h>
  37. memory-controller {
  38. compatible = "canaan,k210-sram";
  39. clocks = <&sysclk K210_CLK_SRAM0>,
  40. <&sysclk K210_CLK_SRAM1>,
  41. <&sysclk K210_CLK_AI>;
  42. clock-names = "sram0", "sram1", "aisram";
  43. };